Open Barsonax opened 3 years ago
Seems like a problem in the commonmark/gfm writer... as it works for -t markdown
, right?
Seems like a problem in the commonmark/gfm writer... as it works for
-t markdown
, right?
Also seems to be broken: https://pandoc.org/try/?text=%3Cstrong%3EOK+zu+nicht+best%C3%A4tigtem+Fehler+%3Cbr%3E%3C%2Fstrong%3E&from=html&to=markdown&standalone=0
but that's correct, backslash followed by newline is pandoc-flavoured markdown for <br>
, see https://pandoc.org/MANUAL.html#backslash-escapes
but that's correct, backslash followed by newline is pandoc-flavoured markdown for
<br>
, see https://pandoc.org/MANUAL.html#backslash-escapes
But it causes the closing **
to end up the wrong line right?
It should be like this I believe:
Wrong:
**OK zu nicht bestätigtem Fehler\
**
Correct
**OK zu nicht bestätigtem Fehler**\
well.. that would be kind of nicer for a human to read, but it's not exactly the same content anymore...
**OK zu nicht bestätigtem Fehler\
**
converts perfectly fine back to the same HTML:
<p><strong>OK zu nicht bestätigtem Fehler<br />
</strong></p>
Ok then it seems only the github flavored version is broken: https://pandoc.org/try/?text=**OK+zu+nicht+best%C3%A4tigtem+Fehler%0A**&from=gfm&to=html5&standalone=0
When converting html to markdown inserting a
<br>
inside a<strong>
results in incorrect markdown:Input
Output
Correct Output
https://pandoc.org/try/?text=%3Cstrong%3EOK+zu+nicht+best%C3%A4tigtem+Fehler+%3Cbr%3E%3C%2Fstrong%3E&from=html&to=gfm&standalone=0
version