gnab / remark

A simple, in-browser, markdown-driven slideshow tool.
http://remarkjs.com
MIT License
12.67k stars 854 forks source link

Use highlight.js styles other than those listed in the highlightStyle configuration option #678

Open zspitz opened 2 years ago

zspitz commented 2 years ago

I would like to use the vs2015 highlight.js style. It's not listed as one of the options for highlightStyle.

How can I do this?

FedericoStra commented 1 year ago

Maybe the option none could be added to highlightStyle that doesn't inject any Highlight.js CSS in the generated <style> and then we could simply select the preferred style by putting something like

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/dark.min.css">

in the <head> section.