Skip to content
This repository has been archived by the owner on Feb 2, 2018. It is now read-only.

Indented code blocks can have further indented code sub-blocks. #11

Open
amatus opened this issue Feb 1, 2011 · 0 comments
Open

Indented code blocks can have further indented code sub-blocks. #11

amatus opened this issue Feb 1, 2011 · 0 comments

Comments

@amatus
Copy link

amatus commented Feb 1, 2011

When trying to format a code block that has indented lines surrounded by blank lines indented inside a list item, the blank-line-surrounded-indented-code ends up in a code sub-block.

Example:

1. Some code

        if (1) {

                printf("what?\n");
        }

2. Some other code
    ~~~
    while(0) {

            exit(-1);
    }
    ~~~

The if and while blocks are correctly contained in a code block which is part of their respective list items, but the printf and exit lines are surrounded by their own <pre><code></code></pre> tags because they are surrounded by blank lines and are indented an additional 8 spaces.

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

No branches or pull requests

1 participant