Configuration of highlight when using superfences #1653
-
Hello, I just spent 3h trying to figure out why I could configure Is it written somewhere that you actually need both in the extension list in order to configure it? Because if not, it's extremely confusing when a new user add |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Pymdown Extensions has two extensions that use highlighting: SuperFences and InlineHilite. They are both built on Highlight which does the actual formatting of the code to syntax highlighted code blocks (or blocks ready for JS highlighting if not using Pygments). SuperFences allows you to configure the fenced code syntax and behavior just as InlineHilite has options specifically for controlling its syntax and behavior. Highlight controls the formatting of the code blocks. It is noted that SuperFences uses
If using SuperFences or InlineHIlite, Highlight is automatically included and used. You do not have to manually include it unless you specifically want to configure it. While an argument could be made that this should somehow be made more clear, I'm open to suggestions on how to do that. I'll be honest, I don't admit to being the best document writer, but I do try to make things as clear as I can. |
Beta Was this translation helpful? Give feedback.
Pymdown Extensions has two extensions that use highlighting: SuperFences and InlineHilite. They are both built on Highlight which does the actual formatting of the code to syntax highlighted code blocks (or blocks ready for JS highlighting if not using Pygments).
SuperFences allows you to configure the fenced code syntax and behavior just as InlineHilite has options specifically for controlling its syntax and behavior. Highlight controls the formatting of the code blocks.
It is noted that SuperFences uses
Highlight
under the hood and that all code highlighting features are controlled by Highlight: