benweet / stackedit

In-browser Markdown editor
https://stackedit.io/
Apache License 2.0
21.82k stars 2.73k forks source link

macros broken in MathJax #1194

Open MrHuggs opened 6 years ago

MrHuggs commented 6 years ago

I start all my documents with a macros I need for Tex. For example:

$\def\ip {\, \lrcorner \, }\def\supp {\,\text{supp} \,}\def\Hom {\,\text{Hom} \,} \def\im{\,\text{im} \,}\def\h#1{H^#1{dR}}\def\is{i\sharp }\def\PD{\,\text{PD} \,}$

Now I get;

KaTeX parse error: Expected 'EOF', got '\def' at position 1: \̲d̲e̲f̲\ip {\, \lrcorn…

I have about 200 documents. 75% are broken now. What to do? Can I set an option to switch back to mathjax?

jonathanagustin commented 6 years ago

I would really like MathJax support as well, I write a lot of math for assignments at school and would love to use stackedit for my notes, but I have to resort to some other online markdown website... StackEdit has all the features I need EXCEPT the MathJax... please prioritize this...