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

Indented code blocks must be surrounded by blank lines #203

Open
mondeja opened this issue Apr 12, 2024 · 0 comments
Open

Indented code blocks must be surrounded by blank lines #203

mondeja opened this issue Apr 12, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mondeja
Copy link
Owner

mondeja commented Apr 12, 2024

Just to conform with the Common Mark specfication. Currently we are treating indented code blocks to all the content that is indented with 4 spaces or a tab, but following the spec they should be also surrounded by a blank line. Add this logic to the processor.

That would make right usages of pymdownx.tabbed work with include-markdown, but lazy/incorrect usages (adding a blank line after header) will still be treated as code blocks.

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

No branches or pull requests

1 participant