aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2011-01-22ConTeXt writer: Don't add cr at end of inline footnote.John MacFarlane1-1/+1
2011-01-21Make sure native output ends in newline with --standalone.John MacFarlane1-1/+1
2011-01-21Haddock comment improvements.John MacFarlane2-2/+7
2011-01-20Added --normalize option.John MacFarlane1-1/+7
2011-01-20Markdown writer: Avoid printing excess spaces at end if no notes/refs.John MacFarlane1-1/+2
2011-01-20Native writer: eliminated empty spaces in brackets.John MacFarlane1-2/+3
2011-01-20Export readNative in Text.Pandoc.Shared.John MacFarlane1-0/+1
2011-01-20Improved native writer using Pretty.John MacFarlane1-48/+32
2-3X speed improvement and more consistent layout.
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 MacFarlane2-1/+82
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-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-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-16Moved --chapters to before --number-sections in option list.John MacFarlane1-5/+5
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-15Merge branch 'tests'John MacFarlane1-219/+0
2011-01-14Fixed the parser for rst+lhs - set stateLiterateHaskell.John MacFarlane1-1/+2
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 MacFarlane1-2/+2
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-14Merge branch 'master' of github.com:jgm/pandoc into testsJohn MacFarlane2-14/+17
2011-01-14LateX writer: In nonsimple tables, put cells in \parbox.John MacFarlane1-9/+12
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-12Merge branch 'master' into testsJohn MacFarlane4-22/+66
2011-01-11Improvements to --html5 support:John MacFarlane2-15/+39
+ <nav> for TOC, <figure> for figures, type attribute in <ol>. + Don't add math javascript in html5. + Use style attributes instead of deprecated width, align. + html template: move <title> after <meta>. Note: charset needs to be declared before title. + slidy and s5 templates: move <title> after <meta>. + html template: Added link to html5 shim for IE. + Make --html5 have an effect only for 'html' writer (not s5, slidy, epub).
2011-01-11Preliminary support for HTML5.John MacFarlane3-2/+16
+ Added writerHtml5 writer option. + Added --html5 option. + Added support for lang in html tag (so you can do 'pandoc -s --V lang=en', for example). + Updated html template with conditionals for HTML5. + When HTML5 selected, use <header> tag around title in document, and use <section> tags instead of <div>s if --section-divs specified.
2011-01-11Text.Pandoc: Improved readers, writers lists for lhs variants.John MacFarlane1-6/+12
Now the lhs variants set the needed literate Haskell flag in parser state and writer options.
2011-01-11Moved test-pandoc.hs to tests directory.Nathan Gass1-197/+0
2011-01-11Removed run prefix from all test functions.Nathan Gass1-70/+68
2011-01-11Include lhs tests in existing testGroup structure.Nathan Gass1-41/+30
2011-01-11Add reader groups for markdown and rst reader tests.Nathan Gass1-10/+12
2011-01-10Changed test-pandoc to use test-framework and HUnit.Nathan Gass1-113/+102
2011-01-07pandoc: Test standalone' rather than standalone for final newline.John MacFarlane1-1/+1
2011-01-07LaTeX reader: Support simple tables.John MacFarlane1-0/+58
2011-01-06pandoc: Add newline to output unless standalone.John MacFarlane1-2/+6
This avoids output that does not end with a newline, which is inconvenient when working with many tools. Updated tests accordingly.
2011-01-06RST writer: blank line after literate Haskell code block.John MacFarlane1-3/+3
2011-01-06test-pandoc: Wrap to 78 columns in lhs writer tests.John MacFarlane1-1/+1
2011-01-06Markdown writer: blank line after delimited code block.John MacFarlane1-2/+2
2011-01-06LaTeX reader: allow spaces btw \\begin or \\end and {.John MacFarlane1-10/+27
2011-01-06LaTeX reader: Removed unnecessary 'spaces'.John MacFarlane1-4/+0
2011-01-06HTML reader: Fixed bug in htmlTag for comments.John MacFarlane1-2/+9