Open shakna-israel opened 9 years ago
This doesn't seem to break code highlighting, but might not be desirable in all circumstances.
On both the standard MKDocs theme and the ReadTheDocs theme, the first codeblock gets some syntax highlighting, the bottom doesn't appear to get the same, though it uses a python
tag.
So it seems the only time you'd want this, is if you were rendering to a GitHub or GFM-compatible engine.
A solution would be an optional flag, maybe --force-highlight
, to imply that it shouldn't normally be necessary.
Currently docbuilder builds standard code blocks:
It would be useful if it could take advantage of GitHub's markdown flavour for specifying a language, so it can do some highlighting magic:
It still needs checking to see if this would break markdown rendering under MKDocs and Sphynx.