Browse Source

Add a test for <nowiki /> before a list.

tags/v0.3
Ben Kurtovic 10 years ago
parent
commit
9f579ec29f
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      tests/tokenizer/tags_wikimarkup.mwtest

+ 7
- 0
tests/tokenizer/tags_wikimarkup.mwtest View File

@@ -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: "<nowiki />* Unordered list"
output: [TagOpenOpen(), Text(text="nowiki"), TagCloseSelfclose(padding=" "), Text(text="* Unordered list")]

Loading…
Cancel
Save