All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
6 let b:line = getline(1)
7 let b:func = Markdown_GetFunc('vim-markdown/ftplugin/mkd.vim', 'Markdown_GetUrlForPosition')
8 AssertEqual b:func(1, match(b:line, 'a') + 1), ''
9 AssertEqual b:func(1, match(b:line, '<') + 1), b:url
10 AssertEqual b:func(1, match(b:line, 'h') + 1), b:url
11 AssertEqual b:func(1, match(b:line, '>') + 1), b:url
12 AssertEqual b:func(1, match(b:line, 'c') + 1), ''
17 Execute (gx implicit autolink):
18 let b:url = 'http://b.bb'
19 let b:line = getline(1)
20 let b:func = Markdown_GetFunc('vim-markdown/ftplugin/mkd.vim', 'Markdown_GetUrlForPosition')
21 AssertEqual b:func(1, match(b:line, 'a') + 1), ''
22 AssertEqual b:func(1, match(b:line, 'h') + 1), b:url
23 AssertEqual b:func(1, match(b:line, 'c') + 1), ''
28 Execute (gx link reference definition):
29 let b:url = 'http://b'
30 let b:line = getline(1)
31 let b:func = Markdown_GetFunc('vim-markdown/ftplugin/mkd.vim', 'Markdown_GetUrlForPosition')
32 " TODO would be cool if all of the following gave the link.
33 AssertEqual b:func(1, match(b:line, 'a') + 1), ''
34 AssertEqual b:func(1, match(b:line, 'h') + 1), b:url
35 AssertEqual b:func(1, match(b:line, 'c') + 1), ''
40 Execute (gx autolink):
42 let b:line = getline(1)
43 let b:func = Markdown_GetFunc('vim-markdown/ftplugin/mkd.vim', 'Markdown_GetUrlForPosition')
44 AssertEqual b:func(1, match(b:line, 'a') + 1), ''
45 AssertEqual b:func(1, match(b:line, '[') + 1), b:url
46 AssertEqual b:func(1, match(b:line, 'b') + 1), b:url
47 AssertEqual b:func(1, match(b:line, ']') + 1), b:url
48 AssertEqual b:func(1, match(b:line, '(') + 1), b:url
49 AssertEqual b:func(1, match(b:line, 'c') + 1), b:url
50 AssertEqual b:func(1, match(b:line, ')') + 1), b:url
51 AssertEqual b:func(1, match(b:line, 'd') + 1), ''
62 Execute (]] same level):
63 AssertEqual line('.'), 1
65 AssertEqual line('.'), 5
67 AssertEqual line('.'), 1
78 Execute (]] different levels level):
79 AssertEqual line('.'), 1
81 AssertEqual line('.'), 5
83 AssertEqual line('.'), 1
98 Execute (][ different levels level):
99 AssertEqual line('.'), 1
101 AssertEqual line('.'), 9
103 AssertEqual line('.'), 1
112 AssertEqual line('.'), 3
114 AssertEqual line('.'), 1
119 Execute (Toc does not set nomodifiable on other files):