-
Notifications
You must be signed in to change notification settings - Fork 913
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
Add support for GitLab Flavored Markdown #564
Comments
@deining, any ideas? |
Having a look at the documentation of the autorender extension, the |
Thanks @deining for the suggestion! I have tried this but unfortunately to no avail. After configuring KaTeX with [params.katex.options]
ignoredTags = ["script", "noscript", "style", "textarea", "option"]
[[params.katex.options.delimiters]]
left = "```math"
right = "```"
display = true my HTML still has the bare code: <pre><code class="language-math" data-lang="math">\chi (x) = e^{-t/\tau}</code></pre> I've also tried to find other solutions that use KaTeX with GitLab-flavored markdown but the only project I have found is this Python wrapper for KaTeX: https://github.com/mbarkhau/markdown-katex As far as I can see and understand the code, they parse the MD independently and only pass the stripped content to the KaTeX renderer. Do you have any other idea? (It's really unfortunate GitLab had to go their individual path there instead of sticking to what everyone else uses...) |
With #987, support for GLFM math blocks was added. |
I'm trying to configure KaTeX delimiters in order to parse and interpret the (admittedly odd) GitLab Markdown style using fenced code blocks of type
math
for formulae:https://docs.gitlab.com/ee/user/markdown.html#math
I have added the definition to my
config.toml
but it doesn't seem to do anything - maybe because code highlighting is performed before KaTeX parsing?Do you have an idea how I could make the two compatible?
The text was updated successfully, but these errors were encountered: