Rule for indentation in fenced code blocks
See original GitHub issueIdeally this could be configured based on language/context given to the code block syntax (```language
). Docs that I contribute that require tabs for their config snippets prevents adopting markdownlint otherwise.
Related: https://github.com/DavidAnson/markdownlint/issues/17 https://github.com/DavidAnson/markdownlint/issues/82
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Code block style [Expected: indented; Actual: fenced]
fenced : All code blocks must be fenced. Any indented code blocks will raise an error. indented : All code blocks must be...
Read more >Markdownlint Rules
This rule is triggered when list items are not indented by the configured number of ... Note: Trailing space is allowed in indented...
Read more >Fenced code blocks within bullet lists
> code. ... > be made simpler? ... out right. ... space). This way, you start your list content at 4-spaces in. ......
Read more >Extended Syntax | Markdown Guide
Fenced Code Blocks ... The basic Markdown syntax allows you to create code blocks by indenting lines by four spaces or one tab....
Read more >Fenced code blocks
“To put a code block within a list item, the code block needs to be indented twice — 8 spaces or two tabs.”...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Understood. FYI, this could be implemented as a custom rule by a motivated party - no need to wait for me. 😃
Yes, in the context of the feature you are requesting, tabs would not be required in code blocks. But that should not prevent you from using markdownlint - it’s more of a missing validation than a wrong or problematic one.