summaryrefslogtreecommitdiff
path: root/pandoc.cabal
Commit message (Collapse)AuthorAge
...
* Simplified and improved UTF8 handling:fiddlosopher2008-08-14
| | | | | | | | | | | | | | + Removed utf8-string cabal configuration flag. + Instead, we just include System.IO.UTF8 and Codec.Binary.UTF8.String from utf8-string package in the source tree, avoiding a dependency on utf8-string and avoiding crufty custom UTF8 code. (The old Text.Pandoc.UTF8 had problems with the getContents function.) + Removed lots of CPP directives that are no longer needed. + In Setup.hs, use '-i..' in running RunTests.hs, so the local UTF8 code will be found. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1411 788f1e2b-df1e-0410-8736-df70ead52e1b
* Support for display math; changed ASCIIMathML -> LaTeXMathML:fiddlosopher2008-08-13
| | | | | | | | | | | | | | | | | | | | | | | | | | Resolves Issue #47. + Added a DisplayMath/InlineMath selector to Math inlines. + Markdown parser yields DisplayMath for $$...$$. + LaTeX parser yields DisplayMath when appropriate. Removed mathBlock parsers, since the same effect is achieved by the math inline parsers, now that they handle display math. + Writers handle DisplayMath as appropriate for the format. + Changed -m option to use LaTeXMathML rather than ASCIIMathML. LaTeXMathML is closer to LaTeX in its display of math, and supports many non-math LaTeX environments. + Modified HTML writer to print raw TeX when LaTeXMathML is being used instead of suppressing it. + Removed ASCIIMathML files from data/ and added LaTeXMathML. + Replaced ASCIIMathML with LaTeXMathML in source files. + Modified README and pandoc man page source. + Modified web page. + Added --latexmathml option (kept --asciimathml as a synonym for backwards compatibility) + Modified tests accordingly; added new tests for display math. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1409 788f1e2b-df1e-0410-8736-df70ead52e1b
* Don't expose Text.Pandoc.Biblio module unless citeproc option is selected.fiddlosopher2008-08-12
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1408 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added new markdown reader tests to list of extra source files in pandoc.cabal.fiddlosopher2008-08-11
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1404 788f1e2b-df1e-0410-8736-df70ead52e1b
* Removed markdown2pdf and all references to it.fiddlosopher2008-08-10
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1395 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added Text.Pandoc.PDF module, 'pdf' as new output option.fiddlosopher2008-08-10
| | | | | | | | | The module calls pdflatex to produce the PDF, and is basically shell scripting in haskell. But this is better than the existing markdown2pdf script, which is limited to POSIX. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1394 788f1e2b-df1e-0410-8736-df70ead52e1b
* Moved more of the build process from Makefile to Setup.hs:fiddlosopher2008-08-09
| | | | | | | | | | | | | + tarball target now calls 'sdist' + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal, so 'sdist' and 'clean' will work properly. + Makefile no longer generates man pages or reference.odt. + Setup.hs now generates man pages in a postbuild hook. + Added dependency-checking to Setup.hs, so it only rebuilds things that need rebuilding. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1389 788f1e2b-df1e-0410-8736-df70ead52e1b
* Rewrote test suite so it doesn't depend on perl or unix tools.fiddlosopher2008-08-09
| | | | | | | | | | | | | | | | | | + Replaced old runtests.pl with a Haskell script RunTests.hs. + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'. + Added test hook to Setup.hs, so tests may be run from cabal. + Changed Makefile's 'test' target to run tests via cabal. + Removed old generate.sh. + Since we no longer have 'sed' to filter out raw HTML sections from the docbook writer test, or raw LaTeX sections from the context writer test, we now just include these sections. They can be taken out if it is necessary to process the files. + Updated latex and context writer tests to remove extra spaces after '\\item' + Added a markdown table reader test. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1385 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added Text.Pandoc.UTF8 as a backup for when utf8-string is not present.fiddlosopher2008-08-08
| | | | | | | | | | | | | + Added Text.Pandoc.UTF8 + Changed flag name from utf8 to utf8-string + Changed CPP MACRO from _UTF8 to _UTF8STRING + Import IO functions from Text.Pandoc.UTF8 when utf8-string not available. + Removed utf8-string dependency from debian/control. + Removed pandoc.cabal.ghc66; we no longer support GHC 6.6 + Modified INSTALL instructions git-svn-id: https://pandoc.googlecode.com/svn/trunk@1383 788f1e2b-df1e-0410-8736-df70ead52e1b
* Mention ODT writer in pandoc.cabal.fiddlosopher2008-08-05
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1379 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added support for Cite to Markdown reader, and conditional support for ↵fiddlosopher2008-08-04
| | | | | | | | | | | | citeproc module. + The citeproc cabal configuration option sets the _CITEPROC macro, which conditionally includes code for handling citations. + Added Text.Pandoc.Biblio module. + Made highlighting option default to False. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1376 788f1e2b-df1e-0410-8736-df70ead52e1b
* Improved configuration options and CPP macros.fiddlosopher2008-08-03
| | | | | | | | | | | | + Now all macros that serve as flags start with a single _. + Added message to '-v' output about UTF-8 support. + Made highlighting the default. If the highlighting-kate library is not present, cabal will deselect the option (unless it was explicitly set). + Add UTF8 support to test function in Text.Pandoc.Shared. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1374 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added 'utf8' configuration flag to pandoc.cabal.fiddlosopher2008-08-03
| | | | | | | | | This makes it possible to compile pandoc without utf8, using '-f-utf8' at configuration time. Utf-8 support is still the default. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1373 788f1e2b-df1e-0410-8736-df70ead52e1b
* Improved template handling:fiddlosopher2008-08-02
| | | | | | | | | | + Split template haskell functions into new module, Text.Pandoc.TH + Distinguish contentsOf and binaryContentsOf; the former uses text mode in Windows, while the latter uses binary mode git-svn-id: https://pandoc.googlecode.com/svn/trunk@1368 788f1e2b-df1e-0410-8736-df70ead52e1b
* Fixes to make haddock work with template haskell:fiddlosopher2008-08-01
| | | | | | | | + Added CPP, TemplateHaskell, FlexibleInstances to cabal file "Extensions" field + Added #ifndef __HADDOCK__ cpp declarations in the files using template haskell. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1366 788f1e2b-df1e-0410-8736-df70ead52e1b
* Removed FlexibleInstances Extension line from pandoc.cabal; it isn't neededfiddlosopher2008-08-01
| | | | | | | because the relevant files have pragmas. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1365 788f1e2b-df1e-0410-8736-df70ead52e1b
* Removed 'CPP' from Extension in pandoc.cabal.fiddlosopher2008-08-01
| | | | | | | | | It is not needed (since the relevant files have a pragma anyway), and it causes problems on windows (Cabal thinks pandoc.cabal has changed every time configure is run). git-svn-id: https://pandoc.googlecode.com/svn/trunk@1360 788f1e2b-df1e-0410-8736-df70ead52e1b
* Don't use OverloadedStrings in ODT writer.fiddlosopher2008-08-01
| | | | | | | Remove version dependency from bytestring. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1359 788f1e2b-df1e-0410-8736-df70ead52e1b
* Depend on bytestring-0.9.0.1 and provide a ByteString instance for IsString ↵fiddlosopher2008-08-01
| | | | | | | | | | manually, in Text/Pandoc/ODT.hs. Upgrading to 0.9.1.0 causes problems unless every package has been built with that version, so for now we stick with 0.9.0.1. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1358 788f1e2b-df1e-0410-8736-df70ead52e1b
* Simplified build process using template haskell.fiddlosopher2008-08-01
| | | | | | | | | | | | | | + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs, and Text/Pandoc/Writers/S5.hs are no longer built in Setup.hs from templates in the templates/ directory. + Instead, they use template haskell to read data at compile time from the relevant files in data/. + Setup.hs is back to the default simple configuration. + Removed old templates and Extra-Tmp-Files field from pandoc.cabal. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1357 788f1e2b-df1e-0410-8736-df70ead52e1b
* Use template haskell to store reference.odt as blob in pandoc.fiddlosopher2008-08-01
| | | | | | | | | | + Added contentsOf to Text.Pandoc.Shared. + Use this to get contents of reference.odt at compile time in Text.Pandoc.ODT + Added bytestring and template-haskell dependencies to pandoc.cabal. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1355 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added code for xml library (Text.XML.Light) to source tree,fiddlosopher2008-08-01
| | | | | | | | since there is currently no debian package. Removed dependency on xml library. Added license to debian/copyright. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1351 788f1e2b-df1e-0410-8736-df70ead52e1b
* Compatibility fixes for CPP, Cabal, and haddock:fiddlosopher2008-07-31
| | | | | | | | + Use CPP in "Extensions" field in pandoc.cabal. + Removed use of backslash string continuations in source files. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1350 788f1e2b-df1e-0410-8736-df70ead52e1b
* Removed superfluous binary and bytestring dependencies in pandoc.cabal.fiddlosopher2008-07-31
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1349 788f1e2b-df1e-0410-8736-df70ead52e1b
* Use utf8-string's System.IO.UTF8 to replace Text.Pandoc.UTF8.fiddlosopher2008-07-31
| | | | | | | | | | | + removed Text/Pandoc/UTF8.hs + removed UTF8.hs notice from debian/copyright + adjusted main.hs, Text/Pandoc.hs, and Text/Pandoc/ODT.hs to use System.IO.UTF8 instead of Text.Pandoc.UTF8 + Added dependency on utf8-string to pandoc.cabal git-svn-id: https://pandoc.googlecode.com/svn/trunk@1347 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added 'library' and 'executable' configuration flags.fiddlosopher2008-07-31
| | | | | | | | Cabal can now be told to build just the library or just the executable. Updated INSTALL accordingly. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1346 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added 'odt' output option to pandoc:fiddlosopher2008-07-31
| | | | | | | | | | | | | | | | | Not a writer, but a module that inserts the output of the OpenDocument writer into an ODT archive. This replaces markdown2odt. + Added odt output option to Main.hs. + Added default for .odt output file. + Changed defaults so that .xml and .sgml aren't automatically DocBook. + Added odt writer to Text.Pandoc exports. + Added Text.Pandoc.ODT and included in pandoc.cabal. + Added reference.odt as data-file in pandoc.cabal. + Handle picture links in OpenDocument files using xml library. + Removed markdown2odt and references from Makefile, README, man. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1345 788f1e2b-df1e-0410-8736-df70ead52e1b
* Fixed typo in pandoc.cabal.fiddlosopher2008-07-31
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1343 788f1e2b-df1e-0410-8736-df70ead52e1b
* Simplified Setup.hs by removing PostClean hooks.fiddlosopher2008-07-31
| | | | | | | Added Extra-Tmp-Files to pandoc.cabal; this does the same thing. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1342 788f1e2b-df1e-0410-8736-df70ead52e1b
* Improved pandoc.cabal:fiddlosopher2008-07-31
| | | | | | | | + Added Extra-Source-Files so sdist contains everything needed to build + Added "Build-Type" field to avoid warning. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1341 788f1e2b-df1e-0410-8736-df70ead52e1b
* Use CPP to simplify build procedure for Highlighting.hs module.fiddlosopher2008-07-31
| | | | | | | This is no longer built by Setup.hs in the pre-configure phase. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1339 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added MediaWiki writer.fiddlosopher2008-07-27
| | | | | | | | | | | | | | | | | + Added Text/Pandoc/Writers/MediaWiki.hs + Added to pandoc.cabal + Added to Main.hs and Text/Pandoc.hs exports. + Added tests for mediawiki writer & table writer. + Added information on MediaWiki writer to README. + Added mediawiki markup to list of formats in pandoc(1) man page. + Updated debian/control with mediawiki output format. + Added mediawiki markup to description in macports portfile. + Updated freebsd package description to include mediawiki format. + Mention MediaWiki output format in web page index. + Added mediawiki demo to website. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1337 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added OpenDocument format to cabal description.fiddlosopher2008-07-24
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1335 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added -Wall to ghc-options in pandoc.cabal.fiddlosopher2008-06-17
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1290 788f1e2b-df1e-0410-8736-df70ead52e1b
* Moved XML-formatting functions to new unexported module Text.Pandoc.XML.fiddlosopher2008-03-19
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1253 788f1e2b-df1e-0410-8736-df70ead52e1b
* Andrea Rossato's patch for OpenDocument support.fiddlosopher2008-03-19
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1252 788f1e2b-df1e-0410-8736-df70ead52e1b
* Require parsec < 3.fiddlosopher2008-03-06
| | | | | | | | | The compatibility module in parsec 3.0.0 gives far worse performance than parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring version of parsec, and then we'll go to parsec 3.0.0. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1248 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added Texinfo writer to exported modules in pandoc.cabal.fiddlosopher2008-02-24
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1247 788f1e2b-df1e-0410-8736-df70ead52e1b
* Updated package URL for pandoc.cabal and pandoc.cabal.ghc66.fiddlosopher2008-02-24
| | | | | | | | Updated pandoc.cabal.ghc66 with highlighting modules and new location for DefaultWriters. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1240 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added build option for syntax highlighting, with *optional* dependency on ↵fiddlosopher2008-02-09
| | | | | | | | | | | | | | | | | highlighting-kate. + pandoc.cabal includes a flag, 'highlighting', that causes a dependency on highlighting-kate. + if Setup.hs detects this dependency, it copies templates/Highlighting.yes.hs to Text/Pandoc/Highlighting.hs. Otherwise, it copies templates/Highlighting.no.hs. + The HTML writer imports this new module instead of Text.Highlighting.Kate. The new module exports highlightHtml, which either uses highlighting-kate to perform syntax highlighting or automatically returns a failure code, depending on whether highlighting support was selected. + --version now prints information about whether syntax highlighting support is compiled in. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1221 788f1e2b-df1e-0410-8736-df70ead52e1b
* Removed Text.Regex dependencies by rewriting using plain Haskell:fiddlosopher2008-02-09
| | | | | | | | | | + from Text.Pandoc.Writers.RTF + from Text.Pandoc.Writers.HTML + from Main + from pandoc.cabal git-svn-id: https://pandoc.googlecode.com/svn/trunk@1219 788f1e2b-df1e-0410-8736-df70ead52e1b
* Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.fiddlosopher2008-02-09
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1218 788f1e2b-df1e-0410-8736-df70ead52e1b
* Included highlighting-kate in build-depends.fiddlosopher2008-02-09
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1212 788f1e2b-df1e-0410-8736-df70ead52e1b
* Bumped version to 0.47.fiddlosopher2008-01-08
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1187 788f1e2b-df1e-0410-8736-df70ead52e1b
* Changed copyright dates where appropriate to include 2008.fiddlosopher2008-01-08
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1181 788f1e2b-df1e-0410-8736-df70ead52e1b
* Bumped version number to 0.46.fiddlosopher2007-12-10
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1147 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added Text.Pandoc.Readers.TeXMath and changed default handling of math.fiddlosopher2007-12-02
| | | | | | | | | | | | | | + Text.Pandoc.Readers.TeXMath exports readTeXMath, which reads raw TeX math and outputs a string of pandoc inlines that tries to render it as far as possible, lapsing into literal TeX when needed. + Added Text.Pandoc.Readers.TeXMath to pandoc.cabal + ghc66 version. + Modified writers so that readTeXMath is used for default HTMl output in HTML, S5, RTF, Docbook. + Updated README with information about how math is rendered in all formats. + Updated test suite. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1129 788f1e2b-df1e-0410-8736-df70ead52e1b
* Changed references to source directory in Makefile and pandoc.cabal.*.fiddlosopher2007-11-29
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1105 788f1e2b-df1e-0410-8736-df70ead52e1b
* Use Ghc-Prof-Options to ensure that '-auto-all' is usedfiddlosopher2007-11-22
| | | | | | | when '--enable-*-profiling' is specified. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1090 788f1e2b-df1e-0410-8736-df70ead52e1b
* Modified build procedure to allow compilation with GHC 6.8:fiddlosopher2007-11-06
| | | | | | | | | | | | | | | + pandoc.cabal now uses Cabal configurations and requires Cabal >=1.2. + An alternative pandoc.cabal.ghc66 is provided for those who have older versions of Cabal. + Debian build process has been modified to use pandoc.cabal.ghc66, as a temporary measure until GHC 6.8 gets into debian unstable. + INSTALL instructions have been updated. + Makefile has been updated to accommodate changes in pandoc.cabal. + pandoc.cabal.ghc68 has been removed, since the default version now works with GHC 6.8. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1066 788f1e2b-df1e-0410-8736-df70ead52e1b