-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Katex and Mermaid examples in live demo don't work because of /**/ comments #583
Comments
Hi! So below is how you use it
|
Related issue, gohugoio/hugo#10058 |
If this is the only possible workaround to have it render as a code block, perhaps we should add some text next to it, instructing to remove the /**/ ? |
I fixed examples pages with some raw html trickery, see a111041 |
Awesome! |
I had some trouble getting Katex and Mermaid to work. I could not get the examples from the live demo site to work. Both of them told to add
/**/
in the shortcode definition.https://hugo-book-demo.netlify.app/docs/shortcodes/katex/
https://hugo-book-demo.netlify.app/docs/shortcodes/mermaid/
However, when I looked at the source for the files I noticed that the text inside the Latex code block is different from the actual katex invocation. The real katex only says
{{< katex display >}}
, without the/**/
and thetext-center
. This one did work for me.What's going on with the
/**/
? Should those be removed from the documentation examples?ps.: Here is a screenshot of what I see in the live demo website:
The text was updated successfully, but these errors were encountered: