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

Is there a way to preserve Tab character inside code block? #1686

Open
duongdominhchau opened this issue Nov 14, 2021 · 1 comment
Open

Is there a way to preserve Tab character inside code block? #1686

duongdominhchau opened this issue Nov 14, 2021 · 1 comment
Labels
A-Highlighting Area: Code colored syntax highlighting

Comments

@duongdominhchau
Copy link

Question in the title. Currently the Tab character is converted into 4 spaces. I'm writing a code block demonstrating the behavior when Tab and Space indentations are mixed together, so I need the Tab to be kept as-is. Other than that, I think other weird languages will also benefit from this, for example Makefile requires the use of Tab.

Thank you all for a great tool, it helped me stopped procrastinating and start writing what I have planned for months.

@meator
Copy link

meator commented Feb 25, 2024

I have also encountered this problem. It is pretty bad that mdBook forces spaces. Some systems do not tolerate spaces for indentation, so I had to instruct my readers that the code samples are badly indented and I can do nothing about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Highlighting Area: Code colored syntax highlighting
Projects
None yet
Development

No branches or pull requests

3 participants