Tab size of code blocks
izh1979 at gmail.com
Sun Oct 2 06:24:54 EDT 2016
Markdown allows to include code blocks by using
But it doesn't allow to specify the tab size (number of spaces). As I see,
Markdown states that the tab size is 4: "To produce a code block
in Markdown, simply indent every line of the block by at least 4 spaces
or 1 tab."
We use Markdown as a format for projects' wikis in gitlab. And we need
sometimes to include snippets of code to wiki pages. And lot of projects
use tab size of 8. It would be nice to allow to specify the tab size per
code block. For example (or with any other syntax):
(Or there could be some global setting at the start of the file.)
This would allow markdown to HTML converters to set the tab-size CSS
property properly. What you think?
More information about the Markdown-Discuss