You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm pretty sure this is because of commit
773bbb8
We used to fail if the HTML tokenizer yielded any warnings.
This commit changed this...in fact we got lots of complaints
about pandoc's failure to parse malformed HTML.
Unfortunately the same change that allows pandoc's HTML
reader to accept things like unescaped `&` also allow
your case.
So this needs more thought.
Note: I recommend that if you are including math, you
either backslash-escape the `<` sign or, better, use
tex math.
i\<j and j\>k
or
$i<j \text{and} j>k$
Otherwise there's always a risk of interpretation as HTML,
and this would remain even if we made the parser stricter.
E.g. in
x<a and y>z
we parse as an "a" element with boolean attributes "and" and
"y". (Yes, those aren't official HTML attributes, but we
don't validate tags and attributes, because we want pandoc
to be flexible enough to accept custom elements, docbook,
etc.)
Use command line:
pandoc -f markdown_github -t html
Input markdown text: https://gist.github.com/cnblogs-dudu/c9fde76518998e5386f6e66bd89b281a
Get the following html when use pandoc 1.17.2 or pandoc 1.18.
Expect the following right html. It works on pandoc 1.17.
The text was updated successfully, but these errors were encountered: