aboutsummaryrefslogtreecommitdiff
path: root/tests/rst-reader.native
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-12-07 08:26:53 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-12-07 08:26:53 +0000
commit5082b5411bdb1acb5b0dba9cbdfa346b96f1e309 (patch)
tree4ed4c7934af2ddc82455a301588db3a1151a262f /tests/rst-reader.native
parent6ddf8da444351c802ae96101cbc32893e132a5bf (diff)
downloadpandoc-5082b5411bdb1acb5b0dba9cbdfa346b96f1e309.tar.gz
Improved syntax for markdown definition lists.
Definition lists are now more compatible with PHP Markdown Extra. Resolves Issue #24. + You can have multiple definitions for a term (but still not multiple terms). + Multi-block definitions no longer need a column before each block (indeed, this will now cause multiple definitions). + The marker no longer needs to be flush with the left margin, but can be indented at or two spaces. Also, ~ as well as : can be used as the marker (this suggestion due to David Wheeler.) + There can now be a blank line between the term and the definitions. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1656 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'tests/rst-reader.native')
-rw-r--r--tests/rst-reader.native60
1 files changed, 30 insertions, 30 deletions
diff --git a/tests/rst-reader.native b/tests/rst-reader.native
index 294be318c..22de678b3 100644
--- a/tests/rst-reader.native
+++ b/tests/rst-reader.native
@@ -1,8 +1,8 @@
Pandoc (Meta [Str "Pandoc",Space,Str "Test",Space,Str "Suite",Str ":",Space,Str "Subtitle"] ["John MacFarlane","Anonymous"] "July 17, 2006")
[ DefinitionList
- [ ([Str "Revision"],
- [ Plain [Str "3"] ]
- ) ]
+ [ ([Str "Revision"],
+ [ [ Plain [Str "3"] ]
+ ]) ]
, Header 1 [Str "Level",Space,Str "one",Space,Str "header"]
, Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "set",Space,Str "of",Space,Str "tests",Space,Str "for",Space,Str "pandoc.",Space,Str "Most",Space,Str "of",Space,Str "them",Space,Str "are",Space,Str "adapted",Space,Str "from",Space,Str "John",Space,Str "Gruber's",Space,Str "markdown",Space,Str "test",Space,Str "suite."]
, Header 2 [Str "Level",Space,Str "two",Space,Str "header"]
@@ -154,36 +154,36 @@ Pandoc (Meta [Str "Pandoc",Space,Str "Test",Space,Str "Suite",Str ":",Space,Str
, [ Plain [Str "item",Space,Str "2"] ] ]
, Header 2 [Str "Definition"]
, DefinitionList
- [ ([Str "term",Space,Str "1"],
- [ Para [Str "Definition",Space,Str "1."] ]
- ),
- ([Str "term",Space,Str "2"],
- [ Para [Str "Definition",Space,Str "2,",Space,Str "paragraph",Space,Str "1."]
- , Para [Str "Definition",Space,Str "2,",Space,Str "paragraph",Space,Str "2."] ] ),
- ([Str "term",Space,Str "with",Space,Emph [Str "emphasis"]],
- [ Para [Str "Definition",Space,Str "3."] ]
- ) ]
+ [ ([Str "term",Space,Str "1"],
+ [ [ Para [Str "Definition",Space,Str "1."] ]
+ ])
+ , ([Str "term",Space,Str "2"],
+ [ [ Para [Str "Definition",Space,Str "2,",Space,Str "paragraph",Space,Str "1."]
+ , Para [Str "Definition",Space,Str "2,",Space,Str "paragraph",Space,Str "2."] ]])
+ , ([Str "term",Space,Str "with",Space,Emph [Str "emphasis"]],
+ [ [ Para [Str "Definition",Space,Str "3."] ]
+ ]) ]
, Header 1 [Str "Field",Space,Str "Lists"]
, DefinitionList
- [ ([Str "address"],
- [ Plain [Str "61",Space,Str "Main",Space,Str "St."] ]
- ),
- ([Str "city"],
- [ Plain [Emph [Str "Nowhere"],Str ",",Space,Str "MA,",Space,Str "USA"] ]
- ),
- ([Str "phone"],
- [ Plain [Str "123",Str "-",Str "4567"] ]
- ) ]
+ [ ([Str "address"],
+ [ [ Plain [Str "61",Space,Str "Main",Space,Str "St."] ]
+ ])
+ , ([Str "city"],
+ [ [ Plain [Emph [Str "Nowhere"],Str ",",Space,Str "MA,",Space,Str "USA"] ]
+ ])
+ , ([Str "phone"],
+ [ [ Plain [Str "123",Str "-",Str "4567"] ]
+ ]) ]
, DefinitionList
- [ ([Str "address"],
- [ Plain [Str "61",Space,Str "Main",Space,Str "St."] ]
- ),
- ([Str "city"],
- [ Plain [Emph [Str "Nowhere"],Str ",",Space,Str "MA,",Space,Str "USA"] ]
- ),
- ([Str "phone"],
- [ Plain [Str "123",Str "-",Str "4567"] ]
- ) ]
+ [ ([Str "address"],
+ [ [ Plain [Str "61",Space,Str "Main",Space,Str "St."] ]
+ ])
+ , ([Str "city"],
+ [ [ Plain [Emph [Str "Nowhere"],Str ",",Space,Str "MA,",Space,Str "USA"] ]
+ ])
+ , ([Str "phone"],
+ [ [ Plain [Str "123",Str "-",Str "4567"] ]
+ ]) ]
, Header 1 [Str "HTML",Space,Str "Blocks"]
, Para [Str "Simple",Space,Str "block",Space,Str "on",Space,Str "one",Space,Str "line",Str ":"]
, RawHtml "<div>foo</div>\n"