Skip to content

Consecutive fenced code blocks don't always convert < and > #12

Closed
@will123195

Description

@will123195

Note: I had to indent my examples so they would render properly on github.

Example 1 - Incorrect

    ~~~
    fenced code blocks are separated by a blank line ~~~\n\n~~~
    ~~~

    ~~~
    <?
    // incorrect behavior
    ?>
    ~~~

Example 2 - Correct

    ~~~
    fenced code blocks are on adjacent lines ~~~\n~~~
    ~~~
    ~~~
    <?
    // ok
    ?>
    ~~~

Example 3 - Correct

    ~~~
    <?
    fenced code blocks are separated by a line with a single space ~~~\n\s\n~~~
    ?>
    ~~~

    ~~~
    <?
    // ok
    ?>
    ~~~

Example 4 - Correct (same as Example 1 except without the "?>")

    ~~~
    fenced code blocks are separated by a blank line ~~~\n\n~~~
    ~~~

    ~~~
    <?
    // ok
    ~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions