aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
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
2011-01-05LaTeX reader: Apply macros to non-math; handle ensuremath.John MacFarlane1-9/+23
2011-01-05LaTeX reader: Don't handle \label and \ref specially.John MacFarlane1-11/+0
Put labels in {} instead of ().
2011-01-05LaTeX reader: Support \L \l accents.John MacFarlane1-1/+8
2011-01-05Updated for texmath 0.5.John MacFarlane1-13/+13
2011-01-05Fixed macro parsing.John MacFarlane1-8/+10
2011-01-05LaTeX reader: Parse inside arguments when ignoring commands.John MacFarlane1-9/+11
2011-01-05LaTeX reader: Don't handle \index separately.John MacFarlane1-7/+0
Instead, just put it in list of commands to ignore.
2011-01-05LaTeX reader: Added "index" to ignorable commands.John MacFarlane1-1/+1
2011-01-05LaTeX reader: skip space before option or argument.John MacFarlane1-1/+1
2011-01-05LaTeX reader: Skip \index commands.John MacFarlane1-1/+8
2011-01-05LaTeX reader: Removed \group (we want to parse inside {}).John MacFarlane1-6/+0
2011-01-05LaTeX reader: Better handling of preamble, inc. parsing macros.John MacFarlane1-10/+20
2011-01-04LaTeX reader: Parse bracketed {parts} as raw TeX.John MacFarlane1-2/+2
2011-01-04Markdown reader: Removed unneeded definitions.John MacFarlane1-10/+8
specialChars, strChar, specialCharsMinusLt.
2011-01-04LaTeX reader: parse macros and apply to math.John MacFarlane1-7/+8
2011-01-04Moved 'macro' and 'applyMacros'' from markdown reader to Parsing.John MacFarlane2-26/+27
2011-01-01Fixed regression in markdown reader.John MacFarlane1-3/+3
'(_hi_)' was being parsed with literal underscores (no emphasis). The fix: the 'str' parser now only parses alphanumerics and embedded underscores. All other symbols are handled by the 'symbol' parser. This has a slight effect on the AST, since you'll get [Str "hi",Str ":"] insntead of [Str "hi:"]. But there should not be a visible effect in any of the writers. Thanks to gwern for pointing out the regression.
2011-01-01Updated copyright notices.John MacFarlane1-1/+1
2010-12-30LaTeX reader: Allow ignored comments after \end{document}.John MacFarlane1-3/+1
2010-12-30HTML reader: Fixed some parsing bugs.John MacFarlane1-22/+28
2010-12-30Added support for listings package code blocks and inline code.Puneeth Chaganti1-2/+9