简体   繁体   中英

Quote inside a github-flavoured markdown list

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

This works for me:

* One

    > Quote

* Two
* Three

which renders (with GitHub styling) like:

  • One

    Quote

  • Two

  • Three

Make sure you are using four spaces to indent your > , have one to three spaces between > and your quote text, and blank lines before and after the quote.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM