mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-04 05:44:50 +00:00
Highlighting inside fenced code block #508
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @girlpunk on GitHub (Mar 2, 2022).
Hi, Is it possible to parse formatting (specifically highlighting) within a fenced code block?
The output I'm looking for is something like this, though the exact syntax to achieve is flexable
@xoofx commented on GitHub (Mar 3, 2022):
No, it's not possible within Markdig (or more specifically in the scope), but you can always parse the content of code fenced yourself and do whatever you want with the content.
Syntax highlighting is a different topic and is usually handled outside of markdig, as explained in many issues (like #594). Most of the time, highlighting is done in Javascript, quite often (HTML) client side. This is how markdig is used currently by all major doc generation tool.