Skip to content

Commit

Permalink
fix for "<pre>{{t|p=<nowiki><!----></nowiki>}}</pre>"
Browse files Browse the repository at this point in the history
  • Loading branch information
kanasimi committed Nov 27, 2024
1 parent a020143 commit 5d236ce
Show file tree
Hide file tree
Showing 2 changed files with 238 additions and 222 deletions.
5 changes: 5 additions & 0 deletions _test suite/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4588,6 +4588,11 @@ function test_wiki() {
assert([wikitext, parsed.toString()], 'wiki.parse: HTML tag pre #11');
wikitext = "<pre>''a'''b''</pre>"; parsed = CeL.wiki.parser(wikitext).parse();
assert([wikitext, parsed.toString()], 'wiki.parse: HTML tag pre #12');
assert(["''a'''b''", parsed[0][1][0]], 'wiki.parse: HTML tag pre #12-1');
wikitext = "<pre>{{t|p=<nowiki><!----></nowiki>}}</pre>"; parsed = CeL.wiki.parse(wikitext);
assert([wikitext, parsed.toString()], 'wiki.parse: HTML tag pre #13');
assert(['{{t|p=', parsed[1][0]], 'wiki.parse: HTML tag pre #13-1');
assert(['nowiki', parsed[1][1].tag], 'wiki.parse: HTML tag pre #13-2');

wikitext = '1<nowiki>\n==t==\nw\n</nowiki>2'; parsed = CeL.wiki.parser(wikitext).parse();
assert([wikitext, parsed.toString()], 'wiki.parse: nowiki #1');
Expand Down
Loading

0 comments on commit 5d236ce

Please sign in to comment.