+2
Completed

# Can there be an option to choose the inline math expression delimiter for MathJax?

Xiao-Ming Lu 6 years ago • updated by mofo syne 3 years ago

Haroo is wonderful! Especially when it supports MathJax.

A little problem for me to use Haroo is it use $$ as the inline math expression delimiter, not a single  conventionally. I can understand that there are some reasons to do that. However, can you supply an option for users to chose  or $$$ as the inline math expression delimiter, because it will be convenient if the users like me will use these markdown file in other places, where $ denotes the inline math delimiter.

Thanks very much.

Completed
Haroopad v0.11.1 version is out :-)
support with new version
Under review

As you already know, the single '$' sign cause some trouble when it is used for currency unit. Making '$' symbol as literal with back-slash ('\') could be an option for solving this, but not good for ordinary users. If you have some idea, please suggest us.

Either way, we will give an option with consideration.

block

math
x^2


inline

$x^2$
+2
Thanks very much for the reply.

I do not think this will improve the existing solution (the triple $), which is already very convenient to use if we edit and convert markdown always in Haroo. Sometimes I need to edit markdown file by Haroo, and then use these files as the input to other converters, like Pandoc, to generate customized HTML for my website. The problem is Pandoc use just a single $ for the inline math expression in LaTeX. This is also, as far as I know, a convention in scientist community, where people are fund of using LaTeX in markdown and seldom care  about the currency unit use of '$'. So my suggestion is to supply an option for user to switch between the two delimiter: the triple $, or the single \$, for the inline MathJax expression.

Thanks again.
Planned
It'll be support with next release.