Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 918
Javad Avatar asked Jan 04 '15 03:01

Javad


People also ask

How do you Markdown a quote?

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.

How do I add a horizontal line in GitHub?

To create a horizontal line, use three or more asterisks ( *** ), hyphens ( --- ), or underscores ( ___ ):

What GitHub Flavored Markdown is and how it is used?

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.

How do you underline in GitHub Markdown?

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.


1 Answers

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.

like image 104
Chris Avatar answered Nov 12 '22 18:11

Chris