Skip to content

Use highlight.js with reveal.js #10

@HarrisonMc555

Description

@HarrisonMc555

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 😄

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions