gnab / remark

A simple, in-browser, markdown-driven slideshow tool.
http://remarkjs.com
MIT License
12.68k stars 856 forks source link

Escaping paired math delimiters #598

Open jonathanlilly opened 4 years ago

jonathanlilly commented 4 years ago

It would be nice to be able to escape math delimiters, so I can show LaTeX code in the presentation.

It seems the dollar sign can't be escaped, so I can't write

\$\gamma\$

and have it render as $\gamma$.

While I can write \\\[ to render \[, having an escaped opening math delimiter that is followed by an escaped closing math delimiter doesn't work.

Thus, while the preceding example works, \\\[\gamma\\\] does not render \[\gamma\]. This appears to be a bug.

The same applied for \(\).

isentropic commented 4 years ago

you should use backticks to escaper everything like this