aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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 MacFarlane4-204/+204
'(_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 MacFarlane2-2/+14
2011-01-01Updated pandoc-setup.iss.John MacFarlane1-1/+2
2011-01-01New version of changelog based on relann draft.John MacFarlane1-219/+154
2011-01-01Added early draft of release announcement for 1.7.John MacFarlane1-0/+248
2011-01-01Documented -V fontsize= in markdown2pdf man page.John MacFarlane1-4/+2
2011-01-01Updated changelog.John MacFarlane1-0/+298
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-30More accurate benchmark for normalize.John MacFarlane1-3/+6
2010-12-30Added support for listings package code blocks and inline code.Puneeth Chaganti1-2/+9
2010-12-30Textile reader: Slight speed improvement.John MacFarlane1-5/+5
2010-12-30New HTML reader using tagsoup as a lexer.John MacFarlane8-640/+441
* The new reader is faster and more accurate. * API changes for Text.Pandoc.Readers.HTML: - removed rawHtmlBlock, anyHtmlBlockTag, anyHtmlInlineTag, anyHtmlTag, anyHtmlEndTag, htmlEndTag, extractTagType, htmlBlockElement, htmlComment - added htmlTag, htmlInBalanced, isInlineTag, isBlockTag, isTextTag * tagsoup is a new dependency. * Text.Pandoc.Parsing: Generalized type on readWith. * Benchmark.hs: Added length calculation to force full evaluation. * Updated HTML reader tests. * Updated markdown and textile readers to use the functions from the HTML reader. * Note: The markdown reader now correctly handles some cases it did not before. For example: <hr/> is reproduced without adding a space. <script> a = '<b>'; </script> is parsed correctly.
2010-12-26normalize: Don't reduce [Space] to [].John MacFarlane1-4/+1
2010-12-26Improved 'normalize'.John MacFarlane1-41/+44
Now normalizeInlines is split into consolidateInlines and removeEmptyInlines. We need to remove empties before consolidating.
2010-12-26Markdown writer: Fixed bug in Image.John MacFarlane1-1/+1
URI was getting unescaped twice!
2010-12-25Added normalize benchmark to Benchmark.hs.John MacFarlane1-2/+5
2010-12-25Improved normalize.John MacFarlane1-0/+15
2010-12-24Use functions from Text.Pandoc.Generic instead of processWith(M).John MacFarlane10-20/+31
2010-12-22Added Interact.hs to make it easier to use ghci while developing.John MacFarlane1-0/+30
Interact.hs loads ghci from the src directory, specifying all the options needed to load pandoc modules (including specific package dependencies, which it gets by parsing dist/setup-config).
2010-12-22HTML reader: Simplified parsing of <script> sections.John MacFarlane1-24/+1
I had previously assumed that we needed to ignore </script> occuring in a string literal or javascript comment. It turns out, though, that browsers aren't that smart.
2010-12-22Made --smart work with HTML reader.John MacFarlane2-75/+84
It did not work before, because - and quotes were gobbled up by the str parser.
2010-12-22RST reader: Added unicode quote characters to specialChars.John MacFarlane1-1/+1
(So they can trigger Quoted environments.)
2010-12-22RST reader: recouped speed loss due to addition of --smart.John MacFarlane1-4/+4
This was achieved by rearranging the parsers in inline. Benchmarks went from 500ms to 307ms -- not quite back to the 279ms we had in 1.6, before supporting smart punctuation and footnotes, but close.
2010-12-22ODT writer: Don't wrap text in opendocument.John MacFarlane1-1/+1
2010-12-22Added stats.sh, to make it easier to collect benchmark & loc info.John MacFarlane1-0/+33
2010-12-22Removed all dependencies on 'pretty' package.John MacFarlane2-6/+2
2010-12-22Texinfo writer: Updated to use Pretty.John MacFarlane3-72/+38
2010-12-22Shared: Removed unneeded prettyprinting functions:John MacFarlane1-75/+0
wrapped, wrapIfNeeded, wrappedTeX, wrapTeXIfNeeded, hang'.
2010-12-22Shared: Removed BlockWrapper, wrappedBlocksToDoc.John MacFarlane1-13/+1
These are no longer needed with the new Pretty module.
2010-12-22Pretty: Added quote, doubleQuote.John MacFarlane1-0/+10
2010-12-22Man writer: updated to use Pretty.John MacFarlane3-46/+42
2010-12-21OpenDocument writer: Updated to use Pretty.John MacFarlane3-140/+314
2010-12-21XML: don't use breaking spaces in attribute lists.John MacFarlane1-4/+5
2010-12-21Docbook writer: Updated to use Pretty.John MacFarlane2-148/+126
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