Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML RawBlock isn't always verbatim copy of original HTML #5305

Open
gpoore opened this issue Feb 14, 2019 · 0 comments
Open

HTML RawBlock isn't always verbatim copy of original HTML #5305

gpoore opened this issue Feb 14, 2019 · 0 comments

Comments

@gpoore
Copy link

gpoore commented Feb 14, 2019

Under at least some conditions with invalid HTML in markdown, it's possible to create raw blocks that don't reflect the original HTML verbatim. The particular case I've found only involves an added space in a tag, which doesn't affect the output, but I'm opening an issue in case this same sort of modification might be triggered in another context where it would matter.

In temp.txt (note the error in the second tag):

<hr/></hr/>

Then (note the space in the first tag):

pandoc -f markdown -t native temp.txt
[RawBlock (Format "html") "<hr />"
,RawBlock (Format "html") "</hr/>"]

I've tested this under pandoc 2.5 and 2.6. It doesn't seem to matter whether the tags are on the same line or whether there is intervening text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants