Is there a way to conditionally call the MathJax javascript the same way that we call mermaid?

With the release of v0.122.0 we have an official way of including MathJax or Katex.

Currently, you have to set something in either the properties of the entire site or in the front matter of the individual page that you want to use this new feature.

Is there a way to have it conditionally the same way as mermaid? For example, you have a blog post or article that might show up in an index or listing.

Let me know if I’m over thinking this and I hope this message finds you well.

No, there is not. See:

You may be able to do something really ugly like parsing .Content for $$, etc., but I wouldn’t do that.

1 Like

Thank you!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.