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.
2 unlet! b:mkd_known_filetypes
3 unlet! b:mkd_included_filetypes
4 unlet! g:vim_markdown_math
10 AssertNotEqual SyntaxOf('a'), 'htmlBold'
11 AssertEqual SyntaxOf('b'), 'htmlBold'
12 AssertNotEqual SyntaxOf('c'), 'htmlBold'
18 AssertNotEqual SyntaxOf('a'), 'htmlBold'
19 AssertEqual SyntaxOf('b'), 'htmlBold'
20 AssertNotEqual SyntaxOf('c'), 'htmlBold'
26 AssertNotEqual SyntaxOf('a'), 'htmlItalic'
27 AssertEqual SyntaxOf('b'), 'htmlItalic'
28 AssertNotEqual SyntaxOf('c'), 'htmlItalic'
34 AssertNotEqual SyntaxOf('a'), 'htmlItalic'
35 AssertEqual SyntaxOf('b'), 'htmlItalic'
36 AssertNotEqual SyntaxOf('c'), 'htmlItalic'
41 Execute (italic text has underscores):
42 AssertEqual SyntaxOf('a'), 'htmlItalic'
43 AssertEqual SyntaxOf('b'), 'htmlItalic'
48 Execute (not italic with escaped asterisks):
49 AssertNotEqual SyntaxOf('a'), 'htmlItalic'
50 AssertNotEqual SyntaxOf('b'), 'htmlItalic'
51 AssertNotEqual SyntaxOf('c'), 'htmlItalic'
56 Execute (not italic with escaped underscores):
57 AssertNotEqual SyntaxOf('a'), 'htmlItalic'
58 AssertNotEqual SyntaxOf('b'), 'htmlItalic'
59 AssertNotEqual SyntaxOf('c'), 'htmlItalic'
64 Execute (italic with escaped underscores):
65 AssertNotEqual SyntaxOf('a'), 'htmlItalic'
66 AssertEqual SyntaxOf('b'), 'htmlItalic'
67 AssertEqual SyntaxOf('c'), 'htmlItalic'
68 AssertNotEqual SyntaxOf('d'), 'htmlItalic'
73 Execute (not italic underscores within text):
74 AssertNotEqual SyntaxOf('a'), 'htmlItalic'
75 AssertNotEqual SyntaxOf('b'), 'htmlItalic'
76 AssertNotEqual SyntaxOf('c'), 'htmlItalic'
81 Execute (italic with escaped asterisks):
82 AssertNotEqual SyntaxOf('a'), 'htmlItalic'
83 AssertEqual SyntaxOf('b'), 'htmlItalic'
84 AssertEqual SyntaxOf('c'), 'htmlItalic'
85 AssertNotEqual SyntaxOf('d'), 'htmlItalic'
90 Execute (bold with escaped underscores):
91 AssertNotEqual SyntaxOf('a'), 'htmlBold'
92 AssertEqual SyntaxOf('b'), 'htmlBold'
93 AssertEqual SyntaxOf('c'), 'htmlBold'
94 AssertNotEqual SyntaxOf('d'), 'htmlBold'
100 Execute (italic with underscores in multiple lines):
101 AssertEqual SyntaxOf('a'), 'htmlItalic'
102 AssertEqual SyntaxOf('b'), 'htmlItalic'
103 AssertEqual SyntaxOf('c'), 'htmlItalic'
104 AssertNotEqual SyntaxOf('d'), 'htmlItalic'
110 Execute (bold with underscores in multiple lines):
111 AssertEqual SyntaxOf('a'), 'htmlBold'
112 AssertEqual SyntaxOf('b'), 'htmlBold'
113 AssertEqual SyntaxOf('c'), 'htmlBold'
114 AssertNotEqual SyntaxOf('d'), 'htmlBold'
120 Execute (bold italic with underscores in multiple lines):
121 AssertEqual SyntaxOf('a'), 'htmlBoldItalic'
122 AssertEqual SyntaxOf('b'), 'htmlBoldItalic'
123 AssertEqual SyntaxOf('c'), 'htmlBoldItalic'
124 AssertNotEqual SyntaxOf('d'), 'htmlBoldItalic'
130 Execute (italic with asterisks in multiple lines):
131 AssertEqual SyntaxOf('a'), 'htmlItalic'
132 AssertEqual SyntaxOf('b'), 'htmlItalic'
133 AssertEqual SyntaxOf('c'), 'htmlItalic'
134 AssertNotEqual SyntaxOf('d'), 'htmlItalic'
140 Execute (bold with asterisks in multiple lines):
141 AssertEqual SyntaxOf('a'), 'htmlBold'
142 AssertEqual SyntaxOf('b'), 'htmlBold'
143 AssertEqual SyntaxOf('c'), 'htmlBold'
144 AssertNotEqual SyntaxOf('d'), 'htmlBold'
150 Execute (bold italic with asterisks in multiple lines):
151 AssertEqual SyntaxOf('a'), 'htmlBoldItalic'
152 AssertEqual SyntaxOf('b'), 'htmlBoldItalic'
153 AssertEqual SyntaxOf('c'), 'htmlBoldItalic'
154 AssertNotEqual SyntaxOf('d'), 'htmlBoldItalic'
159 Execute (not italic with an asterisk):
160 AssertNotEqual SyntaxOf('a'), 'htmlItalic'
165 Execute (not bold with double underscores):
166 AssertNotEqual SyntaxOf('_'), 'htmlBold'
167 AssertNotEqual SyntaxOf('a'), 'htmlBold'
168 AssertNotEqual SyntaxOf('b'), 'htmlBold'
175 Execute (link with title):
176 AssertEqual SyntaxOf('a'), 'mkdLink'
177 AssertEqual SyntaxOf('b'), 'mkdURL'
183 Execute (link text with newline):
184 AssertEqual SyntaxOf('a'), 'mkdLink'
185 AssertEqual SyntaxOf('b'), 'mkdLink'
186 AssertEqual SyntaxOf('c'), 'mkdURL'
193 Execute (parenthesis not in link):
194 AssertNotEqual SyntaxOf('a'), 'mkdURL'
195 AssertNotEqual SyntaxOf('b'), 'mkdURL'
200 Execute (multiple links on a line):
201 AssertNotEqual SyntaxOf('c'), 'mkdLink'
202 AssertNotEqual SyntaxOf('c'), 'mkdURL'
207 Execute (space is not allowed between link text and parenthesis):
208 AssertNotEqual SyntaxOf('a'), 'mkdLink'
209 AssertNotEqual SyntaxOf('b'), 'mkdURL'
214 Execute (conceal link):
216 setlocal conceallevel=2
217 AssertEqual synconcealed(1, 1)[0], 1
218 AssertEqual synconcealed(1, 2)[0], 0
219 AssertEqual synconcealed(1, 3)[0], 1
220 AssertEqual synconcealed(1, 4)[0], 1
221 AssertEqual synconcealed(1, 4)[0], 1
222 AssertEqual synconcealed(1, 5)[0], 1
223 AssertEqual synconcealed(1, 6)[0], 1
224 setlocal conceallevel=0
227 Execute (disable conceal):
229 let g:vim_markdown_conceal=0
231 setlocal conceallevel=2
232 AssertEqual synconcealed(1, 1)[0], 0
233 AssertEqual synconcealed(1, 2)[0], 0
234 AssertEqual synconcealed(1, 3)[0], 0
235 AssertEqual synconcealed(1, 4)[0], 0
236 AssertEqual synconcealed(1, 4)[0], 0
237 AssertEqual synconcealed(1, 5)[0], 0
238 AssertEqual synconcealed(1, 6)[0], 0
240 let g:vim_markdown_conceal=1
242 AssertEqual synconcealed(1, 1)[0], 1
243 AssertEqual synconcealed(1, 2)[0], 0
244 AssertEqual synconcealed(1, 3)[0], 1
245 AssertEqual synconcealed(1, 4)[0], 1
246 AssertEqual synconcealed(1, 4)[0], 1
247 AssertEqual synconcealed(1, 5)[0], 1
248 AssertEqual synconcealed(1, 6)[0], 1
250 setlocal conceallevel=0
251 unlet g:vim_markdown_conceal
261 AssertNotEqual SyntaxOf('a'), 'mkdInlineURL'
262 AssertEqual SyntaxOf('<'), 'mkdDelimiter'
263 AssertEqual SyntaxOf('b'), 'mkdInlineURL'
264 AssertEqual SyntaxOf('>'), 'mkdDelimiter'
265 AssertNotEqual SyntaxOf('c'), 'mkdInlineURL'
270 Execute (autolink with domain starting with a number):
271 AssertEqual SyntaxOf('12monkeys'), 'mkdInlineURL'
276 Execute (autolink with scheme case is insensitive):
277 AssertEqual SyntaxOf('a'), 'mkdInlineURL'
282 Execute (autolink without scheme is not a link):
283 AssertNotEqual SyntaxOf('a'), 'mkdInlineURL'
291 Execute (autolink with space is not a link):
292 AssertNotEqual SyntaxOf('a'), 'mkdInlineURL'
293 AssertNotEqual SyntaxOf('b'), 'mkdInlineURL'
294 AssertNotEqual SyntaxOf('c'), 'mkdInlineURL'
295 AssertNotEqual SyntaxOf('d'), 'mkdInlineURL'
296 AssertNotEqual SyntaxOf('e'), 'mkdInlineURL'
301 Execute (autolinks can be backslash escaped):
302 AssertNotEqual SyntaxOf('<'), 'mkdDelimiter'
307 Execute (autolink in parenthesis):
308 AssertNotEqual SyntaxOf('a'), 'mkdInlineURL'
309 AssertEqual SyntaxOf('('), 'mkdDelimiter'
310 AssertEqual SyntaxOf('b'), 'mkdInlineURL'
311 AssertEqual SyntaxOf(')'), 'mkdDelimiter'
312 AssertNotEqual SyntaxOf('c'), 'mkdInlineURL'
315 [![a](http://b)](http://c)
317 Execute (autolink in link text):
318 AssertEqual SyntaxOf('!'), 'mkdDelimiter'
319 AssertEqual SyntaxOf('a'), 'mkdLink'
320 AssertEqual SyntaxOf('b'), 'mkdURL'
321 AssertEqual SyntaxOf('c'), 'mkdURL'
342 Execute (link in headers):
343 AssertEqual SyntaxOf('h1link'), 'mkdLink'
344 AssertEqual SyntaxOf('h2link'), 'mkdLink'
345 AssertEqual SyntaxOf('h3link'), 'mkdLink'
346 AssertEqual SyntaxOf('h4link'), 'mkdLink'
347 AssertEqual SyntaxOf('h5link'), 'mkdLink'
348 AssertEqual SyntaxOf('h6link'), 'mkdLink'
349 AssertEqual SyntaxOf('h1link_b'), 'mkdLink'
350 AssertEqual SyntaxOf('h2link_b'), 'mkdLink'
357 ### http://h3link.foo
359 #### http://h4link.foo
361 ##### http://h5link.foo
363 ###### http://h6link.foo
371 Execute (inline url in headers):
372 AssertEqual SyntaxOf('h1link'), 'mkdInlineURL'
373 AssertEqual SyntaxOf('h2link'), 'mkdInlineURL'
374 AssertEqual SyntaxOf('h3link'), 'mkdInlineURL'
375 AssertEqual SyntaxOf('h4link'), 'mkdInlineURL'
376 AssertEqual SyntaxOf('h5link'), 'mkdInlineURL'
377 AssertEqual SyntaxOf('h6link'), 'mkdInlineURL'
378 AssertEqual SyntaxOf('h1link_b'), 'mkdInlineURL'
379 AssertEqual SyntaxOf('h2link_b'), 'mkdInlineURL'
385 Execute (link in blockquote):
386 AssertEqual SyntaxOf('a'), 'mkdLink'
387 AssertEqual SyntaxOf('foo'), 'mkdInlineURL'
396 Execute (code blocks can be fenced with tildes):
397 AssertEqual SyntaxOf('c'), 'mkdCode'
404 Execute (code blocks can be fenced with tildes longer than 3):
405 AssertEqual SyntaxOf('c'), 'mkdCode'
412 Execute (code blocks can be fenced with backticks longer than 3):
413 AssertEqual SyntaxOf('c'), 'mkdCode'
420 Execute (code blocks can have a language specifier):
421 AssertEqual SyntaxOf('c'), 'mkdCode'
430 Execute (code blocks can be fenced with backticks and a language specifier):
431 AssertEqual SyntaxOf('code'), 'mkdCode'
432 AssertNotEqual SyntaxOf('text'), 'mkdCode'
442 Execute (indent code blocks):
443 AssertNotEqual SyntaxOf('a'), 'mkdCode'
444 AssertEqual SyntaxOf('b'), 'mkdCode'
445 AssertEqual SyntaxOf('c'), 'mkdCode'
454 Execute (indent code blocks after header):
455 AssertNotEqual SyntaxOf('a'), 'mkdCode'
456 AssertNotEqual SyntaxOf('b'), 'mkdCode'
457 AssertEqual SyntaxOf('c'), 'mkdCode'
466 Execute (indent code blocks after list):
467 AssertNotEqual SyntaxOf('a'), 'mkdCode'
468 AssertNotEqual SyntaxOf('b'), 'mkdCode'
469 AssertEqual SyntaxOf('c'), 'mkdCode'
475 Execute (indent code block at beginning of file):
476 AssertEqual SyntaxOf('a'), 'mkdCode'
477 AssertEqual SyntaxOf('b'), 'mkdCode'
490 Execute (fenced code block syntax with a language specifier):
491 let b:func = Markdown_GetFunc('vim-markdown/ftplugin/markdown.vim', 'MarkdownRefreshSyntax')
493 AssertEqual SyntaxOf('include'), 'cInclude'
494 AssertEqual SyntaxOf('code'), 'mkdSnippetCPP'
495 AssertEqual SyntaxOf('def'), 'rubyDefine'
518 Execute (fenced code block syntax with a language specifier after whitespace):
519 let b:func = Markdown_GetFunc('vim-markdown/ftplugin/markdown.vim', 'MarkdownRefreshSyntax')
521 AssertEqual SyntaxOf('include'), 'cInclude'
522 AssertEqual SyntaxOf('code'), 'mkdSnippetCPP'
523 AssertEqual SyntaxOf('g:a'), 'vimVar'
524 AssertEqual SyntaxOf('def'), 'rubyDefine'
525 AssertNotEqual SyntaxOf('class'), 'rubyClass'
536 Execute (fenced code block syntax with alias language specifier):
537 let b:func = Markdown_GetFunc('vim-markdown/ftplugin/markdown.vim', 'MarkdownRefreshSyntax')
539 AssertEqual SyntaxOf('g:a'), 'vimVar'
540 AssertEqual SyntaxOf('g:b'), 'vimVar'
547 Execute (fenced code block languages setting):
548 let g:vim_markdown_fenced_languages = ['csharp=cs']
549 source ../ftplugin/markdown.vim
550 let b:func = Markdown_GetFunc('vim-markdown/ftplugin/markdown.vim', 'MarkdownRefreshSyntax')
552 AssertEqual SyntaxOf('foo'), 'csString'
553 unlet g:vim_markdown_fenced_languages
560 Execute (fenced code block includes language syntax with reopening same buffer):
561 let b:func = Markdown_GetFunc('vim-markdown/ftplugin/markdown.vim', 'MarkdownRefreshSyntax')
566 set filetype=markdown
567 execute "normal! i```vim\<cr>let g:a = 1\<cr>```"
569 AssertEqual SyntaxOf('g:a'), 'vimVar'
576 Execute (fenced code block syntax with an unknown language specifier):
577 let b:func = Markdown_GetFunc('vim-markdown/ftplugin/markdown.vim', 'MarkdownRefreshSyntax')
579 AssertEqual SyntaxOf('code'), 'mkdSnippetA_B_'
588 Execute (first = or - in fenced code block is not setex headers):
589 AssertEqual SyntaxOf('='), 'mkdCode'
590 AssertEqual SyntaxOf('-'), 'mkdCode'
597 Execute (fenced code block with extended info strings):
598 AssertEqual SyntaxOf('a'), 'mkdCode'
600 # Code Blocks in pre and code tag
607 Execute (code block in pre tag):
608 AssertEqual SyntaxOf('a'), 'mkdCode'
615 Execute (code block in code tag):
616 AssertEqual SyntaxOf('a'), 'mkdCode'
623 Execute (not code block in escaped pre tag):
624 AssertNotEqual SyntaxOf('a'), 'mkdCode'
631 Execute (not code block in escaped code tag):
632 AssertNotEqual SyntaxOf('a'), 'mkdCode'
643 AssertNotEqual SyntaxOf('x')[0:2], 'tex'
644 AssertNotEqual SyntaxOf('y')[0:2], 'tex'
645 let g:vim_markdown_math=1
647 AssertNotEqual SyntaxOf('a')[0:2], 'tex'
648 AssertNotEqual SyntaxOf('b')[0:2], 'tex'
649 AssertNotEqual SyntaxOf('c')[0:2], 'tex'
650 AssertNotEqual SyntaxOf('d')[0:2], 'tex'
651 AssertNotEqual SyntaxOf('e')[0:2], 'tex'
652 AssertNotEqual SyntaxOf('f')[0:2], 'tex'
653 AssertEqual SyntaxOf('x')[0:2], 'tex'
654 AssertEqual SyntaxOf('y')[0:2], 'tex'
655 let g:vim_markdown_math=0
657 AssertNotEqual SyntaxOf('x')[0:2], 'tex'
658 AssertNotEqual SyntaxOf('y')[0:2], 'tex'
669 Execute (multiline math):
670 let g:vim_markdown_math=1
672 AssertNotEqual SyntaxOf('a')[0:2], 'tex'
673 AssertEqual SyntaxOf('b')[0:2], 'tex'
674 AssertNotEqual SyntaxOf('c')[0:2], 'tex'
680 Execute (math tex highlighting):
681 let g:vim_markdown_math=0
683 AssertNotEqual SyntaxOf('sqrt'), 'texStatement'
684 AssertNotEqual SyntaxOf('frac'), 'texStatement'
685 let g:vim_markdown_math=1
687 AssertEqual SyntaxOf('sqrt'), 'texStatement'
688 AssertEqual SyntaxOf('frac'), 'texStatement'
693 Execute (math ends with $):
694 let g:vim_markdown_math=1
696 AssertEqual SyntaxOf('a')[0:2], 'tex'
697 AssertEqual SyntaxOf('b')[0:2], 'tex'
698 AssertNotEqual SyntaxOf('c')[0:2], 'tex'
703 Execute (math ends with $$):
704 let g:vim_markdown_math=1
706 AssertEqual SyntaxOf('a')[0:2], 'tex'
707 AssertEqual SyntaxOf('b')[0:2], 'tex'
708 AssertNotEqual SyntaxOf('c')[0:2], 'tex'
713 Execute (math conceal in $):
715 setlocal conceallevel=2
716 let g:vim_markdown_math=1
718 AssertEqual synconcealed(1, 1)[0], 1, '$'
719 AssertEqual synconcealed(1, 2)[0], 0
720 AssertEqual synconcealed(1, 3)[0], 0
721 AssertEqual synconcealed(1, 4)[0], 0
722 AssertEqual synconcealed(1, 5)[0], 1, '\le'
723 AssertEqual synconcealed(1, 6)[0], 1
724 AssertEqual synconcealed(1, 7)[0], 1
725 AssertEqual synconcealed(1, 8)[0], 0
726 AssertEqual synconcealed(1, 9)[0], 0
727 AssertEqual synconcealed(1, 10)[0], 0
728 AssertEqual synconcealed(1, 11)[0], 1, '$'
729 setlocal conceallevel=0
738 Execute (math conceal in $$):
740 setlocal conceallevel=2
741 let g:vim_markdown_math=1
743 AssertEqual synconcealed(1, 1)[0], 1, '$$'
744 AssertEqual synconcealed(2, 1)[0], 1, '\omega'
745 AssertEqual synconcealed(3, 1)[0], 0, '0'
746 AssertEqual synconcealed(3, 3)[0], 1, '\le'
747 AssertEqual synconcealed(3, 7)[0], 0, '1'
748 AssertEqual synconcealed(4, 1)[0], 1, '$$'
749 setlocal conceallevel=0
759 Execute (YAML frontmatter is controlled by the option):
760 AssertNotEqual SyntaxOf('a')[0:3], 'yaml'
761 let g:vim_markdown_frontmatter=1
763 AssertEqual SyntaxOf('a')[0:3], 'yaml'
764 let g:vim_markdown_frontmatter=0
766 AssertNotEqual SyntaxOf('a')[0:3], 'yaml'
774 Execute (YAML frontmatter only works if it's the first thing in the file):
775 let g:vim_markdown_frontmatter=1
777 AssertNotEqual SyntaxOf('a')[0:3], 'yaml'
786 Execute (rules are not mistaken by YAML frontmatter delimiters):
787 let g:vim_markdown_frontmatter=1
789 AssertEqual SyntaxAt(5, 1), 'mkdRule'
790 unlet g:vim_markdown_frontmatter
799 Execute (TOML frontmatter is controlled by the option):
801 AssertNotEqual SyntaxOf('b'), 'tomlString'
802 let g:vim_markdown_toml_frontmatter=1
804 AssertEqual SyntaxOf('b'), 'tomlString'
805 let g:vim_markdown_toml_frontmatter=0
807 AssertNotEqual SyntaxOf('b'), 'tomlString'
815 Execute (TOML frontmatter only works if it's the first thing in the file):
816 let g:vim_markdown_toml_frontmatter=1
818 AssertNotEqual SyntaxOf('b'), 'tomlString'
819 unlet g:vim_markdown_toml_frontmatter
828 Execute (JSON frontmatter is controlled by the option):
830 AssertNotEqual SyntaxOf('a'), 'jsonKeyword'
831 let g:vim_markdown_json_frontmatter=1
833 AssertEqual SyntaxOf('a'), 'jsonKeyword'
834 let g:vim_markdown_json_frontmatter=0
836 AssertNotEqual SyntaxOf('a'), 'jsonKeyword'
844 Execute (JSON frontmatter only works if it's the first thing in the file):
845 let g:vim_markdown_json_frontmatter=1
847 AssertNotEqual SyntaxOf('a'), 'jsonKeyword'
848 unlet g:vim_markdown_json_frontmatter
859 Execute (header title starts with #):
860 AssertEqual SyntaxOf('a'), 'htmlH1'
861 AssertEqual SyntaxOf('b'), 'htmlH2'
876 ## h2 trailing hash ##
882 ### h3 trailing hash ###
890 Execute (atx headers):
891 AssertEqual SyntaxOf('# h1 space'), 'htmlH1'
892 AssertEqual SyntaxOf('#h1 nospace'), 'htmlH1'
893 AssertEqual SyntaxOf('# h1 2 spaces'), 'htmlH1'
894 AssertEqual SyntaxOf('# h1 trailing hash #'), 'htmlH1'
895 AssertEqual SyntaxOf('## h2 space'), 'htmlH2'
896 AssertEqual SyntaxOf('##h2 nospace'), 'htmlH2'
897 AssertEqual SyntaxOf('## h2 trailing hash ##'), 'htmlH2'
898 AssertEqual SyntaxOf('### h3 space'), 'htmlH3'
899 AssertEqual SyntaxOf('###h3 nospace'), 'htmlH3'
900 AssertEqual SyntaxOf('### h3 trailing hash ###'), 'htmlH3'
901 AssertEqual SyntaxOf('#### h4'), 'htmlH4'
902 AssertEqual SyntaxOf('##### h5'), 'htmlH5'
903 AssertEqual SyntaxOf('###### h6'), 'htmlH6'
912 Execute (atx headers relative positions):
913 AssertEqual SyntaxOf('# h1 before h2'), 'htmlH1'
914 AssertEqual SyntaxOf('## h2 between h1s'), 'htmlH2'
915 AssertEqual SyntaxOf('# h1 after h2'), 'htmlH1'
924 setex h1 single punctuation
927 setex h1 punctuation longer than header
928 ================================
930 Execute (setex headers):
931 AssertEqual SyntaxOf('setex h1'), 'htmlH1'
932 AssertEqual SyntaxOf('^========$'), 'htmlH1'
933 AssertEqual SyntaxOf('setex h2'), 'htmlH2'
934 AssertEqual SyntaxOf('--------'), 'htmlH2'
935 AssertEqual SyntaxOf('setex h1 single punctuation'), 'htmlH1'
936 AssertEqual SyntaxOf('^=$'), 'htmlH1'
937 AssertEqual SyntaxOf('setex h1 punctuation longer than header'), 'htmlH1'
938 AssertEqual SyntaxOf('^================================$'), 'htmlH1'
944 Execute (prevent list vs Setex confusion):
945 AssertNotEqual SyntaxOf('- not Setex'), 'htmlH2'
946 AssertNotEqual SyntaxOf('- becuase list'), 'htmlH2'
963 Execute (mixed atx and setex headers):
964 AssertEqual SyntaxOf('setex h1 before atx'), 'htmlH1'
965 AssertEqual SyntaxOf('==================='), 'htmlH1'
966 AssertEqual SyntaxOf('## atx h2'), 'htmlH2'
967 AssertEqual SyntaxOf('### atx h3'), 'htmlH3'
968 AssertEqual SyntaxOf('# atx h1'), 'htmlH1'
969 AssertEqual SyntaxOf('setex h2'), 'htmlH2'
970 AssertEqual SyntaxOf('------------------'), 'htmlH2'
978 Execute (& and > are not marked as htmlError in lists):
979 AssertEqual SyntaxOf('-'), 'mkdListItem'
980 AssertEqual SyntaxOf('1.'), 'mkdListItem'
981 AssertNotEqual SyntaxOf('&'), 'htmlError'
982 AssertNotEqual SyntaxOf('>'), 'htmlError'
988 Execute (list after line break):
989 AssertEqual SyntaxOf('1'), 'mkdListItem'
990 AssertEqual SyntaxOf('2'), 'mkdListItem'
1001 Execute (HTML tag in text):
1002 AssertEqual SyntaxOf('p'), 'htmlTagName'
1003 AssertEqual SyntaxOf('<p>'), 'htmlTag'
1004 AssertEqual SyntaxOf('</p>'), 'htmlEndTag'
1005 AssertEqual SyntaxOf('span'), 'htmlTagName'
1006 AssertEqual SyntaxOf('<span>'), 'htmlTag'
1007 AssertEqual SyntaxOf('</span>'), 'htmlEndTag'