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 AssertEqual b:Markdown_GetUrlForPosition(1, match(b:line, 'a') + 1), ''
8 AssertEqual b:Markdown_GetUrlForPosition(1, match(b:line, '<') + 1), b:url
9 AssertEqual b:Markdown_GetUrlForPosition(1, match(b:line, 'h') + 1), b:url
10 AssertEqual b:Markdown_GetUrlForPosition(1, match(b:line, '>') + 1), b:url
11 AssertEqual b:Markdown_GetUrlForPosition(1, match(b:line, 'c') + 1), ''
16 Execute (gx implicit autolink):
17 let b:url = 'http://b.bb'
18 let b:line = getline(1)
19 AssertEqual b:Markdown_GetUrlForPosition(1, match(b:line, 'a') + 1), ''
20 AssertEqual b:Markdown_GetUrlForPosition(1, match(b:line, 'h') + 1), b:url
21 AssertEqual b:Markdown_GetUrlForPosition(1, match(b:line, 'c') + 1), ''
26 Execute (gx link reference definition):
27 let b:url = 'http://b'
28 let b:line = getline(1)
29 " TODO would be cool if all of the following gave the link.
30 AssertEqual b:Markdown_GetUrlForPosition(1, match(b:line, 'a') + 1), ''
31 AssertEqual b:Markdown_GetUrlForPosition(1, match(b:line, 'h') + 1), b:url
32 AssertEqual b:Markdown_GetUrlForPosition(1, match(b:line, 'c') + 1), ''
37 Execute (gx autolink):
39 let b:line = getline(1)
40 AssertEqual b:Markdown_GetUrlForPosition(1, match(b:line, 'a') + 1), ''
41 AssertEqual b:Markdown_GetUrlForPosition(1, match(b:line, '[') + 1), b:url
42 AssertEqual b:Markdown_GetUrlForPosition(1, match(b:line, 'b') + 1), b:url
43 AssertEqual b:Markdown_GetUrlForPosition(1, match(b:line, ']') + 1), b:url
44 AssertEqual b:Markdown_GetUrlForPosition(1, match(b:line, '(') + 1), b:url
45 AssertEqual b:Markdown_GetUrlForPosition(1, match(b:line, 'c') + 1), b:url
46 AssertEqual b:Markdown_GetUrlForPosition(1, match(b:line, ')') + 1), b:url
47 AssertEqual b:Markdown_GetUrlForPosition(1, match(b:line, 'd') + 1), ''
58 Execute (]] same level):
59 AssertEqual line('.'), 1
61 AssertEqual line('.'), 5
63 AssertEqual line('.'), 1
74 Execute (]] different levels level):
75 AssertEqual line('.'), 1
77 AssertEqual line('.'), 5
79 AssertEqual line('.'), 1
94 Execute (][ different levels level):
95 AssertEqual line('.'), 1
97 AssertEqual line('.'), 9
99 AssertEqual line('.'), 1
108 AssertEqual line('.'), 3
110 AssertEqual line('.'), 1
115 Execute (Toc does not set nomodifiable on other files):