I found that I can get double dollar signs with a minor change:
$$~
latex code here
~$$
A bit hacky, but \[ and \] don't work as expected, $$\n doesn't work, I can
search and replace easily, and can't bring my self to have any text after
my opening $$. Consistency with Pandoc would be a good th
Scholarly Markdown uses double backticks for inline math:
http://scholarlymarkdown.com/Scholarly-Markdown-Guide.html#math
Has two nice properties:
1. doesn't conflict with our string interpolation syntax;
2. gracefully degrades to code markup in other Markdowns (e.g. GitHub)
On Wed, Oct
I wish it would use the same equation syntax as pandoc and Jupyter. You need a
darn good reason to be different from the dominant implementation of equations
in Markdown.
(And "$$ is deprecated in LaTeX is not a good enough reason. Markdown isn't
LaTeX.)
Thanks for that, it is helpful. I'm don't really like the heuristic, but it
is something that can be worked with.
On Tuesday, October 13, 2015 at 11:26:44 PM UTC-4, andy hayden wrote:
>
> Whether it renders as $ or $$ is inferred from the position, if it's
> inline it uses $ if it's a block $$.
Whether it renders as $ or $$ is inferred from the position, if it's inline
it uses $ if it's a block $$.
julia> Markdown.latex(Markdown.parse("""\$\\sin(x)\$"""))
"\$\$\\sin(x)\$\$"
julia> Markdown.latex(Markdown.parse("""inline \$\\sin(x)\$"""))
"inline \$\\sin(x)\$\n"
https://github.com/Ju