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

[markdown to html] Sequence "\t0" breaks conversion #5686

Closed
manualbashing opened this issue Aug 14, 2019 · 2 comments
Closed

[markdown to html] Sequence "\t0" breaks conversion #5686

manualbashing opened this issue Aug 14, 2019 · 2 comments

Comments

@manualbashing
Copy link

With the following input in markdown:

# This part is fine

FOO\t0BAR

## This part does not make it to

the html output.

running pandoc .\test.md -o .\test.html the expected output would be:

<h1 id="this-part-is-fine">This part is fine</h1>
<p>FOO\t0BAR</p>
<h2 id="this-part-does-not-make-it-to">This part does not make it to</h2>
<p>the html output.</p>

but the actual output is:

<h1 id="this-part-is-fine">This part is fine</h1>
FOO
  • I am using pandoc 2.7.3 on Windows 10, PowerShell 5.1
@mb21
Copy link
Collaborator

mb21 commented Aug 14, 2019

Indeed, the markdown reader converts this to RawInline (Format "tex") "\\t0BAR" and gobbles up everything following that.

Using -f markdown-raw_tex is a workaround. Or better, you can escape the backslash:

FOO\\t0BAR

@manualbashing
Copy link
Author

Using -f markdown-raw_tex is a workaround. Or better, you can escape the backslash:

FOO\\t0BAR

Works for me, thanks!

@jgm jgm added this to the 2.8 milestone Aug 14, 2019
@jgm jgm closed this as completed in 79a3449 Aug 14, 2019
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

3 participants