X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/71f171736fb549352c04e19e27632a230964dce2..7046e0dd612f31d02c954b96915dd00866147572:/test/syntax.md diff --git a/test/syntax.md b/test/syntax.md index 22f3b1a..d031c2f 100644 --- a/test/syntax.md +++ b/test/syntax.md @@ -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)