I wish that markdown could be extended. #201147
Replies: 2 comments
-
|
It is a valid frustration, especially when comparing GitHub's native Markdown implementation in wikis and issues to dedicated blogging platforms or documentation tools like EnlighterJS. GitHub relies on standard CommonMark and GitHub Flavored Markdown (GFM) parsers, which intentionally stick to the core spec for predictability and security across millions of repositories. While you can specify language identifiers for syntax highlighting (e.g., ```python), GFM deliberately omits presentation controls like explicit line numbers, custom start indices, or line highlighting ranges. Unfortunately, extending the native markdown parser to support custom rendering attributes for code blocks is something the GitHub team has historically been very conservative about implementing directly in GFM. If you need this functionality today, your best workaround for GitHub Wiki documentation is to embed HTML |
Beta Was this translation helpful? Give feedback.
-
|
Well, you'll be happy to know that there are workarounds : )
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Question
💬 Feature/Topic Area
Code Search and Navigation
Body
I wish that markdown could be extended.
It is great that we can show code blocks and the syntax highlighting. But none of the rest.
I am able to format blocks of code using WordPress with EnlighterJS. It is a pity the richness of that could not be available here in markdown for GitHub Wiki documentation.
Beta Was this translation helpful? Give feedback.
All reactions