-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Tabs turn into spaces in embedded HTML <pre> tag #2835
Comments
Hmm, it seems that I am not able to figure out the "attach files" thing here. It is trivial to reproduce, anyway. This input file should be enough:
|
Note: an embedded
Again, GitHub doesn't show this correctly, but between the opening Tab characters (not character entities) become spaces. |
Pandoc, like most Markdown processors, expands all tabs with a 4-space tab stop before parsing. CommonMark is an exception, so you could try |
I'm sorry, I'd forgotten to mention the |
This might be related to #2804, or not at all. I can't say if it a regression this time. Again, easy to reproduce, but not so easy to notice, or to show: GitHub does something weird with tabs, too. I attach the two files from this command:
Opening both with a browser should make it obvious.
PS. From what I understand, really all white space is supposed to be preserved in a
<pre>
tag.foo.txt
foo.html.txt
The text was updated successfully, but these errors were encountered: