From 9f579ec29fc96af8f411d24ff6828159e1688d40 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Wed, 14 Aug 2013 22:08:36 -0400 Subject: [PATCH] Add a test for before a list. --- tests/tokenizer/tags_wikimarkup.mwtest | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/tokenizer/tags_wikimarkup.mwtest b/tests/tokenizer/tags_wikimarkup.mwtest index 632ba72..feff9c5 100644 --- a/tests/tokenizer/tags_wikimarkup.mwtest +++ b/tests/tokenizer/tags_wikimarkup.mwtest @@ -514,3 +514,10 @@ name: hr_interruption_long label: a hr that is interrupted, but the first part remains valid because it is long enough input: "----x--" output: [TagOpenOpen(wiki_markup="----"), Text(text="hr"), TagCloseSelfclose(), Text(text="x--")] + +--- + +name: nowiki_cancel +label: a nowiki tag before a list causes it to not be parsed +input: "* Unordered list" +output: [TagOpenOpen(), Text(text="nowiki"), TagCloseSelfclose(padding=" "), Text(text="* Unordered list")]