aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-12-21Pretty: don't print a breaking space before a newline.John MacFarlane1-0/+4
2010-12-21Shared: Made splitBy take a test instead of an element.John MacFarlane4-9/+9
2010-12-21XML: Replaced escapeStringAsXML with a faster version.John MacFarlane1-9/+1
Benchmarked with criterion, it's about 8x faster than the old version. This speeds up docbook, opendocument, and html writers.
2010-12-20Added link to repo of CSL styles to README.John MacFarlane1-0/+2
2010-12-20Markdown writer: use \ for newline instead of two spaces at eol.John MacFarlane2-2/+5
(Unless --strict.)
2010-12-20Markdown writer: Use delimited code block if there are attributes.John MacFarlane1-2/+21
(Unless in strict mode.)
2010-12-20Plain writer: set stateStrictMarkdown automatically.John MacFarlane1-3/+4
2010-12-20ConTeXt writer: Updated to use Text.Pandoc.Pretty.John MacFarlane3-162/+151
2010-12-20Renamed 'enclosed' to 'inside'.John MacFarlane1-7/+7
This avoids conflict with 'enclosed' in Text.Pandoc.Parsing.
2010-12-19Pretty: Fixed parens.John MacFarlane1-1/+1
2010-12-19Fixed markdown-citations.ieee.txt.John MacFarlane1-1/+1
2010-12-19Fixed markdown-citations.txt.John MacFarlane1-3/+1
2010-12-19Fixed biblatex/natbib citation writer tests.John MacFarlane2-32/+2
2010-12-19Pretty: Added enclosed, parens.John MacFarlane1-2/+13
2010-12-19LaTeX writer: A bit of code polish.John MacFarlane1-29/+28
2010-12-19LaTeX writer: Modified to use Pretty.John MacFarlane2-106/+65
Improved footnote formatting, removed spurious blank lines.
2010-12-19Shared: Use stringify to simplify inlineListToIdentifier.John MacFarlane1-28/+11
2010-12-19Pretty: Added braces and brackets.John MacFarlane1-0/+9
2010-12-18LaTeX writer: Use \paragraph, \subparagraph for level 4,5 headers.John MacFarlane2-11/+12
2010-12-17Added new prettyprinting module.John MacFarlane24-1068/+1044
* Added Text.Pandoc.Pretty. This is better suited for pandoc than the 'pretty' package. One advantage is that we now get proper wrapping; Emph [Inline] is no longer treated as a big unwrappable unit. Previously we only got breaks for spaces at the "outer level." We can also more easily avoid doubled blank lines. Performance is significantly better as well. * Removed Text.Pandoc.Blocks. Text.Pandoc.Pretty allows you to define blocks and concatenate them. * Modified markdown, RST, org readers to use Text.Pandoc.Pretty instead of Text.PrettyPrint.HughesPJ. * Text.Pandoc.Shared: Added writerColumns to WriterOptions. * Markdown, RST, Org writers now break text at writerColumns. * Added --columns command-line option, which sets stColumns and writerColumns. * Table parsing: If the size of the header > stColumns, use the header size as 100% for purposes of calculating relative widths of columns.
2010-12-15test-pandoc: removed need to depend on MissingH.John MacFarlane2-4/+4
2010-12-15Added 'tests' Cabal flag.John MacFarlane3-16/+37
+ This ensures that test-pandoc gets built. + 'cabal test' now runs this. + The old tests/RunTests.hs has been removed, and src/test-pandoc.hs added.
2010-12-15HTML reader: allow : in tags.John MacFarlane1-2/+6
Resolves Issue #274.
2010-12-15Use top-level header at end as bibliography title for natbib and biblatex ↵Nathan Gass4-12/+27
output.
2010-12-15Remove punctuation at start of suffix for natbib and biblatex output.Nathan Gass4-11/+15
This is necessary as the latex citation commands include there own punctuation, which resulted in doubled commas for markdown documents where citeproc output works correctly.
2010-12-15Support multiple bibliography files with natbib and biblatex output.Nathan Gass3-4/+5
2010-12-14Added 'normalize' to Text.Pandoc.Shared.John MacFarlane1-1/+53
2010-12-14Added normalize funcion to latex citation tests.Nathan Gass1-9/+21
This is necessary because converting from markdown to latex correctly changes hyphens to en-dashes and some spaces to non-breaking spaces. Converting back to markdown does not undo this changes, and so the tests have to undo them.
2010-12-14Fixed preamble parsing in LaTeX reader.John MacFarlane1-2/+8
2010-12-14Added citation tests.Nathan Gass7-22/+245
Added tests for latex citation writer and reader, markdown citation writer and additional markup in citations.
2010-12-14Fixed regression in parsing _emph_John MacFarlane1-1/+1
There was a bug in parsing '_emph_, ...': when followed by a comma, underscore emphasis did not register. (Thanks to gwern for pointing this out.) This bug was introduced by the change in c66921f2acea456af527b93e2daa1d8594798642
2010-12-13Moved special handling of punctuation in suffix out of markdown reader.Nathan Gass2-9/+8
This allows different writers to handle punctuation in the suffix differently.
2010-12-13Added support for latex cite commands in latex reader.Nathan Gass2-12/+113
2010-12-13Disabled colored boxes around cites in latex template.Nathan Gass4-4/+4
2010-12-13Added option to write citation markup in markdown writer.Nathan Gass2-2/+30
2010-12-13Added support to write natbib or biblatex citations in latex output.Nathan Gass5-18/+166
2010-12-13Markdown reader: Further fix to abbrevs.John MacFarlane1-1/+1
2010-12-13Markdown reader: Fixed abbrev handler to allow abbrev at end of line.John MacFarlane1-2/+2
E.g., Mr. Frank.
2010-12-13Markdown reader: Fixed referenceKey parser to allow space after newline.John MacFarlane1-2/+1
2010-12-13Fixed inlineListToIdentifier to treat '\160' as ' '.John MacFarlane1-1/+3
2010-12-13Fixed table in README.John MacFarlane1-1/+1
2010-12-13Fixed internal link in README.John MacFarlane1-1/+1
2010-12-13Markdown reader: Fixed regression in reference key parser.John MacFarlane2-1/+1
* The recent change allowing spaces and newlines in the URL caused problems when reference keys are stacked up without blank lines between. This is now fixed. * Added test.
2010-12-12Benchmark: use nf for writers.John MacFarlane1-2/+2
whnf gives inaccurate results.
2010-12-12Markdown reader: fix superscripts with links.John MacFarlane1-1/+1
Moved inlineNote parser after superscript parser, so ^[link](/foo)^ gets recognized as a superscripted link, not an inline note followed by garbage. Thanks to Conal Elliott for pointing out the problem.
2010-12-12Recognize .json extension as json reader/writer.John MacFarlane1-0/+2
2010-12-11Removed deprecated -C/--custom-header option.John MacFarlane10-54/+0
Use --template instead.
2010-12-11Added JSON reader and writer.John MacFarlane3-5/+11
The JSON reader is about 20x faster than the native reader. So this can be a good way to serialize a pandoc document.
2010-12-10Added Benchmark.hs to extra-source-files.John MacFarlane1-0/+2
2010-12-10Added Benchmark.hs, testing all readers + writers using criterion.John MacFarlane1-0/+36