From f69d9efc8323b202dc0f333036da1c38a2fd270a Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Mon, 23 Jul 2007 01:21:21 +0000 Subject: Added definition list support to HTML reader. Added a test for definition lists to the html-reader test suite. git-svn-id: https://pandoc.googlecode.com/svn/trunk@781 788f1e2b-df1e-0410-8736-df70ead52e1b --- tests/html-reader.html | 9 +++++++++ tests/html-reader.native | 8 ++++++++ 2 files changed, 17 insertions(+) (limited to 'tests') diff --git a/tests/html-reader.html b/tests/html-reader.html index b89a93299..2c00f48b4 100644 --- a/tests/html-reader.html +++ b/tests/html-reader.html @@ -232,6 +232,15 @@ These should not be escaped: \$ \\ \> \[ \{ +

Definition

+
+
Violin
+
Stringed musical instrument.
+
Torture device.
+
Cello
+
Violoncello
+
Low-voiced stringed instrument.
+

HTML Blocks

Simple block on one line:

diff --git a/tests/html-reader.native b/tests/html-reader.native index f7de8df4a..a432bda7e 100644 --- a/tests/html-reader.native +++ b/tests/html-reader.native @@ -150,6 +150,14 @@ Pandoc (Meta [Str "Pandoc",Space,Str "Test",Space,Str "Suite"] [] "") , BulletList [ [ Para [Str "this",Space,Str "is",Space,Str "an",Space,Str "example",Space,Str "list",Space,Str "item",Space,Str "indented",Space,Str "with",Space,Str "tabs"] ] , [ Para [Str "this",Space,Str "is",Space,Str "an",Space,Str "example",Space,Str "list",Space,Str "item",Space,Str "indented",Space,Str "with",Space,Str "spaces"] ] ] ] ] +, Header 2 [Str "Definition"] +, DefinitionList + [ ([Str "Violin"], + [ Plain [Str "Stringed",Space,Str "musical",Space,Str "instrument."] + , Plain [Str "Torture",Space,Str "device."] ] ), + ([Str "Cello",LineBreak,Str "Violoncello"], + [ Plain [Str "Low-voiced",Space,Str "stringed",Space,Str "instrument."] ] + ) ] , HorizontalRule , Header 1 [Str "HTML",Space,Str "Blocks"] , Para [Str "Simple",Space,Str "block",Space,Str "on",Space,Str "one",Space,Str "line:"] -- cgit v1.2.3