Commit graph

1060 commits

Author SHA1 Message Date
fiddlosopher
2e4592b35b Added paragraph to README about producing S5 with separate CSS/javascript.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1302 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-07-11 17:09:07 +00:00
fiddlosopher
752adcd45a Added type signatures and fixed other -Wall warnings in Markdown reader.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1301 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-07-11 16:33:21 +00:00
fiddlosopher
45044ff536 Added a few more recognized abbreviations to 'abbrev' parser.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1300 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-07-11 03:00:35 +00:00
fiddlosopher
a85dfb83bb Print unicode \160 literally in markdown writer, rather than as  .
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1299 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-07-11 02:15:10 +00:00
fiddlosopher
824bb2d22e In smart mode, use nonbreaking spaces after abbreviations in markdown parser.
Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
not produce a sentence-separating space.  Resolves Issue #75.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1298 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-07-11 02:14:57 +00:00
fiddlosopher
8ed710bc9d Treat '\ ' in (extended) markdown as nonbreaking space.
Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1297 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-07-11 01:24:15 +00:00
fiddlosopher
275f9dc94c Added note to INSTALL that Cabal >= 1.2 is required for build.
Resolves Issue #74.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1296 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-07-10 23:26:18 +00:00
fiddlosopher
2df112bdf6 Changed inDefinition and indentPara to stInDefinition and stIndentPara
(for consistency).


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1295 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-07-10 23:26:12 +00:00
fiddlosopher
e0d229d9ce Updated .gitignore to exclude README.Debian.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1294 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-07-10 01:56:42 +00:00
fiddlosopher
44d1a28b0f Added README.Debian documenting what the "Suggests" are needed for.
Closes Debian bug #488642.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1293 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-07-10 01:56:37 +00:00
fiddlosopher
0fc174ac78 In HTML tests, use decimal entities for everything above 127.
This is how xhtml-3000.2.0.0 works.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1292 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-06-19 19:05:58 +00:00
fiddlosopher
6b73389328 Added type signatures, etc., to eliminate -Wall warnings.
(except for two warnings about unneeded functions, which might
come in handy some day...)


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1291 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-06-17 22:15:39 +00:00
fiddlosopher
92f655019a Added -Wall to ghc-options in pandoc.cabal.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1290 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-06-17 19:07:21 +00:00
fiddlosopher
24c1d71a37 Cleaned up Text/Pandoc/CharacterReferences.hs to avoid -Wall warnings.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1289 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-06-17 19:07:17 +00:00
fiddlosopher
18e44501a7 Cleaned up Text/Pandoc/Shared.hs to avoid -Wall warnings.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1288 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-06-17 19:07:11 +00:00
fiddlosopher
a8920f47aa Cleaned up Main.hs to eliminate -Wall warnings.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1287 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-06-17 18:55:42 +00:00
fiddlosopher
5eb204c86c OpenDocument Writer: Fixed handling of spaces and tabs in preformatted blocks.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1286 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-06-12 17:14:36 +00:00
fiddlosopher
d07e5825d3 Small fix to indentation of code blocks inside defn lists.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1285 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-06-09 21:15:24 +00:00
fiddlosopher
94e2d373bc OpenDocument writer: Fixed indentation for verbatim blocks inside defn lists.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1284 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-06-09 21:13:25 +00:00
fiddlosopher
dd454eb5ed OpenDocument writer: Use different bullets for different list levels.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1283 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-06-09 21:08:06 +00:00
fiddlosopher
2f88263833 OpenDocument writer: Return empty Doc in title block for null author, title, date.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1282 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-06-09 21:07:59 +00:00
fiddlosopher
8add1cf821 OpenDocument writer: don't convert 4 spaces to tab in verbatim block.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1281 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-06-09 21:07:52 +00:00
fiddlosopher
3337b46e30 Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
\textsubscript conflicts with a definition in the memoir class.
Resolves Issue #65.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1280 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-06-08 03:29:09 +00:00
fiddlosopher
cd38d4ae79 Markdown smart typography: Em dashes no longer eat surrounding whitespace.
Resolves Issue #69.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1279 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-06-08 03:20:15 +00:00
fiddlosopher
efb9fd8d53 Removed whitespace before newlines in macports portfile template.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1278 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-06-04 20:19:40 +00:00
fiddlosopher
69c2bde7d9 HTML writer: In code blocks, change leading newlines to <br /> tags.
(Some browsers ignore them.)  Resolves Issue #71.
See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1277 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-05-15 00:54:33 +00:00
fiddlosopher
6a46ffc0ad Count anything that isn't a known block (HTML) tag as an inline tag
(rather than the other way around).  Added "html", "head", and
"body" to list of block tags.  Resolves Issue #66, allowing
<lj> to count as an inline tag.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1276 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-04-20 03:12:42 +00:00
fiddlosopher
2fdcd1701a Fixed haddock documentation error
(affects latest version of haddock only).


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1275 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-03-31 20:20:02 +00:00
fiddlosopher
447efa0f9f Fixed bug in RTF writer:
Extra spaces were being printed after emphasized, boldface, and
other inline elements.  Resolves Issue #64.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1274 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-03-26 21:46:12 +00:00
fiddlosopher
5f5fb2e503 Additional README changes for OpenDocument writer.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1273 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-03-25 03:07:23 +00:00
fiddlosopher
5593b85860 Added link to OpenDocument XML in web page.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1272 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-03-25 02:48:14 +00:00
fiddlosopher
429b666ce5 Documented OpenDocument writer and markdown2odt in website.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1271 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-03-25 02:47:03 +00:00
fiddlosopher
1975b32697 Documented OpenDocument writer in macports Portfile.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1270 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-03-25 02:46:57 +00:00
fiddlosopher
965cce08e2 Documented OpenDocument writer and markdown2odt in freebsd pkg-descr.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1269 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-03-25 02:46:51 +00:00
fiddlosopher
4b2a1fcd30 Documented OpenDocument writer and markdown2odt in debian/control.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1268 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-03-25 02:46:45 +00:00
fiddlosopher
9420982b1a Documented OpenDocument writer and markdown2odt in README.
Folded "Requirements" section into description of shell scripts.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1267 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-03-25 02:46:39 +00:00
fiddlosopher
b8cdc13a92 Changed name of output file in web demo #21.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1266 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-03-25 01:37:42 +00:00
fiddlosopher
8624ed9bd3 The '--sanitize-html' option now examines URIs in markdown links
and images, and in HTML href and src attributes.  If the URI scheme
is not on a whitelist of safe schemes, it is rejected.  The main point
is to prevent cross-site scripting attacks using 'javascript:' URIs.
See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
and http://ha.ckers.org/xss.html.  Resolves Issue #62.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1262 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-03-22 20:41:56 +00:00
fiddlosopher
4988441f3c Fixed handling of Quoted inline elements to use unicode left & right quotes.
Added inQuotes auxiliary function.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1261 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-03-21 15:45:54 +00:00
fiddlosopher
c2e207a1f6 Added demos for opendocument XML and markdown2odt.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1260 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-03-19 18:47:04 +00:00
fiddlosopher
91d9fffe9e Added preliminary version of markdown2odt wrapper.
Added man page.
Modified Makefile to create markdown2odt from template.
Modified Makefile to create reference.odt file from files in odt-styles.
Modified Makefile to install reference.odt into PACKAGEDATAPATH.
Modified macports Portfile.
Modified freebsd Makefile.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1259 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-03-19 18:46:57 +00:00
fiddlosopher
1cbcaa8802 Added odt-styles directory with default ODT styles.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1258 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-03-19 18:46:44 +00:00
fiddlosopher
83fe5ed66c Acknowledge contributors in README.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1257 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-03-19 18:46:32 +00:00
fiddlosopher
97a3b2234a OpenDocument: use the new Definition_20_Term and
Definition_20_Definition styles and some other minor cleanup.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1256 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-03-19 18:46:27 +00:00
fiddlosopher
d2643c25e2 Code cleanup only.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1255 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-03-19 18:46:18 +00:00
fiddlosopher
ee644ddda0 OpenDocument writer: Don't print raw HTML.
(Note: For the DocBook writer, it makes sense to pass through
HTML raw, since the "HTML" might be DocBook XML.  But this isn't
desirable for the OpenDocument writer, it seems to me.)


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1254 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-03-19 18:46:09 +00:00
fiddlosopher
dcb37d32d1 Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1253 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-03-19 18:46:01 +00:00
fiddlosopher
2baf6d09ee Andrea Rossato's patch for OpenDocument support.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1252 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-03-19 18:45:51 +00:00
fiddlosopher
74e8085631 Small fix to markdown2pdf man page:
only input needs to be piped through iconv.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1251 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-03-19 18:41:07 +00:00
fiddlosopher
71f12408bc Added .gitignore.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1250 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-03-19 18:41:01 +00:00