Custom Pygments Formatter #2172
-
Hi there! The built-in extension codehilite allow customizing the Pygments formatter with the Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
You can set configure options in a pygments language here: https://facelessuser.github.io/pymdown-extensions/extensions/highlight/#extended-pygments-lexer-options. I don't know if they offer exactly the same features as |
Beta Was this translation helpful? Give feedback.
-
Thanks for the prompt response, Isaac! |
Beta Was this translation helpful? Give feedback.
There are a number of Pygments formats, and there are also many that make absolutely no sense to use in the context of Markdown parsing. Pygments has formatters for all sorts of environments, like terminal out for instance. I guess, it could be argued there are some niche cases, like your own, that may prefer LaTeX, but those are pretty rare.
It could certainly be done with a custom fence via SuperFences as you could override and call Pygments directly and handle it however you want. Right now we are very much geared towards HTML output. I'm sure some features we support also don't translate to LaTeX (or other formats) …