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.
To create a blockquote, start a line with greater than > followed by an optional space. Blockquotes can be nested, and can also contain other formatting. To keep the quote together, blank lines inside the quote must contain the > character.
To create a horizontal line, use three or more asterisks ( *** ), hyphens ( --- ), or underscores ( ___ ):
GitHub Flavored Markdown, often shortened as GFM, is the dialect of Markdown that is currently supported for user content on GitHub.com and GitHub Enterprise. This formal specification, based on the CommonMark Spec, defines the syntax and semantics of this dialect. GFM is a strict superset of CommonMark.
Just use the HTML <u> tag (recommended) or the <ins> tag inside your markdown for this. The HTML tag <ins> is the HTML "insert tag", and is usually displayed as underlined. Hence, you can use it for underlining, as @BlackMagic recommends in his answer here. It is the opposite of the <del> delete tag.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With