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
There is some new line inserted inside what should be an image link in markdown. I was expecting this ![\\frac{x}{y}](https://latex.codecogs.com/png.latex?%0A%5Cfrac%7Bx%7D%7By%7D%0A "\frac{x}{y}")
This creates issues when trying to convert to HTML
From https://groups.google.com/g/pandoc-discuss/c/rRAh4z3l_BY
Take this md document
It can be converted using webtex in Markdown to use an image
There is some new line inserted inside what should be an image link in markdown. I was expecting this
![\\frac{x}{y}](https://latex.codecogs.com/png.latex?%0A%5Cfrac%7Bx%7D%7By%7D%0A "\frac{x}{y}")
This creates issues when trying to convert to HTML
From @jgm
Looks like the parser expects a non-space character after the
opening " in a link/image title. So we should avoid a break
there.
BAD:
OK:
With gfm reader it does not see the same thing
From @jgm
gfm reader is commonmark and uses a different parser, which
doesn't mind the line break there.
So there are two possible solutions:
fix markdown reader so it's okay with the line break after "
in title.
fix writer so it strips out the leading and trailing space of
a title.
Probably worth doing both.
The text was updated successfully, but these errors were encountered: