mirror of
https://github.com/marktext/marktext.git
synced 2025-05-08 21:21:41 +08:00
2.0 KiB
2.0 KiB
Lists
- an asterisk starts an unordered list
- and this is another item in the list
- and this is another item in the list
To start an ordered list, write this:
- this starts a list with numbers
- this will show as number "2"
- this will show as number "3."
- any number, +, -, or * will keep the list going.
- just indent by 4 spaces (or tab) to make a sub-list
- keep indenting for more sub lists
- here i'm back to the second level
- just indent by 4 spaces (or tab) to make a sub-list
- this starts a list with numbers
- this will show as number "2"
- this will show as number "3"
- foo
- bar
- baz
- boo
- baz
- bar
- a
- b
- c
- d
- e
- f
- d
- g
- c
- h
- b
- i
- foo
- bar
TODO: Empty comments should not be displayed as HTML in preview mode because they may be used to separate consecutive lists of the same type (CM Example 270).
- foo
- bar
- baz
- bim
-one
2.two
- foo
- bar
- baz
- foobar
- qux
- foo
- bar
- baz
- foo
- bar
- baz
- foo
- bar
- foobar
- baz
- foo
- bar
- foobar
- baz
- foo
- bar
- foobar
- baz
- qux
- quux
- foo
- bar
- foobar
- baz
- foo
- bar
- foobar
- baz
- foo
- bar
- foobar
- baz
- foo
- bar
Failing Tests
1. this starts a list *with* numbers
+ this will show as number "2"
* this will show as number "3."
9. any number, +, -, or * will keep the list going.
* just indent by 4 spaces (or tab) to make a sub-list
1. keep indenting for more sub lists
* here i'm back to the second level
1. this starts a list *with* numbers
+ this will show as number "2"
* this will show as number "3."
9. any number, +, -, or * will keep the list going.
* just indent by 2 spaces to make a sub-list
1. keep indenting for more sub lists
* here i'm back to the second level
CommonMark Example 266
Foo
- bar
- baz
Issue -
is replaced by -
:
- foo
-
- bar