{
	"Editable headings can only have trailing comments and whitespace": {
		"wt2wt": "====test====\nyup\n\n====hi ho====\n<noinclude>\nnope\n</noinclude>\n\n====test 2====\nanother yup\n\n<!-- well -->====ha ha====\nback to nope\n\n====he he====  <!-- but this is ok -->\nsee"
	},
	"Ensure comments in toc lines are stripped": {
		"wt2html": "Sections:"
	},
	"HHP2.1: Heuristics for headings in preprocessor parenthetical structures": {
		"wt2wt": "<nowiki>{{foo|</nowiki>\n=heading=\n"
	},
	"HHP2.2: Heuristics for headings in preprocessor parenthetical structures": {
		"wt2wt": "<nowiki>{{foo|</nowiki>\n==heading==\n"
	},
	"Nested section numbering": {
		"metadata": "Sections:\n h3 index:1 toclevel:1 number:1 title:Parser_test off:0 anchor/linkAnchor:out line:out\n h3 index:T-1 toclevel:1 number:2 title:Template:With_heading_nesting off:NULL anchor/linkAnchor:in_4 line:in 4\n h3 index:T-2 toclevel:1 number:3 title:Template:With_heading_nesting off:NULL anchor/linkAnchor:in_2 line:in 2\n h3 index:T-3 toclevel:1 number:4 title:Template:With_heading_nesting off:NULL anchor/linkAnchor:in_3 line:in 3"
	},
	"Section headings with TOC, language conversion rules, and displaytitle\n(T306862, T331316, T26072)": {
		"metadata": "Parser test\nSections:\n h2 index:1 toclevel:1 number:1 title:Parser_test off:192 anchor/linkAnchor:Foo line:Foo\n h2 index:2 toclevel:1 number:2 title:Parser_test off:209 anchor/linkAnchor:Bar line:Bar\n h2 index:3 toclevel:1 number:3 title:Parser_test off:226 anchor/linkAnchor:-{Foo_Bar}- line:-{Foo Bar}-"
	},
	"Sections follow template redirects": {
		"metadata": "Sections:\n h3 index:T-1 toclevel:1 number:1 title:Template:With_redirect off:NULL anchor/linkAnchor:in line:in"
	},
	"T307691: show-toc flag: \"enough\" sections": {
		"wt2wt": "==One==\n===Two===\n==Three==\n===Four===\n"
	},
	"T307691: show-toc flag: \"enough\" sections and __FORCETOC__": {
		"wt2wt": "__FORCETOC__\n==One==\n===Two===\n==Three==\n===Four===\n"
	},
	"T307691: show-toc flag: \"enough\" sections and __NOTOC__": {
		"wt2wt": "__NOTOC__\n==One==\n===Two===\n==Three==\n===Four===\n"
	},
	"T307691: show-toc flag: not \"enough\" sections": {
		"wt2wt": "==One==\n"
	},
	"T307691: show-toc flag: not \"enough\" sections, and __NOTOC__": {
		"wt2wt": "__NOTOC__\n==One==\n"
	},
	"T307691: show-toc flag: not \"enough\" sections, but __FORCETOC__": {
		"wt2wt": "__FORCETOC__\n==One==\n"
	},
	"T307691: show-toc flag: not \"enough\" sections, but __TOC__": {
		"wt2wt": "==One==\n__TOC__"
	}
}
