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

Rule for indentation in fenced code blocks #312

Open
polarathene opened this issue Aug 6, 2020 · 5 comments
Open

Rule for indentation in fenced code blocks #312

polarathene opened this issue Aug 6, 2020 · 5 comments
Labels

Comments

@polarathene
Copy link

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: #17 #82

@DavidAnson
Copy link
Owner

Can you please clarify the part about “prevents adopting markdownlint”? You can allow tabs in code blocks.

@polarathene
Copy link
Author

While the markdown documents have tabbed indentation for code snippets, contributions are reviewed to ensure that happens. markdownlint lacks a rule to detect the issue so that it can be caught and fixed automatically, so reviewers would still need to check for such themselves right?

@DavidAnson
Copy link
Owner

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.

@polarathene
Copy link
Author

I understand that, but if it cannot help with that issue, the maintainers might not find it acceptable. There's a linked issue where I've pitched markdownlint, perhaps they will still express interest despite the lack of such feature.

@DavidAnson
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants