Skip to content

Indented code blocks must be surrounded by blank lines #203

@mondeja

Description

@mondeja

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking changeMust be released in a new major versionenhancementNew feature or request

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions