Hacker News new | past | comments | ask | show | jobs | submit login

I am theoretically a big fan of the (not yet existing) Markua math format from leanpub: https://leanpub.com/markua/read#math

The inline math syntax is `x^2 + 4x +4`$ so the dollar sign is outside the backticks, but the formula is encapsulated in the code.

For a display block, they use the code fences with either latex or $ as a math toggle:

```latex

\psi = \frac{5 \phi}{\omega}

```

or

```$

\psi = \frac{5 \phi}{\omega}

```

At some point soon, I intend to implement this for my own use. It should be pretty easy using a markdown parser assuming one can do a lookahead/gobbler to the next character after the inline backticks.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: