X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/71f171736fb549352c04e19e27632a230964dce2..2918519dd2c4e22223533e3f6f4823cf05784fb1:/test/syntax.md?ds=sidebyside diff --git a/test/syntax.md b/test/syntax.md index 22f3b1a..33f5500 100644 --- a/test/syntax.md +++ b/test/syntax.md @@ -1,4 +1,4 @@ -Fenced code living in an indented environment is correctly highlighted: +# Fenced code living in an indented environment is correctly highlighted 1. run this command to do this: @@ -15,3 +15,75 @@ def f 0 end ``` + +# Links + +[a](b "c") + +[a]() + +[good spell](a) + +[badd spell](a) + +[a](b "c") + +[a]( b +"c" ) + +a (`a`) b. Fix: + +Escaped: + +\[a](b) + +[a\]b](c) + +## Known failures + +Escape does not work: + +[a\](b) + +Should not be links because of whitespace: + +[a] (b) + +[a](a +b) + +[a](a b) + +# Reference links + +Single links: + +[a][b] + +[good spell][a] + +[badd spell][a] + +[a][] + +[a] [] + +[a][b] c [d][e] + +Reference link followed by inline link: + +[a] [b](c) + +## Known failures + +Should be shortcut reference links: + +[a] + +[a] b [c] + +Should be a single link: + +[a] [b] + +[a] b [c](d)