aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-01-19Made writeNative sensitive to writerStandalone.John MacFarlane1-4/+7
The Pandoc (Meta ...) is not written unless standalone is set.
2011-01-19Added Text.Pandoc.Readers.Native (readNative).John MacFarlane3-1/+83
readNative can now read full pandoc documents, block lists, blocks, inline lists, or inlines. It will interpret Str "hi" as if it were Pandoc (Meta [] [] []) [Plain [Str "hi"]] This should make testing easier.
2011-01-19Use spaceChar instead of oneOf " \t" in rst reader.John MacFarlane1-5/+5
2011-01-19Replaced more noneOf/oneOf parsers.John MacFarlane1-5/+11
2011-01-19Replaced uses of oneOf with more efficient parsers.John MacFarlane1-12/+19
This speeds up the markdown reader.
2011-01-19More small parser rewrites for small performance gains.John MacFarlane1-9/+11
2011-01-19Parsing: Rewrote spaceChar for significant speedup in readers.John MacFarlane1-1/+1
2011-01-19Include man pages in extra-source-files.John MacFarlane1-0/+3
The man pages are produced by a post-build hook, using MakeManPage.hs. However, there seem to be problems running this program on some systems; see https://github.com/jgm/pandoc/issues/#issue/15. This change means that the generated man pages will be included in the tarball produced by 'cabal sdist', and hence in releases. They will still be updated by the build process if the sources change, but in most builds, the man page won't need to be regenerated.
2011-01-19Fixed problem with inline code in ConTeXt writer.John MacFarlane1-1/+3
Previously `}` would be rendered '\type{}}'. Now we check the string for '}' and '{'. If it contains neither, use \type{}; otherwise use \mono{} with an escaped version of the string. Note: There are some issues using the \type!str! form, including differences btw mkii and mkiv. For now this is a conservative fix. Perhaps in the future we can use \type!str!. See the discussion on pandoc-discuss s.v. "Bug in context writer".
2011-01-19Fixed problem with strikout in LaTeX headers with hyperref.John MacFarlane7-0/+14
Added a command to the latex template to disable \sout inside pdf strings. Thanks to Joost Kremers for the fix.
2011-01-19Show Haskell-readable version of input string in test failure.John MacFarlane1-5/+7
2011-01-19Unit tests: On failure, print the input string.John MacFarlane2-7/+7
2011-01-18Added normalize in latex reader tests.John MacFarlane1-1/+2
2011-01-18Revamped tests with new =: and =?> operators + builder.John MacFarlane2-46/+45
Left in a couple failing tests for demonstration purposes.
2011-01-16Replaced --no-citeproc with --natbib in tests.John MacFarlane1-3/+3
2011-01-16Removed '--no-citeproc' as alias for '--natbib'.John MacFarlane1-1/+1
This was confusing, I think, as no-citeproc could be either natbib or biblatex.
2011-01-16Minor code formatting.John MacFarlane1-0/+5
2011-01-16Documented --chapters in README.John MacFarlane1-0/+4
2011-01-16Moved --chapters to before --number-sections in option list.John MacFarlane1-5/+5
2011-01-16Setup.hs: Only make pandoc.1 if README modified, be more verbose.John MacFarlane1-3/+14
2011-01-16Support --chapters for ConTeXt output as well.John MacFarlane1-3/+6
2011-01-16Use <chapter> for top docbook header if template has <book>.John MacFarlane1-2/+6
Resolves Issue #265.
2011-01-16Added --chapters option affecting docbook and latex.John MacFarlane4-4/+18
* Added writerChapters to WriterOptions. * Added --chapters command-line option. * --chapters causes top-level headers to be "chapter" instead of "section" in LaTeX and DocBook. * Resolves Issue #225.
2011-01-15HTML writer: Add ids to <section> tags.John MacFarlane1-1/+2
2011-01-15Added upper bounds to all cabal dependencies.John MacFarlane1-20/+38
2011-01-15Merge branch 'tests'John MacFarlane11-233/+571
2011-01-15Added new tests to pandoc.cabal.John MacFarlane1-0/+14
Otherwise cabal sdist won't include them.
2011-01-15Fixed lhs tests for new position of <title> after <meta>s.John MacFarlane2-2/+2
2011-01-14Require Cabal version >= 1.6.John MacFarlane1-1/+1
2011-01-14Updated changelog.John MacFarlane1-17/+40
2011-01-14Fixed the parser for rst+lhs - set stateLiterateHaskell.John MacFarlane1-1/+2
2011-01-14Removed relann1.7 for now - duplicates changelog.John MacFarlane1-265/+0
2011-01-14HTML reader: parse simple tables.John MacFarlane1-2/+22
Resolves Issue #106. Thanks to Rodja Trappe for the idea and some sample code.
2011-01-14HTML reader: parse location tags in pSatisfy.John MacFarlane1-13/+17
This avoids the need for manual parsing all over the place.
2011-01-14LaTeX writer: Escape strings in \href{..}.John MacFarlane2-7/+7
Previously strings weren't escaped, so %5D would be interpreted as a LaTeX comment!
2011-01-14Simplified Text.Pandoc.CharacterReferences by using TagSoup entity lookupJohn MacFarlane1-266/+11
2011-01-14Minor code cleanup.John MacFarlane1-3/+9
2011-01-14Keep Tests.Arbitrary but remove quickcheck tests for now.John MacFarlane3-18/+1
Remove Tests.Shared. Remove dependency on QuickCheck.
2011-01-14Merge branch 'master' of github.com:jgm/pandoc into testsJohn MacFarlane3-129/+75
2011-01-14LateX writer: In nonsimple tables, put cells in \parbox.John MacFarlane2-124/+70
Otherwise we can get problems with linebreaks, and cell spacing isn't right. Thanks to Jef Allbright for pointing out the problem.
2011-01-14Parsing: Fixed bug in grid table parser.John MacFarlane1-5/+5
Spaces at end of line were not being stripped properly, resulting in unintended LineBreaks.
2011-01-14Added quickcheck tests for normalize in Shared.John MacFarlane3-4/+23
2011-01-13Added Tests/Arbitrary.hs, with Arbitrary instances.John MacFarlane2-2/+173
2011-01-13Fixed bug in markdown-citations.mhra.txt expected test output.John MacFarlane1-2/+0
This failing test was a test suite bug, not a pandoc or citeproc bug.
2011-01-13Adjusted source to 80-column limit.John MacFarlane3-84/+111
2011-01-13Moved Tests.Shared -> Tests.Helpers.John MacFarlane2-2/+2
Tests.Shared would be the natural place to put tests for functions in Text.Pandoc.Shared.
2011-01-13Fixed bug in markdown-citations.mhra.txt expected test output.John MacFarlane1-2/+0
This failing test was a test suite bug, not a pandoc or citeproc bug.
2011-01-12Generalized latexTestWithState to readerTestWithState.Nathan Gass1-3/+3
2011-01-12Merge branch 'tests' of github.com:xabbu42/pandoc into testsNathan Gass1-3/+6
2011-01-12Removed copy-pasted -O2.Nathan Gass1-2/+2