[subbu@earth lib] echo " * foo\n * bar" | node parse --wt2wt * foo <nowiki>*</nowiki> bar
Description
Description
Related Objects
Related Objects
Event Timeline
Comment Actions
After a little investigation: in wts.escapeWikitext.js, WEHP.hasWikitextTokens calls the tokenizer with the right SOL state, but the second line is tokenized to a listItem TagTk, which provokes it being surrounded with <nowiki>s. Maybe there should be a way for the tokenizer to act differently if the whole text is in pre?
Comment Actions
Change 205254 had a related patch set uploaded (by Marcoil):
T95794: Enforce <pre> for all lines when escaping wikitext
Comment Actions
Change 205254 merged by jenkins-bot:
T95794: Enforce <pre> for all lines when escaping wikitext