mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
Coloring support for code #501
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 @rdmzkn on GitHub (Feb 7, 2022).
Is there any colouring support for code tag ?
I use the latest version and colouring updates are not generated in html for code sections in md files.
@MihaZupan commented on GitHub (Feb 7, 2022):
Markdig does not emit style tags / CSS, though it will add the language class on code blocks so that other tools may add coloring.
For example
will be rendered as
You can then use other plugins to do the highlighting - e.g.
highlight.jsorprism.js.See #345 for some more discussions around highlighting.
@xoofx commented on GitHub (Feb 7, 2022):
In my experience, I have been using
prism.jswith markdig without changing anything, used on my blog post and on https://kalk.dev/ and it works very well.Also see some third party extensions that are proposing syntax highlighting