Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Mathml contents in Grav?

Started by Muut Archive 10 years ago · 4 replies · 457 views
10 years ago

Hi all, I'm totally new in this Grav cms, I would like to create a website that display mathml contents.

From the documentation that I read, it seems that the page or contents develop in Grav uses Markdown, is this true?

I have installed the Grav+Admin, even when I clicked the sample homepage, it is in .md file.

If that's true, is there any way that I can put mathml contents in a page using markdown?

Or there is a way to develop page or content using HTML in Grav?

Hope anyone could clarify my doubts here. Thank you very much.

10 years ago

There's a MathJAX plugin that supports MathML. Markdown also lets you insert arbitrary HTML markup, so there's nothing stopping you from inserting whatever markup you want, but I'm not very familiar with MathML.

10 years ago

As Perlkonig said, you can use any HTML alongside Markdown. MathML in Markdown is fairly much easier than in HTML (given that you're comfortable with the general MathJax syntax), just take a look at the examples in Sommeregen's plugin.

One thing to note is that you generally want the default option of using the linked MathJax-library, via a CDN, rather than a self-hosted variant as that will slow down page-load quite a lot (MathJax is quite a large library).

10 years ago

Thanks guys :)

I found that inserting mathml code inside a .md document, is just like inserting it in normal .html file (if I open it in firefox, I don't even need a plugin, just like normal html file)

So, does that mean I can add any other html codes in .md file just like normal .html file?

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1357 9 years ago
Archive · by Muut Archive, 9 years ago
2 936 9 years ago
Archive · by Muut Archive, 9 years ago
2 4066 9 years ago
Archive · by Muut Archive, 9 years ago
1 2955 9 years ago
Archive · by Muut Archive, 9 years ago
3 1121 9 years ago