Closed 8LWXpg closed 9 months ago
Intended. Math works like code.
``inline``
block
$$inline$$
$$
block
$$
There's some website that render $$something$$
as block math, like GitHub or Stack Exchange. I hope there's an option or something to do so.
The problem is that math is unspecified. If I do something here, it won't ever work like all other projects. The solution is to get this specified!
maybe add this inside ParseOptions
with force enabling math_text_single_dollar
. That way, double dollar is always threated as block math while single dollar will be treated as inline. I think most markdown math is rendered that way (at least for those I familiar with).
maybe add this inside
add what? what is this
?
You asked about matching how GH works and matching how Stack Exchange work.
That’s two complex things that are unspecified and take a lot of time, with little benefit.
To reiterate, I think: “The solution is to get [math in markdown] specified!”
I think math in markdown is double dollar for block math and single dollar for inline in most cases, regardless of newline
There is no specification for that. Every tool is different.
This is based on CM and is exactly the same as the sister projects in JS.
the parser threat
$$something$$
as inline mathoutput: