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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How to customize [markup.highlight] in front matter? #107

Open
prosoitos opened this issue Apr 12, 2021 · 2 comments
Open

Question: How to customize [markup.highlight] in front matter? #107

prosoitos opened this issue Apr 12, 2021 · 2 comments

Comments

@prosoitos
Copy link

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!

@joshed-io
Copy link
Owner

@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!

@prosoitos
Copy link
Author

Great! Thank you! 馃檪

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants