aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
AgeCommit message (Collapse)AuthorFilesLines
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
2018-12-31Replace read with safeRead (#5186)Mauro Bieg2-10/+12
closes #5180
2018-12-28Org writer: preserve line-numbering for example and code blocks.leungbk1-3/+9
2018-12-12ICML writer: support custom-styles (#5137)Mauro Bieg1-3/+10
see #2106
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-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-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-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-22Hlint suggestions.John MacFarlane2-25/+24
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.)
2018-11-22Merge pull request #5095 from pyssling/masterJohn MacFarlane1-2/+2
ODT writer: Fix list indentation
2018-11-22ODT writer: Fix list indentationNils Carlson1-2/+2
Previously lists were indented by half an inch on the first line for each level of nesting. This resulted in lists that looked like this: 1. The first line of the list point text the second line of the same list point. Fix this and bring style into line with libreoffice standards: 1. The first line of the list point text the second line of the list point text.
2018-11-21HTML writer: use plain `"` instead of `&quot;` outside of attributes.John MacFarlane1-1/+2
2018-11-20Docx writer: Fix bookmarks to headers with long titles.John MacFarlane1-4/+18
Word has a 40 character limit for bookmark names. In addition, bookmarks must begin with a letter. Since pandoc's auto-generated identifiers may not respect these constraints, some internal links did not work. With this change, pandoc uses a bookmark name based on the SHA1 hash of the identifier when the identifier isn't a legal bookmark name. Closes #5091.
2018-11-19Fix compiler warning.John MacFarlane1-1/+1
2018-11-19AsciiDoc writer: improve ordered lists.John MacFarlane1-32/+27
Use `.`+ as list markers to support nested ordered lists. Closes #5087. Support list number styles. Closes #5089.
2018-11-19For bibliography match Div with id 'refs', not class 'references'.John MacFarlane4-8/+8
This was a mismatch between pandoc's docx, epub, latex, and markdown writers and the behavior of pandoc-citeproc, which actually looks for a div with id 'refs' rather than one with class 'references'.
2018-11-15Asciidoc writer: Render Spans using `[#id .class]#contents#`.John MacFarlane1-3/+7
See #5080.
2018-11-15Muse writer: output tables as grid tables if they have multi-line cellsAlexander Krotov1-1/+13
2018-11-14Muse writer: indent simple tables only on the top levelAlexander Krotov1-4/+5
2018-11-14Muse writer: simplify "simpleTable"Alexander Krotov1-7/+4
2018-11-14Muse writer: remove outdated commentsAlexander Krotov1-3/+0
2018-11-13Muse writer: output tables with one column as grid tablesAlexander Krotov1-1/+1
2018-11-12LaTeX writer: don't emit `[<+->]` unless beamer output,John MacFarlane1-2/+3
even if `writerIncremental` is True. See #5072.
2018-11-11Text.Pandoc.Shared: add parameter to uniqueIdent, inlineListToIdentifier.John MacFarlane7-10/+13
The parameter is Extensions. This allows these functions to be sensitive to the settings of `Ext_gfm_auto_identifiers` and `Ext_ascii_identifiers`. This allows us to use `uniqueIdent` in the CommonMark reader, replacing some custom code. It also means that `gfm_auto_identifiers` can now be used in all formats. Semantically, `gfm_auto_identifiers` is now a modifier of `auto_identifiers`; for identifiers to be set, `auto_identifiers` must be turned on, and then the type of identifier produced depends on `gfm_auto_identifiers` and `ascii_identifiers` are set. Closes #5057.
2018-11-07Merge pull request #5054 from lierdakil/docx-image-bookmarksJohn MacFarlane1-26/+17
Docx image and code block bookmarks
2018-11-07Texinfo writer: add blank line before `@menu` section.John MacFarlane1-1/+2
Closes #5055.
2018-11-07[Docx Writer] Add bookmarks to code blocksNikolay Yakimov1-2/+2
2018-11-07[Docx Writer] Add bookmarks to imagesNikolay Yakimov1-2/+2
2018-11-07[Docx Writer] Refactor common bookmark creation code into a functionNikolay Yakimov1-22/+13
2018-11-07ICML writer: fix missing type signature warningAlbert Krewinkel1-3/+4
2018-11-06ICML writer: consolidate adjacent strings, inc. spaces.John MacFarlane1-15/+15
This avoids chunking up the output unnecessarily into separate elements.
2018-11-06hlint Muse writerAlexander Krotov1-1/+1
2018-11-05CommonMark writer: make sure --ascii affects quotes, super/subscript.John MacFarlane1-6/+12
2018-11-05CommonMark writer: respect --ascii (#5043)quasicomputational1-1/+18
2018-11-05Muse writer: add support for --reference-location=Alexander Krotov1-6/+44
Address #107
2018-11-03AsciiDoc writer: prevent illegal nestings.John MacFarlane1-1/+9
In asciidoc you can only have level n+1 headers directly under level n headers.
2018-11-03AsciiDoc writer: use single-line section headers.John MacFarlane1-29/+9
The underline style is now deprecated. Previously `--atx-headers` would enable the single-line style; now the single-line style is always used. Closes #5038.
2018-11-01Change 'groff' -> 'roff'.John MacFarlane3-9/+9
These formats (man, ms) are not groff-specific.
2018-11-01Implement --ascii for Markdown writer.John MacFarlane1-23/+35
2018-11-01HTML writer: use character entities references when possible for HTML5.John MacFarlane1-2/+8
2018-11-01LaTeX writer: remove unused local bindAlexander Krotov1-1/+1
2018-10-31ZimWiki writer: number ordered list items sequentially...John MacFarlane1-28/+24
rather than always with 1.
2018-10-31LaTeX writer: add newline if math ends in a comment.John MacFarlane1-2/+12
This prevents the closing delimiter from being swalled up in the comment. Closes #4880.
2018-10-29ZimWiki writer: remove extra indentation on lists.John MacFarlane1-8/+8
Closes #4963.
2018-10-28EPUB writer: use metadata field `css` instead of `stylesheet`mb211-3/+4
closes #4990
2018-10-28T.P.Lua: expose more useful internals (API change)Albert Krewinkel1-3/+2
Newly exported from Text.Pandoc.Lua: - `runFilterFile` to run a Lua filter from file; - data type `Global` and its constructors; and - `setGlobals` to add globals to a Lua environment. This module also contains `Pushable` and `Peekable` instances required to get pandoc's data types to and from Lua. Low-level Lua operation remain hidden in Text.Pandoc.Lua.