syntax.md 4.3 KB

h1

h1

h2

h2

h3

h4

h5
h6

#h1

##h2

###h3

####h4

#####h5

######h6

测试一

测试二

测试三

a/b c-d

Horizontal Line







List

  • ul

    • ul
    • ul
  • ul

    • ul
    • ul
  • ul

    • ul
    • ul
  • ul

    • ul
    • ul
  • ul

    • ul
      • ul
  1. ol

    1. ol
    2. ol
  2. ol

    1. ol
      1. ol

Text Formatting

bold

bold

italic

italic

inline code

blockquote

Combinations

first

second

third blockquote

something

something

something

something

something

something

something

something

something

something

blockquote

blockquote

blockquote

Link

link with inline URL

link with index

named link

some-url

some-url

parentheses in URL

escaped parentheses in URL

[email protected]

https://github.com/simov/markdown-viewer

https://github.com/simov/markdown-viewer

Image

named-image

2

2

3

named-image

Code Block

code block using indentation
fenced code block using backtick
fenced code block using tilde

GFM

Table

table col col col
default align left centered align right
default left align left left something centered something align right
default align left centered align right

Strikethrough

strikethrough

something

something

something

something

something

something

something

something

something

something

Task List

  • task
  • task

HTML

HTML Tags

bold and underline

Details/Summary

Click to Expand ```js var code = 'block' ``` ### Inner Header [link](https://github.com/simov/markdown-viewer)

Definition List

Name
Godzilla
Born
1952
Birthplace
Japan
Color
Green

KBD

the kbd tag

Supscript/subscript

  • 19th
  • H2O

Extras

Emoji

  • shortcode: :wave: :alien:
  • unicode: 👋 👽
  • ascii: :D :/

MathJax

Syntax Highlighting

Escapes

HTML tags

\ ` * _ { } # + - . ! [ ] ( )

`\(`

```
fenced code block
```

Mention

@simov

Footnotes

Something something^named

And something else[^1], and a link^2

[^1]: This reference footnote contains a paragraph...

* ...and a list

Quirks

  1. item 1

    code block
    
  2. item 2

  3. item 3

Nested tables in lists

case 0: a table at indentation level 0, after a paragraph (at level 0) -- this should render the table not-indented

A B
1 2
  • case 1: a table at indentation level 1, after a list item at level 1 -- this should render the table indented once

    A B
    1 2
    • case 2: a table at indentation level 2, after a list item at level 2 -- this should render the table indented twice

      A B
      1 2

case 3: a table at indentation level 1, after a a paragraph (at level 0) -- this should render the raw text into a code block

|A|B|
|---|---|
|1|2|