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
{{ message }}
Repository navigation
Tabs within code block are converted to 4 spaces? #644
You're right, commonmark says that. However, marked heavily relies on the fact that everything is indented with spaces. Code blocks, list, blockquotes...
I don't think this can be changed without a massive review of the source code.
Activity
mbovel commentedon Mar 18, 2016
Same problem here. I think this is definitely a bug: code blocks should not be modified in any way. That's the behaviour promoted by CommonMark.
Discount and Pandoc, however, also seem to convert tabs to spaces.
joshbruce commentedon Dec 25, 2017
#983
Feder1co5oave commentedon Jan 10, 2018
You're right, commonmark says that. However, marked heavily relies on the fact that everything is indented with spaces. Code blocks, list, blockquotes...
I don't think this can be changed without a massive review of the source code.
vixalien commentedon Dec 18, 2021
If it is not possible to let tabs remain the same, atleast allow the user the select the number of spaces they want.
UziTech commentedon Dec 18, 2021
@vixalien you can convert them before you send the markdown to marked.