question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rule for indentation in fenced code blocks

See original GitHub issue

Ideally 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:open
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
DavidAnsoncommented, Aug 7, 2020

Understood. FYI, this could be implemented as a custom rule by a motivated party - no need to wait for me. 😃

1reaction
DavidAnsoncommented, Aug 7, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found