3 ms·
The syntax highlighting of the code of each language itself is not the problem. This post is about markdown. A typical markdown parser doesn't do syntax highlig
by zelphirkalt 9mo ago
The syntax highlighting of the code of each language itself is not the problem. This post is about markdown. A typical markdown parser doesn't do syntax highlighting for code blocks. That's usually done by some other library, like for example pygments. The issue is about markdown syntax. What happens on another language's level does not concern the markdown parser.
- charles_f 9mo agoThat's exactly my point, the solution you're discussing is about something else, and not relevant to what's discussed in this post.
- _ache_ 9mo agoSo if syntax highlighting isn't a problem. The standard way of presenting block of code in Markdown is to indent it. Which is quick and easy to understand.
- zelphirkalt 9mo agoThe solution I describe merely serves for being an easier to parse way of nesting code blocks. I don't mean it to serve for any syntax highlighting, as I am understanding is your impression. That would only be an outcome for tools that act upon the AST generated by the parser. Tools that can take code of a programming language and color it. Not the job of a markdown parser, for which my idea is meant.