markdowngithub-flavored-markdownblockquote

How to add a block quote inside a github-flavoured markdown list item?


I would like to add a quote within a list (ordered or unordered) item. Indentation matters. I would like to have the quotation (blockquote) highlighting-style, not code style. Indenting the > sign removes the quote highlighting.


Solution

  • This works for me:

    * list item 1
    
        > Quote (note: there must be 4 spaces before the `>`, 1-3 spaces after the `>`, and there must be blank lines before and after this quote)
    
        Normal, unquoted text.
    
    * list item 2
    * list item 3
    

    which renders (with GitHub styling) as:


    Make sure you use:

    This also works with numbered lists, with the above representing a single list with three items.