X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/1bd9d546835633ca39da8f8e2bac5be40450f942..13c836661996b9c03bbcaf6b56a49d3925ffe925:/test/syntax.md 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)