Skip to content

code blocks and blockquotes in between lists #801

Answered by gettalong
Aditya-Tolikar asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the example!

The reason why the code blocks and blockquote is not converted is that you need to use a blank line between a paragraph and a code block/blockquote, see the syntax specification.

So by changing your example to the following, it will work as expected:

- Level 1
  - Level 2

    ~~~
    Code at level 2
    ~~~

  - Level 2 2nd line
- Level 1 2nd line

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@gettalong
Comment options

@Aditya-Tolikar
Comment options

@gettalong
Comment options

Answer selected by Aditya-Tolikar
@Aditya-Tolikar
Comment options

@Aditya-Tolikar
Comment options

@gettalong
Comment options

@Aditya-Tolikar
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants