pandoc-emphasize-code
pandoc-emphasize-code copied to clipboard
Use highlight.js with reveal.js
I realize that I'm several layers down a rabbit hole, but it looks like you have a great tool and that it should be able to match my use case :smile:
My flow is as follows:
- Write my presentation in Markdown
- Run the command
pandoc testing.md -o testing.html -s -i -t revealjs --no-highlight --css reveal.js/lib/css/monokai.css --filter pandoc-emphasize-code
In the README, at the bottom of the Rendering to HTML section, it claims that you should be able to use highlight.js with this tool. However, in my use case, it simply adds the <mark>
tags to the formatted code, as if it was part of the original fenced code.
Do you have any tips on how to get this to work? Thanks!
I'm not sure I understand your issue, but you need to add and configure the highlight.js setup (according to their normal instructions) with a JS script. There's nothing in this filter that adds highlight.js setup. Does that help?