Added some entity tests in Markdown reader tests.
This commit is contained in:
parent
5884ff6994
commit
d5f67829dc
1 changed files with 9 additions and 0 deletions
|
@ -371,6 +371,15 @@ tests = [ testGroup "inline code"
|
|||
, plain "b"
|
||||
, plain "c" <> bulletList [plain "d"] ]
|
||||
]
|
||||
, testGroup "entities"
|
||||
[ "character references" =:
|
||||
"⟨ ö" =?> para (text "\10216 ö")
|
||||
, "numeric" =:
|
||||
",DD" =?> para (text ",DD")
|
||||
, "in link title" =:
|
||||
"[link](/url \"title ⟨ ö ,\")" =?>
|
||||
para (link "/url" "title \10216 ö ," (text "link"))
|
||||
]
|
||||
, testGroup "citations"
|
||||
[ "simple" =:
|
||||
"@item1" =?> para (cite [
|
||||
|
|
Loading…
Add table
Reference in a new issue