Tests.Readers.RST: Test metadata with inline markup too
This commit is contained in:
parent
8577007d9b
commit
d9e17cb3f7
1 changed files with 6 additions and 4 deletions
|
@ -62,7 +62,9 @@ tests = [ "line block with blank line" =:
|
||||||
$ setMeta "subtitle" ("Subtitle" :: Inlines)
|
$ setMeta "subtitle" ("Subtitle" :: Inlines)
|
||||||
$ doc mempty )
|
$ doc mempty )
|
||||||
, "with inline markup" =: unlines
|
, "with inline markup" =: unlines
|
||||||
[ "the following field list is not metadata"
|
[ ":*Date*: today"
|
||||||
|
, ""
|
||||||
|
, ".."
|
||||||
, ""
|
, ""
|
||||||
, ":*one*: emphasis"
|
, ":*one*: emphasis"
|
||||||
, ":two_: reference"
|
, ":two_: reference"
|
||||||
|
@ -72,9 +74,9 @@ tests = [ "line block with blank line" =:
|
||||||
, ".. _two: http://example.com"
|
, ".. _two: http://example.com"
|
||||||
, ".. _three: http://example.org"
|
, ".. _three: http://example.org"
|
||||||
]
|
]
|
||||||
=?> ( doc
|
=?> ( setMeta "date" (str "today")
|
||||||
$ para "the following field list is not metadata" <>
|
$ doc
|
||||||
definitionList [ (emph "one", [para "emphasis"])
|
$ definitionList [ (emph "one", [para "emphasis"])
|
||||||
, (link "http://example.com" "" "two", [para "reference"])
|
, (link "http://example.com" "" "two", [para "reference"])
|
||||||
, (link "http://example.org" "" "three", [para "another one"])
|
, (link "http://example.org" "" "three", [para "another one"])
|
||||||
, (code "four", [para "literal"])
|
, (code "four", [para "literal"])
|
||||||
|
|
Loading…
Add table
Reference in a new issue