X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/886ba1b89a55ec6495f9a4c10206aa950e712211..cdc8503c8138c04c1f40dcc888a83dc8b8039528:/test/syntax.md diff --git a/test/syntax.md b/test/syntax.md index 8a7421d..33f5500 100644 --- a/test/syntax.md +++ b/test/syntax.md @@ -1,149 +1,89 @@ -# Original markdown +# Fenced code living in an indented environment is correctly highlighted -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. +1. run this command to do this: -Extensions will be tested on a separate section. + ``` +some command + ``` -## Paragraphs +2. Subsequent list items are correctly highlighted. -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 - -+ 0 -+ 1 +Fenced code block with language: -- 0 -- 1 +```ruby +def f + 0 +end +``` -1. 0 -2. 1 +# Links -*Not* lists: +[a](b "c") -1 0 +[a]() - - 0 +[good spell](a) -## Links +[badd spell](a) -[Link text](link-url) +[a](b "c") -Reference style link: [Link text][reference] +[a]( b +"c" ) -With space: [Link text] [reference] +a (`a`) b. Fix: -[reference]: address -[reference2]: address "Optional Title" +Escaped: -## Code blocks +\[a](b) -Inline: `inline code` +[a\]b](c) -Indented: +## Known failures - indented code block +Escape does not work: - # not a header +[a\](b) - - not a list +Should not be links because of whitespace: -Indented code block and lists: +[a] (b) -- 0 +[a](a +b) - Paragraph. +[a](a b) - indented code block inside list +# Reference links -- 0 +Single links: - - 1 +[a][b] - Paragraph (TODO FAIL). +[good spell][a] - indented code block inside list +[badd spell][a] -## Emphasis +[a][] -The following should be italicized: +[a] [] -*single asterisks* +[a][b] c [d][e] -_single underscores_ +Reference link followed by inline link: -The following should be boldface: +[a] [b](c) -**double asterisks** +## Known failures -__double underscores__ +Should be shortcut reference links: -# Extensions +[a] -Fenced code blocks TODO add option to turn ON/OFF: +[a] b [c] -``` -fenced code block -``` +Should be a single link: -Fenced code block with language: +[a] [b] -```ruby -def f - 0 -end -``` +[a] b [c](d)