X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/3b7499f4cf49a9009d70ab6fac447d258f0097ec..0c61f835a73119eb80e68d27cf95136c36aa092b:/test/syntax.md?ds=sidebyside diff --git a/test/syntax.md b/test/syntax.md index 9c849e7..d031c2f 100644 --- a/test/syntax.md +++ b/test/syntax.md @@ -1,159 +1,89 @@ -# Original markdown - -This section covers only features from the [original markdown](daringfireball.net/projects/markdown/syntax), in the same order that they are defined on the specification. - -Extensions will be tested on a separate section. - -## Paragraphs - -Paragraph. - -Line -break. - -## Headers - -The following should be highlighted as headers: - -# h1 - - # h1 - -# h1 # - -h1 -== - -## h2 - -## h2 ## - -h2 --- - -### h3 - -#### h4 - -##### h5 - -###### h6 - -The following is unspecified by Markdown and may not highlight properly: - -####### h7 - -## Blockquotes - -> Block quote - -> First line only -block quote - -> Block quote -> > Block quote level 2 - -> # Markdown inside block quote -> -> [Link text](link-url) - -## Lists - -Only the list marker should be highlighted: - -* 0 -* 1 +Fenced code living in an indented environment is correctly highlighted: -+ 0 -+ 1 +1. run this command to do this: -- 0 -- 1 + ``` +some command + ``` -1. 0 -2. 1 +2. Subsequent list items are correctly highlighted. -*Not* lists: +Fenced code block with language: -1 0 +```ruby +def f + 0 +end +``` - - 0 +# Links -## Links +[a](b "c") -[Link text](link-url) +[a]() -Reference style link: [Link text][reference] +[good spell](a) -With space: [Link text] [reference] +[badd spell](a) -[reference]: address -[reference2]: address "Optional Title" +[a](b "c") -## Code blocks +[a]( b +"c" ) -Inline: `inline code` +a (`a`) b. Fix: -Indented: +Escaped: - indented code block +\[a](b) - # not a header +[a\]b](c) - - not a list +## Known failures -Indented code block and lists: +Escape does not work: -- 0 +[a\](b) - Paragraph. +Should not be links because of whitespace: - indented code block inside list +[a] (b) -- 0 +[a](a +b) - - 1 +[a](a b) - Paragraph (TODO FAIL). +# Reference links - indented code block inside list +Single links: -## Emphasis +[a][b] -The following should be italicized: +[good spell][a] -*single asterisks* +[badd spell][a] -_single underscores_ +[a][] -The following should be boldface: +[a] [] -**double asterisks** +[a][b] c [d][e] -__double underscores__ +Reference link followed by inline link: -# Extensions +[a] [b](c) -Fenced code blocks TODO add option to turn ON/OFF: +## Known failures -``` -fenced code block -``` +Should be shortcut reference links: -Fenced code living in an indented environment is correctly highlighted: +[a] -1. run this command to do this: +[a] b [c] - ``` -some command - ``` +Should be a single link: -2. Subsequent list items are correctly highlighted. +[a] [b] -Fenced code block with language: - -```ruby -def f - 0 -end -``` +[a] b [c](d)