X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/290d61b8387ae5bb6b471b643127aa568e55a77e..30e0b6ad91d883a84f0cc40710fdc937ee747d5b:/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)