Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expose highlight.js options via frontmatter #300

Open
hesxenon opened this issue Apr 24, 2024 · 0 comments
Open

expose highlight.js options via frontmatter #300

hesxenon opened this issue Apr 24, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@hesxenon
Copy link

Is your feature request related to a problem? Please describe.
Currently I'm unable to find a way to enable highlighting for less used languages (fsharp in my case). Highlight.js supports fsharp, but it has to be explicitly enabled. Afaik the only way to do this is via the initial configure call.

Describe the solution you'd like
It'd be nice to have a frontmatter property like highlightLanguages: ['typescript', 'fsharp', 'java']

Describe alternatives you've considered
Including custom JS and using reveal.js' api directly. Too much effort, too many presentations to write^^

Additional context
I'm fairly certain I managed to do this at some point in the past, just unsure whether that was back when I used my own version of reveal.js or not 🤔

@hesxenon hesxenon added the enhancement New feature or request label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant