git.iko.soy/typeable/pandoc
on master help sign in
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

commit9a410e1635ff766802b82e4fe7541d00d3d67429 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateMon 23 Jul 2007, 01:41 (19 years ago) parent6a6b1a5
2 files changed+7−7
README+6−7 src/Text/Pandoc/Readers/HTML.hs+1
README+6−7
@@ -109,13 +109,12 @@ Supported output formats include `markdown`, `latex`, `context`
109109HTML file that acts like powerpoint). Supported input formats include
110110`markdown`, `html`, `latex`, and `rst`. Note that the `rst` reader only
111111parses a subset of reStructuredText syntax. For example, it doesn't
112−handle tables, definition lists, option lists, or footnotes. It handles
113−only the constructs expressible in unextended markdown. But for simple
114−documents it should be adequate. The `latex` and `html` readers are also
115−limited in what they can do. Because the `html` reader is picky about
116−the HTML it parses, it is recommended that you pipe HTML through [HTML
117−Tidy] before sending it to `pandoc`, or use the `html2markdown` script
118−described below.
112+handle tables, option lists, or footnotes. But for simple documents it
113+should be adequate. The `latex` and `html` readers are also limited in
114+what they can do. Because the `html` reader is picky about the HTML it
115+parses, it is recommended that you pipe HTML through [HTML Tidy] before
116+sending it to `pandoc`, or use the `html2markdown` script described
117+below.
119118
120119If you don't specify a reader or writer explicitly, `pandoc` will
121120try to determine the input and output format from the extensions of
src/Text/Pandoc/Readers/HTML.hs+1
@@ -368,6 +368,7 @@ bulletList = try $ do
368368 return (BulletList items)
369369
370370definitionList = try $ do
371+ failIfStrict -- def lists not part of standard markdown
371372 tag <- htmlTag "dl"
372373 spaces
373374 items <- sepEndBy1 definitionListItem spaces