MD Syntax

Below is the introduction to Markdown Syntax

this is used for blockquoting

adding additional levels of >to nest a blockquote.

blockquotes can contain other MD elements, including headers, lists, and code blocks.

  1. this is the 1st li
  2. this is the 2nd li

here's some example code:

  return shell_exec('echo $input $markdown _script");

you can make an example code by adding enough Tabs.

ul:

  • red
  • green
  • blue

or

  • red
  • green
  • blue

or

  • red
  • green
  • blue
    to put a blockquote within a list item, the blockquote's delimiters need to be indented:
  • a list item with a blockquote:

    this is a blockquote
    inside a list item

to put a code block with in a li, the code block needs to be indented twice--8 spaces or 2 tabs:

  • a list item with a code block:
    < return shell_exec('echo $input $markdown _script");>

note that it's possible to trigger an ol by accident, by a number-period-space at the beginning of a line:

  1. What a great year.
    to avoid this, use backslash in front of period:
    1986. What a great year.

list items may consist of multiple paras. Each subsequent para in a list item must be indented with 4 spaces(2 tabs in Jianshu, 1 tab in others)

  1. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
    Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
    viverra nec, fringilla in, laoreet vitae, risus.
  2. Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
    Suspendisse id sem consectetuer libero luctus adipiscing.

你可能感兴趣的:(MD Syntax)