reveal-hugo
reveal-hugo copied to clipboard
Question: How to customize [markup.highlight] in front matter?
Thanks once more for this theme 🙂 I use it for all my presentations 🙂
One thing that I never figured out is how to have different chroma styles for different presentations within the same repo (i.e. how to set [markup.highlight] in the front matter instead of in config.toml).
This is what I have in my config.toml:
[markup]
defaultMarkdownHandler = "blackfriday"
[markup.highlight]
hl_Lines = ""
lineNoStart = 1
lineNos = false
lineNumbersInTable = true
noClasses = true
style = "dracula"
tabWidth = 4
It works great. But I don't know how to use a different chroma style for some presentations.
The workaround I have used so far is to have different Git branches or different repos for the presentations that use a different style. But it would make my workflow so much simpler not to have to do that and to simply be able to set the style in the front matter of each _index.md file!
Thanks!
@prosoitos Hope you've been well :) This is a good question and I don't have an answer off the top of my head. I will try to have a look this month and see if there is another way to do it, or some kind of override we could add the HTML / JS. I'd invite any onlookers to also explore or make a recommendation if someone has time. Thanks!
Great! Thank you! 🙂