summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2007-07-23 01:41:37 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2007-07-23 01:41:37 +0000
commit9a410e1635ff766802b82e4fe7541d00d3d67429 (patch)
treec36ee01fe12a6d98b62991da06cf618e1e62a3e6
parent6a6b1a5842e6218168bca1bf6f04c8d395b60441 (diff)
README: Removed the statement that the RST reader doesn't parse
definition lists. HTML reader: Added failIfStrict to the definitionList parser, so definition lists will be passed through as raw HTML if --strict specified. git-svn-id: https://pandoc.googlecode.com/svn/trunk@783 788f1e2b-df1e-0410-8736-df70ead52e1b
-rw-r--r--README13
-rw-r--r--src/Text/Pandoc/Readers/HTML.hs1
2 files changed, 7 insertions, 7 deletions
diff --git a/README b/README
index d262f13d1..9f27c7ce7 100644
--- a/README
+++ b/README
@@ -109,13 +109,12 @@ Supported output formats include `markdown`, `latex`, `context`
HTML file that acts like powerpoint). Supported input formats include
`markdown`, `html`, `latex`, and `rst`. Note that the `rst` reader only
parses a subset of reStructuredText syntax. For example, it doesn't
-handle tables, definition lists, option lists, or footnotes. It handles
-only the constructs expressible in unextended markdown. But for simple
-documents it should be adequate. The `latex` and `html` readers are also
-limited in what they can do. Because the `html` reader is picky about
-the HTML it parses, it is recommended that you pipe HTML through [HTML
-Tidy] before sending it to `pandoc`, or use the `html2markdown` script
-described below.
+handle tables, option lists, or footnotes. But for simple documents it
+should be adequate. The `latex` and `html` readers are also limited in
+what they can do. Because the `html` reader is picky about the HTML it
+parses, it is recommended that you pipe HTML through [HTML Tidy] before
+sending it to `pandoc`, or use the `html2markdown` script described
+below.
If you don't specify a reader or writer explicitly, `pandoc` will
try to determine the input and output format from the extensions of
diff --git a/src/Text/Pandoc/Readers/HTML.hs b/src/Text/Pandoc/Readers/HTML.hs
index 969fabb3a..3fbf9e426 100644
--- a/src/Text/Pandoc/Readers/HTML.hs
+++ b/src/Text/Pandoc/Readers/HTML.hs
@@ -368,6 +368,7 @@ bulletList = try $ do
return (BulletList items)
definitionList = try $ do
+ failIfStrict -- def lists not part of standard markdown
tag <- htmlTag "dl"
spaces
items <- sepEndBy1 definitionListItem spaces