aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2012-07-24Slightly more efficient normalizeSpaces.John MacFarlane1-6/+5
2012-07-24HTML reader: Fixed bug in htmlBalanced.John MacFarlane1-2/+1
This caused hangs in parsing certain markdown input using --strict.
2012-07-24Don't require strict HTML blocks to begin at left margin.John MacFarlane1-3/+1
Technically this is required, according to the mardkown syntax document, but Markdown.pl and other markdown processors are more liberal.
2012-07-24Use catch from Control.Exception to avoid warnings.John MacFarlane4-14/+24
2012-07-24Text.Pandoc: writers now an assoc list of String, Writer.John MacFarlane2-80/+73
A Writer can be a PureStringWriter, an IOStringWriter, or an IOByteStringWriter. ALL writers are now in the 'writers' list, including the binary writers and fb2 writer. Code simplified at end of pandoc.hs.
2012-07-24Removed unneeded import.John MacFarlane1-1/+0
2012-07-24Changed signatures of writeODT, writeDocx, writeEPUB.John MacFarlane4-18/+18
These now take WriterOptions and Pandoc only. The extra parameters for epub stylesheet, epub fonts, reference Docx, and reference ODT have been removed, since these things are now in WriterOptions. Note: breaking API change!
2012-07-24Added fields to WriterOptions.John MacFarlane1-0/+8
writerEpubStylesheet, writerEpubFonts, writerReferenceODT, writerReferenceDocx. These can now be removed as extra parameters to the writers.
2012-07-24Small fix to fix: Allow blank lines btw table and caption.John MacFarlane1-0/+1
2012-07-24Fixed performance improvement to tables.John MacFarlane1-1/+1
2012-07-24More performance improvements on pipe tables.John MacFarlane1-2/+1
2012-07-24Refactored table parsers, captions now not part of core tableWith.John MacFarlane3-21/+21
2012-07-24Slight improvement to performance for pipe tables.John MacFarlane1-11/+16
Still, pipe tables are a huge performance drag. One benchmark: With pipe tables, 1.25 sec (including this fix). without pipe tables, 1.05 sec.
2012-07-23Set writerTableOfContents for s5 in Text.Pandoc, not pandoc.hs.John MacFarlane2-3/+3
2012-07-23Set writerSlideVariant in Text.Pandoc rather than pandoc.hs.John MacFarlane2-53/+47
2012-07-22Revised code for pipe tables.John MacFarlane3-101/+57
* All tables now require at least one body row. * Renamed from 'extra' to 'pipe' tables. * Moved functions from Parsing to Readers.Markdown. * Cleaned up code; revised to parse in one pass rather than parsing a raw string, splitting it, and parsing the components. * Allow pipe tables without pipes on the ends (as PHP Markdown Extra does).
2012-07-22Renamed tests/markdown-tables -> tests/extra-tables.John MacFarlane1-1/+1
Added to cabal file.
2012-07-22Merge pull request #510 from mytskine/markdown-extraJohn MacFarlane3-1/+104
Markdown extra tables [part of the multi-markdown syntax for tables]
2012-07-22Removed fb2.math-webtex.fb2 tests.John MacFarlane1-1/+0
Test suite should not require net access to run.
2012-07-22FB2: support images embedded as data URIs + tests.Sergey Astanin2-12/+59
2012-07-22Test suite for FB2 writer.Sergey Astanin1-3/+25
2012-07-22Added a new FictionBook2 (FB2) writer.Sergey Astanin3-15/+604
2012-07-20Use Parsec directly in Biblio and Templates.John MacFarlane2-16/+16
2012-07-20Use Parser as type synonym for Parsec.John MacFarlane10-322/+324
2012-07-20Text.Pandoc.Parsing: Export all Parsec functions used in pandoc code.John MacFarlane10-14/+57
No other module directly imports Parsec. This will make it easier to change the parsing backend in the future, if we want to.
2012-07-20Use Text.Parsec instead of Text.ParserCombinators.Parsec.John MacFarlane10-442/+442
2012-07-19Make `--ascii` work properly with `--self-contained`.John MacFarlane1-1/+1
Closes #568.
2012-07-19Provide Data.Default instances for ParserState and WriterOptions.John MacFarlane3-3/+14
Now you can use def (which is re-exported by Text.Pandoc) instead of defaultParserState or defaultWriterOptions. For now, these are still defined too, so existing code need not change. Closes #546.
2012-07-16Don't recognize inline-markup starts inside words.John MacFarlane1-8/+17
For example, "2*2 = 4*1" should not contain an emphasized section. Added test case for "Literal symbols". Closes #569.
2012-07-13Set ODT title propertyArlo O'Keeffe1-3/+21
2012-07-13Textile reader: properly handle links with surrounding brackets.John MacFarlane1-3/+16
Square brackets need to be used when the link isn't surrounded by spaces or punctuation, or when the URL ending may be ambiguous. Closes #564.
2012-07-11HTML writer: Put mathjax in span with class "math".John MacFarlane1-1/+1
Closes #562.
2012-07-03`-V` option: Add variables to beginning of list, not end.John MacFarlane1-2/+1
This means that duplicate variables specified later on the command line take precedence. It also allows the default `-slidy-url` to be overridden even when `--self-contained` is used (provided the `-V` comes after `--self-contained`. Previously this could not be done. Note that when `--self-contained` is used, the `slidy-url` variable is set to `slidy` so that local copies are used.
2012-06-30Pretty: Added wide punctuation range to charWidth.John MacFarlane1-1/+3
Fixes bug with Chinese commas in tables.
2012-06-29Changed macro parser so it returns raw macro if stateApplyMacros false.John MacFarlane1-5/+8
Closes #554.
2012-06-28SelfContained: Fix handling of absolute URLs in css imports.John MacFarlane1-1/+5
Also allow single-quoted values. Closes #535.
2012-06-28Added webm to mime types. Closes #543.John MacFarlane1-0/+1
2012-06-27ConTeXt writer: don't escape `&`,`^`,`<`,`>`.John MacFarlane2-7/+3
Simplified escapes for `}` and `{` to `\{` and `\}`. Thanks to Aditya Mahajan.
2012-06-27MediaWiki writer: Avoid extra blank lines after sublists.John MacFarlane1-3/+6
Thanks to Gavin Beatty.
2012-06-26Don't escape `_` as `\letterunderscore{}` in ConTeXt.John MacFarlane1-1/+0
2012-06-26Docbook reader: Added support for "bold" emphasis.John MacFarlane1-0/+1
Thanks to mb21.
2012-06-25Don't generate empty H1 after hrule slide breaks.John MacFarlane3-5/+11
We now use a slide-level header with contents [Str "\0"] to mark an hrule break. This avoids creation of an empty H1 in these contexts. Closes #484.
2012-06-25Test for base 4.4.0 instead of 4.5.0 for argument/filename encoding.John MacFarlane2-4/+4
2012-06-24Don't encode/decode file paths if base >= 4.5.John MacFarlane2-9/+33
Prior to base 4.5 (and perhaps earlier - check), filepaths and command line arguments were treated as unencoded lists of bytes, not unicode strings, so we had to work around that by encoding and decoding them. This commit adds CPP checks for base 4.5 that disable the encoding/decoding. Fixes a bug with multilingual filenames when pandoc was compiled with ghc 7.4. Closes #540.
2012-06-08Fixed shadowing warning.John MacFarlane1-1/+1
2012-06-08Biblio: Workaround broken toCapital in citeproc-0.3.4.John MacFarlane1-2/+10
2012-06-05Biblio: Add comma to beginning of bare suffix, e.g. @item1 [50].John MacFarlane1-2/+10
Motivation: @item1 [50] should be as close as possible to [@item1, 50].
2012-06-04Markdown reader: Added cf. and cp. to list of likely abbreviations.John MacFarlane1-1/+1
2012-06-03Fixed `--incremental` behavior for Beamer.John MacFarlane1-1/+1
When `--incremental` is used, lists inside block quotes should appear all at once (as in HTML).
2012-06-01Simplified bullet characters so they work with Word 2007.John MacFarlane1-7/+7
Closes #520.