summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Updated INSTALL in light of new dependencies (utf8-string and zip-archive).fiddlosopher2008-09-06
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1421 788f1e2b-df1e-0410-8736-df70ead52e1b
* LaTeX reader: improvements in raw LaTeX parsing.fiddlosopher2008-09-06
| | | | | | | | | | | | | | + "loose punctuation" (like {}) parsed as Space + Para elements must contain more than Str "" and Space elements + Added parser for "\ignore" command used in literate haskell. + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw" mode, these parsers simply strip off the command part and allow the arguments to be parsed normally. So, for example, \blorg{\emph{hi}} will be parsed as Emph "hi" rather than Str "{\\emph{hi}}". git-svn-id: https://pandoc.googlecode.com/svn/trunk@1420 788f1e2b-df1e-0410-8736-df70ead52e1b
* MediaWiki writer: print class attributes in <pre> for code blocks, if any.fiddlosopher2008-09-06
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1419 788f1e2b-df1e-0410-8736-df70ead52e1b
* Changed Float to Double in definition of Table element.fiddlosopher2008-09-06
| | | | | | | | (Double is more efficient in GHC.) Truncate width in opendocument output to 2 decimal places. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1418 788f1e2b-df1e-0410-8736-df70ead52e1b
* Reworked Text.Pandoc.ODT to use zip-archive instead of calling external 'zip'.fiddlosopher2008-09-04
| | | | | | | | | | | | | | | | | + Removed utf8-string and xml-light modules, and unneeded content.xml. + Removed code for building reference.odt from Setup.hs. The ODT is now built using template haskell in Text.Pandoc.ODT. + Removed copyright statements for utf8-string and xml modules, since they are no longer included in the source. + README: Removed claim that 'zip' is needed for ODT production. + Removed dependency on 'zip' from debian/control. + Text.Pandoc.Shared: Removed withTempDir, added inDirectory. + Added makeZip to Text.Pandoc.TH. + pandoc.cabal: Added dependencies on old-time, zip-archive, and utf8-string. Added markdown2pdf files to extra-sources list. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1417 788f1e2b-df1e-0410-8736-df70ead52e1b
* Modified Text.Pandoc.Biblio to fit new citeproc API.fiddlosopher2008-09-02
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1416 788f1e2b-df1e-0410-8736-df70ead52e1b
* Removed PDF writer from core pandoc, restored markdown2pdf.fiddlosopher2008-08-27
| | | | | | | | | | | | | | | | | | | | | + Added markdown2pdf. + Removed Text/Pandoc/PDF.hs. + Removed references to PDF writer from Main.hs. + Removed references to PDF writer from pandoc.cabal. + Added markdown2pdf.1 to list of man pages in Setup.hs. + Added markdown2pdf.1.md man page source. + Added reference to markdown2pdf(1) in pandoc man page. + Added markdown2pdf to WRAPPERS in Makefile. + Removed mention of pdf writer from README; added markdown2pdf. + Added remarks on markdown2pdf dependencies to README.Debian. + Added markdown2pdf to web/index.txt.in. + Use markdown2pdf for pdf web demos. + Put markdown2pdf back into debian control and rules. + Added markdown2pdf to macports Portfile. + Added markdown2pdf to freebsd package. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1415 788f1e2b-df1e-0410-8736-df70ead52e1b
* LaTeX reader: Parse "code" environments as verbatim (lhs).fiddlosopher2008-08-26
| | | | | | | Refactored parsers for verbatim environments. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1414 788f1e2b-df1e-0410-8736-df70ead52e1b
* Bugs fixed in RunTests.hs:fiddlosopher2008-08-23
| | | | | | | | | + 'r' -> '\r' + use a strict version of readFile to make sure file is closed and can be removed git-svn-id: https://pandoc.googlecode.com/svn/trunk@1413 788f1e2b-df1e-0410-8736-df70ead52e1b
* Modified RunTests.hs to strip out '\r' so it will work on Windows.fiddlosopher2008-08-14
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1412 788f1e2b-df1e-0410-8736-df70ead52e1b
* 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
* PDF writer: Close output file handle after waitForProcess.fiddlosopher2008-08-14
| | | | | | | | It should be closed automatically, but perhaps this fails on Windows, especially when the process is interrupted? git-svn-id: https://pandoc.googlecode.com/svn/trunk@1410 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
* Small haddock documentation fix. (Andrea Rossato)fiddlosopher2008-08-12
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1407 788f1e2b-df1e-0410-8736-df70ead52e1b
* Patches to Text.Pandoc.Biblio for new citeproc API.fiddlosopher2008-08-12
| | | | | | | (Andrea Rossato) git-svn-id: https://pandoc.googlecode.com/svn/trunk@1406 788f1e2b-df1e-0410-8736-df70ead52e1b
* Parse raw ConTeXt environments as TeX in markdown reader.fiddlosopher2008-08-11
| | | | | | | | | | | | | | | | | | | | | | | | | | Resolves Issue #73. Also made some structural changes to parsing of raw LaTeX environments. Previously there was a special block parser for LaTeX environments. It returned a Para element containing the raw TeX inline. This has been removed, and the raw LaTeX environment parser is now used in the rawLaTeXInline parser. The effect is exactly the same, except that we can now handle consecutive LaTeX and ConTeXt environments not separated by spaces. This new flexibility is required by the example in Issue #73: \placeformula \startformula L_{1} = L_{2} \stopformula API change: The LaTeX reader now exports rawLaTeXEnvironment' (which returns a string) rather than rawLaTeXEnvironment (which returns a block element). This is more likely to be useful in other applications. Added test cases for raw ConTeXt environments to markdown-reader-more.txt. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1405 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
* ODT writer: Use '/', even on Windows, as path separator in xlink attributefiddlosopher2008-08-11
| | | | | | | for images. Otherwise OpenOffice can't find the image files. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1403 788f1e2b-df1e-0410-8736-df70ead52e1b
* Makefile: Added 'configure' as dependency of 'uninstall-all'.fiddlosopher2008-08-10
| | | | | | | (It uses the Cabal build program.) git-svn-id: https://pandoc.googlecode.com/svn/trunk@1402 788f1e2b-df1e-0410-8736-df70ead52e1b
* Allow newline before URL in markdown link references. Resolves Issue #81.fiddlosopher2008-08-10
| | | | | | | | Added tests for this issue in new "markdown-reader-more" tests. Changed RunTests.hs to run these tests. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1401 788f1e2b-df1e-0410-8736-df70ead52e1b
* Use -S option when building man pages in Setup.hs.fiddlosopher2008-08-10
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1400 788f1e2b-df1e-0410-8736-df70ead52e1b
* Man writer: don't escape " as \".fiddlosopher2008-08-10
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1399 788f1e2b-df1e-0410-8736-df70ead52e1b
* Updated man page sources with pdf output option, minor cosmetic changes.fiddlosopher2008-08-10
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1398 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added zip as a build dependency in debian/control.fiddlosopher2008-08-10
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1397 788f1e2b-df1e-0410-8736-df70ead52e1b
* Debian packaging changes:fiddlosopher2008-08-10
| | | | | | | | | | + Updated README.Debian with information on the changes to markdown2pdf. + Made latex and zip required dependencies, since they are now required for 'odt' and 'pdf' targets of pandoc. + Fixed typo in warning message. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1396 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
* Use 'bracket' to improve withTempDir Text.Pandoc.Shared.fiddlosopher2008-08-10
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1393 788f1e2b-df1e-0410-8736-df70ead52e1b
* Removed dependency on reference.odt from Makefile.fiddlosopher2008-08-10
| | | | | | | This is handled now in Setup.hs. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1392 788f1e2b-df1e-0410-8736-df70ead52e1b
* Removed no-longer-needed wrappers directory.fiddlosopher2008-08-09
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1391 788f1e2b-df1e-0410-8736-df70ead52e1b
* Removed no-longer-needed templates directory.fiddlosopher2008-08-09
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1390 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
* Removed layout-cache and Configurations2 from odt-styles directory.fiddlosopher2008-08-09
| | | | | | | They don't seem to be needed. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1388 788f1e2b-df1e-0410-8736-df70ead52e1b
* Include shell scripts themselves in repo, rather than generating from wrappers.fiddlosopher2008-08-09
| | | | | | | | | + Removed wrappers directory + Removed wrappers Makefile target + Added hsmarkdown, html2markdown, and markdown2pdf git-svn-id: https://pandoc.googlecode.com/svn/trunk@1387 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added preconfigure hook to build reference.odt if missing.fiddlosopher2008-08-09
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1386 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
* Removed unneeded space after "\\item" in LaTeX and ConTeXt output.fiddlosopher2008-08-09
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1384 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
* Small improvements to citation parsing in markdown reader.fiddlosopher2008-08-06
| | | | | | | (Don't allow blank lines inside citations.) git-svn-id: https://pandoc.googlecode.com/svn/trunk@1382 788f1e2b-df1e-0410-8736-df70ead52e1b
* Allow parsing of multiline citations.fiddlosopher2008-08-05
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1381 788f1e2b-df1e-0410-8736-df70ead52e1b
* Text/Pandoc/Biblio.hs - made getRefs point-free.fiddlosopher2008-08-05
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1380 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 padding to table cells in ODT.fiddlosopher2008-08-05
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1378 788f1e2b-df1e-0410-8736-df70ead52e1b
* Added opendocument writer tests.fiddlosopher2008-08-05
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1377 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
* Added Cite element to definition and writers.fiddlosopher2008-08-04
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1375 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
* Improvements to ODT writer (for windows compatibility):fiddlosopher2008-08-03
| | | | | | | | | | + use Data.ByteString (not Data.ByteString.Char8, which writes in text mode) + use runProcess (with a working directory) instead of runCommand + only create Pictures directory if there are pictures git-svn-id: https://pandoc.googlecode.com/svn/trunk@1372 788f1e2b-df1e-0410-8736-df70ead52e1b