|
|
@@ -90,7 +90,7 @@ output: [Text(text="{| | border=\"1\"| test || red | foo")] |
|
|
|
--- |
|
|
|
|
|
|
|
name: crazy_no_table_close |
|
|
|
label: lost of opened wiki syntax without closes |
|
|
|
label: lots of opened wiki syntax without closes |
|
|
|
input: "{{{ {{ {| <ref" |
|
|
|
output: [Text(text="{{{ {{ {| <ref")] |
|
|
|
|
|
|
@@ -355,6 +355,20 @@ output: [TagOpenOpen(wiki_markup="{|"), Text(text="table"), TagAttrStart(pad_fir |
|
|
|
|
|
|
|
--- |
|
|
|
|
|
|
|
name: templates_in_table_attribute |
|
|
|
label: templates in the attributes of a table, after the start |
|
|
|
input: "{| {{class}}="{{wikitable}}"\n|}" |
|
|
|
output: [TagOpenOpen(wiki_markup="{|"), Text(text="table"), TagAttrStart(pad_first=" ", pad_before_eq="", pad_after_eq=""), TemplateOpen(), Text(text="class"), TemplateClose(), TagAttrEquals(), TagAttrQuote(char="\""), TemplateOpen(), Text(text="wikitable"), TemplateClose(), TagCloseOpen(padding="\n"), TagOpenClose(wiki_markup="|}"), Text(text="table"), TagCloseClose()] |
|
|
|
|
|
|
|
--- |
|
|
|
|
|
|
|
name: templates_in_table_attribute_2 |
|
|
|
label: templates in the attributes of a table, after the start |
|
|
|
input: "{|{{foo}} \n | name="foo bar" | test \n|}" |
|
|
|
output: [TagOpenOpen(wiki_markup="{|"), Text(text="table"), TagAttrStart(pad_first="", pad_before_eq=" ", pad_after_eq=""), TemplateOpen(), Text(text="foo"), TemplateClose(), TagCloseOpen(padding="\n"), Text(text=" "), TagOpenOpen(wiki_markup="|"), Text(text="td"), TagAttrStart(pad_first=" ", pad_before_eq="", pad_after_eq=""), Text(text="name"), TagAttrEquals(), TagAttrQuote(char="\""), Text(text="foo bar"), TagCloseOpen(wiki_markup="|", padding=" "), Text(text=" test \n"), TagOpenClose(wiki_markup=""), Text(text="td"), TagCloseClose(), TagOpenClose(wiki_markup="|}"), Text(text="table"), TagCloseClose()] |
|
|
|
|
|
|
|
--- |
|
|
|
|
|
|
|
name: recursion_five_hundred_opens |
|
|
|
label: test potentially dangerous recursion: five hundred table openings, without spaces |
|
|
|
input: "{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|{|" |
|
|
|