xy2z / PineDocs

A fast and lightweight site for viewing files
GNU General Public License v3.0
141 stars 19 forks source link

Latex support #168

Closed Mylloon closed 2 years ago

Mylloon commented 2 years ago

Hello,

I really like the project, but I think that one important thing is missing, the support of LaTeX for mathematical formulas in markdown files (or even KaTeX?).

Like $expression$ renders the formula inline (like a `code`) and $$expression$$ renders it in a new line centered (like a ```code``` but centered)

Is this a feature that is planned for the future?

xy2z commented 2 years ago

Hi @Mylloon

This is not a planned feature as I personally don't use LateX or KaTex, so I wouldn't have any idea on how to test etc.

But pull requests are very welcome.

Mylloon commented 2 years ago

I'll take a look at MathJax one of these days then