showdown: Support for code highlighting in githubCodeBlocks
Do you plan to add support for syntax highlighting in githubCodeBlocks?
Something like this:
if (options.highlight) {
codeblock = options.highlight(codeblock, language) || codeblock;
}
I can send PR.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 17 (6 by maintainers)
Making an extension for code highlighting would be kind of easy with the new showdown’s extended RegExp engine.
example using https://highlightjs.org/ library: