markdown-edit

Open full view…

Automatic character escapes in math environment

Elizabeth Henning
Sun, 31 Jan 2016 21:37:38 GMT

Hi Mike, The auto-behavior of escaping certain characters upon saving makes it impossible to render math expressions like k[x]. It's also annoying to have x_1 get turned into x\_1, although it renders OK. Am I overlooking something?

Elizabeth Henning
Sun, 31 Jan 2016 22:19:37 GMT

Update: Actually, underscore *doesn't* render properly in the display environment, only in the inline environment.

Mike Ward
Mon, 01 Feb 2016 13:50:14 GMT

You can turn off the auto-format on save option in the settings dialog. The formatter does not understand Latex expressions. The rendering of math expressions is a JavaScript extension in the web browser. The editor only understands Markdown which is why it escapes some of the characters.

Elizabeth Henning
Tue, 02 Feb 2016 03:18:13 GMT

I figured it was something like that with the editor but I didn't know how to fix it. As a bonus, this also took care of the h1 and h2 automatic formatting with underlines, which I dislike. Thanks for all your hard work.