aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2019-01-07Org reader: allow for case of :minlevel == 0.John MacFarlane1-1/+3
See #5190.
2019-01-07Org reader: handle `minlevel` option differently. (#5190)Brian Leung1-3/+1
When `minlevel` exceeds the original minimum level observed in the file to be included, every heading should be shifted rightward.
2019-01-07TWiki reader: fix performance issue with underscores.John MacFarlane1-1/+3
Underscore emphasis can't cross table cell boundaries, but the parser wasn't respecting this, leading to exponential behavior in documents with table cells containing underscores. This fixes the original sample; it's possible that there are other performance issues involving underscores. Closes #3921.
2019-01-06Add DokuWiki reader (#5108)Alexander2-0/+532
Closes #1792
2019-01-04Use toTableOfContents in Powerpoint writer....John MacFarlane1-16/+3
instead of duplicating code.
2019-01-04RTF writer: use toTableOfContents from T.P.W.Shared.John MacFarlane1-17/+2
2019-01-04Implement --toc in commonmark/gfm writers.John MacFarlane2-3/+14
Closes #5172.
2019-01-04T.P.Writers.Shared - add toTableOfContents (API change).John MacFarlane2-22/+25
This is refactored out from the Markdown writer. IT can be used in other writers to create a generic TOC.
2019-01-02Implement task lists (#5139)Mauro Bieg8-18/+96
Closes #3051
2019-01-02EPUB writer: small fixes to nav.xhtml.John MacFarlane1-0/+1
* Add 'landmarks' id attribute to the landmarks nav. * Replace old default CSS removing numbers from ol.toc li with new rules that match `nav#toc ol, nav#landmarks ol`. * We keep the `toc` class on `ol` for backwards compatibility.
2019-01-02Commonmark writer: fix handling of SoftBreak with `hard_line_breaks`.John MacFarlane1-1/+1
This should be rendered as a space. Closes #5195.
2019-01-01Zimwiki writer: remove automatic colon prefix before internal images (#5183)damien clochard1-6/+2
* FIX #5183 : zimwiki : remove automatic colon prefix before internal images ![](foo.png) should be converted to {{foo.png}} (relative path) ![](/foo.png] should be converted to {{/foo.png}} (absolute path) Therefore the ':' prefix is useless and must be removed. I never used the zimwiki, but i submitted the similar dokuwiki fix. 1. The zimwiki syntax is inspired by dokuwiki 2. The zimwiki documentation does not mention the colon character for images 3. The pandoc zimwiki writer seems to be a copy-paste for the dokuwiki writer If the PR #5184 is applied, I think this one should be applied too.
2019-01-01Dokuwiki writer: remove automatic ':' prefix before internal image links (#5183)damien clochard1-6/+2
* FIX #5183 : remove automatic ':' prefix before internal image links `![](foo.png)` should be converted to `{{foo.png}}` (relative path) `![](/foo.png]` should be converted to `{{/foo.png}}` (absolute path) Therefore the ':' prefix is useless and must be removed. It blocks users from making relative image links. Update tests for DokuWiki Writer : external images
2019-01-01Org reader: fix self-link parsing regressionAlbert Krewinkel1-5/+6
Fixes a regression introduced by the previous commit.
2019-01-01Org reader: fix treatment of links to imagesAlbert Krewinkel2-13/+16
Links with descriptions which are pointing to images are no longer read as inline images, but as proper links. Fixes: #5191
2019-01-01Org reader: hlintAlbert Krewinkel1-2/+2
2018-12-31Remove unused HasHeaderMap (#5175)Alexander7-50/+4
It is updated by some readers, but never actually used.
2018-12-31Simplify/fix reading of `--metadata` values on command line.John MacFarlane1-7/+8
Previously we used HsYAML's decodeStrict to recognize boolean values (treating everything else as a string). This caused problems relating to hvr/HsYAML#7. We now just check for the recognized boolean values `true|True|TRUE|false|False|FALSE`, and avoid using HsYAML. Closes #5177.
2018-12-31Replace read with safeRead (#5186)Mauro Bieg3-13/+18
closes #5180
2018-12-31Allow '-' in filenames for custom lua writers.John MacFarlane1-2/+3
Closes #5187.
2018-12-31Removed obsolete and misleading comment.John MacFarlane1-1/+0
2018-12-28Org writer: preserve line-numbering for example and code blocks.leungbk1-3/+9
2018-12-18Decompress .svgz when converting to "data:" URIAlexander Krotov1-1/+1
Address #5163
2018-12-17LaTeX reader: Support `\DeclareMathOperator`.John MacFarlane1-1/+11
Closes #5149.
2018-12-17Replace read with safeRead. Closes #5162.John MacFarlane3-11/+8
2018-12-17Parsing: use safeRead instead of read.John MacFarlane1-1/+1
2018-12-17HTML reader: handle empty start attribute.John MacFarlane1-4/+2
See #5162.
2018-12-13Man/Ms writers: don't escape `-` as `\-`.John MacFarlane1-1/+0
For discussion see https://groups.google.com/forum/#!msg/pandoc-discuss/B-oiCXcQOVo/WO-BXVpICAAJ The `\-` gets rendered in HTML and PDF as a unicode minus sign.
2018-12-12ICML writer: support custom-styles (#5137)Mauro Bieg1-3/+10
see #2106
2018-12-10Docx: handle level overrides.Jesse Rosenthal1-6/+17
There can be overrides for the definitions of certain levels in numbering definitions. This implements that behavior. Closes: #5134
2018-12-10Docx: add a levelOverride type.Jesse Rosenthal1-3/+20
2018-12-10Docx writer: Make Level into a real type.Jesse Rosenthal2-4/+6
It had previously been an alias for a tuple.
2018-12-10ICML writer: support unnumbered headersmb211-2/+5
closes #5140
2018-12-05RST writer: don't wrap simple table header lines.John MacFarlane1-1/+1
Closes #5128.
2018-12-04Strip out illegal XML characters in escapeXMLString.John MacFarlane1-1/+6
Closes #5119.
2018-12-03Markdown writer: include needed whitespace after HTML figure.John MacFarlane1-1/+1
We use HTML for a figure in markdown dialects that can't represent it natively. Closes #5121.
2018-11-30Fix warnings in Text.Pandoc.Process.John MacFarlane1-2/+5
2018-11-30Text.Pandoc.Process: update pipeProcessAlbert Krewinkel1-31/+60
The implementation of `pipeProcess` was rewritten to fix sporadic failures caused by prematurely closed pipes.
2018-11-29Improve error message for UTF-8 decoding errors.John MacFarlane1-6/+17
Give the filename and the byte offset. Closes #4765.
2018-11-29Add PandocUTF8DecodingError constructor for PandocError.John MacFarlane1-0/+7
[API change]
2018-11-29Man reader: use mapLeft from Shared.John MacFarlane1-6/+1
2018-11-29Changed types of writeJSON and readJSON.John MacFarlane2-11/+10
Previously they were not monadic; we now have them run in an instance of the Pandoc monad, like the other readers and writers. [API change]
2018-11-29LaTeX reader: Support \inputminted (closes #5103).John MacFarlane1-2/+21
2018-11-27MediaWiki writer: fix caption, use 'thumb' instead of 'frame'.John MacFarlane1-17/+33
Captions used to have the word 'caption' prepended; this has been removed. Also, 'thumb' is used instead of 'frame' to allow images to be resized. Closes #5105.
2018-11-25Fix parsing of citations and quotes after parentheses.John MacFarlane1-6/+2
Starting with pandoc 2.4, citations and quoted inlines were no longer recognized after parentheses. This is because of commit 9b0bd4ec6f5c9125efb3e36232e6d1f6ac08a728, which is reverted here. The point of that commit was to allow relocation of soft line breaks to before an abbreviation, so that a nonbreaking space could be added after the abbreviation. Now we simply leave the soft line break in place, even though this means that we won't get a nonbreaking space after "Mr." at the end of a line (and in LaTeX this may result in a longer intersentential space). Those who care about this issue should take care not to end lines with an abbreviation, or to insert nonbreaking spaces manually. Closes #5099.
2018-11-24EPUB writer: handle calibre metadata.John MacFarlane1-1/+22
Nodes of the form <meta name="calibre:series" content="Classics on War and Politics"/> are now included from an epub XML metadata file. You can also include this information in your YAML metadata, like so: calibre: series: Classics on War and Policitics In addition, ibooks-specific metadata can now be included via an XML file. (Previously, it could only be included via YAML metadata, see #2693.) Closes #5098.
2018-11-25MediaWiki reader internals: remove unnecessary bindingAlexander Krotov1-2/+1
2018-11-22Hlint suggestions.John MacFarlane5-30/+26
2018-11-22RTF writer: fix warnings for skipped raw inlines.John MacFarlane1-1/+1
2018-11-22OpenDocument writer: small amendment to #5095.John MacFarlane1-1/+1
Level one lists should start at 0.5in rather than 0.75in. (At least this is how LibreOffice behaves for me with a new document.)