1# Revision history for pandoc
3## pandoc 2.11.3 (2020-12-17)
5 * With `--bibliography` (or `bibliography` in metadata), a
6 URL may now be provided, and pandoc will fetch the resource.
7 In addition, if a file path is provided and it is not
8 found relative to the working directory, the resource
9 path will be searched (#6940).
11 * Add `sourcepos` extension for `commonmark`, `gfm`, `commonmark_x`
12 (#4565). With the `sourcepos` extension set set, `data-pos`
13 attributes are added to the AST by the commonmark reader. No other
14 readers are affected. The `data-pos` attributes are put on elements
15 that accept attributes; for other elements, an enlosing Div or Span
16 is added to hold the attributes.
18 * Change extensions for `commonmark_x`: replace `auto_identifiers`
19 with `gfm_auto_identifiers` (#6863). `commonmark_x` never actually
20 supported `auto_identifiers` (it didn't do anything), because the
21 underlying library implements gfm-style identifiers only. Attempts
22 to add the `auto_identifiers` extension to `commonmark` will now
27 + Split module into several submodules (Albert Krewinkel). Reducing
28 module size should reduce memory use during compilation.
29 + Support advanced table features (Albert Krewinkel):
30 block level content in captions, row and colspans,
31 body headers, row head columns, footers, attributes.
32 + Disable round-trip testing for tables. Information for cell
33 alignment in a column is not preserved during round-trips (Albert
35 + Allow finer grained options for tag omission (Albert Krewinkel).
36 + Simplify list attribute handling (Albert Krewinkel).
37 + Pay attention to `lang` attributes on body element (#6938).
38 These (as well as `lang` attributes on the html element) should update
40 + Retain attribute prefixes and avoid duplicates (#6938).
41 Previously we stripped attribute prefixes, reading `xml:lang` as
42 `lang` for example. This resulted in two duplicate `lang`
43 attributes when `xml:lang` and `lang` were both used. This commit
44 causes the prefixes to be retained, and also avoids invald
50 + Set input name to `""` to avoid clutter in sourcepos output.
54 + Parse `#+LANGUAGE` into `lang` metadata field (#6845, Albert
56 + Preserve targets of spurious links (#6916, Albert
57 Krewinkel). Links with (internal) targets that the reader doesn't
58 know about are converted into emphasized text. Information on the
59 link target is now preserved by wrapping the text in a Span of class
60 `spurious-link`, with an attribute `target` set to the link's
61 original target. This allows to recover and fix broken or unknown
66 + Table text width support (#6791, Nils Carlson).
67 Table width in relation to text width is not natively supported
68 by docbook but is by the docbook `fo` stylesheets through an XML
69 processing instruction, `<?dbfo table-width="50%"?>`.
73 + Improve parsing of command options (#6869, #6873).
74 In cases where we run into trouble parsing inlines til the
75 closing `]`, e.g. quotes, we return a plain string with the
76 option contents. Previously we mistakenly included the brackets
78 + Preserve center environment (#6852, Igor Pashev).
79 The contents of the `center` environment are put in a `Div`
81 + Don't parse `\rule` with width 0 as horizontal rule. These are
82 sometimes used as spacers in LaTeX.
83 + Don't apply theorem default styling to a figure inside (#6925).
84 If we put an image in italics, then when rendering to Markdown
85 we no longer get an implicit figure.
89 + Handle unknown interwiki links better (#6932).
90 DokuWiki lets the user define his own Interwiki links. Previously
91 pandoc reacted to these by emitting a google search link, which is
92 not helpful. Instead, we now just emit the full URL including the
93 wikilink prefix, e.g. `faquk>FAQ-mathml`. This at least gives users
94 the ability to modify the links using filters.
98 + Properly handle boolean values in writing YAML metadata (#6388).
99 + Ensure that a new csl-block begins on a new line (#6921).
100 This just looks better and doesn't affect the semantics.
104 + Better image handling (#6948). An image alone in its paragraph
105 (but not a figure) is now rendered as an independent image, with an
106 `alt` attribute if a description is supplied. An inline image that
107 is not alone in its paragraph will be rendered, as before, using a
108 substitution. Such an image cannot have a "center", "left", or
109 "right" alignment, so the classes `align-center`, `align-left`, or
110 `align-right` are ignored. However, `align-top`, `align-middle`,
111 `align-bottom` will generate a corresponding `align` attribute.
115 + Keep raw openxml strings verbatim (#6933, Albert Krewinkel).
116 + Use Content instead of Element. This allows us to inject
117 raw OpenXML into the document without reparsing it into an
118 Element, which is necessary if you want to inject an open
120 + Fix bullets/lists indentation, so that the first level is slightly
121 indented to the right instead of right on the margin (cholonam).
122 + Support bold and italic in "complex script" (#6911).
123 Previously bold and italics didn't work properly in LTR
124 text. This commit causes the w:bCs and w:iCs attributes
125 to be used, in addition to w:b and w:i, for bold and
126 italics respectively.
130 + Fix image bounding box for custom widths/heighta (Mauro Bieg, #6936).
134 + Improve table spacing (#6842, #6860).
135 Remove the `\strut` that was added at the end of minipage
136 environments in cells. Replace `\tabularnewline` with
138 + Improve calculation of column spacing (#6883).
139 + Extract table handling into separate module (Albert Krewinkel).
140 + Fix bug with nested `csl-` display Spans (#6921).
141 + Improve longtable output (#6883). Don't create minipages for
142 regular paragraphs. Put width and alignment information in the
143 longtable column descriptors.
145 * OpenDocument writer:
147 + Support for table width as a percentage of text width
148 (#6792, Nils Carson).
149 + Implement Div and Span ident support (#6755, Nils Carson).
150 Spans and Divs containing an ident in the Attr will become bookmarks
151 or sections with idents in OpenDocument format.
152 + Add two extensions, `xrefs_name` and `xrefs_number` (#6774, Nils
153 Carlson). Links to headings, figures and tables inside the
154 document are substituted with cross-references that will use the
155 name or caption of the referenced item for `xrefs_name` or the
156 number for `xrefs_number`. For the `xrefs_number` to be useful
157 heading numbers must be enabled in the generated document and
158 table and figure captions must be enabled using for example the
159 `native_numbering` extension. In order for numbers and reference
160 text to be updated the generated document must be refreshed.
164 + Support advanced table features (Albert Krewinkel).
165 + Support author affiliations (#6687, Albert Krewinkel).
169 + Use correct id attribute consistently (Jan Tojnar).
170 DocBook5 should always use `xml:id` instead of `id`.
171 + Handle admonition titles better (Jan Tojnar).
172 Docbook reader produces a `Div` with `title` class for `<title>`
173 element within an “admonition” element. Markdown writer then turns
174 this into a fenced div with `title` class attribute. Since fenced
175 divs are block elements, their content is recognized as a
176 paragraph by the Markdown reader. This is an issue for Docbook
177 writer because it would produce an invalid DocBook document from
178 such AST – the `<title>` element can only contain “inline”
179 elements. Handle this special case separately by unwrapping
180 the paragraph before creating the `<title>` element.
181 + Add XML namespaces to top-level elements (#6923, Jan Tojnar).
182 Previously, we only added `xmlns` attributes to chapter
183 elements, even when running with `--top-level-division=section`.
184 These namespaces are now added to part and section elements too,
185 when they are the selected top-level divisions.
186 We do not need to add namespaces to documents produced with
187 `--standalone` flag, since those will already have xmlns attribute on
188 the root element in the template.
192 + Fix handling of nested `csl-` display spans (#6921).
193 Previously inner Spans used to represent CSL display attributes were
194 not rendered as div tags as intended.
198 + Include title page in landmarks (#6919).
199 Note that the toc is also included if `--toc` is specified.
200 + Add frontmatter type on body element for nav.xhtml (#6918).
202 * EPUB templates: use preserveAspectRatio="xMidYMid" for cover image (#6895,
203 Shin Sang-jae). This change affects both the epub2 and the epub3
204 templates. It avoids distortion of the cover image by requiring that the
205 aspect ratio be preserved.
209 + Include `csquotes` package if `csquotes` variable set.
210 + Put back `amssymb`. We need it for checkboxes in todo lists,
211 and maybe for other things. In this location it seems compatible
212 with the cases that prompted #6469 and PR #6762.
213 + Disable language-specific shorthands in babel (#6817, #6887).
214 Babel defines "shorthands" for some languages, and these can
215 produce unexpected results. For example, in Spanish, `1.22`
216 gets rendered as `122`, and `et~al.` as `etal`.
217 One would think that babel's `shorthands=off` option (which
218 we were using) would disable these, but it doesn't. So we
219 remove `shorthands=off` and add some code that redefines
220 the shorthands macro. Eventually this will be fixed in babel,
221 I hope, and we can revert to something simpler.
223 * JATS template: allow array of persistent institute ids in `pid`
226 * Text.Pandoc.Parsing: minor code and efficiency improvements.
228 * Text.Pandoc.Extension:
230 + Add `Ext_sourcepos` constructor for `Extension` [API change].
231 + Add `Ext_xrefs_name` and `Ext_xrefs_number` constructors for
232 `Extension` (Nils Carson) [API change].
234 * Text.Pandoc.Citeproc:
236 + Fix truncation of `[Citation]` list in `Cite` inside footnotes (#6890).
237 This affected author-in-text citations in footnotes. It didn't cause
238 problems for the printed output, but for filters that expected the
239 citation id and other information.
240 + Allow the use of both inline and external references (#6951),
241 as with pandoc-citeproc. References defined in the document's
242 metadata take priority over references with the same id defined in
243 an external bibliography.
244 + Use `fetchItem` to get external bibliography (#6940).
245 + Ensure that BCP47 lang codes can be used. We ignore the variants
246 and just use the base lang code and country code when passing off
248 + Citeproc BibTeX parser: revert change in `getRawField`
249 which was made (for reasons forgotten) when transferring
250 this code from pandoc-citeproc. The change led to `--` in
251 URLs being interpreted as en-dashes, which is unwanted (#6874).
253 * Text.Pandoc.ImageSize:
255 + Default to DPI 72 if the format specifies DPI of 0 (#6880).
256 This shouldn't happen, in general, but it can happen with
257 JPEGs that don't conform to the spec. Having a DPI of 0
258 will blow up size calculations (division by 0).
259 + ImageSize: use JuicyPixels to determine size for png, jpeg, and
260 gif, instead of doing our own binary parsing (#6936). This
261 gives more reliable results.
265 + Remove `foldOrElse` (internal module) (Albert Krewinkel).
267 * Use skylighting 0.10.2 (#6625).
269 * Use citeproc 0.3. This fixes issues with references with
270 duplicate ids (jgm/citeproc#36).
272 * Use doctemplates 0.9. This fixes issues with boolean
273 metadata values in the Markdown writer (#6388)
274 and in `meta-json` (#6650). It also fixes
275 issues with nested for loops in templates.
277 * Add translations zh-Hans.yaml and zh-Hant.yaml (#6904, #6909,
278 Kolen Cheung, taotieren).
280 * Add tests: True to cabal.project.
281 This fixes some CI failures for cabal.
283 * Normalize test/tables/*.native (#6888, Kolen Cheung).
285 * Move executable to `app` directory to avoid problems with cabal repl.
287 * CONTRIBUTING: add section "How can I help?" (#6892, Albert Krewinkel).
288 Also adds a paragraph aimed at highlighting the importance of feature
291 * MANUAL: Document that --number-sections works in `ms` (#6935).
294## pandoc 2.11.2 (2020-11-19)
296 * Default to using ATX (`##`-style) headings for Markdown output
297 (#6662, Aner Lucero). Previously we used Setext (underlined) headings
298 by default for levels 1--2.
300 * Add option `--markdown-headings=atx|setext`, and deprecate
301 `--atx-headers` (#6662, Aner Lucero).
303 * Support `markdown-headings` in defaults files.
305 * Fix corner case in YAML metadata parsing (#6823). Previously YAML
306 metadata would sometimes not get recognized if a field ended with a
307 newline followed by spaces.
309 * `--self-contained`: increase coverage (#6854).
310 Previously we only self-contained attributes for certain tag names
311 (`img`, `embed`, `video`, `input`, `audio`, `source`, `track`,
312 `section`). Now we self-contain any occurrence of `src`,
313 `data-src`, `poster`, or `data-background-image`, on any tag; and
314 also `href` on `link` tags.
318 + Fix detection of locators following in-text citations.
319 Prevously, if we had `@foo [p. 33; @bar]`, the `p. 33` would be
320 incorrectly parsed as a prefix of `@bar` rather than a suffix of
322 + Improve period suppression algorithm for citations in notes
323 in note citation styles (#6835).
324 + Don't increment `stateNoteNumber` for example list references.
325 This helps with #6836 (a bug in which example list references
326 disturb calculation of citation note number and affect when
327 `ibid` is triggered).
331 + Move `getNextNumber` from Readers.LaTeX to Readers.LaTeX.Parsing.
332 + Fix negative numbers in siunitx commands. A change in pandoc 2.11
333 broke negative numbers, e.g. `\SI{-33}{\celcius}` or `\num{-3}`.
334 This fixes the regression.
336 * DocBook reader: drop period in formalpara title
337 and put it in a div with class `formalpara-title`, so that
338 people can reformat with filters (#6562).
340 * Man reader: improve handling of `.IP` (#6858). We now better handle
341 `.IP` when it is used with non-bullet, non-numbered lists, creating a
342 definition list. We also skip blank lines like groff itself.
344 * Bibtex reader: fall back on `en-US` if locale for LANG not found.
345 This reproduces earlier pandoc-citeproc behavior (jgm/citeproc#26).
349 + Wrap all tables (Albert Krewinkel).
350 All `<table>` elements are put inside `<table-wrap>` elements, as the
351 former are not valid as immediate child elements of `<body>`.
352 + Move Table handling to separate module (Albert Krewinkel).
353 Adds two new unexported modules:
354 Text.Pandoc.Writers.JATS.Types, Text.Pandoc.Writers.JATS.Table.
358 + Replace org #+KEYWORDS with #+keywords (TEC).
359 As of ~2 years ago, lower case keywords became the standard (though
360 they are handled case insensitive, as always).
361 + Update org supported languages and identifiers according to the
362 current list contained in
363 <https://orgmode.org/worg/org-contrib/babel/languages/index.html>
366 * Only use `filterIpynbOutput` if input format is ipynb (#6841).
367 Before this change content could go missing from divs with class
368 `output`, even when non-ipynb was being converted.
370 * When checking reader/writer name, check base name now that we permit
371 extensions on formats other than markdown.
373 * Text.Pandoc.PDF: Fix `changePathSeparators` for Windows (#6173).
374 Previously a path beginning with a drive, like `C:\foo\bar`, was
375 translated to `C:\/foo/bar`, which caused problems.
376 With this fix, the backslashes are removed.
378 * Text.Pandoc.Logging: Add constructor `ATXHeadingInLHS` constructor
379 to `LogMessage` [API change].
381 * Fix error that is given when people specify `doc` output (#6834,
384 * LaTeX template: add a `\break` after parbox in `CSLRightInline`.
385 This should fix spacing problems between entries with numeric styles.
386 Also fix number of params on `CSLReferences`.
388 * reveal.js template: Put quotes around `controlsLayout`,
389 `controlsBackArrows`, and `display`, since these require strings.
390 Add `showSlideNumber`, `hashOneBasedIndex`, `pause`.
392 * Use citeproc 0.2. This fixes a bug with title case around parentheses.
394 * pandoc.cabal: remove 'static' flag.
395 This isn't really necessary and can be misleading (e.g. on macOS,
396 where a fully static build isn't possible). cabal's new option
397 `--enable-executable-static` does the same. On stack you can add
398 something like this to the options for your executable in package.yaml:
400 ld-options: -static -pthread
402 * Remove obsolete bibutils flag setting in `linux/make_artifacts.sh`.
406 + Correct `link-citation` -> `link-citations`.
407 + Add a sentence about `pagetitle` for HTML (#6843, Alex Toldaiev).
409 * INSTALL.md: Remove references to `pandoc-citeproc` (#6857).
411 * CONTRIBUTING: describe hlint and how it's used (#6840, Albert
414## pandoc 2.11.1.1 (2020-11-07)
416 * Citeproc: improve punctuation in in-text note citations (#6813).
417 Previously in-text note citations inside a footnote would sometimes have
418 the final period stripped, even if it was needed (e.g. on the end of
421 * Use citeproc 0.1.1.1. This improves the decision about when
422 to use `ibid` in cases where citations are used inside
425 * Support `nocase` spans for `csljson` output.
427 * Require latest commonmark, commonmark-extensions.
428 This fixes a bug with `autolink_bare_uris` and commonmark.
430 * LaTeX reader: better handling of `\\` inside math in table cells (#6811).
432 * DokuWiki writer: translate language names for code elements
433 and improve whitespace (#6807).
435 * MediaWiki writer: use `syntaxhighlight` tag instead of deprecated
436 `source` for highlighted code (#6810). Also support `startFrom`
437 attribute and `numberLines`.
439 * Lint code in PRs and when committing to master (#6790,
442 * doc/filters.md: describe technical details of filter invocations (#6815,
446## pandoc 2.11.1 (2020-11-03)
448 * DocBook Reader: fix duplicate bibliography bug (#6773, Nils Carlson).
452 + Parse contents of iframes (#6770).
453 + Parse inline svg as image unless `raw_html` is set in the reader (in
454 which case the svg is passed through as raw HTML) (#6770).
458 + Fix bug parsing macro arguments (#6796). If `\cL` is
459 defined as `\mathcal{L}`, and `\til` as `\tilde{#1}`, then
460 `\til\cL` should expand to `\tilde{\mathcal{L}}`, but
461 pandoc was expanding it to `\tilde\mathcal{L}`. This is
462 fixed by parsing the arguments in "verbatim mode" when the
463 macro expands arguments at the point of use.
464 + Properly support optional (cite) argument for
465 `\blockquote` from `csquotes` (#6802).
467 * LaTeX writer: Improved calculation of table column widths.
468 We now have LaTeX do the calculation, using `\tabcolsep`.
469 So we should now have accurate relative column widths no
470 matter what the text width. The default template has been modified to load
471 the calc package if tables are used.
473 * HTML writer: Fix duplicate "class" attribute for table
476 * Text.Pandoc.Filter: allow shorter YAML representation of Citeproc
477 (Albert Krewinkel). The map-based YAML representation of filters expects
478 `type` and `path` fields. The path field had to be present for all filter
479 types, but is not used for citeproc filters. The field can now be omitted
480 when type is "citeproc", as described in the MANUAL.
482 * Text.Pandoc.Error: Add `PandocBibliographyError` constructor
483 for `PandocError` [API change]. This ensures that bibliography parsing
484 errors generate messages that include the bibliography file name --
485 otherwise it can be quite mysterious where it is coming from.
487 * Citeproc: properly handle `csl` field with `data:` URI (#6783).
488 This is used with the JATS writer, so this fixes a regression
489 in pandoc 2.11 with JATS output and citeproc.
491 * Allow `citation-abbreviations` in defaults file.
493 * JATS templates: ensure `jats_publishing` output is valid
496 * LaTeX template: Fix `CSLRightInline`, so that it does not
497 run over the right margin.
499 * HTML template: default CSS tweaks (Mauro Bieg and John
502 - Fix margin before codeblock
503 - Add `monobackgroundcolor` variable, making the background color
504 and padding of code optional.
505 - Ensure that backgrounds from highlighting styles take precedence over
507 - Remove list markers from TOC
508 - Add margin-bottom where needed
509 - Remove italics from blockquote styling
510 - Change borders and spacing in tables to be more consistent with other
513 - Set font-size for print media to 12pt.
514 - Reduce interline space.
515 - Reduce interparagraph space.
517 - Remove the special `line-height: 1` for table cells.
518 - Remove the special line-height for pre.
519 - Ensure that there is a bit more space before a heading
521 - Slightly reduced space after title header.
522 - Add CSS example to MANUAL
524 * man template: Change comment that triggers `tbl` from
525 `.\"t` to `'\" t`, as specified in groff_man(7) (#6803).
527 * Use latest commonmark, commonmark-extensions.
528 This fixes a bug with nested blocks in footnotes with the
529 `footnote` extension to `commonmark`. See jgm/commonmark-hs#63.
531 * Citeproc: use comma for in-text citations inside footnotes.
532 When an author-in-text citation like `@foo` occurs in a footnote,
533 we now render it with: `AUTHOR NAME + COMMA + SPACE + REST`.
534 Previously we rendered: `AUTHOR NAME + SPACE + "(" + REST + ")"`.
535 This gives better results. Note that normal citations are still
536 rendered in parentheses.
538 * Use latest citeproc:
540 + citeproc no longer capitalizes notes, so we do it
541 in pandoc when appropriate.
544 * Clarify manual on `--track-changes` (#6801).
546 * Add `doc/jats.md` to document pandoc's handling of JATS
547 (#6794, Albert Krewinkel).
549 * Fix code example in lua-filters.md (#6795).
551## pandoc 2.11.0.4 (2020-10-21)
553 * Commonmark writer: fix regression with fenced divs (#6768).
554 Starting with 2.10.1, fenced divs no longer render with
555 HTML div tags in commonmark output. This is a regression
556 due to our transition from cmark-gfm. This commit fixes it.
558 * Use released version of citeproc. (This fixes a mis-step
559 in the 2.11.0.3 release, which is now deprecated.)
561 * Use latest sylighting, with support for `groovy`.
563 * Document that --html-q-tags requires the smart extension on the reader
566## pandoc 2.11.0.3 (2020-10-20)
568 * Use latest citeproc (closes #6765). This fixes a problem with
569 author-in-text citations for references including both an author
570 and an editor. Previously, both were included in the text, but only
571 the author should be.
573 * With `--citeproc`, ensure that the final period is removed when
574 citations that occur in notes in note-based styles get put in
575 parentheses. See jgm/citeproc#20.
577 * Normalize rewritten image paths with `--extract-media` (#6761).
578 This change will avoid mixed paths like this one when
579 `--extract-media` is used with a Word file:
580 ``. Instead we'll get
581 ``.
583 * Modify `--version` output. Use space more efficiently and report the
584 citeproc and ipynb versions, along with skylighting, texmath, and
585 pandoc-types. Drop the word "default" before "user data directory."
587 * DocBook reader: bibliomisc and anchor support (#6754, Nils Carlson).
588 Also ensure that bibliodiv without a title no longer results in
591 * ConTeXt template: adds `\setupinterlinespace` to fonts larger
592 than normal (#6763, Denis Maier).
594 * LaTeX template: Do not load amssymb if not needed (#6469, Angelo Peronio).
595 See <https://tex.stackexchange.com/a/549938>.
597 * Relax upper bound on hslua, allow hslua-1.3.* (Albert Krewinkel).
601 + Improve explanation of "indent" variable (#6767, Cyrus Yip).
602 + Remove org from list of input formats supporting raw_tex (#6753,
606## pandoc 2.11.0.2 (2020-10-15)
608 * Fix handling of `xdata` in bibtex/biblatex bibliographies (#6752).
610 * Fix some small typos in the API documentation (#6751, Michael Hoffmann).
612 * Require citeproc 0.1.0.2. This fixes a regression from pandoc-citeproc
613 involving spacing between components of a reference in certain styles
616 * Fix typos in comments, doc strings, error messages, and tests
617 (Albert Krewinkel, #6738).
619## pandoc 2.11.0.1 (2020-10-13)
621 * LaTeX reader: support more acronym commands (#6746):
622 `\acl`, `\aclp`, and capitalized versions of already
625 * Commonmark reader: add `pipe_table` extension *after* defaults (#6739).
626 Otherwise we get bad results for non-table, non-paragraph
627 lines containing pipe characters.
629 * Markdown writer: Fix autolinks rendering for gfm (#6740).
630 Previously, autolinks rendered as raw HTML, due to the
631 `class="uri"` added by pandoc's markdown reader.
635 + Escape option values in lstlistings environment (#6742).
636 + Fix handling of `lang` `pt-BR` (#2953). For polyglossia we now
637 use `\setmainlanguage[variant=brazilian]{portuguese}` and for babel
638 `\usepackage[shorthands=off,main=brazilian]{babel}`.
640 * Depend on latest citeproc (0.1.0.1).
642 + This fixes the citation number issue with ieee.csl and other
643 styles that do not explicitly sort bibliographies (#6741). (Pandoc
644 was numbering them by their order in the bibliography file,
645 rather than the order cited, as required by the CSL spec.)
646 + Fixes groupin/collapsing with citation items with prefixes.
648 * default.latex: fix `CSLReference` macro definition.
650 * Fix MANUAL.txt CSL JSON conversion examples.
652 * Fix spelling errors in changelog, MANUAL.txt, `doc/org.md` (#6738).
655## pandoc 2.11 (2020-10-11)
657 * Add `--citeproc` (`-C`) option to trigger built-in citation processing.
658 It is no longer necessary to use the external `pandoc-citeproc`
659 filter. `--citeproc` behaves like a filter and can be positioned
660 relative to other filters as they appear on the command line.
662 The new built-in citation processing uses the citeproc library,
663 a reimplementation of CSL citation processing that fixes many
664 of the shortcomings of pandoc-citeproc. In general, citation
665 processing should work much the same as it did with pandoc-citeproc,
666 but with greater fidelity to CSL styles and better performance.
667 (The tests from the pandoc-citeproc package have been carried
668 over to pandoc.) The following differences should be noted:
670 - At this point, only some of the writers (HTML, ms, LaTeX) properly
671 interpret CSL display styles. You should get decent output in
672 all formats (at least as good as with pandoc-citeproc), but
673 indentation and block-alignment may not be right.
675 - pandoc-citeproc searches the `~/.csl` directory for `.csl`
676 styles. Pandoc instead searches the `csl` subdirectory of
677 the pandoc user data directory (e.g., `~/.pandoc/csl` or
678 `~/.local/share/pandoc/csl`). Users who already keep
679 CSL styles in `~/.csl` may find it convenient to add a
682 - Some of the bibliography formats supported by pandoc-citeproc (via
683 hs-bibutils) are no longer supported: Copac, EndNote,
684 ISI, MEDLINE, MODS, and RIS. If you use one of these formats,
685 you may use the `bibutils` utility to convert to BibLaTeX.
686 We now support only BibTeX, BibLaTeX, CSL JSON,
687 and pandoc's YAML/Markdown analogue of CSL JSON.
689 - pandoc-citeproc would always retrieve the independent parent
690 of a dependent style by doing an HTTP request. pandoc will
691 now first seek the independent parent locally (in the resource
692 path or in the `csl` subdirectory of the pandoc user data
693 directory) before resorting to HTTP. In addition, you may
694 omit the `.csl` extension, e.g. `--csl zoology`.
696 - Using the `--bibliography` option (or including
697 `bibliography` in YAML metadata) no longer triggers
698 citation processing implicitly: one must always use the
699 `--citeproc` option if citation processing is wanted.
701 * Add `csljson` as and input and output format. This allows pandoc
702 to convert between `csljson` and other bibliography formats
703 (e.g. `-f csljson -t markdown -s` or `-f bibtex -t csljson`),
704 and to generate formatted versions of CSL JSON bibliographies
705 (e.g., `pandoc -f csljson --citeproc pl.json -o pl.pdf`).
707 * Added `bibtex`, `biblatex` as input formats. This allows pandoc
708 to convert between BibLaTeX and BibTeX and other bibliography formats,
709 and to generated formatted versions of BibTeX/BibLaTeX bibliographies
710 (e.g., `pandoc -f biblatex --citeproc pl.bib -o pl.pdf`).
712 * Raise informative errors when YAML metadata parsing fails (#6730).
713 Previously the command would succeed, returning empty metadata,
714 with no errors or warnings.
716 * Sort languages in `--list-highlight-languages` output (#6718,
717 Albert Krewinkel). Languages were previously sorted by their
718 long name, which leads to unexpected results).
720 * Add CSS to default HTML template (#6601, Mauro Bieg). This
721 greatly improves the default typography in pandoc's HTML
722 output. The CSS is sensitive to a number of variables
723 (e.g. `mainfont`, `fontsize`, `linestretch`): see the manual for
724 details. To restore the earlier, more spartan output, you can
725 disable this with `-M document-css=false`.
727 * Support `--toc-depth` option for ODT writer (#6696, niszet).
729 * Fix issues with Windows UNC paths with some options (#5127).
731 * Remove `fenced_code_blocks` and `backtick_code_blocks` from allowed
732 `commonmark` and `gfm` extensions. These shouldn't really be counted
733 as extensions, because they can't be disabled in commonmark.
734 Adjust markdown writer to check for the commonmark variant in addition
737 * Add these extensions to `gfm` and `commonmark`:
738 `fenced_code_blocks`, `backtick_code_blocks`, `fenced_code_attributes`.
739 These can't really be disabled in the reader, but they need to be enabled
740 in the writer or we just get indented code.
742 * Make sure proper set of extensions is recognized for `commonmark_x`.
744 * Allow `gfm_auto_identifiers`, `ascii_identifiers` extensions for `docx`.
748 + Add `Maybe FilePath` parameter to `yamlToMeta` [API change].
749 + Export `yamlToRefs` [API change], a version of `yamlToMeta`
750 specialized to references.
751 + Set `citationNoteNum` accurately in citations.
752 + Revise abbreviation support. Don't insert a nonbreaking space after a
753 potential abbreviation if it comes right before a note or citation.
754 This causes problems for citeproc's moving of note citations.
758 + Support missing siunitx commands (#6658).
759 + Support `squared`, `cubed`, `tothe` in siunitx (#6657).
760 + Improved uncertainty handling in slunitx.
761 + Factored out siunitx stuff into separate unexposed module.
762 + Fix improper empty cell filtering (#6689, Christian Despres).
763 + Fix parsing of "show name" in `\newtheorem` (#6734).
764 Previously we were just treating it as a string and
765 ignoring accents and formatting.
766 + Prevent wrong nesting of `\multirow` and `\multicolumn` table
767 cells (#6603, Laurent P. René de Cotret).
768 + Table cell parser not consuming spaces correctly (#6596,
769 Laurent P. René de Cotret).
770 + Change `SIRange` to `SIrange` (#6617, Emerson Harkin).
771 + Allow blank lines inside `\author` (#6324).
775 + Don't squelch space at end of emphasis and other inline elements;
776 instead, move it outside the element (#6719).
777 + Implement table cell alignment (#6698, Nils Carlson).
778 + Implement column span support for tables (#6492, Nils Carlson).
779 + Update list of block level tags (#6610).
784 + Don't squelch space at end of emphasis and other inline elements;
785 instead, move it outside the element (#6719).
789 + Apply `.. class::` directly to following Header rather than creating
790 a surrounding Div (#6699).
794 + Allow empty dates in comments and tracked changes (#6726, Diego
799 + Be less aggressive about using quotes for YAML values,
800 allowing e.g. a quotation mark or bracket as long as it's not at the
801 beginning of the line.
802 + Use double quotes for YAML metadata (#6727).
803 + Sort YAML metadata keys in Markdown output case-insensitive.
808 + Support asciidoctor's block figures (#6538, argent0).
812 + Fix spacing issue with list in definition list.
813 When a list occurs at the beginning of a definition list definition,
814 it can start on the same line as the label, which looks bad.
815 Fix that by starting such lists with an `\item[]`.
819 + Support intermediate table headers (#5314, Albert Krewinkel).
820 + Support attributes on all table elements (Albert Krewinkel).
821 + Render table footers if present (#6314, Albert Krewinkel).
822 + Fix addition of `doc-biblioentry` role.
823 + Support colspans and rowspans in HTML tables (#6312, Albert Krewinkel).
827 + Support internal document links (#5541, Leonard Rosenthol).
828 + Changed default link state to invisible (#6676, Leonard Rosenthol).
832 + Better handle list items whose contents are lists (#5948, Michael
833 Hoffmann). If the first element of a bulleted or ordered list is
834 another list, then that first item would previously disappear if the
835 target format is docx.
836 + Separate adjacent tables (#4315). Word combines adjacent tables,
837 so to prevent this we insert an empty paragraph between two
842 + Don't force blank line after headings (#6554).
844 * OpenDocument writer:
846 + Implement table cell alignment (#6700 Nils Carson, Mauro Bieg).
847 + New table cell support with row and column spans (#6682, Nils Carson).
848 + Syntax highlighting for inline code (#6711, niszet).
850 * Add Text.Pandoc.Citeproc module, exporting `processCitations`
851 [API change]. This depends on several other, unexported
852 modules under Text.Pandoc.Citeproc.
854 * Add module Text.Pandoc.Writers.CslJson, exporting `writeCslJson`.
857 * Add module Text.Pandoc.Readers.CslJson, exporting `readCslJson`.
860 * Add module Text.Pandoc.Readers.BibTeX, exporting `readBibTeX` and
861 `readBibLaTeX`. [API change]
863 * Text.Pandoc.Filter: Add `CiteprocFilter` constructor to Filter.
864 [API change] This runs the processCitations transformation.
865 We need to treat it like a filter so it can be placed
866 in the sequence of filter runs (after some, before others).
867 In FromYAML, this is parsed from `citeproc` or `{type: citeproc}`,
868 so this special filter may be specified either way in a defaults file
869 (or by `citeproc: true`, though this gives no control of positioning
870 relative to other filters).
872 * Add new exported module Text.Pandoc.Writers.AnnotatedTable [API change]
873 (#6655, Christian Despres). This module (which should generally
874 be imported qualified to avoid name conflicts) provides a
875 `Table` type that mirrors the structure of a pandoc `Table`,
876 but with added inferred information so that the writers do not have to
877 lay out tables themselves. The `toTable` and `fromTable` functions convert
878 between an annotated `Table` and a regular pandoc `Table`. In addition to
879 producing a `Table` with coherent and well-formed annotations, the
880 `toTable` function also normalizes its input table like the table
881 builder does. Tests ensure that `toTable` normalizes tables exactly
882 like the table builder, and that its annotations are coherent.
884 * Text.Pandoc.Logging:
886 + Remove unused `CouldNotParseYamlMetadata` constructor for `LogMessage`
888 + Add `CiteprocWarning` constructor to `LogMessage` [API change].
890 * Text.Pandoc.Readers.Metadata: export `yamlBsToRefs` [API change].
891 These allow specifying an id filter so we parse only references
892 that are used in the document.
894 * Text.Pandoc.Parsing:
896 + Export ParseError [API change].
897 + Add `stateInNote` and `stateNoteNumber` to `ParserState`
898 [API change]. These are used to populate note numbers for citation
901 * Fix apparent typos in sample.lua (#6729, William Lupton).
902 Also make the writer less aggressive in escaping quotes.
904 * Text.Pandoc.Options:
906 + `defaultMathJaxURL`: use `tex-chtml-full` instead of `tex-mml-chtml`
907 (#6599, Kolen Cheung). This drops the MathML support (which we
908 don't need for HTML math rendering) and includes the full JavaScript,
909 which makes it possible to use `--self-contained` (though there may
910 still be issues if the required math fonts aren't available). This
911 change should also reduce latency in pages with lots of formulas.
912 + Add `/tex-chtml-full.js` to `defaultMathJaxURL` (#6593) Previously we
913 added this in processing command line options, but not in processing
914 defaults files, which was inconsistent.
916 * epub.css: Fix cover page selectors and add note explaining their use
919 * Add data files needed for Text.Pandoc.Citeproc: these include
920 `default.csl` in the data directory and a `citeproc` directory that
921 is only used at compile-time for biblatex localizations. Note that we've
922 added `file-embed` as a mandatory rather than a conditional
923 dependency, because of the biblatex localization files.
927 + Add SimpleTable for backwards compatibility (#6575, Albert Krewinkel).
928 A new type `SimpleTable` is made available to Lua filters. It is
929 similar to the `Table` type in pandoc versions before 2.10;
930 conversion functions from and to the new Table type are provided.
931 Old filters using tables now require minimal changes and can use, e.g.,
933 if PANDOC_VERSION > {2,10,1} then
934 pandoc.Table = pandoc.SimpleTable
940 tbl = pandoc.utils.to_simple_table(tbl)
942 return pandoc.utils.from_simple_table(tbl)
945 to work with the current pandoc version.
947 + Make `attr` argument optional in `Table` constructor (Albert Krewinkel).
948 This changes the Lua API. It is highly unlikely for this change to affect
949 existing filters, since the documentation for the new Table constructor
950 (and type) was incomplete and partly wrong before. The Lua API is now
951 more consistent, as all constructors for elements with attributes now
952 take attributes as the last parameter.
956 * Add a dedicated Citations section which consolidates the information
957 the manual used to contain about citation processing, and incorporates
958 some information formerly found in the pandoc-citeproc man page.
959 + Add note about lualatex using `selnolig`.
960 + Remove duplicate `seriespage` (#6568, Blake Eryx).
961 + Remove lists of support extensions for markdown variants (#6604).
962 Instead, offer the advice to use `--list-extensions=FORMAT`.
963 + Fix position of attributes in header (Albert Krewinkel).
964 + Delete obsolete section on compact and loose lists (#6684).
967 * doc/lua-filters.md:
969 + Add info on how to debug Lua filters (#6732, Ian Max Andolina).
970 + Document Underline type and constructor (Albert Krewinkel).
971 + Document `body` field (Albert Krewinkel).
972 + Add missing header attribute
973 + Add missing Link.title field (Albert Krewinkel).
974 + Make the setting-the-date example conditional (the-solipsist).
975 This makes the example a bit more realistic.
976 + Remove outdated link table example.
980 + Add section on tables (Albert Krewinkel).
981 + Add section on handling of unknown directives (Albert Krewinkel).
983 * CONTRIBUTING.md: fix typo (#6584, Dmitry Volodin).
985 * Use golden test framework for command tests. This means that
986 `--accept` can be used to update expected output.
988 * Use the `smart` extension when generating pandoc's man page (#6613).
990 * Release-candidate: don't build windows i386.
991 So far we haven't been able to figure out how to get
992 stack to use a 32-bit ghc.
994 * Use `null` instead of deprecated `Builder.isNull`.
998 + Fix macospkg target to fetch target from S3 artifacts.
999 + Fix pandoc-templates target to include all partials.
1001 * Remove duplicated dependency in pandoc.cabal (#6591, Felix Yan).
1003 * Sort build depends in pandoc.cabal alphabetically (#6691,
1006 * Add .travis.yml for macos release candidate build (#6622).
1007 We need to build the release candidate on Travis rather
1008 than GitHub actions, because GH has macos 10.15, and
1009 binaries compiled on that OS will not work with 10.13.
1010 This build is only triggered on `rc/*` branches.
1012 * Remove instructions for building pandoc-citeproc from CI and
1013 release binary build instructions. We will no longer distribute
1016 * Fix math rendering in trypandoc (this broke after
1017 commit d8ad766d17603784b86fc5c2e1b22864125d04d1).
1019 * Use latest versions of skylighting, commonmark (#6589),
1020 comonmark-extensions, commonmark-pandoc, texmath.
1022 * Relax version bounds for hslua, hslua-module-text, bytestring.
1024 * Use released pandoc-types 1.22. This changes the JSON
1025 encoding slightly for the new table types introduced
1026 in 1.21, so they're more consistent with the rest.
1027 Developers of libraries for pandoc filters will want
1030 * Fix hlint suggestions, update hlint.yaml (#6680, Christian Despres).
1032 * Code cleanup (#6678, Joseph C. Sible).
1034 * Add haddocks to functions in Text.Pandoc.Writers.Shared (Albert
1037 * Remove duplicate `tshow` definition.
1039 * Linux release candidate build: use ghc-musl container. This simplifies
1040 our build process (over using a customized alpine container).
1043## pandoc 2.10.1 (2020-07-23)
1045 * Add `commonmark_x` output format. This is `commonmark` with a number
1046 of useful pandoc extensions enabled.
1048 * Many more extensions now work with `commonmark` and `gfm`.
1050 * Add generic `attributes` extension. This allows attributes to
1051 be added to any block or inline element in a uniform way. Since
1052 the Pandoc AST doesn't include attributes on each element type,
1053 the attributes will sometimes be added by creating a surrounding
1054 Div or Span container. Currently this extension is only
1055 compatible with the `commonmark` and `gfm` readers.
1057 To add an attribute to a block-level element, e.g. a paragraph,
1058 put it before the block:
1061 This is a paragraph.
1063 Multiple attributes may be used and will be combined:
1066 {.blue .warning key="val"}
1067 This is a paragraph.
1069 To add an attribute to an inline-level element, put it
1070 immediately after the element:
1072 *emphasized text*{.special}
1075 * Support `--number-sections` for docx output (#1413).
1079 + Support `\SIRange` reader (#6418, Emerson Harkin).
1080 + Support table col-span and row-span (#6311, Laurent P. René de Cotret).
1081 Supports `\multirow` and `\multicolumn`.
1082 + Support amsthm: `\newtheorem`, `\theoremstyle`, and theorem and
1083 proof environments, including labels and references. The only thing
1084 that is unsupported is the second optional argument, which causes
1085 numbering to be reset after the specified series is incremented.
1086 + Moved some code to T.P.LaTeX.Parsing. We need to reduce the size
1087 of the LaTeX reader to ease compilation on resource-limited systems.
1091 + Fix csv tables with multiline cells (#6549).
1092 + Fix spurious newlines in some attributes from directives.
1093 + Avoid extra newline in included code blocks.
1095 * Commonmark reader:
1097 + Switch from cmark-gfm to commonmark-hs for commonmark and gfm
1098 parsing. This avoids depending on a C library
1099 and allows us to support more pandoc extensions for
1100 `commonmark` and `gfm`.
1104 + Parse releaseinfo as metadata (#6542).
1108 + Only use `bCs/iCs` on runs with `rtl` or `cs` property (#6514, Nikolay
1110 + Code cleanup/refactoring (Nikolay Yakimov).
1112 * Org reader (Albert Krewinkel):
1114 + Respect export setting which disables entities
1115 MathML-like entities, e.g., `\alpha`, can be disabled with the
1116 `#+OPTION: e:nil` export setting (Albert Krewinkel).
1117 + Respect export setting disabling footnotes. Footnotes can be removed
1118 from the final document with the `#+OPTION: f:nil` export setting.
1119 + Respect tables-excluding export setting. Tables can be removed from
1120 the final document with the `#+OPTION: |:nil` export setting.
1124 + Move `asciify` out of `escapeString`. Otherwise `unsmartify`
1125 doesn't catch quotes that have already been turned to entities.
1126 + Add `writeCommonmark` (new exported function, API change).
1127 + Use unicode super/subscript characters when possible if the
1128 `superscript` or `subscript` extension or `raw_html` aren't available.
1129 + Render caption as following paragraph when `table_caption` extension
1131 + Use numerical labels for reference links that are longer
1132 than 999 characters or contain square brackets, for conformity
1133 with commonmark (#6560).
1135 * Commonmark writer:
1137 + Instead of using cmark-gfm, use `writeCommonmark` from the
1138 Markdown writer. This function calls the markdown writer
1139 with appropriate extensions and a few small modifications
1140 (e.g. not requiring backslashes before spaces inside
1141 super/subscripts). With this change `comonmark` and
1142 `gfm` output can be used with a wider selection of
1145 * Jira writer: keep image caption as alt attribute (#6529, Albert
1150 + Improve alt-text/caption handling for HTML5 (#6491, Albert Krewinkel).
1151 Screen readers read an image's `alt` attribute and the figure caption,
1152 both of which come from the same source in pandoc. The figure caption is
1153 hidden from screen readers with the `aria-hidden` attribute. This
1154 improves accessibility. For HTML4, where `aria-hidden` is not allowed,
1155 pandoc still uses an empty `alt` attribute to avoid duplicate contents.
1159 + Fix code highlighting with blank lines. Previously blank lines
1160 were simply omitted from highlighted code.
1161 + Escape starting periods in ms writer code blocks (#6505, Michael
1162 Hoffmann). If a line of ms code block output starts with a period (.),
1163 it should be prepended by `\&` so that it is not interpreted as a roff
1166 * Text.Pandoc.Extensions:
1168 + Add `raw_markdown` extension (which only affects `ipynb`
1170 + Trim down `githubMarkdownExtensions`.
1171 Previously it included all of the following, which make
1172 sense for the legacy `markdown_github` but not for `gfm`,
1173 since they are part of base commonmark and thus
1174 can't be turned off in `gfm`:
1176 - `Ext_all_symbols_escapable`
1177 - `Ext_backtick_code_blocks`
1178 - `Ext_fenced_code_blocks`
1179 - `Ext_space_in_atx_header`
1180 - `Ext_intraword_underscores`
1181 - `Ext_lists_without_preceding_blankline`
1182 - `Ext_shortcut_reference_links`
1184 These have been removed from `githubMarkdownExtensions`, though
1185 they're still turned on for legacy `markdown_github`.
1186 + Add `Ext_attributes` constructor for `Extension` [API change].
1188 * LaTeX template: use selnolig to selectively suppress ligatures with
1191 * Benchmark bytestring readers (Nikolay Yakimov).
1195 + Update using-the-pandoc-api.md (favonia).
1196 + Fix Typos in lua-filters.md (tajmone).
1197 + Rewrite Raw HTML/TeX section in MANUAL.txt to avoid duplicate
1198 headings for the extensions.
1199 + Fix typo in MANUAL.txt (Benjamin Wuethrich).
1200 + Remove duplicate 'titlepage' in MANUAL.txt (Blake Eryx).
1201 + CONTRIBUTING.md: Advertise the official nightlies in GitHub actions.
1202 Replaces #6500, thanks to @ickc.
1206## pandoc 2.10 (2020-06-29)
1208 * Use pandoc-types 1.21. This adds two things:
1210 + A native Underline constructor for Inline (#6277, Vaibhav Sagar).
1211 + More expressive types for tables (#1024, Christian Despres).
1212 Tables can now take attributes; and rowspans and colspans,
1213 column headers, multiple row headers, table head and foot
1214 can all be represented. (Note, however, that reader and
1215 writer support for these features is still lacking, so
1216 most users won't see any differences in table conversion
1217 yet. These changes just lay the foundation for further
1220 * Support new Underline element in readers and writers (#6277,
1223 * Support new Table type (Christian Despres).
1224 The Builder.simpleTable now only adds a row to the TableHead
1225 when the given header row is not null. This uncovered an
1226 inconsistency in the readers: some would unconditionally
1227 emit a header filled with empty cells, even if the header
1228 was not present. Now every reader has the conditional
1229 behaviour. Only the XWiki writer depended on the header row
1230 being always present; it now pads its head as necessary.
1232 * Add an option to disable certificate validation (#6156, Cédric Couralet,
1233 Cécile Chemin, Juliette Fourcot). This commit adds the option
1234 `--no-check-certificate`, which disables certificate checking when
1235 resources are fetched by HTTP.
1237 * Unify defaults and markdown metadata parsers (#6328, Nikolay
1238 Yakimov). Clean up code in Text.Pandoc.Readers.Metadata and
1239 properly handle errors in `yamlToMeta`. This fixes parsing
1240 of Boolean fields in metadata withinin defaults files and reduces
1245 + Implement `<procedure>` (#6442, Mathieu Boespflug).
1246 + Implement `<phrase>` (#6438, Mathieu Boespflug).
1247 + Treat envar and systemitem like code (#6435, Mathieu Boespflug).
1248 + Implement `<replaceable>` (#6437, Mathieu Boespflug)
1249 + Map `<simplesect>` to unnumbered section (#6436, Mathieu Boespflug).
1253 + Handle "label" element in section title (#6288).
1254 + Parse abstract element into metadata field of same name
1255 (#6480, Albert Krewinkel).
1257 * Jira reader (Albert Krewinkel):
1259 + Resolve multiple parsing problems, including issues with empty
1260 table cells, faulty recognition of closing emphasis characters, and
1261 parsing of image attributes (#6212, #6219, #6220).
1262 + Two consecutive markup chars are now parsed verbatim (#6343);
1263 styled text must not be empty.
1264 + Newlines are no longer allowed within styled text (#6325).
1265 + Links to anchors are now parsed as links (#6407).
1266 + Retain image attributes (#6234). Jira images attributes as in
1267 `!image.jpg|align=right!` are retained as key-value pairs. Thumbnail
1268 images, such as `!example.gif|thumbnail!`, are marked by a
1269 `thumbnail` class in their attributes.
1270 + Use Underline for inserted text (#6237). Previously, the span was
1271 marked with the non-standard class `inserted`.
1272 + Improve icon conversion for `(/)`, `(x)`, `(!)`, `(?)`
1273 `(+)`, `(-)`, `(off)`, `(*)`. (#6236, #6264).
1274 + Support citations, attachment links, and user links (#6231, #6238,
1276 + Resolve parsing issues of blockquote, color (#6233, #6235).
1280 + Parse attributes into table attributes.
1281 + Support `<bdo>` (#5794, Tristan de Cacqueray).
1282 + Add `summary` to list of block-level HTML tags (#6385).
1283 This improves support for summary/details inside Markdown.
1284 NOTE: you need to include a blank line before the closing
1285 `</details>`, if you want the last part of the content to
1286 be parsed as a paragraph.
1287 + Fix parsing unclosed th elements in a table (#6247).
1289 * Commonmark reader: Implement `implicit_figures` extension (#6350).
1293 + Fix inline code in lists (#6284, Nikolay Yakimov).
1294 Previously inline code containing list markers was sometimes
1296 + Don't require blank line after grid table (#6481).
1297 This allows grid tables to be enclosed in fenced divs with no
1298 intervening blank lines.
1302 + Don't parse beyond `\end{document}` (#6380).
1303 This required some internal changes to `\subfile` handling.
1304 + Better handling of `\lettrine`. SmallCaps instead of Span
1305 for the part after the initial capital. Ensure that both
1306 arguments are parsed, so that in Markdown both
1307 are treated as raw LateX. (Closes #6258.)
1309 * Org reader (Albert Krewinkel):
1311 + Recognize images with uppercase extensions (#6472).
1312 + Keep unknown keyword lines as raw org. The lines of unknown
1313 keywords, like `#+SOMEWORD: value` are no longer read as metadata,
1314 but kept as raw `org` blocks. This ensures that more information
1315 is retained when round-tripping org-mode files; additionally,
1316 this change makes it possible to support non-standard org
1317 extensions via filters.
1318 + Unify keyword handling. Handling of export settings and other
1319 keywords (like `#+LINK`) has been combined and unified.
1320 + Support `LATEX_HEADER_EXTRA` and `HTML_HEAD_EXTRA`
1321 settings. These export settings are treated like their non-extra
1322 counterparts, i.e., the values are added to the `header-includes`
1324 + Allow multiple `#+SUBTITLE` export settings. The values of all
1325 lines are read as inlines and collected in the `subtitle`
1327 + Read `#+INSTITUTE` values as text with markup. The value is
1328 stored in the `institute` metadata field and used in the
1329 default beamer presentation template.
1330 + The behavior of the `#+AUTHOR` and `#+KEYWORD` export
1331 settings has changed: Org now allows multiple such lines
1332 and adds a space between the contents of each line. Pandoc
1333 now always parses these settings as meta inlines; setting
1334 values are no longer treated as comma-separated lists.
1335 Note that a Lua filter can be used to restore the previous
1337 + Read description lines as inlines (#6485). `#+DESCRIPTION` lines
1338 are now treated as text with markup. If multiple such
1339 lines are given, then all lines are read and separated by soft
1341 + Honor tex export option (#4070). The `tex` export option can be set
1342 with `#+OPTION: tex:nil` and allows three settings:
1343 `t` (the default) causes LaTeX fragments to be parsed as TeX or added
1344 as raw TeX. `nil` removes all LaTeX fragments from the document.
1345 `verbatim` treats LaTeX as text.
1350 + Pass arbitrary attributes through in code blocks (#6465).
1351 Exceptions: name (which becomes the id), class (which becomes the
1352 classes), and number-lines (which is treated specially to fit
1353 with pandoc highlighting).
1354 + Handle `date::` directive (#6276).
1356 * Textile reader: support `pre.` for code blocks (#6454).
1360 + Implement `raw_markdown` extension (#5408). Specifying
1361 `-f ipynb+raw_markdown` will cause Markdown cells
1362 to be represented as raw Markdown blocks, instead of being
1363 parsed. This is not what you want when going from `ipynb`
1364 to other formats, but it may be useful when going from `ipynb`
1365 to Markdown or to `ipynb`, to avoid semantically insignificant
1366 changes in the contents of the Markdown cells that might
1367 otherwise be introduced.
1368 + Handle application/pdf output as image (#6430).
1369 + Properly handle image/svg+xml as an image (#6430).
1373 + Distinguish between docx parsing and docx container unpacking errors.
1377 + Fix `gfm_auto_identifiers` so that `-` is not replaced by `_` (#6335).
1381 + Add nested syntax highlighting (#6256, Vlad Hanciuta).
1382 Nested syntaxes are specified like this:
1388 The preformatted code block parser has been extended to check if the
1389 first attribute of the block is not a `key=value` pair, and in that
1390 case it will be considered as a class.
1393 * Jira writer (Albert Krewinkel):
1395 + Always escape braces (#6478). Braces are now always escaped, even
1396 within words or when surrounded by whitespace. Jira and
1397 Confluence treat braces specially.
1398 + Convert Underline to inserted text (`+inserted+`).
1399 + Add image attributes (#6234). Image attributes are added
1400 to the output as image parameters. If the image has a
1401 class "thumbnail", then a thumbnail image is generated;
1402 all other attributes are discarded in this case.
1406 + Ensure that `-M csquotes` works even in fragment mode (#6265).
1407 + Escape `^` specially for listings (#6460).
1408 + Create hypertarget for links with identifier (#6360).
1409 + Distinguish between single and double quotes when using enquote
1410 package (#6457, dbecher-ito).
1411 + Add support for customizable alignment of columns in beamer (#6331,
1413 + Add support for customizable alignment of columns in beamer
1414 (#4805, #4150, andrebauer).
1418 + Use CSS in favor of `<br>` for display math (#6372)
1419 Some CSS to ensure that display math is
1420 displayed centered and on a new line is now included
1421 in the default HTML-based templates; this may be
1422 overridden if the user wants a different behavior.
1426 + Clean-up Div handling (Albert Krewinkel).
1430 + Enable column and row bands for tables (#6371).
1431 This change will not have any effect with the default style.
1432 However, it enables users to use a style (via a reference.docx)
1433 that turns on row and/or column bands.
1435 * OpenDocument (and ODT) writer:
1437 + Add custom-style "Abstract" in metadata abstract.
1438 This ensures that the abstract is rendered with style Abstract.
1439 + Enable custom-style attribute on a Div.
1440 This allows you to apply a custom style to contained paragraphs.
1444 + Add id of figure to enclosed image.
1445 + Add personname element to docbook author (#6244).
1449 + Properly handle cover-image containing spaces (#6391).
1453 + Ensure consistent padding for pipe tables (#6240).
1454 + Avoid unnecessary escapes before intraword `_` when
1455 `intraword_underscores` extension is enabled (#6296).
1459 + Properly handle images with same alt text (#6194).
1460 Previously we created duplicate references for these in rendering RST.
1464 + Add blank line after Div (#6308).
1468 + Support Haddock tables (Joe Hermaszewski).
1469 See this PR on Haddock for details on the table format:
1470 <https://github.com/haskell/haddock/pull/718>.
1472 * PowerPoint writer (Jesse Rosenthal):
1474 + Write math input verbatim in speaker notes (#6301).
1475 OMML in speaker notes would lead to corrupt PowerPoint output. We now
1476 output the OMML verbatim as LaTeX in the speaker notes.
1478 * LaTeX template: Make polyglossia package options list-aware
1479 (#6444, Frederik Elwert).
1481 * Reveal.js template:
1483 + Update template for reveal.js 4.0.0 (#6390, Salim B).
1484 + Update template with newly available options (#6347, Jake Zimmerman).
1485 + Use CDN version of revealjs v4 by default (#6408).
1487 * opendocument template: Add abstract and subtitle to opendocument
1490 * reference.odt: clean up styles. Add Abstract.
1491 Change Author, Date to centered paragraphs with no character
1494 * epub.css: wrap overlong lines in highlighted code blocks (#6242).
1495 This fixes a problem in iBooks v2.4 with our earlier
1496 horizontally scrolling code blocks. The problem seems to
1497 be a bug in iBooks, not pandoc, but since iBooks is a major
1498 target we're changing pandoc's default behavior so that
1499 pandoc-produced epubs work on that platform.
1503 + Use `--enable-local-file-access` in invoking `wkhtmltopdf` (#6474).
1504 `wkhtmltopdf` changed in recent versions to require this for
1505 access to local files. This fixes PDF via HTML5 with `--css`.
1506 + Send verbose output to stderr, not stdout (#6483).
1508 * Text.Pandoc.MIME: Fix MIME type for TrueType fonts in EPUBs
1509 (#6464, Michael Reed).
1511 * Text.Pandoc.Shared:
1513 + `makeSections`: omit number attribute when unnumbered class
1514 is present (#6339). Previously the attribute was included but given
1515 an empty value, and this caused the table of contents creation
1516 functions in Text.Pandoc.Writers.Shared to think these items had
1517 numbers, which meant that they were included in the TOC even if the
1518 `unlisted` class was used.
1519 + Deprecate `underlineSpan` in Shared in favor of
1520 `Text.Pandoc.Builder.underline` (Vaibhav Sagar).
1521 + `renderTags'`: use self-closing tag for col element (#6295).
1523 * Text.Pandoc.UUID: Fix `getRandomUUID`, which previously would
1524 return the same value twice in a row. Make `getRandomUUID`
1525 polymorphic in PandocMonad. Remove `getUUID` (#6228, Joseph C. Sible).
1527 * Text.Pandoc.Class: Generalize `PandocIO` functions to `MonadIO`.
1529 * Fixed Katex standalone script (#6399, Lucas Escot).
1530 Global macros are now persistent when using the HTML Writer with the
1533 * Lua subsystem (Albert Krewinkel):
1535 + Use new type PandocLua for all pandoc Lua operations (API change).
1536 The new type `PandocLua` is an instance of the `PandocMonad` typeclass
1537 and can thus be used in a way similar to `PandocIO`.
1538 + Use PandocError for exceptions in Lua subsystem (API change).
1539 The PandocError type is used throughout the Lua subsystem. All Lua
1540 functions throw an exception of this type if an error occurs. The
1541 `LuaException` type is removed and no longer exported from
1542 `Text.Pandoc.Lua`. In its place, a new constructor `PandocLuaError`
1543 is added to PandocError.
1545 * Lua filters: improve error messages for failing filters (#6332,
1546 Albert Krewinkel). Print the Lua error properly instead of
1547 displaying their `show` string.
1549 * Use latest skylighting. This fixes a bug with lua multiline
1550 comments (and may improve handling of other syntaxes as well).
1551 IT also adds `aria-hidden="true"` to the empty a elements, which
1552 helps people who use screen readers.
1554 * Use latest texmath.
1556 * Require latest doctemplates 0.8.2.
1557 This adds support for template pipes `first`, `rest`,
1558 `last`, `allbutlast`.
1560 * Revert 0e48a02 and dependency on base-noprelude, which hasn't
1561 been updated for ghc 8.10 (see #6187).
1563 * Dependency adjustments:
1565 + Allow haddock-library 1.9.x.
1566 + Allow hslua 1.1 (#6243, Felix Yan).
1567 + Allow base64-bytestring 1.1.
1568 + Use latest jira-wiki-markup.
1569 + Allow http-client 0.7.
1570 + Allow tasty 1.3.x.
1571 + Allow aeson 1.5 (#6400, Felix Yan).
1572 + Remove unused dependency `vector` (#6462, Laurent P. René de Cotret).
1573 + Bump QuickCheck upper bound.
1575 * Significant code cleanup and simplification (Joseph C. Sible, #6223,
1576 #6209, #6225, #6229, #6226, #6340).
1578 * Remove unnecessary hlint ignores (#6341, Joseph C. Sible).
1580 * Remove obsolete RelaxedPolyRec extension (#6487, Nikolay Yakimov).
1582 * trypandoc improvements (Mike Tzou):
1584 + Add standalone option to the command text (#6210).
1585 + Update third party libraries.
1589 + Clarify template partial naming (#6476, Mauro Bieg).
1590 + Describe `jira` as "Jira/Confluence wiki markup" (#6351, Albert
1591 Krewinkel). In the past, Jira's wiki markup was also used by -- and
1592 could be imported into -- Atlassian Confluence.
1593 + Add link to print-css.rocks (#6272, Mauro Bieg).
1594 + Clarify pipe table column width adjustment (#6254).
1595 + Fix ATX header syntax.
1596 + Fix misleading note about image size conversions (#6353).
1597 + Update links to reveal.js documentation (#6386, Salim B).
1598 + Separate adjacent verbatim code blocks (#6307, tom-audm).
1602 + Document behavior of `smart` extension (#4387, Albert Krewinkel).
1603 + Describe all supported export options in detail.
1607 + Fix description of BulletList Lua type (Levi Gruspe).
1608 + Use pandoc.system module in TikZ example (Albert
1609 Krewinkel). Showcase temporary directory handling with
1610 `with_temporary_directory` and `with_working_directory`.
1612 * INSTALL.md: fix FreeBSD port link (#6422, Mo).
1613 The FreeBSD port was renamed from pandoc to hs-pandoc in 2010.
1614 The old pandoc port is still at version 1.5.1.1
1616 * Propagate `(DY)LD_LIBRARY_PATH` in tests (#6376, Lila).
1618 * Bump `cabal-version` to 2.2 (#6377).
1620 * Make it possible to compile using Stack on NixOS (#6439, Mathieu
1623 * CI action to check for commit message length (Nikolay Yakimov, #6398).
1626## pandoc 2.9.2.1 (2020-03-23)
1628 * Markdown reader: Fix table alignment when heading begins with t (#6153).
1629 Due to a typo (`t` instead of `\t`) we were center aligning column
1630 headings that begin with a lowercase `t`!
1632 * Text.Pandoc.Readers.Roff:
1634 + Fix parsing of `\.` in man/ms readers (#6175).
1635 Previously due to a typo it was being parsed as `` ` ``.
1636 + Fix parsing of `\'` in man/ms readers (#6175). It was being parsed
1639 * Jira reader (Albert Krewinkel):
1641 + Fix parsing of tables without preceding blankline (#6198).
1642 A bug was fixed which caused faulty parsing if a table was not
1643 preceded by a newline and the first table cell had no space
1644 after the initial `|` characters.
1645 + Fix parsing of strikeout, emphasis (#6196). A bug was fixed which
1646 caused non-emphasized text containing digits and/or non-special
1647 symbols (like dots) to sometimes be parsed incorrectly.
1648 + Support colored inline text, indented lists (#6183, #6184).
1652 + Fix definition lists so indent even when paragraph indent is
1653 set to 0 (as is the default). Also ensure indent for display math
1654 that falls back to TeX.
1655 + Use `.QS/.QE` instead of `.RS/.RE` for block quotes.
1657 * EPUB writer: fix regression on detection of front/back/bodymatter
1658 (#6170). This bug caused sections with epub:type `dedication` to be
1659 misplaced in bodymatter instead of frontmatter as specified
1660 in the manual. The same problem would affect other epub:types.
1661 The pattern matching needed to be changed with the use of
1664 * AsciiDoc writer: remove redundant `otherwise` guard in
1665 `inlineToAsciiDoc` (#6146, Ryan Scott).
1667 * Text.Pandoc.Class:
1669 + Fix missing import when data files are not embedded (Albert Krewinkel).
1670 + Subdivide Text.Pandoc.Class into small unexported modules
1671 and ensure that all functions have Haddock documentation (#6106,
1673 + Finer grained imports of Text.Pandoc.Class submodules (#6203, Albert
1676 * Text.Pandoc.XML: Add to list of HTML5 attributes:
1677 `allow`, `autocapitalize`, `decoding`, `enterkeyhint`,
1678 `imagesizes`, `imagesrcset`, `loading`.
1680 * Use implicit Prelude (#6187, Albert Krewinkel).
1681 The previous behavior was introduced as a fix for #4464. It seems that
1682 this change alone did not fix the issue, and `stack ghci` and `cabal
1683 repl` only work with GHC 8.4.1 or newer, as no custom Prelude is loaded
1684 for these versions. Given this, it seems cleaner to revert to the
1687 * Always use custom prelude (#6187, Albert Krewinkel).
1688 Previously, the custom prelude was used only with older GHC versions, as
1689 a workaround for problems with ghci. The ghci problems are resolved by
1690 replacing package `base` with `base-noprelude`, allowing for consistent
1691 use of the custom prelude across all GHC versions.
1693 * Remove outdated checks for no longer supported base versions
1696 * PDF via wkhtmltopdf: put user-specified options last (#6171).
1697 Certain options (e.g. `cover`) need to come after flags on
1700 * Text.Pandoc.App: set resource path at the beginning so it can affect
1701 things like include-in-header (#5982).
1703 * Change macOS release candidate CI process so that notarized
1704 packages can be produced (#6169).
1706 * Make MANUAL more explicit about nonbreaking space handling by
1707 `all_symbols_escapable` (#6154, Fabien Schurter).
1709 * trypandoc (Mike Tzou):
1711 + Add checkbox for standalone option (#6189).
1712 + Use strict mode for JavaScript code (#6188).
1713 + Fetch resources over https (#6188).
1714 + Remove unnecessary attributes on style, script elements (#6188).
1716 * Use details tag to make GitHub releases changelog collapsible.
1718 * Update filter code in doc/filters.md so it works with latest pandoc
1721 * linux/Dockerfile: upgrade to alpine 3.11 (#6180, Albert Krewinkel).
1722 This is used to build the static linux binaries.
1725## pandoc 2.9.2 (2020-02-15)
1727 * Add `csv` as an input format (#6100). The CSV table is converted into a
1728 pandoc simple table. A new module Text.Pandoc.Readers.CSV
1729 exports `readCSV` [API change].
1731 * Introduce new format variants for JATS writer (#6014, Albert Krewinkel):
1733 - `jats_archiving` for the "Archiving and Interchange Tag Set",
1734 - `jats_publishing` for the "Journal Publishing Tag Set", and
1735 - `jats_articleauthoring` for the "Article Authoring Tag Set."
1737 The `jats` output format is now an alias for `jats_archiving`.
1738 The module Text.Pandoc.Writers.JATS now exports
1739 `writeJatsArchiving`, `writeJatsPublishing`, and
1740 `writeJatsArticleAuthoring`, as well as the legacy
1741 `writeJATS` [API change].
1743 * `--defaults`: Support `bibliography` and `csl` fields.
1744 Move `addMeta` from Text.Pandoc.App.CommandLineOptions to
1745 Text.Pandoc.App.Opt (internal change).
1747 * Add timing info for filters in `--verbose` mode (#6112).
1748 When verbose mode is specified (verbosity == INFO), print a
1749 notice when running a filter and when a filter completes (including
1754 + Allow `&` in LaTeX citation keys (#6110).
1755 + Improve caption and label parsing.
1756 + Don't emit empty Span elements for labels.
1757 + Put tables with labels in a surrounding Div.
1758 + Resolve `\ref` to table numbers (#6137).
1759 + Skip comments in more places where this is needed (#6114).
1760 + Allow beamer overlays for all commands in all raw tex (#6043).
1761 This affects parsing of raw tex in LaTeX and in Markdown and
1763 + Improve parsing of raw environments (#6034). If parsing fails
1764 in a raw environment (e.g. due to special characters like unescaped
1765 `_`), try again as a verbatim environment, which is less sensitive to
1766 special characters. This allows us to capture special environments
1767 that change catcodes as raw tex when `-f latex+raw_tex` is used.
1771 + Add highlight directive (#6140, Lucas Escot).
1775 + Prevent triple `[[[` which confuses MediaWiki (#6119).
1779 + Don't parse `data-id` as `id` attribute. And similarly don't
1780 parse any `data-X` as `X` when `X` is a valid HTML attribute.
1784 + Simplify parsing of sub- and superscripts (#6127, Albert Krewinkel).
1785 Speeds up parsing of single-word, markup-less sub- and superscripts.
1789 + Group biblatex citations even with prefix and suffix (#5849, Ethan
1790 Riley). Previously biblatex citations were only grouped if there
1791 was no prefix. This patch allows them to be grouped in subgroups split
1792 by prefixes and suffixes, which allows better citation sorting.
1793 + Fix regression in handling of columns in beamer slides (#6033).
1794 Columns in title slides were causing problems with
1796 + Fix duplicate frame classes in LaTeX/Beamer output (#6107).
1800 + Fix duplicate attributes on headings (#6062), regression from 2.7.x.
1801 + Fix `--number-offset` with HTML TOC. Eventually it would be worth
1802 adding a parameter to `makeSections` so this could be done at that
1803 level; then it would also affect other writers that construct
1805 + reveal.js: restore old behavior for 2D nesting (#6032).
1806 The fix to #6030 actually changed behavior, so that the
1807 2D nesting occurred at slide level N-1 and N, instead of
1808 at the top-level section. This commit restores the v2.7.3 behavior.
1809 If there are more than 2 levels, the top level is horizontal
1810 and the rest are collapsed to vertical.
1811 + reveal.js: ensure that pauses work even in title slides (#5819).
1815 + Fix regression: spurious dots in markdown_mmd metadata output (#6133).
1819 + Fix regression with Compact style on tight lists (#6072).
1820 Starting in 2.8, the docx writer no longer distinguishes between tight
1821 and loose lists, since the Compact style is omitted. This is a
1822 side-effect of the fix to #5670, as explained in the changelog. This
1823 patch fixes the problem by extending the exception currently offered to
1824 Plain blocks inside tables to Plain blocks inside list items.
1828 + Fix output of table headers (Albert Krewinkel, #6035).
1830 * Add Text.Pandoc.Image with unexported svgToPng.
1832 * Text.Pandoc.XML: Export `html5Attributes`, `html4Attributes`,
1833 `rdfaAttributes` (formerly unexported in Text.Pandoc.Writers.HTML).
1836 * Text.Pandoc.Shared: Export a new function `findM` (#6125,
1839 * Text.Pandoc.Logging: Add `RunningFilter`, `FilterCompleted`
1840 constructors to LogMessage [API change].
1842 * Text.Pandoc.CSV: fix bug in CSV parser; previously an extra blank record
1843 would sometimes be inserted at the end.
1845 * LaTeX template: add space option to xeCJK with PassOptionsToPackage
1846 (#6002). Otherwise we can get a clash with documentclasses that
1847 already load the package.
1851 + Allow filtering of element lists (#6038, Albert Krewinkel). Lists of
1852 Inline and Block elements can now be filtered via `Inlines` and
1853 `Blocks` functions, respectively. This is helpful if a filter
1854 conversion depends on the order of elements rather than a single
1855 element. For example, the following filter can be used to remove all
1856 spaces before a citation:
1858 function isSpaceBeforeCite (spc, cite)
1859 return spc and spc.t == 'Space'
1860 and cite and cite.t == 'Cite'
1863 function Inlines (inlines)
1864 for i = #inlines-1,1,-1 do
1865 if isSpaceBeforeCite(inlines[i], inlines[i+1]) then
1872 + Add methods `insert`, `remove`, and `sort` to pandoc.List
1873 (Albert Krewinkel). Example of use:
1875 local numbers = pandoc.List {2, 3, 1}
1876 numbers:sort() -- numbers is now {1, 2, 3}
1877 + Make `pandoc.List` a callable constructor (Albert Krewinkel).
1878 It is now possible to construct a new List via
1879 `pandoc.List()` instead of `pandoc.List:new()`.
1880 + Add tests for pandoc.List module (Albert Krewinkel).
1882 * Text.Pandoc.App.CommandLineOptions: Change `setVariable` to use `Text`
1883 instead of `String`. This avoids some unnecessary unpacking.
1885 * Use versioned directory for windows release zipfile.
1886 Also remove old `make-windows-installer.bat`, superseded by GitHub
1887 actions workflow, and modify `pandoc.wxs` for new paths.
1889 * Extensive code cleanup (#6141, #6128, #6129, #6130, #6123,
1890 #6105, 6102, #6117, #6124, #6115, #6116, #6111, Joseph C. Sible).
1892 * Fix hlint warnings (Albert Krewinkel).
1894 * Use latest doclayout, doctemplates (#6031). The new version of
1895 doclayout fixes a memory leak that affected `--include-in-header` with
1896 large files (and possibly other cases involving extremely long lines).
1898 * Use latest texmath.
1900 * Use latest skylighting and fix test suite (#6086).
1902 * sample.lua: Fix typo in descriptive comments (#6136, Caleb Maclennan).
1903 Fix typo in error message (#6135).
1905 * Add Docker and GH Actions instructions/links to INSTALL.md.
1907 * Update filter documentation (#6065). Improve cabal v2 instructions.
1908 Remove example using pandoc API directly (we have other
1909 docs for that and it was outdated).
1913 + Cross-link constructors and types (Albert Krewinkel).
1914 Thanks to @bpj for the idea.
1915 + Sort pandoc.List methods alphabetically (Albert Krewinkel).
1916 + Unify, fix anchors and internal links (#6061, Albert Krewinkel).
1917 Links and anchors now follow consistent conventions, like
1918 lowercase-only anchor names. This breaks some links to specific
1919 sections in the document, but will make it much easier to link
1920 documentation in the future.
1921 + Clarify filter function execution order (#6059, Albert Krewinkel).
1923 * In docs, update URLs and use `https:` wherever possible (#6090,
1926## pandoc 2.9.1.1 (2020-01-05)
1930 + Fix parsing bug affected indented code after raw HTML (#6009, #5360).
1934 + Fix regression in beamer slide structure with certain slide levels
1936 + Allow framebreaks for beamer's TOC (Heiko Schlittermann, #6012)
1937 + Properly handle unnumbered headings level 4+ (#6018).
1938 Previously the `\paragraph` command was used instead of
1939 `\paragraph*` for unnumbered level 4 headings.
1943 + Fix revealjs slide structure regression with certain slide levels
1945 + Add newlines to make slide show output more readable.
1949 + Remove extra spaces from table cells (Albert Krewinkel, #6024).
1951 * JATS template: Update JATS dtd (Arfon Smith, #6020). Use the archiving
1952 and interchange DTD rather than the more restrictive journal publishing
1953 DTD (which doesn't permit ext-link as a valid child).
1955 * Text.Pandoc.PDF: Fix `runTeXProgram` so that the input source is always
1956 overwritten (#6027). Previously it wasn't overridden if the file already
1957 existed, which led to bad results on subsequent runs when
1958 `pdf-engine-opt=-output-directory=` was used to specify an explicit temp
1961 * Text.Pandoc.BCP47: Change `getLang` to handle block-level contents
1962 (#6008). Some readers (e.g. RST) will populate the `lang` metadata field
1963 with block-level content. `getLang` has been modified to handle this.
1964 Previously in these cases the LaTeX writer would not properly set the
1965 "main language" of the document.
1967 * Fix `test/tables.org` (Albert Krewinkel).
1969 * Use HTTPS in copyright message (Felix Yan, #6010)
1972## pandoc 2.9.1 (2019-12-23)
1974 * Add Jira reader (Albert Krewinkel, #5556).
1976 * Jira writer: use jira-wiki-markup renderer (Albert Krewinkel,
1977 #5926). The following improvements are included in this change:
1979 + non-jira raw blocks are fully discarded instead of showing
1981 + table cells can contain multiple blocks;
1982 + unnecessary blank lines are removed from the output;
1983 + markup chars within words are properly surrounded by
1985 + preserving soft linebreaks via `--wrap=preserve` is
1988 Note that backslashes are rendered as HTML entities, as there
1989 appears no alternative to produce a plain backslash if it is
1990 followed by markup. This may cause problems when used with
1991 confluence, where rendering seems to fail in this case.
1993 * Fix regression with `--number-sections`. Starting with 2.8,
1994 `--number-sections` also had the effect of `--section-divs`,
1995 even if `--section-divs` was not specified.
1997 * Improved table of contents generation in markdown, RTF,
1998 commonmark, better handling cases where section headings are
2001 * Ensure that later default file values for `variable` replace
2002 earlier ones (5988).
2004 * HTML reader: Add `nav` to list of block-level tags.
2006 * Org reader (Albert Krewinkel):
2008 + Wrap named table in Div, using name as id (#5984).
2009 Tables which are given a name via `#+NAME:` or `#+LABEL:`
2010 are wrapped in an additional Div, with the name set as the
2012 + Report parsing errors properly.
2013 + Fix parsing problem for colons in headline (#5993).
2015 * Text.Pandoc.PDF: Ensure UTF8 when printing source in
2016 `--verbose` mode, avoiding an error on platforms that
2017 default to something other than UTF-8 (#5997).
2019 * Text.Pandoc.Templates: Strip directory before trying to find
2020 partial in data files (#5987).
2022 * Text.Pandoc.Shared: Improve `makeSections` so we don't get
2023 doubled "number" attributes in EPUB output (or anywhere
2026 * Added tests for `--toc` and `--section-divs`.
2028 * Text.Pandoc.MIME: Added glsl MIME type for WebGL maps (#6000,
2031 * MANUAL: A bit clearer explanation for `--base-header-level`.
2032 We now say exactly how to translate between the deprecated
2033 `--base-header-level` and `--shift-heading-level-by`.
2037 + Remove spurious dot in title (#5996, Mauro Bieg).
2038 + Replace metadata example with image centering (#6004,
2039 Albert Krewinkel). Thanks to @efx for proposing this filter.
2042## pandoc 2.9 (2019-12-11)
2044 * Text.Pandoc.Templates [API change]
2046 + Add Monad wrappers `WithDefaultPartials` and `WithPartials`.
2047 Wrapping these around an instance of `PandocMonad` gives
2048 us different instances of `TemplateMonad`, with different
2049 search behavior in retrieving partials.
2050 To compile a template and limit partial search to pandoc's
2051 data files, use `runWithDefaultPartials (compileTemplate ...)`.
2052 To compile a template and allow partials to be found locally
2053 (either on the file system or via HTTP, in the event that
2054 the main template has an absolute URL), ue
2055 `runWithPartials (compileTemplate ...)`.
2056 + Export `getTemplate`, which seeks a template locally,
2057 or via HTTP if the template has an absolute URL, falling
2058 back to the data files if not found.
2059 + Export `compileDefaultTemplate` -- does `getDefaultTemplate`
2060 and compiles the result, raising an error on failure.
2062 * Text.Pandoc.Class [API change]
2064 + Remove `TemplateMonad` instances for `PandocIO` and `PandocPure`.
2065 These were too limiting and caused a bug whereby a local
2066 partial could be used even when the default template was requested.
2067 We now rely on instances provided in the Templates module.
2069 * Text.Pandoc.App.OutputSettings: Simplify template retrieval code.
2071 * ConTeXt template: Adjust to title formatting (#5949, Denis Maier).
2072 Add `\setupinterlinespace` to `title`, `subtitle`, `date` and `author`
2073 elements: otherwise longer titles that run over multiple lines will look
2074 squashed as `\tfd` etc. won't adapt the line spacing to the font size.
2076 * reveal.js template: Add title-slide-attributes variable (#5981,
2079 * More informative JSON parse error (#5973).
2081 * Use external emojis package (forked from pandoc). Removed emoji data
2082 in Text.Pandoc.Emoji.
2084 * Fix regression in `makeSections` (#5965).
2085 Previously `hierarchicalize` (the ancestor of `makeSections`) would put
2086 header attributes on the containing Div. In 2.8 this behavior changed,
2087 which broke some tools depending on pandoc. Here we roll back this change,
2088 so that attributes again migrate from the header to the containing Div when
2089 `makeSections` is run. Note that attributes are retained on the header as
2090 well (unlike before) -- with the exception of the `id` attribute, which of
2091 course cannot be duplicated.
2093 * Fix `--toc-depth` regression in 2.8 (#5967).
2095 * Use doctemplates 0.8. Rename template 'filters' as 'pipes'
2096 to avoid confusion with the other notion of filter used by pandoc.
2098 * Fix README.md so that relative links from manual become absolute.
2099 Previously they'd be broken links when viewed on GitHub or Hackage.
2100 So we add the base URL for the pandoc manual.
2102 * Document display math syntax in manual.
2104## pandoc 2.8.1 (2019-12-05)
2106 * Add `ascii_identifiers` as a supported extension for `markdown`.
2107 This fixes a regression in 2.8.
2109 * Fix regression with behavior of `--variable` (#5962).
2110 Previously `-Vfoo=1 -Vfoo=2` would produce a list value for foo;
2111 with 2.8 it produced just `2`. This commit restores the earlier
2114 * Roll back part of of `--shift-heading-level-by` change (#5957).
2115 With positive heading shifts, starting in 2.8 this option
2116 caused metadata titles to be removed and changed to regular
2117 headings. This behavior is incompatible with the old
2118 behavior of `--base-header-level` and breaks old workflows,
2119 so we have rolled back the change. Note that there is now an
2120 asymmetry in positive and negative heading level shifts:
2121 With positive shifts, the metadata title stays the same and
2122 does not get changed to a heading in the body, while with
2123 negative shifts, a heading can be converted into the
2126 * Text.Pandoc.Shared: Fix `makeSections` so it doesn't turn
2127 column Divs into sections.
2129 * HTML writer: add task-list class to ul if all elements are
2130 task list items. This will allow styling unordered task
2131 lists in a way that omits the bullet.
2133 * HTML-based templates: Add CSS to suppress bullet on unordered task lists.
2135 * ConTeXt template: Fix `\startcslreferences` and use ConTeXt syntax
2136 conventions (#5945, Denis Maier). The old version had a too large
2137 a skip at the beginning of the reference list.
2139 * LaTeX template: keep the `\author{}` command even if author is not
2140 specified (#5961, Yihui Xie). Avoids a LaTeX warning.
2142 * Generate Emoji module with TH.
2144 + Add Text.Pandoc.Emoji.TH.
2145 + Replace long literal list in Text.Pandoc.Emoji with one-liner
2146 generating it from `emoji.json` using TH.
2147 + Add Makefile target to download `emoji.json`.
2148 + Remove `tools/emoji.hs`.
2150 * Increase GC allocation space for compilation in cabal.project.
2152 * Clean up manual on PDF generation backend options (#5940).
2154 * Update release checklist to include code signing step and update
2155 Windows release-candidate builds (#5950).
2158## pandoc 2.8.0.1 (2019-11-26)
2160 * List `pdf` in `--list-output-formats`.
2161 * EPUB writer: Fix regression with `--css` (#5937). In 2.8 `--css`
2162 would not have an effect on EPUB output.
2163 * RST writer: Use grid tables for one-column tables, since
2164 simple tables clash with heading syntax in this case (#5936).
2165 * Add unexported module Text.Pandoc.Readers.Metadata (see #5914).
2166 * Use doctemplates 0.7.2, which adds the `nowrap` filter to
2168 * Update default man template using `nowrap` for .TH heading (#5929).
2169 * HTML templates: Add support for `toc-title` variable (#5930,
2171 * Remove `grffile` (LaTeX package) requirement in MANUAL.txt
2172 (#5927, Ian Max Andolina).
2173 * Use skylighting 0.8.3.
2175## pandoc 2.8 (2019-11-22)
2177 * Improvements in templates system (from doctemplates):
2179 + Pandoc templates now support a number of new features that
2180 have been added in doctemplates: notably, `elseif`, `it`,
2181 partials, filters, and syntax to control nesting and reflowing of
2182 text. These changes make pandoc more suitable out of the
2183 box for generating plain-text documents from data in YAML
2184 metadata. It can create enumerated lists and even tabular
2186 + We now used templates parameterized on doclayout Doc types.
2187 The main impact of this change is better reflowing of
2188 content interpolated into templates. Previously,
2189 interpolated variables were rendered independently and
2190 interpolated as strings, which could lead to overly long
2191 lines. Now the templates interpolated as Doc values which
2192 may include breaking spaces, and reflowing occurs after
2193 template interpolation rather than before.
2194 + Remove code from the LaTeX, Docbook, and JATS writers that
2195 looked in the template for strings to determine whether it
2196 is a book or an article, or whether csquotes is used. This
2197 was always kludgy and unreliable.
2198 + Change template code to use new API for doctemplates.
2200 * Add `--defaults`/`-d` option. This adds the ability to specify
2201 a collection of default values for options in a YAML file. For
2202 example, one might define a set of defaults for letters,
2203 and then do `pandoc -d letter myletter.md -o myletter.pdf`.
2204 See the documentation of this feature in MANUAL.txt.
2206 * Raise error on unsupported extensions (#4338).
2208 * The `--list-extensions[=FORMAT]` option now lists only
2209 extensions that affect the given FORMAT.
2211 * Add `-L` option as shortcut for `--lua-filter`.
2213 * Add `--shift-heading-level-by` option and deprecate
2214 `--base-heading-level` (#5615). The new option does
2215 everything the old one does, but also allows negative shifts.
2216 It also promotes the document metadata (if not null) to a
2217 level-1 heading with a +1 shift, and demotes an initial
2218 level-1 heading to document metadata with a -1 shift. This
2219 supports converting documents that use an initial level-1
2220 heading for the document title.
2222 * Allow `--metadata-file` to be used repeatedly to include
2223 multiple metadata files (Owen McGrath, #5702). Values in
2224 files specified first will be overridden by those in later
2227 * `--ascii` now uses numerical hex character references (#5718).
2229 * Allow PDF output to stdout (#5751). PDF output now behaves like other
2230 binary formats: it will not be output to the terminal, but can be
2231 sent to stdout using either `-o -` or a pipe. The intermediate format
2232 will be determined based on the setting of `--pdf-engine`.
2234 * Make some writers sensitive to 'unlisted' class on headings (#1762).
2235 If this is present on a heading with the 'unnumbered' class,
2236 the heading won't appear in the TOC. This class has no
2237 effect if 'unnumbered' is not also specified. This affects HTML-based
2238 writers (including slide shows and EPUB), LateX (including beamer), RTF,
2239 and PowerPoint. Other writers do not yet support `unlisted`.
2241 * Fix `gfm_auto_identifiers` behavior with emojis (#5813). Note that
2242 we also now use emoji names for emojis when `ascii_identifiers`
2245 * When `--ipynb-output` is used with the default "best" format, strip
2246 ANSI escape codes for non-ipynb output (#5633). These cause problems
2247 in many formats, including LaTeX.
2249 * Don't look for template files remotely for remote input (#5579).
2250 Previously pandoc would look for the template at a remote URL when a
2251 URL was used for the input file, instead of taking it from the
2254 * Allow combining `-Vheader-includes` and `--include-in-header` (#5904).
2255 Previously `header-includes` set as a variable would be
2256 clobbered by material included using `--include-in-header`.
2258 * Change merge behavior for metadata. Previously, if a document
2259 contained two YAML metadata blocks that set the same field, the
2260 conflict would be resolved in favor of the first. Now it is resolved
2261 in favor of the second (due to a change in pandoc-types).
2262 This makes the behavior more uniform with other things in pandoc
2263 (such as reference links and `--metadata-file`).
2265 * Don't add a newline to fragment output if there's already one.
2267 * Change exit codes and document in MANUAL.txt:
2269 + `PandocAppError` was 1, is now 4
2270 + `PandocOptionError` was 2, is now 6
2271 + `PandocMakePDFError` was 65, is now 66
2273 * Switch to new pandoc-types and use Text instead of String [API change].
2274 (Christian Despres, #5884).
2278 + Better handling of `<q>` with cite attribute (#5798, Ole Martin Ruud).
2279 If a `<q>` tag has a `cite` attribute, we interpret it as a Quoted
2280 element with an inner Span.
2281 + Add support for HTML `<samp>` element (#5792, Amogh Rathore).
2282 The `<samp>` element is parsed as Code with class `sample`.
2283 + Add support for HTML `<var>` element (#5799, Amogh Rathore).
2284 The `<var>` element is parsed as Code with class `variable`.
2285 + Add support for `<mark>` elements (Florian B, #5797). Parse
2286 `<mark>` elements from HTML as Spans with class `mark`.
2287 + Add support for `<kbd>` elements, parsing them as Span with class
2288 `kbd` (Daniele D'Orazio, #5796).
2289 + Add support for `<dfn>`, parsing this as a Span with class `dfn`
2290 (#5882, Florian Beeres).
2294 + Headers: don't parse content over newline boundary (#5714).
2295 + Handle inline code more eagerly within lists (Brian Leung, #5627).
2296 + Removed some needless lookaheads.
2297 + Don't parse footnote body unless extension enabled.
2298 + Fix small super/subscript issue (#5878). Superscripts and subscripts
2299 cannot contain spaces, but newlines were previously allowed
2300 (unintentionally). This led to bad interactions in some cases
2301 with footnotes. With this change newlines are also not allowed inside
2303 + Use `take1WhileP` for `str`, table row. This yields a small but
2304 measurable performance improvement.
2309 + Fix parsing of optional arguments that contain braced text (#5740).
2310 + Don't try to parse includes if `raw_tex` is set (#5673).
2311 When the `raw_tex` extension is set, we just carry through
2312 `\usepackage`, `\input`, etc. verbatim as raw LaTeX.
2313 + Properly handle optional arguments for macros (#5682).
2314 + Fix `\\` in `\parbox` inside a table cell (#5711).
2315 + Improve `withRaw` so it can handle cases where the token string is
2316 modified by a parser (e.g. accent when it only takes part of a Word
2317 token) (#5686). This fixes a bug that caused the ends of
2318 certain documents to be dropped.
2319 + Handle `\passthrough` macro used by latex writer (#5659).
2320 + Support tex `\tt` command (#5654).
2321 + Search for image with list of extensions like latex does, if an
2322 extension is not provided (#4933).
2323 + Handle `\looseness` command values better (#4439).
2324 + Add `mbox` and `hbox` handling (Vasily Alferov, #5586).
2325 When `+raw_tex` is enabled, these are passed through literally.
2326 Otherwise, they are handled in a way that emulates LaTeX's behavior.
2327 + Properly handle `\providecommand` and `\provideenvironment` (#5635).
2328 They are now ignored if the corresponding command or environment
2330 + Support epigraph command in LaTeX Reader (oquechy, #3523).
2331 + Ensure that expanded macros in raw LaTeX end with a space
2332 if the original did (#4442).
2333 + Treat `ly` environment from lilypond as verbatim (Urs Liska, #5671).
2334 + Add `tikzcd` to list of special environments (Eigil Rischel).
2335 This allows it to be processed by filters, in the same way that
2336 one can do for `tikzpicture`.
2340 + Better support for `while`.
2341 + More improvements in parsing conditionals.
2342 + Fix problem parsing comments before macro.
2343 + Improve handling of groups.
2344 + Better parsing of groups (#5410). We now allow groups
2345 where the closing `\\}` isn't at the beginning of a line.
2349 + Keep `name` property in `imgAttr` (Brian Leung, #5619).
2350 + Fixed parsing of indented blocks (#5753). We were requiring
2351 consistent indentation, but this isn't required by RST.
2352 + Use title, not admonition-title, for admonition title.
2353 This puts RST reader into alignment with docbook reader.
2354 + Don't strip final underscore from absolute URI (#5763).
2355 + Avoid spurious warning when resolving links to internal anchors
2356 ending with `_` (#5763).
2360 + Accept `ATTR_LATEX` in block attributes (Albert Krewinkel, #5648).
2361 Attributes for LaTeX output are accepted as valid block attributes;
2362 however, their values are ignored.
2363 + Modify handling of example blocks (Brian Leung, #5717).
2364 + Allow the `-i` switch to ignore leading spaces (Brian Leung).
2365 + Handle awkwardly-aligned code blocks within lists (Brian Leung).
2366 Code blocks in Org lists must have their `#+BEGIN_` aligned in a
2367 reasonable way, but their other components can be
2368 positioned otherwise.
2369 + Fix parsing of empty comment lines (#5856, Albert Krewinkel).
2370 Comment lines in Org-mode can be completely empty.
2372 * Muse reader (Alexander Krotov):
2374 + Add RTL support (#5551).
2375 + Do not allow closing asterisks to be followed by `*`.
2376 + Do not split series of asterisks into symbols and emphasis (#5821).
2377 + Do not terminate emphasis on `*` not followed by space.
2381 + Parse markup inside monospace ('') (#5916, Alexander Krotov).
2385 + Move style-parsing-specific code to a new unexported module,
2386 Text.Pandoc.Readers.Docx.Parse.Styles (Nikolay Yakimov).
2387 + Move StyleMap to docx writer (Nikolay Yakimov).
2388 + Only use LTR when it is overriding BiDi setting (#5723, Jesse
2389 Rosenthal). The left-to-right direction setting in docx is used
2390 in the spec only for overriding an explicit right-to-left setting.
2391 We only process it when it happens in a paragraph set with BiDi.
2392 This is especially important for docs exported from Google Docs,
2393 which explicitly (and unnecessarily) set `rtl=0` for every paragraph.
2394 + Fix list number resumption for sublists (#4324).
2395 The first list item of a sublist should not resume numbering
2396 from the number of the last sublist item of the same level,
2397 if that sublist was a sublist of a different list item.
2401 + Richer parse for admonitions (Michael Peyton Jones, #1234).
2402 Instead of parsing admonitions as blockquotes, we now parse
2403 them as Divs with an appropriate class. We also handle titles
2404 for admonitions as a nested Div with the "title" class.
2405 + Fix nesting of chapters and sections (#5864, Florian Klink,
2406 Félix Baylac-Jacqué).
2407 + Fix bug with entities in mathphrase element (#5885).
2411 + Skip optional `{{table}}` template (#5757).
2415 + Fix dollar-math parsing to ensure that space is left between a
2416 control sequence and a following letter (#5836).
2417 + In `untokenize`, ensure space between control sequence
2418 and following letter (#5836).
2419 + Don't omit macro definitions defined in the preamble.
2420 These were formerly omitted (though they still affected macro
2421 resolution if `latex_macros` was set). Now they are included in
2423 + Parse macro definitions as raw LaTeX when `latex_macros` is
2424 disabled. (When `latex_macros` is enabled, we omit them, since
2425 pandoc is applying the macros itself.)
2426 + Fix a hang/memory leak in certain circumstances (#5845).
2427 + Text.Pandoc.Readers.LaTeX.Parsing: add `[Tok]` parameter to
2428 `rawLaTeXParser`. This allows us to repeat retokenizing
2429 unnecessarily in e.g. `rawLaTeXBlock`.
2430 + Add KOMA-Script metadata commands (#5910, Andrew Dunning).
2431 Add all titling commands to existing definition for `\dedication`.
2432 + Parse `\micro` siunitx unit command (#5921, Jose Luis Duran).
2436 + Ensure proper nesting when we have long ordered list markers (#5705).
2437 + Make `plain` output plainer (#5741). Previously we used the following
2438 Project Gutenberg conventions for plain output: extra space before and
2439 after level 1 and 2 headings, all-caps for strong emphasis,
2440 underscores surrounding regular emphasis. Now these
2441 conventions are used only when the `gutenberg` extension is
2442 enabled. By default, Strong and Emph are rendered without
2443 special formatting, and headings are rendered without
2444 special formatting, and with only one blank line following.
2445 To restore the former behavior, use `-t plain+gutenberg`.
2446 + Prefer using raw_attribute when enabled (#4311).
2447 The `raw_attribute` will be used to mark raw bits, even HTML
2448 and LaTeX, and even when `raw_html` and `raw_tex` are
2449 enabled, as they are by default. To get the old behavior,
2450 disable `raw_attribute` in the writer.
2451 + Prefer `pipe_tables` to raw HTML even when we must
2452 lose width information (#2608, #4497).
2453 + Improve escaping in list items (#5918).
2457 + Don't include `+` in code blocks for regular asciidoc.
2458 This is asciidoctor-specific.
2459 + Handle admonitions (#5690).
2463 + Add thin space when needed in LaTeX quote ligatures (#5684).
2464 + Use `\hspace{0pt}` for 0-width space U+200B (#5756).
2465 + Use `cslreferences` environment for csl bibliographies.
2466 This allows bibliographies to receive special formatting.
2467 The template now contains definition of this environment (enabled
2468 only when CSL is used). It also defines a `\cslhangindent` length.
2469 This is set to 2em by default when the bibliography style specifies
2470 a hanging indent. To override the length, you can use e.g.
2471 `\setlength{\cslhangindent}{7em}` in header-includes.
2472 See jgm/pandoc-citeproc#410.
2473 + Strip off `{}` around locator for biblatex/natbib output (#5722).
2474 + Fix line breaks at start of paragraph (#3324).
2475 Previously we just omitted these. Now we render them
2476 using `\hfill\break` instead of `\\`. This is a revision
2477 of a PR by @sabine (#5591) who should be credited with the idea.
2478 + We no longer look in the template or header-includes to see if a
2479 book or article documentclass is used, or to see whether the
2480 `csquotes` package is used. To use `csquotes` for LaTeX, set
2481 `csquotes` in your variables or metadata. To specify a book
2482 style, use the `documentclass` variable or
2483 `--top-level-division`.
2484 + Fix horizontal rule (#5801). We change to use 0.5pt rather than
2485 `\linethickness`, which apparently only ever worked "by accident"
2486 and no longer works with recent updates to texlive.
2490 + Add option to include source files in ConTeXt PDFs (Tristan
2491 Stenner, #5578). The metadata field or variable
2492 (`includesource`) can be set to attach the source documents
2493 to the resulting PDF.
2494 + Customizable type of PDF/A for the ConTeXt writer (Karl
2495 Pettersson, #5608). The `pdfa` variable may now be set in metadata.
2496 Also updated color profile settings in accordance with ConTeXt wiki,
2497 and made ICC profile and output intent for PDF/A customizable
2498 using `pdfaiccprofile` and `pdfaintent`.
2499 + Unit tests: adjust code property to avoid an irrelevant
2500 failure involving inline code with two consecutive newlines.
2501 + Set `csl-hanging-indent` variable if needed.
2502 + Use special environment for CSL references.
2503 + Use braces, not start/stop, for inline language tags.
2504 This prevents unwanted gobbling of spaces.
2508 + Use numeric character references with `--ascii` (#5718).
2509 Previously we used named character references with html5 output.
2510 But these aren't valid XML, and we aim to produce html5 that is
2511 also valid XHTML (polyglot markup). (This is also needed for epub3.)
2512 + Ensure that line numbers in code blocks get id-prefix (#5650).
2513 + Ensure TeX formulas are rendered correctly (Philip Pesca,
2514 #5658). The web service passed in to `--webtex` may render
2515 formulas using inline or display style by default.
2516 Prefixing formulas with the appropriate command ensures
2517 they are rendered correctly.
2518 + Render inline formulas correctly with `--webtex` (Philip
2519 Pesca, #5655). We add `\textstyle` to the beginning of the
2520 formula to ensure it will be rendered in inline style.
2521 + Pass through `aria-` attributes to HTML5 (#5642).
2522 + Render a Quoted element with an inner Span with
2523 `cite` attribute using a `<q>` tag (#5798, Ole Martin Ruud).
2524 + Render a Span with class `mark` using the `<mark>` element
2525 (Florian Beeres, #5797).
2526 + Render Span with class `dfn` using `<dfn>` element
2527 (Florian Beeres, #5882).
2528 + Render Span with class `kbd` using `<kbd>` element (Daniele
2530 + Render Code with class `variable` using `<var>` element
2531 (Amogh Rathore, #5799).
2532 + Render Code with class `sample` using `<samp>` element
2533 (Amogh Rathore, #5799).
2537 + Improve splitting into chapters (#5761), using `makeSection`.
2538 + Avoid issuing warning multiple times when title not set (see #5760).
2539 + Use svg tag wrapper for cover image (#5638). In addition, the
2540 code generating the image has been moved to the template, to make it
2541 more customizable. NOTE: Those who use custom EPUB
2542 templates will need to adjust their templates, adding the
2543 code to generate the cover image. (Previously this was just
2544 inserted into 'body'.)
2545 + Improve toChapters, making it work better if there are Divs
2547 + Add support for EPUB2 covers (blmage, #3992).
2548 + Do not override existing "fileN" medias when writing to EPUB format
2550 + Ensure that `lang` variable is set on all chapters (so that it
2551 will add an `xml:lang` attribute on the `html` element).
2555 + Removed remnants of `admonition-title`.
2556 + Fix handling of `:align:` on figures and images (#4420).
2557 When the image has the `align-right` (etc.) class, we now use
2558 an `:align:` attribute.
2559 + Improve spacing for tables with no width information (#5899).
2560 If a simple table would be too wide, we use a grid table.
2561 + Fix backslash escaping after strings (Albert Krewinkel, #5906).
2562 The check whether a complex inline element following a string must
2563 be escaped, now depends on the last character of the string instead
2565 + Ensure there's a blank line before tables (#5898).
2569 + Handle mixed lists without HTML fallback (#5107).
2573 + Fix multiline table (Zihang Chen, #5683).
2577 + Add RTL support (Alexander Krotov, #5551).
2581 + Suppress non-absolute link URLs (#5770). Absolute URLs are
2582 still printed in parentheses following the link text, but relative
2583 URLs are suppressed (just as internal links starting with '#'
2585 + Improved definition list term output. Now we boldface code but
2586 not other things. This matches the most common style in man pages
2587 (particularly option lists).
2591 + Use `.LP` instead of `.PP` for line block (#5588).
2592 + Use boldface for definition terms in DefinitionLists.
2596 + Do not emit empty `<fn-group>` (Mauro Bieg, #5595).
2597 + Update template to v1.1dtd (#5632, Arfon Smith).
2598 + Update `data/jats.csl` to avoid commas between editor
2599 name-part elements. (#5629)
2600 + Add `abstract` to template (Mauro Bieg).
2604 + Don't strip hash from internal links (#5922).
2608 + Remove escapeStringForJira for code blocks (Jan-Otto Kröpke).
2609 + Remove extraneous newline after single-line block quotes
2610 (#5858, Albert Krewinkel).
2611 + Improve escaping of special characters, using backslash escapes
2612 instead of HTML entities (#5858, Albert Krewinkel).
2614 * OpenDocument writer:
2616 + Avoid duplicate attributes (#4634). We use the innermost
2617 attribute in nested cases.
2618 + If `native_numbering` extension is set, use native OpenDocument
2619 enumeration for figures and tables (Nils Carlson).
2620 + Place caption before table (#5681, Dmitry Pogodin).
2624 + Add a test for MathML formulas in ODT documents (blmage).
2625 + Improve the parsing of frames in ODT documents (blmage).
2629 + Make handling of styles more robust in localized versions
2630 of Word (Nikolay Yakimov, #5523, #5052, #5074). We now use
2631 style names, not ids, for assigning semantic meaning, since
2632 the ids can change depending on the locale. Style name
2633 comparisons are case-insensitive, since those are
2634 case-insensitive in Word. Since docx style names can have
2635 spaces in them, and pandoc-markdown classes can't, anywhere
2636 when style name is used as a class name, spaces are
2637 replaced with ASCII dashes `-`. Code styles, i.e. "Source
2638 Code" and "Verbatim Char" now honor style inheritance. Docx
2639 Reader now honours "Compact" style (used in
2640 Pandoc-generated docx). The side-effect is that "Compact"
2641 style no longer shows up in docx+styles output. Styles
2642 inherited from "Compact" will still show up.
2643 + Re-use Readers.Docx.Parse for StyleMap (#5766, Nikolay Yakimov).
2644 + Internal improvements and code simplification (Nikolay Yakimov).
2645 + Preserve built-in styles in DOCX with custom style (Ben Steinberg,
2646 #5670). This change prevents custom styles on divs and spans
2647 from overriding styles on certain elements inside them, like
2648 headings, blockquotes, and links. On those elements, the
2649 "native" style is required for the element to display correctly.
2650 This change also allows nesting of custom styles; in order to do so,
2651 it removes the default "Compact" style applied to Plain blocks,
2652 except when inside a table.
2653 + Add `proofState` to list of elements carried over from
2654 settings.xml in the reference.docx (Krystof Beuermann, #5703).
2655 + Change order of `ilvl` and `numId` in `document.xml` (Agustín
2656 Martín Barbero, #5645). Also, make list para properties go first.
2657 This reordering of properties shouldn't be necessary but
2658 it seems Word Online does not understand the docx correctly otherwise.
2660 * PowerPoint writer:
2662 + Code formatting is now context dependent (Jeroen de Haas, #5573).
2663 This commit alters the way in which the Powerpoint writer treats
2664 inline code and code blocks. Inline code is now formatted at
2665 the same size as the surrounding text. Code blocks are now given
2666 a margin and font size according to their level.
2667 Furthermore this commit allows changing the font with which code is
2668 formatted via the `monofont` option.
2669 + Start numbering at appropriate numbers (Jesse Rosenthal, #5709).
2670 Starting numbers for ordered lists were previously ignored. Now
2671 we specify the number if it is something other than 1.
2673 * Text.Pandoc.Parsing:
2675 + Add `manyChar`, `many1Char`, `manyTillChar`, `many1TillChar`,
2676 `many1Till`, `manyUntil`, `mantyUntilChar`: these are like their
2677 unsuffixed counterparts but pack some or all of their output
2678 (Christian Despres, #5884).
2679 + Add `stateAllowLineBreaks` to `ParserState` [API change].
2680 + Fix inline parsing in grid table cells (#5708).
2681 + Change type of `setLastStrPos` so it takes a `Maybe SourcePos`
2682 rather than a `SourcePos` [API change].
2683 + Make `parseFromString'` and `gridTableWith` and
2684 `gridTableWith'` polymorphic in the parser state,
2685 constraining it with `HasLastStrPosition` [API change].
2686 + `parseFromString'`: reset `stateLastStrPos` to `Nothing` before parse.
2687 + Rename takeWhileP -> take1WhileP and clean it up.
2688 (It doesn't match the empty sequence.)
2692 + For PDFs via HTML, ensure temp file is deleted even if the pdf
2693 program is not found (#5720).
2694 + Better detection of a Cygwin environment (#5451).
2695 + Don't assume tex log file is UTF8-encoded (#5872).
2696 Fall back to latin1 if it can't be read as UTF-8.
2698 * Text.Pandoc.Extensions:
2700 + Export new function `getAllExtensions`, which returns the
2701 extensions that affect a given format (whether enabled by default
2702 or not) [API change].
2703 + Change type of `parseFormatSpec` from
2704 `Either ParseError (String, Extensions -> Extensions)`
2705 to `Either ParseError (String, [Extension], [Extension])`
2707 + Add `Ext_gutenberg` constructor to `Extension` [API change].
2708 + Add `Ext_native_numbering` constructor to `Extension` [API change]
2711 * Text.Pandoc.Readers, Text.Pandoc.Writers:
2713 + Change type of `getReader` and `getWriter` so they return
2714 a value in the PandocMonad instance rather than an Either
2715 [API change]. Exceptions for unknown formats and unsupported
2716 extensions are now raised by these functions.
2720 + Change `optMetadataFile` type from `Maybe FilePath` to `[FilePath]`
2721 (Owen McGrath, #5702) [API change].
2723 * Text.Pandoc.Logging:
2725 + Add `CouldNotDeduceFormat` constructor to `LogMessage` [API change].
2726 Issue this warning when we're falling back to markdown or
2727 html because we don't recognize the extension of the input or
2729 + Clarify warning for missing title (#5760).
2730 + Add `UnusualConversion` constructor to `LogMessage` [API change]
2731 (Mauro Bieg, #5736). Emit warning on `-f latex -o out.pdf`.
2735 + Improve function documentation (Albert Krewkinkel).
2736 + Traverse nested blocks and inlines in correct order (Albert
2737 Krewinkel, #5667). Traversal methods are updated to use the new
2738 Walk module so that sequences with nested Inline (or Block) elements
2739 are traversed in the order in which they appear in the linearized
2741 + New unexported module `Text.Pandoc.Lua.Walk` (Albert Krewinkel).
2742 Lua filters must be able to traverse sequences of AST
2743 elements and to replace elements by splicing sequences back
2744 in their place. Special `Walkable` instances can be used for
2745 this; those are provided in a new module
2746 `Text.Pandoc.Lua.Walk`.
2747 + `Attr` values can now be given as normal Lua tables (Albert
2748 Krewinkel, #5744). This can be used as a convenient alternative
2749 to constructing `Attr` values with `pandoc.Attr`. Identifiers
2750 are taken from the `id` field, classes must be given as
2751 space separated words in the `class` field. All remaining fields
2752 are included as attributes. With this change, the following lines
2753 now create equal elements:
2755 pandoc.Span('test', {id = 'test', class = 'a b', check = 1})
2756 pandoc.Span('test', pandoc.Attr('test', {'a','b'}, {check = 1}))
2758 This also works when using the *attr* setter:
2760 local span = pandoc.Span 'text'
2761 span.attr = {id = 'test', class = 'a b', check = 1}
2763 Furthermore, the *attributes* field of AST elements can now be a
2764 plain key-value table even when using the `attributes` accessor:
2766 local span = pandoc.Span 'test'
2767 span.attributes = {check = 1} -- works as expected now
2769 + Export `make_sections`, remove `hierarchicalize`. Lua filters that
2770 use `hierarchicalize` will need to be rewritten to use
2772 + Add a `clone()` method to all AST elements (Albert Krewinkel, #5568).
2773 + Fix Lua function names in pandoc.system (niszet). Change
2774 `get_current_directory` to `get_working_directory` and
2775 `with_temp_directory` to `with_temporary_directory`, to
2776 conform to the manual.
2778 * Text.Pandoc.Error:
2780 + Add constructors `PandocUnknownReaderError`,
2781 `PandocUnknownWriterError`, `PandocUnsupportedExtensionError`.
2783 + Better message for `PandocShouldNeverHappenError`.
2784 + Better message for `PandocTemplateError`.
2786 * Text.Pandoc.Emoji:
2788 + Update emoji list (#5666). Done using new `tools/emojis.hs`,
2789 which uses the list from the gem GitHub uses. Future updates
2790 can be done with this tool.
2794 + Pass value of `--dpi` to `rsvg-convert` when converting SVG to PDF
2795 in the process of creating a PDF (#5721).
2797 * Text.Pandoc.Shared:
2799 + Replace `Element` and `makeHierarchical` with `makeSections`.
2800 Now that we have Divs, we can use them to represent the
2801 structure of sections, and we don't need a special Element type.
2802 `makeSections` reorganizes a block list, adding Divs with class
2803 `section` around sections, and adding numbering if needed.
2804 This change also fixes some longstanding issues recognizing section
2805 structure when the document contains Divs (#3057, see also #997).
2806 + Remove `Element` type [API change]
2807 + Remove `makeHierarchicalize` [API change]
2808 + Add `makeSections` [API change]
2809 + Export `deLink` [API change]
2810 + Make `filterIpynbOutput` strip ANSI escapes from code in output
2811 for non-ipynb formats, when the default "best" option is used with
2812 `--ipynb-output` (#5633).
2813 + Fix `camelCaseToHyphenated` so it handles `ABCDef` better.
2814 + Improve `isTight` (#5857). If a list has an empty item,
2815 this should not count against its being a tight list.
2816 + Export `htmlSpanLikeElements` [API change] (Daniele D'Orazio, #5796).
2817 This is a mapping of HTML span-like elements that are internally
2818 represented as a Span with a single class.
2819 + Change the implementation of `htmlSpanLikeElements` to retain
2820 classes and attributes (#5882, Florian Beeres).
2822 * Text.Pandoc.Slides: recognize content in Divs when determining
2825 * Text.Pandoc.SelfContained:
2827 + Omit content-type on type attribute for `<style>` (#5725).
2828 It doesn't seem to be valid for HTML5, and as a result Chrome
2829 ignores the style element.
2831 * Text.Pandoc.Pretty has been removed [API change].
2832 We now use the new external doclayout module instead.
2834 * Text.Pandoc.Writers.Shared:
2836 + Remove `metaToJSON`, `metaToJSON'` [API change].
2837 + Modify `addVariablesToContext`, `defField`, `setField`, `getField`,
2838 `resetField` to work with Context rather than JSON values. [API change]
2839 + Export new function `endsWithPlain` [API change].
2840 + Change `gridTables` so it does better at keeping the widths of
2841 columns (#4320) and does better at figuring out column widths
2842 when no widths are given (#5899).
2844 * Text.Pandoc.Options
2846 + Change type of `writerTemplate` to `Maybe Template` instead
2848 + Change To/FromJSON instances for `HTMLMathMethod`, `CiteMethod`,
2849 `ObfuscationMethod`, `TrackChanges`, `WrapOption`,
2850 `TopLevelDivision`, `ReferenceLocation`, `HTMLSlideVariant` (#5790).
2851 In each case we use lowercase (or hyphenated lowercase) for
2852 constructors to line up more closely with command-line option
2853 values. This is a breaking change for those who manually decode or
2854 encode JSON for these data types (e.g. for `ReaderOptions` or
2857 * Text.Pandoc.Filters:
2859 + Add `FromYAML` instance for `Filter`.
2860 + `applyFilters`: Add and apply filters in order (not reversed)
2861 This changes `applyFilters` from Text.Pandoc.Filter so
2862 that it does a left fold rather than a right fold, applying
2863 the filters in the order listed.
2867 + Change `toEntities` to emit numerical hex character references
2870 * Text.Pandoc.Highlighting:
2872 + Add additional listings languages (Wandmalfarbe).
2874 * Text.Pandoc.MediaBag:
2876 + Some of the types using Strings were switched to use FilePath instead
2877 (Christian Despres, #5884).
2879 * Text.Pandoc.Templates:
2881 + Don't import/export `varListToJSON` [API change]. It is removed in
2882 doctemplates >= 0.3.
2883 + Change type of `renderTemplate'` [API change]. Return value is
2884 now Text rather than being polymorphic. This makes room for
2885 upcoming removal of the `TemplateTarget` class from doctemplates.
2887 * Text.Pandoc.App.Opt [API changes]:
2889 + More convenient To/FromJSON instances. Make the field names
2890 like `strip-empty-paragraphs` rather than `optStripEmptyParagraphs`.
2891 Anyone who is using JSON serialization of Opt will need to adjust
2893 + Change `optHighlightStyle` to a `Maybe String` instead of
2894 `Maybe Style`. Do the parsing/loading of themes later, after
2896 + Remove `optBaseHeaderLevel` from `Opt`. We now just use
2897 `optShiftHeadingLevelBy`, to avoid redundancy.
2898 + Change `optShiftHeadingLevel` to `optShiftHeadingLevelBy` to
2900 + Custom FromJSON instance for `LineEnding`, so either `CRLF`
2901 or `crlf` will work.
2902 + Change `optVariables` from `[(String, String)]` to `Context Text`.
2903 + Change `optMetadata` to `Meta`, to allow structured values.
2904 The current behavior of the `--metadata` option stays the same.
2905 + Rename `optReader`, `optWriter` as `optFrom`, `optTo`.
2906 + Add `FromYAML` instances to `Opt` and to all subsidiary types.
2907 + Rename `optMetadataFile` to `optMetadataFiles`.
2908 + Rename `optPDFEngineArgs` to `optPDFEngineOpts`.
2909 + Rename `optWrapText` to `optWrap`.
2910 + Add `IpynbOutput` enumerated type: use this instead of
2911 a string for `optIpynbOutput`.
2912 + Change optInputFiles to a `Maybe [FilePath]` (#5888) [API change].
2913 `Nothing` means: nothing specified.
2914 `Just []` means: an empty list specified (e.g. in defaults).
2915 + List fields in Opt so they aren't reversed (#5881) [API change].
2916 Previously `optIncludeInHeader`, etc. were in reverse order.
2917 + The `sourcefile` variable is now always a list. It used to be
2918 sometimes a string, sometimes a list (when there was more than one).
2922 + default.latex: added code for `cslreferences` environment,
2923 to be used for pandoc-citeproc references. A `csl-hanging-indent`
2924 variable (set automatically if there is a `hanging-ident`
2925 class on the references Div) controls whether contents of this
2926 environment receive a hanging indent.
2927 + default.latex: Add `space` as default option for xeCJK, so that
2928 spaces between words are preserved (#5855, jeongminkim-islab).
2929 This is necessary for Korean.
2930 + default.latex: Remove include of `grffile` (#5848).
2931 This package used to be needed for proper handling of image filenames
2932 containing periods (in addition to the period before the extension).
2933 It no longer works with the latest LaTeX kernel and graphicx,
2934 so we have removed it. Future versions of graphicx will handle
2935 these filenames without the need for `grffile`.
2936 + default.context: add a saner default for page numbers.
2937 Previously they appeared centered at the top of the page;
2938 now we put them centered at the bottom, unless the `pagenumbering`
2940 + default.context: define a start-stop-pair `cslreferences` to
2941 allow for hanging indents in the bibliography (#5875, Denis Maier).
2942 + default.ms: update defaults. Use Palatino font, use slightly
2943 wider interparagraph space, don't indent paragraphs,
2944 and put page numbers on the bottom. This brings ms output
2945 closer to default LaTeX output.
2946 + default.revealjs: add navigationMode (Mauro Bieg, #5657).
2947 + default.muse: handle multiple authors better.
2948 + docbook4, docbook5 templates: add indentation to body.
2949 + HTML-based templates: use `styles.html` partial to avoid
2951 + HTML-based templates: change indentation of styles in template.
2953 * reference.docx (#5820):
2955 + Change Block Text (block quote) style so that the same font
2956 is used as in the body text, and the block text is indented
2958 + All headings now have a uniform color.
2959 + Level-1 headings no longer set `w:themeShade="B5"`.
2960 + Level-2 headings are now 14 point rather than 16 point.
2961 + Level-3 headings are now 12 point rather than 14 point.
2962 + Level-4 headings are italic rather than bold.
2964 * epub.css: Add CSS for hanging-indent div to support pandoc-citeproc's
2965 new hanging indents.
2969 + Repeat ghc-options in all stanzas.
2970 + Remove conditionals for ghc < 8 (Albert Krewinkel, #5693).
2971 + Compile with `-Wcpp-undef` and `-fhide-source-paths` when possible
2973 + Add cabal.project to extra-source-files (Albert Krewinkel).
2974 + Add dependency on skylighting-core (#5729). Even though it shouldn't
2975 be needed, some tools require it.
2976 + Require latest pandoc-types, texmath, skylighting, haddock-library.
2977 + Ensure TemplateHaskell is added to other-extensions when it is
2978 used (Vanessa McHale, #5728).
2979 + Remove `derive_json_via_th` flag; always use TH. This cuts down
2980 on code duplication and reduces the chance for errors. See #4083.
2986 + Remove references to obsolete flag (#5694).
2988 * Benchmarks: fix failure on ipynb.
2990 * Use MathJax 3 (zorkow).
2992 * KaTeX math: respect `classoption=fleqn` variable,
2993 bump KaTeX version to 0.11.1 (#5815, Mauro Bieg).
2995 * Fix redundant constraint compiler warnings (Pete Ryland, #5625).
2997 * Use throwError instead of fail when appropriate.
2999 * Use Prelude.fail to avoid ambiguity with fail from GHC.Base.
3001 * Add `diff-zip.sh` to tools (John MacFarlane, Agustín Martín Barbero).
3002 This is intended to make it easier to test differences in zip
3003 containers, like epub, docx, or odt.
3005 * Add `.gitattributes` (#5747). This ensures that the golden files
3006 in `test/fb2/reader/` don't have newlines converted. This should fix
3007 a test failure on GitHub CI with Windows.
3009 * Reorder options in `--help`.
3011 * Revise code for HsYAML-0.2.0.0 (@vijayphoenix, #5704).
3013 * Remove blank line in code example in Haddocks (Leif Metcalf, #5679).
3015 * Fix trypandoc with `getReader`/`getWriter` changes.
3017 * Allow building pandoc with GHC 8.8.
3019 * linux tarball: add architecture `-amd64` to filename.
3020 Now it will be: `pandoc-VERSION-linux-ARCH.tar.gz`.
3024 + Add section for exit codes.
3025 + Document some pptx limitations in slide show section:
3026 No incremental display (#5689). No pause with `. . .` (#5701).
3027 + reveal.js flags (Mauro Bieg, #5653).
3028 + Document addition of `data-` prefix to unknown attributes in HTML5.
3029 + Link to YAML spec (Mauro Bieg, #5687).
3030 + Fix capitalization of "Linux" (#5859, Marcus Stollsteimer).
3031 + Use a table for exit codes.
3032 + Put all template variable docs into one section.
3033 + Use ATX headers consistently.
3034 + Add fuller documentation of templates (#5779), including
3035 new template syntax, partials, etc.
3036 + Add documentation for the variable `hyperrefoptions` (Wandmalfarbe).
3037 + Clarify when macro definitions are passed as raw latex.
3038 In Markdown input, they are always passed through. In LaTeX, only if
3039 `latex_macros` is disabled.
3040 + Clarify that `--dpi` provides a default and doesn't override
3041 dpi values specified in the images themselves (#5721).
3042 + Document how to use custom writers with `--standalone` (#5866).
3043 + Clarify `--preserve-tabs` default.
3047 + Fix instructions for libicu.
3048 + Add Void Linux instructions (Volodymyr Kozachnyskyi).
3052 + Add information on tests (Agustín Martín Barbero, #5652).
3053 + Add information about command test naming to CONTRIBUTING (Florian B).
3055 * Fix typos in changelog and comments (#5896, Brian Wignall).
3057 * doc/lua-filters.md:
3059 + Fix mistakes in mediabag module docs (#5851, Albert Krewinkel).
3060 + Improve metadata replacement example in lua-filters doc (#5851).
3061 + Mention which Lua version is shipped with pandoc (Albert Krewinkel,
3064## pandoc 2.7.3 (2019-06-11)
3066 * Add `jira` (Atlassian's Jira wiki markup) as output format (#2497,
3069 * Add `tex_math_dollars` to `multimarkdownExtensions` (#5512).
3070 This form is now supported in multimarkdown,
3071 in addition to `tex_math_double_backslash`.
3073 * Fix `--self-contained` so it works when output format has extensions.
3074 Previously if you used `--self-contained` with `html-smart` or
3075 `html+smart`, it wouldn't work.
3077 * Add template variable `curdir` with working directory
3078 from which pandoc is run (#5464).
3080 * Markdown reader: don't create implicit reference for empty header
3083 * Muse reader: allow images inside link descriptions (Alexander Krotov).
3085 * HTML reader: epub related fixes.
3087 + With epub extensions, check for `epub:type` in addition to `type`.
3088 + Fix problem with noteref parsing which caused block-level
3089 content to be eaten with the noteref.
3090 + Rename `pAnyTag` to `pAny`.
3091 + Refactor note resolution.
3092 + Trim definition list terms (Alexander Krotov).
3096 + Add braces when resolving `\DeclareMathOperator`
3097 (#5441). These seem to be needed for xelatex but not pdflatex.
3098 + Allow newlines in `\mintinline`.
3099 + Pass through unknown listings language as class (#5540).
3100 Previously if the language was not in the list of languages supported
3101 by listings, it would not be added as a class, so highlighting
3102 would not be triggered.
3103 + `rawLaTeXInline`: Include trailing `{}`s in raw latex commands (#5439).
3104 This change affects the markdown reader and other readers that allow raw
3105 LaTeX. Previously, trailing `{}` would be included for unknown
3106 commands, but not for known commands. However, they are sometimes used
3107 to avoid a trailing space after the command. The chances that a `{}`
3108 after a LaTeX command is not part of the command are very small.
3110 * MediaWiki reader: handle multiple attributes in table row (#5471,
3113 * Docx reader: Add support for `w:rtl` (#5545). Elements with this
3114 property are put into Span inlines with `dir="rtl"`.
3116 * DocBook reader: Issue `IgnoredElement` warnings.
3118 * Org reader (Albert Krewinkel):
3120 + Fix planning elements in headers level 3 and higher
3121 (#5494). Planning info is now always placed before
3122 the subtree contents. Previously, the planning info was placed after
3123 the content if the header's subtree was converted to a list, which
3124 happens with headers of level 3 and higher per default.
3125 + Omit, but warn about unknown export options. Unknown export
3126 options are properly ignored and omitted from the output.
3127 + Prefer plain symbols over math symbols (#5483).
3128 Symbols like `\alpha` are output plain and unemphasized, not as math.
3129 + Recognize emphasis after TODO/DONE keyword (#5484).
3133 + Skip unknown elements rather than throwing errors (#5560).
3134 Sometimes custom elements are used (e.g. `id` element
3135 inside `author`); previously the reader would halt with an error.
3136 Now it skips the element and issues an `IgnoredElement` warning.
3137 + Parse notes (#5493, Alexander Krotov).
3138 + Internal improvements (Alexander Krotov).
3140 * OpenDocument writer: Roll back automatic figure/table numbering
3141 (#5474). This was added in pandoc 2.7.2, but it makes it impossible
3142 to use pandoc-crossref. So this has been rolled back for now,
3143 until we find a good solution to make this behavior optional
3144 (or a creative way to let pandoc-crossref and this feature
3147 * New module Text.Pandoc.Writers.Jira, exporting `writeJira` [API
3148 change] (Albert Krewinkel).
3152 + Don't include 'landmarks' if there aren't any.
3153 Previously we could get an empty ol element, which caused
3154 validation errors with epubcheck.
3155 + Ensure unique ids for styleesheets in content.opf (#5463).
3156 + Make stylesheet link compatible with kindlegen (#5466,
3157 Eric Schrijver). Pandoc omitted `type="text/css"` from both
3158 `<style>` and `<rel="stylesheet">` elements in all templates, which
3159 is valid according to the spec. However, Amazon’s kindlegen software
3160 relies on this attribute on `<link>` elements when detecting
3161 stylesheets to include.
3165 + Output video and audio elements depending on file
3166 extension of the image path (Mauro Bieg).
3167 + Emit empty alt tag in figures (#5518, Mauro Bieg).
3168 The same text is already in the <figcaption> and
3169 screen-readers would read it twice, see #4737.
3170 + Don't add variation selector if it's already there.
3171 This fixes round-trip failures.
3172 + Prevent gratuitous emojification on iOS (#5469).
3173 iOS chooses to render a number of Unicode entities, including '↩', as
3174 big colorful emoji. This can be defeated by appending Unicode
3175 VARIATION SELECTOR-15'/'VARIATION SELECTOR-16'. So we now append this
3176 character when escaping strings, for both '↩' and '↔'. If other
3177 characters prove problematic, they can simply be added to
3178 `needsVariationSelector`. + Add `class="heading"` to level 7+ Headers
3179 rendered as `<p>` elements (#5457).
3181 * RST writer: treat Span with no attributes as transparent (#5446).
3182 Previously an Emph inside a Span was being treated as
3183 nested markup and ignored. With this patch, the Span
3188 + Include inline code attributes with `--listings` (#5420).
3189 + Don't produce columns environment unless beamer (#5485).
3190 + Fix footnote in image caption. Regression: the fix for #4683 broke
3192 + Don't highlight code in headings (#5574). This causes
3194 + Use `\mbox` to get proper behavior inside `\sout` (#5529).
3196 * EPUB writer: Fix document section assignments (#5546).
3197 For example, introduction should go in bodymatter, not frontmatter, and
3198 epigraph, conclusion, and afterward should go in bodymatter, not
3199 backmatter. For the full list of assignments, see the manual.
3203 + Add backslashes to avoid unwanted interpretation of
3204 definition list terms as other kinds of block (#554).
3205 + Ensure the code fence is long enough (#5519).
3206 Previously too few backticks were used when the code block
3207 contained an indented line of backticks. (Ditto tildes.)
3208 + Handle labels with integer names (Jesse Rosenthal, #5495).
3209 Previously if labels had integer names, it could produce a conflict
3210 with auto-labeled reference links. Now we test for a conflict and
3211 find the next available integer. This involves adding a new state
3212 variable `stPrevRefs` to keep track of refs used in other document
3213 parts when using `--reference-location=block|section`
3215 * Textile writer: fix closing tag for math output (Albert Krewinkel).
3216 Opening and closing tag for math output match now.
3218 * Org writer: always indent src blocks content by 2 spaces (#5440, Albert
3219 Krewinkel). Emacs always uses two spaces when indenting the content of
3220 src blocks, e.g., when exiting a `C-c '` edit-buffer. Pandoc used to
3221 indent contents by the space-equivalent of one tab, but now always uses
3226 + Use `` `+...+` `` form for inline code.
3227 The old `` `a__b__c` `` yields emphasis inside code in asciidoc.
3228 To get a pure literal code span, use `` `+a__b__c+` ``.
3229 + Use proper smart quotes with asciidoctor (#5487).
3230 Asciidoctor has a different format for smart quotes.
3231 + Use doubled ## when necessary for spans (#5566).
3232 + Ensure correct nesting of strong/emph (#5565): strong
3233 must be the outer element.
3237 + Wrap elements with p when needed (#5570). The JATS spec restricts
3238 what elements can go inside `fn` and `list-item`. So we wrap other
3239 elements inside `<p specific-use="wrapper">` when needed.
3240 + Properly handle footnotes (#5511) according to "best practice."
3241 (Group them at the end in `<fn-group>` and use `<xref>` elements
3243 + Fix citations with PMID so they validate (#5481). This includes
3244 an update to data/jats.csl.
3245 + Ensure validity of `<pub-date>` by parsing the date and
3246 extracting year, month, and day, as expected. Also add an
3247 iso-8601-date attribute automatically.
3248 + Don't use `<break>` element for LineBreak. It is only
3249 allowed in a few special contexts, and not in `<p>` elements.
3250 + Don't make `<string-name>` a child of `<string>`, which is illegal.
3254 + Do not wrap note references into `<sup>` and brackets
3255 (Alexander Krotov). Existing FB2 readers, such as FBReader, already
3256 display links with type="note" as a superscript.
3257 + Use genre metadata field (#5478).
3259 * Muse writer: do not escape empty line after `<br>` (Alexander Krotov).
3261 * Add unicode code point in "Missing character" warning (#5538).
3262 If the character isn't in the console font, the message is pretty useless,
3263 so we show the code point for anything non-ASCII.
3265 * Lua: add Version type to simplify comparisons (Albert Krewinkel).
3266 Version specifiers like `PANDOC_VERSION` and `PANDOC_API_VERSION` are
3267 turned into `Version` objects. The objects simplify version-appropriate
3268 comparisons while maintaining backward-compatibility.
3269 A function `pandoc.types.Version` is added as part of the newly
3270 introduced module `pandoc.types`, allowing users to create version
3273 * pandoc lua module (Albert Krewinkel):
3275 - Fix deletion of nonexistent attributes (#5569).
3276 - Better tests for Attr and AttributeList.
3278 * pandoc.mediabag lua module (Albert Krewinkel):
3280 + Add function `delete` for deleting a single item.
3281 + Add function `empty` for removing all entries.
3282 + Add function `items` for iterating over mediabag.
3284 * Text.Pandoc.Class: Fix handling of `file:` URL scheme in
3285 `downloadOrRead` (#5517, Mauro Bieg). Previously `file:/`
3286 URLs were handled wrongly and pandoc attempted to make HTTP
3287 requests, which failed.
3289 * Text.Pandoc.MIME: add `mediaCategory` [API change] (Mauro Bieg).
3291 * Text.Pandoc.Shared:
3293 + Add `onlySimpleTableCells` [API change]
3294 (Mauro Bieg) and use this to consolidate simple-table detection
3295 (#5524). This fixes an inconsistency in the HTML reader, which did not
3296 treat tables with `<p>` inside cells as simple.
3297 + `metaToJSON`: treat digits starting with 0 as a string, not a number
3298 (#5479). This fixes a regression in YAML metadata in pandoc 2.7.2.
3300 * Text.Pandoc.Logging: Add `IgnoredElement` constructor for
3301 `LogMessage`. `SkippedConetnt` doesn't work for some XML-based
3302 readers which don't have access to parsec source positions.
3304 * Text.Pandoc.Asciify: Add Turkish undotted-i (#5433, Mauro Bieg).
3306 * Improve output of Lua tests (#5499, Albert Krewinkel).
3307 This makes use of tasty-lua, a package to write tests in Lua
3308 and integrate the results into Tasty output. Test output becomes
3309 more informative: individual tests and test groups become visible
3310 in test output. Failures are reported with helpful error messages.
3312 * Lua: add `pandoc.system` module (#5468, Albert Krewinkel).
3313 The `system` Lua module provides utility functions to interact with the
3314 operating- and file system. E.g.
3315 `print(pandoc.system.get_current_directory())`
3318 pandoc.system.with_temporary_directory('tikz', function (dir)
3319 -- write and compile a TikZ file with pdflatex
3323 * LaTeX template: Add pdflang to hypersetup if lang is set (#5443).
3325 * beamer template: Fix using Beamer with geometry (#5505, Daniel Maslowski).
3326 Beamer already loads geometry, so we need to use the `\geometry`
3327 command to set geometry options.
3329 * EPUB2/3 templates: Move inline styles to default epub.css (#5466).
3330 NOTE: Those who use a custom CSS stylesheet with EPUB should
3333 code{ white-space: pre-wrap; }
3334 span.smallcaps{ font-variant: small-caps; }
3335 span.underline{ text-decoration: underline; }
3336 q { quotes: "“" "”" "‘" "’"; }
3337 div.column{ display: inline-block; vertical-align: top; width: 50%; }
3339 * reveal.js template:
3341 + Updates for revealjs 3.8.0 (#5435, ebiim).
3342 + Remove reference to head.min.js (#5448, Winnie Hellmann).
3343 NOTE: users will need to update reveal.js to at least 3.8.0
3344 for their presentations generated with this version of pandoc
3349 + Replace `</>` with literal `/` (#5451).
3350 We use forward-slash for a directory separator in tmpDir,
3351 even on Windows (because that's what tex likes). So we
3352 should not put a backslash between the tmpDir and the
3353 filename on Windows. This is harmless enough in normal
3354 Windows setups, but it breaks on Cygwin.
3355 Thanks to @cc2x for noticing and diagnosing the problem.
3356 + Allow use of `-output-directory` in `--pdf-engine-opt` (#5462).
3357 This is currently possible with `mklatex` and `-outdir`, but
3358 was not yet possible with xelatex and `-output-directory`.
3359 + For PDF via ms/pdfroff, make TOC appear at beginning and in
3360 PDF bookmarks (#5553). Previously the TOC appeared at the end
3361 of the document, and was not bookmarked. To keep it at the end,
3362 add `--pdf-engine-opt=--no-toc-relocation` to your command line.
3364 * Fix broken links in documents (#5473, Shim Myeongseob).
3365 Also, use absolute links to pandoc.org when possible, so that
3366 the links can be followed by people viewing these documents
3369 * Improved sample lua tikz filter in lua-filters docs (#5445,
3370 Matthew Doty). There are three changes:
3372 + It only processes elements which begin with `\begin{tikzpicture}`
3373 + It uses pdf2svg instead of imagemagick to preserve fidelity
3374 + The images produced have transparent backgrounds
3378 + Add note about `title-meta`, `author-meta`, `date-meta` (#5486).
3379 + Fix typo (#5489, Christian Krause).
3381 * add test/tables.xwiki to git and pandoc.cabal (#5498, Mauro Bieg).
3383 * Disable missing-home-modules warning in `stack.yaml`.
3384 Otherwise `stack ghci` fails.
3387## pandoc 2.7.2 (2019-04-05)
3389 * Add XWiki writer (#1800, Derek Chen-Becker).
3390 Add `Text.Pandoc.Writers.XWiki`, exporting `writeXWiki` [API change].
3392 * Dokuwiki Reader: parse single curly brace (#5416, Mauro Bieg).
3394 * Vimwiki reader: improve handling of internal links (#5414).
3395 We no longer append `.html` to link targets, and we add a title
3396 `wikilink`. This mirrors behavior of other wiki readers. Generally
3397 the `.html` extension is not wanted. It may be important for output
3398 to HTML in certain circumstances, but it can always be added using a
3399 filter that matches on links with title `wikilink`.
3401 If your workflow requires the current behavior, here is a lua filter
3402 that will add the `.html` extension:
3406 if el.title == 'wikilink' then
3407 el.target = el.target .. ".html"
3414 + Use format `ipynb` for raw cell where no format given.
3415 + Avoid introducing spurious `.0` on integers in metadata.
3417 * Markdown reader: fenced div takes priority over setext header.
3419 * HTML reader: read `data-foo` attribute into `foo` (#5392).
3420 The HTML writer adds the `data-` prefix for HTML5 for nonstandard
3421 attributes. But the attributes are represented in the AST without
3422 the `data-` prefix, so we should strip this when reading HTML.
3424 * LaTeX reader: Improve autolink detection (#5340).
3426 * PowerPoint writer (Jesse Rosenthal):
3428 + Expand builtin reference doc to model all layouts.
3429 The previous built-in reference doc had only title and content
3430 layouts. Add in a section-header slide and a two-content slide, so
3431 users can more easily modify it to build their own templates.
3432 + Always open up in slide view. When editing a
3433 template/reference-doc, the user might be in Master view, but when
3434 producing a slide show, it is assumed that slide view will be
3436 + Remove `handoutsMasterList` from template presentation.xml
3437 + Fix numerous errors in templating (#5402). Previously, some templates
3438 produced by Office 365 (MacOS) would not render with `--reference-doc`
3439 correctly. We now apply correct shapes for content, and build
3440 shape trees correctly.
3441 + Make default placeholder type for template lookup.
3442 + Apply speaker notes to metadata slide if applicable.
3443 + Test for speaker notes after breaking header.
3444 + Correctly handle notes after section-title header.
3445 Previously, if notes came after a section-title header (ie, a level-1
3446 header in a slide-level=2 presentation), they would go on the next
3447 slide. This keeps them on the slide with the header.
3448 + Internal improvements.
3452 + Use format `ipynb` for raw cell where no format given.
3453 According to nbformat docs, this is supposed to render in every
3454 format. We don't do that, but we at least preserve it as a raw
3455 block in markdown, so you can round-trip.
3456 + Consolidate adjacent raw blocks. Sometimes pandoc creates two
3457 HTML blocks, e.g. one for the open tag and one for a close tag.
3458 If these aren't consolidated, only one will show up in output cell.
3459 + Fixed carry-over of nbformat from metadata.
3460 + Preserve `nbformat_minor` if it's given. This helps with round-tripping.
3464 + Avoid inadvertently creating ?` or !` ligatures (#5407).
3465 These are upside down ? and !, resp.
3466 + Fix footnotes in table caption and cells (#5367). This fixes a
3467 bug wherein footnotes appeared in the wrong order, and with
3468 duplicate numbers, when in table captions and cells.
3469 We now use regular `\footnote` commands, even in the table
3470 caption and the minipages containing cells. Apparently
3471 longtable knows how to handle this.
3473 * HTML writer: Don't add data- prefix to RDFa attributes (#5403).
3475 * JATS writer: Ensure that plain strings go inside `<pub-id>` tag (#5397).
3479 + Better rendering of numbers (#5398). If the number is integral,
3480 we render it as an integral not a float.
3481 + Proper rendering of empty map in YAML metadata (#5398). Should
3482 be `{}`, not empty string.
3483 + Properly escape attributes in Markdown writer (#5369).
3484 + Be sure implicit figures work in list contexts (#5368).
3485 Previously they would sometimes not work: e.g., when they
3486 occurred in final paragraphs in lists that were originally
3487 parsed as Plain and converted later using PlainToPara.
3489 * Docx writer: Use `w:br` without attributes for line breaks (#5377).
3490 We previously added the attribute `type="textWrapping"`, but
3491 this causes problems on Word Online.
3493 * LaTeX template (Andrew Dunning):
3495 + Ensure correct heading/table order (#5365). Improve workaround
3496 (#1658) for tables following headings. The new solution works whether
3497 or not the `indent` variable is enabled.
3498 + Remove `subparagraph` variable. The default is now to use run-in
3499 style for level 4 and 5 headings (`\paragraph` and `\subparagraph`).
3500 To get the previous default behavior (where these were formatted as
3501 blocks, like `\subsubsection`), set the `block-headings` variable.
3502 + Add pandoc to PDF metadata (#5388).
3503 + Group graphics-related code (#5389).
3504 + Move `\setstretch` after front matter (#5179). Ensures that
3505 `\maketitle`, `\tableofcontents`, and so forth are not affected by
3506 changes to line spacing.
3508 * Update data/jats.csl to avoid commas between name-part elements
3511 * Add support for golang (`go`) with `--listings` (#5427).
3513 * Text.Pandoc.Shared - improve `metaToJSON` behavior with numbers.
3514 We now do a better job marshalling numbers from MetaString
3515 or MetaInlines into JSON Number.
3517 * Text.Pandoc.Writers.Shared: `metaValueToJSON`: use Number Values for
3518 integers. Pandoc's MetaValue doesn't have a distinguished number type,
3519 so numbers are put in MetaStrings. If the MetaString consists
3520 entirely of digits, we convert it to a Number. We should probably
3521 consider adding a MetaNumber constructor to MetaValue, for better
3522 round-tripping with JSON etc. This change aids round-tripping in
3523 ipynb metadata fields, like `toc_depth`.
3525 * Text.Pandoc.Class: `fetchItem`: don't treat UNC paths as
3526 protocol-relative URLs (#5127). These are paths beginning `//?/UNC/...`.
3528 * Text.Pandoc.ImageSize: Improve `pdfSize` so it handles
3529 a wider range of PDFs (#4322, with help from Richard Davis).
3531 * Text.Pandoc.Pretty: avoid stack overflow by using strict sum (#5401).
3533 * Fix harmless error in file-scope code (#5422).
3537 + Improve 'header' and 'heading' usage (#5423, Andrew
3538 Dunning). The term 'header' was being used where 'heading'
3539 is more appropriate.
3540 + Add paragraph on options affecting markdown in ipynb.
3542 * stack.yaml - remove -Wmissing-home-modules
3543 This seems to cause problems with stack ghci. Remove RTS options.
3545 * Add ghc-options to cabal.project.
3547 * appveyor.yml - use ghc 8.6.4. Fixes segfault issues on Windows (#5037).
3549 * linux build process: Remove clone of pandoc-citeproc (#5366).
3550 It wasn't being used; cabal.project specifies the version to use.
3552## pandoc 2.7.1 (2019-03-14)
3554 * Add tectonic as an option for --pdf-engine (#5345, Cormac Relf).
3555 Runs tectonic on STDIN instead of a temporary .tex file, so that it
3556 looks in the working directory for `\include` and `\input` like the rest
3557 of the engines. Allows overriding the output directory
3558 args with `--pdf-engine-opt=--outdir --pdf-engine-opt="$DIR"`.
3560 * Allow `-o/--output` to be used with `--print-default-data-file`,
3561 `--print-highlighting-style`, `--print-default-template`.
3562 Note that `-o` must occur BEFORE the `--print*` command on the command
3563 line (this is documented, #5357).
3567 + Support `\underline`, `\ul`, `\uline` (#5359, Paul
3568 Tilley). These are parsed as a Span with class `underline`, as
3570 + Ensure that `\Footcite` and `\Footcites` get put in a note.
3574 + Remove sensitivity to `raw_html`, `raw_tex` extensions.
3575 We now include every output format. Pruning is handled by
3577 + Better handling of cell metadata. We now include even complex cell
3578 metadata in the Div's attributes (as JSON, in complex cases, or
3579 as plain strings in simple cases).
3583 + Recurse into native divs for output cell data (#5354).
3584 + Render cell metadata fields from div attributes.
3586 * Docx writer: avoid extra copy of abstractNum and num elements
3587 in numbering.xml. This caused pandoc-produced docx files to
3588 be uneditable using Word Online (#5358).
3590 * Markdown writer: improve handling of raw blocks/inline.
3591 We now emit raw content using `raw_attribute` when no more
3592 direct method is available. Use of `raw_attribute` can be
3593 forced by disabling `raw_html` and `raw_tex`.
3595 * LaTeX writer: Add classes for frontmatter support (#5353, Andrew Dunning)
3596 and remove frontmatter from `scrreprt`.
3600 + Improve readability (#5363, Andrew Dunning).
3601 + Robust section numbering removal (#5351, Andrew Dunning).
3602 Ensures that section numbering does not reappear with custom
3603 section levels. See <https://tex.stackexchange.com/questions/473653/>.
3604 + Better handling of front/main/backmatter (#5348).
3605 In pandoc 2.7 we assumed that every class with chapters would accept
3606 `\frontmatter`, `\mainmatter`, and `\backmatter`. This is not so (e.g.
3607 report does not). So pandoc 2.7 breaks on report class by including an
3608 unsupported command. Instead of the `book-class` variable, we use two
3609 variables, `has-chapters` and `has-frontmatter`, and set these
3610 intelligently in the writer.
3612 * Text.Pandoc.Shared: Improve `filterIpynbOutput`. Ensure that
3613 images are prioritized over text. `best` should include everything
3616 * Tests.Old: specify `--data-dir=../data` to ensure tests can find
3617 data files even if they haven't been installed. Remove old
3618 `pandoc_datadir` environment variable, which hasn't done anything for a
3621 * MANUAL.txt: Add recommendation to use `raw_attribute` with ipynb (#5354).
3623 * Use cmark-gfm-hs 0.1.8 (note that 0.1.7 is buggy).
3625 * Use latest pandoc-citeproc, texmath.
3628## pandoc 2.7 (2019-03-03)
3630 * Use XDG data directory for user data directory (#3582). Instead of
3631 `$HOME/.pandoc`, the default user data directory is now
3632 `$XDG_DATA_HOME/pandoc`, where `XDG_DATA_HOME` defaults to
3633 `$HOME/.local/share` but can be overridden by setting the
3634 environment variable. If this directory is missing, then
3635 `$HOME/.pandoc` is searched instead, for backwards compatibility.
3636 However, we recommend moving local pandoc data files from
3637 `$HOME/.pandoc` to `$HOME/.local/share/pandoc`. On Windows the
3638 default user data directory remains the same.
3640 * Slide show formats behavior change: content under headers
3641 less than slide level is no longer ignored, but included in
3642 the title slide (for HTML slide shows) or in a slide after
3643 the title slide (for beamer). This change makes possible
3644 2D reveal.js slideshows with content in the top slide on
3645 each stack (#4317, #5237).
3647 * Add command line option `--ipynb-output=all|none|best` (#5339).
3648 Output cells in ipynb notebooks often contain several different
3649 versions of an output, with different MIME types, e.g. an HTML
3650 table and a plain-text fallback. Specifying `--ipynb-output=best`
3651 (the default) ensures that the best version for the output format
3652 is used. `all` includes all versions, and `none` suppresses them
3653 all, leaving output cells empty.
3655 * `asciidoctor` is now an output format separate from `asciidoc`,
3656 to accommodate some minor implementation-specific differences
3657 (currently just in the treatment of display math).
3659 * Add `latexmk` as an option for `--pdf-engine` (#3195).
3660 Note that you can use `--pdf-engine-opt=-outdir=bar` to specify
3661 a persistent temp directory.
3665 + Improve tight/loose list handling (#5285). Previously the
3666 algorithm allowed list items with a mix of Para and Plain, which
3668 + Add newline when parsing blocks in YAML (#5271). Otherwise last
3669 block gets parsed as a Plain rather than a Para. This is a
3670 regression in pandoc 2.x. This patch restores pandoc 1.19
3672 + Make `yamlToMeta` respect extensions (#5272, Mauro Bieg).
3673 This adds a `ReaderOptions` parameter to `yamlToMeta` [API change].
3674 + Fix bug parsing fenced code blocks (#5304). Previously parsing
3675 would break if the code block contained a string of backticks of
3676 sufficient length followed by something other than end of line.
3678 * LaTeX reader: don't let `\egroup` match `{`. `braced` now actually
3679 requires nested braces. Otherwise some legitimate command and
3680 environment definitions can break.
3682 * Docx reader (Jesse Rosenthal):
3684 + Rename `getDocumentPath` as `getDocumentXmlPath`.
3685 + Use field notation for setting `ReaderEnv`.
3686 + Figure out `document.xml` path once at the beginning of parsing, and
3687 add it to the environment, so we can avoid repeated lookups.
3688 + Dynamically determine main document xml path (#5277).
3689 The desktop Word program places the main document file in
3690 `word/document.xml`, but the online word places it in
3691 `word/document2.xml`. This file path is actually stated in the root
3692 `_rels/.rels` file, in the `Relationship` element with an
3693 `http://../officedocument` type.
3694 + Fix paths in archive to prevent Windows failure (#5277).
3695 Some paths in archives are absolute (have an opening slash) which, for
3696 reasons unknown, produces a failure in the test suite on MS
3697 Windows. This fixes that by removing the leading slash if it exists.
3698 + Add comments to aid code readability.
3699 + Trim space inside the last inline (#5273).
3700 + Unwrap sdt elements in footnotes and comments (#5302).
3702 * Muse reader (Alexander Krotov):
3704 + Test that block level markup does not break `<verbatim>`.
3705 + Add secondary note support.
3707 * ipynb reader: handle images referring to attachments. Previously
3708 we didn't strip off the attachment: prefix, so even though the
3709 attachment was available in the mediabag, pandoc couldn't find it.
3713 + Fix parsing of figures (#5321). This ensures that a figure
3714 containing a single image is parsed as a pandoc "implicit
3715 figure" (i.e., a Para with a single Image whose title attribute
3716 begins with `fig:`). More complex figures will still be parsed
3718 + Support `fig-group` block element (#5317).
3719 + Handle citations with multiple references (#5310). The `rid`
3720 attribute can have a space-separated list of ids.
3722 * AsciiDoc Writer: Add `writeAsciiDoctor` [API change, Tarik Graba].
3723 Handle display math appropriately for Asciidoctor.
3725 * JATS writer: wrap figure caption in `<p>` to fix validation (#5290,
3730 + Implement WAI-ARIA roles for (end)notes, citations, and
3731 bibliography (#4213). Note that doc-biblioref is only used when
3732 link-citations produces links, since it belongs on links.
3733 + Include content (including speaker notes) in title slides
3738 + Ensure final newline.
3739 + Only include metadata under `jupyter` field.
3740 + Don't create attachments for images with absolute URIs,
3741 including data: URIs (#5303).
3742 + Keep plain text fallbacks in output even if a richer format is
3743 included (#5293). We don't know what output format will be needed.
3744 See the `--ipynb-output` command line option for a way to control
3745 what formats are included in the output.
3747 * Markdown writer: use `markdown="1"` when appropriate for Divs:
3748 when `native_divs` and `markdown_in_html_blocks` are disabled
3749 but `raw_html` and `markdown_attribute` are enabled.
3753 + Use right fold for `escapeString`. This is more elegant than
3754 the explicit recursive code we were using.
3755 + Avoid `{}` after control sequences when escaping.
3756 `\ldots{}.` doesn't behave as well as `\ldots.` with the latex
3757 ellipsis package. This patch causes pandoc to avoid emitting
3758 the `{}` when it is not necessary. Now `\ldots` and other
3759 control sequences used in escaping will be followed by either
3760 a `{}`, a space, or nothing, depending on context.
3761 + For beamer, include contents under headers superordinate to
3762 slidelevel (#4317). Currently we keep the fancy title slide, and
3763 add a new slide with the same title and whatever content was
3766 * Powerpoint writer (Jesse Rosenthal): support underlines.
3767 Use span with single class "underline" as in docx writer.
3769 * Muse writer: escape secondary notes (Alexander Krotov).
3771 * FB2 writer: add section identifiers support (#5229, John KetzerX).
3773 * Make `--fail-if-warnings` work for PDF output (#5343).
3775 * Lua filters (Albert Krewinkel):
3777 + Load module `pandoc` before calling `init.lua` (#5287). The file
3778 `init.lua` in pandoc's data directory is run as part of pandoc's
3779 Lua initialization process. Previously, the `pandoc` module was
3780 loaded in `init.lua`, and the structure for marshaling was
3781 set up after. This allowed simple patching of element
3782 marshaling, but made using `init.lua` more difficult. Now, all
3783 required modules are now loaded before calling `init.lua`. The
3784 file can be used entirely for user customization. Patching
3785 marshaling functions, while discouraged, is still possible via
3787 + All Lua modules bundled with pandoc, i.e., `pandoc.List`,
3788 `pandoc.mediabag`, `pandoc.utils`, and `text` are re-exported from the
3789 `pandoc` module. They are assigned to the fields `List`, `mediabag`,
3790 `utils`, and `text`, respectively.
3792 * Text.Pandoc.Lua (Albert Krewinkel):
3794 + Split `StackInstances` into smaller Marshaling modules.
3795 + Get `CommonState` from Lua global. This allows more control over
3796 the common state from within Lua scripts.
3800 + Support the `subject` metadata variable (#5289, Pascal Wagler).
3801 + Add `\frontmatter`, `\mainmatter`, `\backmatter`
3802 for book classes (#5306).
3804 * epub3 template: Add titlepage class to section (#5269).
3806 * HTML5 template: Add ARIA role `doc-toc` for table of contents (#4213).
3808 * Make `--metadata-file` use selected extensions (#5279, #5272, Mauro Bieg).
3810 * Text.Pandoc.Shared:
3812 + Remove `withTempDir` [API change].
3813 + Add new exported function `defaultUserDataDirs` [API change].
3814 + Add `filterIpynbOutput` [API change].
3815 + `compactify`: Avoid lists with a mix of Plain and Para elements
3818 * Text.Pandoc.Translations: reorder alphabetically and remove `Author`
3819 (#5334, Mauro Bieg).
3821 * Text.Pandoc.Extensions:
3823 + More carefully groom ipynb default extensions.
3824 + Add `all_symbols_escapable` to `githubMarkdownExtensions`.
3828 + Use system temp directory when possible (#1192). Previously we
3829 created temp dirs in the working directory, partly (a) because
3830 there were problems using the system temp directory on Windows,
3831 when their pathnames included tildes, and partly (b) because
3832 programs like `epstopdf.pl` would not be allowed to write to
3833 directories outside the working directory in restricted mode. We
3834 now (a) use the system temp dir except when the path includes
3835 tildes, and (b) set `TEXMFOUTPUT` when creating the PDF, so that
3836 subsidiary programs can use the system temp directory. This
3837 addresses problems that occurred when pandoc was used in a
3838 synced directory (such as Dropbox).
3839 + Change types of subsidiary functions to PandocIO, to allow
3840 warnings to be threaded through (#5343).
3842 * Text.Pandoc.MIME: add WebP (#5267, Mauro Bieg).
3844 * Tests: avoid calling `findPandoc` multiple times.
3846 * Old tests: remove need for temp files by using `pipeProcess`.
3848 * Added simple ipynb reader/writer tests (#5274).
3850 * Rearrange `--help` output in a more rational way, with common
3851 options at the beginning and options grouped by function (#5336).
3853 * trypandoc: Add JATS and other missing formats (Arfon Smith, #5291).
3855 * Add missing copyright notices and remove license boilerplate (#4592,
3858 * Use latest basement/foundation on 32bit windows.
3860 * Use latest skylighting (#5328). Custom syntax definitions no
3861 longer try to load `language.dtd`.
3863 * Require texmath 0.11.2.1
3865 * Use latest pandoc-citeproc (0.16.1.1).
3869 + Clarify variable substitution indentation in templates (#5338,
3870 Agustín Martín Barbero).
3871 + Reorder custom-styles section (#5324, Mauro Bieg).
3873## pandoc 2.6 (2019-01-30)
3875 * Support ipynb (Jupyter notebook) as input and output format.
3877 + Add `ipynb` as input and output format (extension `.ipynb`).
3878 + Added Text.Pandoc.Readers.Ipynb [API change].
3879 + Added Text.Pandoc.Writers.Ipynb [API change].
3880 + Add `PandocIpynbDecodingError` constructor to Text.Pandoc.Error.Error
3882 + Depend on ipynb library.
3883 + Note: there is no template for ipynb.
3885 * Add DokuWiki reader (#1792, Alexander Krotov). This adds
3886 Text.Pandoc.Readers.DokuWiki [API change], and adds `dokuwiki`
3889 * Implement task lists (#3051, Mauro Bieg). Added `task_lists`
3890 extension. Task lists are supported from markdown and gfm input.
3891 They should work, to some degree, in all output formats, though in
3892 most formats you'll get a bullet list with a unicode character for
3893 the box. In HTML, you get checkboxes and in LaTeX/PDF output, a
3894 box is used as the list marker. API changes:
3896 + Added constructor `Ext_task_lists` to `Extension`.
3897 + Added `taskListItemFromAscii` and `taskListItemToAscii` to
3900 * Allow some command line options to take URL in addition to FILE.
3901 `--include-in-header`, `--include-before-body`, `--include-after-body`.
3905 + Handle empty `start` attribute (see #5162).
3906 + Treat `textarea` as a verbatim environment (#5241) and preserve
3911 + Change treatment of `number-lines` directive (Brian Leung,
3912 #5207). Directives of this type without numeric inputs should
3913 not have a `startFrom` attribute; with a blank value, the
3914 writers can produce extra whitespace.
3915 + Removed superfluous `sourceCode` class on code blocks (#5047).
3916 + Handle `sourcecode` directive as synonynm for `code` (#5204).
3920 + Remove `sourceCode` class for literate Haskell code blocks
3921 (#5047). Reverse order of `literate` and `haskell` classes on
3922 code blocks when parsing literate Haskell, so `haskell` is
3924 + Treat `<textarea>` as a verbatim environment (#5241).
3928 + Handle `minlevel` option differently (#5190, Brian Leung).
3929 When `minlevel` exceeds the original minimum level observed in
3930 the file to be included, every heading should be shifted
3932 + Allow for case of `:minlevel == 0` (#5190).
3933 + Fix treatment of links to images (#5191, Albert Krewinkel).
3934 Links with descriptions which are pointing to images are no
3935 longer parsed as inline images, but as links.
3936 + Add support for #+SELECT_TAGS (Brian Leung).
3937 + Separate filtering logic from conversion function (Brian Leung).
3939 * TWiki reader: Fix performance issue with underscores (#3921).
3941 * MediaWiki reader: use `_` instead of `-` in auto-identifiers (#4731).
3942 We may not still be exactly matching mediawiki's algorithm.
3946 + Remove `sourceCode` class for literate Haskell code blocks
3947 (#5047). Reverse order of `literate` and `haskell` classes on
3948 code blocks when parsing literate Haskell, so `haskell` is
3950 + Support `\DeclareMathOperator` (#5149).
3951 + Support `\inputminted` (#5103).
3952 + Support `\endinput` (#5233).
3953 + Allow includes with dots like `cc_by_4.0`. Previously the `.0`
3954 was interpreted as a file extension, leading pandoc not to add
3955 `.tex` (and thus not to find the file). The new behavior matches
3960 + Use `mapLeft` from Shared instead of defining own.
3962 * Docx reader (Jesse Rosenthal):
3964 + Handle level overrides (#5134).
3968 + Support custom properties (#3024, #5252, Agustín Martín Barbero).
3969 Also supports additional core properties: `subject`, `lang`,
3970 `category`, `description`.
3971 + Make Level into a real type, instead of an alias for a tuple
3974 * ICML writer (Mauro Bieg):
3976 + Support custom-styles (#5137, see #2106).
3977 + Support unnumbered headers (#5140).
3979 * Texinfo writer: Use header identifier for anchor if present (#4731).
3980 Previously we were overwriting an existing identifier with a new one.
3982 * Org writer: Preserve line-numbering for example and code blocks
3985 * Man/Ms writers: Don't escape `-` as `\-`. The `\-` gets rendered
3986 in HTML and PDF as a unicode minus sign.
3988 * Ms writer: Ensure we have a newline after .EN in display math (#5251).
3990 * RST writer: Don't wrap simple table header lines (#5128).
3992 * Asciidoc writer: Shorter delimiters for tables, blockquotes
3993 (#4364). This matches asciidoctor reference docs.
3995 * Dokuwiki writer: Remove automatic `:` prefix before internal image
3996 links (#5183, Damien Clochard). This prevented users from making
3997 relative image links.
3999 * Zimwiki writer: remove automatic colon prefix before internal
4000 images (#5183, Damien Clochard).
4002 * MediaWiki writer: fix caption, use 'thumb' instead of 'frame'
4003 (#5105). Captions used to have the word 'caption' prepended; this
4004 has been removed. Also, 'thumb' is used instead of 'frame' to
4005 allow images to be resized.
4009 + Ensure that we don't get > 2 levels of section nesting,
4010 even with slide level > 2 (#5168).
4011 + If slide level == N but there is no N-level header, make
4012 sure the next header with level > N gets treated as a slide
4013 and put in a section, rather than remaining loose (#5168).
4017 + Make `plain` RawBlocks pass through in `plain` output.
4018 + Include needed whitespace after HTML figure (#5121).
4019 We use HTML for a figure in markdown dialects that can't
4020 represent it natively.
4022 * Commonmark writer:
4024 + Fix handling of SoftBreak with `hard_line_breaks` (#5195).
4025 + Implement `--toc` (`writerTableOfContents`)
4026 in commonmark/gfm writers (#5172).
4030 + Ensure that picture transforms are done on metadata too.
4031 + Small fixes to `nav.xhtml`:
4032 Add 'landmarks' id attribute to the landmarks nav.
4033 Replace old default CSS removing numbers from ol.toc li
4034 with new rules that match `nav#toc ol, nav#landmarks ol`.
4035 We keep the `toc` class on `ol` for backwards compatibility.
4039 + Make raw content marked `beamer` pass through in `beamer`
4040 output (pandoc/lua-filters#40).
4041 + Beamer: avoid duplicated `fragile` property in some cases
4043 + Add `#` special characters for listings (#4939).
4044 This character needs special handling in `\lstinline`.
4046 * RTF writer: use `toTableOfContents` from Shared to replace
4047 old duplicated code.
4051 + Support custom properties. Also supports additional core
4052 properties: `subject`, `category`, `description` (#5252,
4053 Agustín Martín Barbero).
4054 + Use `toTableOfContents` from Shared to replace old duplicated code.
4056 * ODT writer (Augustín Martín Barbero):
4058 + Fix typo in custom properties (#2839).
4059 + Improve standard properties, including the following core
4060 properties: `generator` (Pandoc/VERSION), `description`, `subject`,
4061 `keywords`, `initial-creator` (from authors), `creation-date`
4062 (actual creation date) (#5252).
4066 + Allow '-' in filenames for custom lua writers (#5187).
4067 + sample.lua: add `SingleQuoted`, `DoubleQuoted` (#5104).
4068 + sample.lua: Add a missing `>` (MichaWiedenmann).
4070 * reveal.js template: Add `zoomKey` config (#4249).
4072 * HTML5 template: Remove unnecessary type="text/css" on style and
4073 link for HTML5 (#5146).
4075 * LaTeX template (Andrew Dunning, except where noted):
4077 + Prevent fontspec from scaling `mainfont` to match the default
4078 font, Latin Modern. A main font set to 12pt could
4079 previously appear between 11pt to 13pt depending on its design.
4080 To return to the earlier rendering, use `-V
4081 mainfontoptions="Scale=MatchLowercase"` (#5212, #5218).
4082 + Display monospaced fonts without TeX ligatures when using
4083 `--pdf-engine=lualatex`. It now matches the behaviour of other
4084 engines (#5212, #5218).
4085 + Remove the deprecated `romanfont` variable. The functionality of
4086 `mainfont` is identical (#5218).
4087 + Render `\subtitle` with the standard document classes.
4088 Previously, `subtitle` only appeared when using the KOMA-Script
4089 classes or Beamer (#5213, #5244).
4090 + Use Babel instead of Polyglossia for LuaLaTeX. This avoids
4091 several language selection problems, notably with retaining
4092 French spacing conventions when switching to a verbatim
4093 environment or another language; and in printing Greek text
4094 without hyphenation (#5193).
4095 + Use the [`xurl`](https://ctan.org/pkg/xurl) package if
4096 available, improving the appearance of URLs by allowing them to
4097 break at additional points (#5193).
4098 + Use [`bookmark`](https://ctan.org/pkg/bookmark) if available
4099 to correct heading levels in PDF bookmarks: see the [KOMA-Script
4100 3.26 release notes](https://komascript.de/release3.26) (#5193).
4101 + Require the [`xcolor`](https://ctan.org/pkg/xcolor) package to
4102 avoid a possible error when using additional packages alongside
4103 footnotes in tables (#5193, closes #4861).
4104 + Remove obsolete `fixltx2e` package, which has no functionality
4105 with TeX Live 2015 or later (#5193).
4106 + Allow multiple `fontfamilies.options` (#5193, closes #5194).
4107 + Restrict `institute` variable to Beamer (#5219).
4108 + Use [`footnotehyper`](https://ctan.org/pkg/footnotehyper)
4109 package if available to make footnotes in tables compatible
4110 with `hyperref` (#5234).
4111 + Number parts and chapters in book classes only if the
4112 `numbersections` variable is set, for consistency with other
4113 output formats. To return to the previous behaviour, use
4114 `-V numbersections -V secnumdepth=0` (#5235).
4115 + Reindent file (#5193).
4116 + Use built-in parskip handling with KOMA-Script classes (#5143, Enno).
4117 + Set default listings language for lua, assembler (#5227, John
4118 MacFarlane). Otherwise we get an error when trying to compile code
4119 with lua or assembler code. To change the default dialect
4120 (currently 5.3 for lua and x86masm for assembler), you can use
4121 `--include-in-header` to inject something like
4122 `\lstset{defaultdialect=[5.2]Lua}`.
4124 * Text.Pandoc.Readers: Changed types of `readJSON`; it now runs
4125 in an instance of PandocMonad, like the other readers and
4126 writers. [API change]
4128 * Text.Pandoc.Writers: Changed types of `writeJSON`; it now runs
4129 in an instance of PandocMonad, like the other readers and
4130 writers. [API change]
4132 * Text.Pandoc.Error: Added `PandocUTF8DecodingError` constructor
4133 for `PandocError`. [API change]
4135 * Text.Pandoc.Writers.Shared - add `toTableOfContents`. [API change]
4136 This is refactored out from the Markdown writer.
4137 It can be used in other writers to create a table of contents.
4139 * Improve error messages for UTF-8 decoding errors. Now we give
4140 the filename and byte offset (#4765).
4142 * Text.Pandoc.XML: Strip out illegal XML characters in
4143 `escapeXMLString` (#5119).
4145 * Text.Pandoc.Process: update `pipeProcess` (Albert Krewinkel).
4146 The implementation of `pipeProcess` was rewritten to fix sporadic
4147 failures caused by prematurely closed pipes.
4149 * Use `safeRead` instead of `read` everywhere in the code
4150 (John MacFarlane, Mauro Bieg, #5162, #5180).
4152 * Text.Pandoc.SelfContained: Decompress `.svgz` when
4153 converting to `data:` URI (#5163, Alexander Krotov).
4155 * Text.Pandoc.Parsing: Remove unused `HasHeaderMap`
4156 (#5175, Alexander Krotov). [API change]
4158 * Normalize Windows paths to account for change in ghc 8.6 (#5127).
4159 When pandoc is compiled with ghc 8.6, Windows paths are treated
4160 differently, and paths beginning `\\server` no longer work.
4161 This commit rewrites such patsh to `\\?\UNC\server` which works.
4162 The change operates at the level of argument parsing, so it
4163 only affects the command line program.
4165 * Simplify/fix reading of `--metadata` values on command line
4166 to avoid problems relating to hvr/HsYAML#7 (#5177).
4168 * data/pandoc.lua: auto-fix nested constructor arguments (Albert
4169 Krewinkel). Incorrect types to pandoc element constructors are
4170 automatically converted to the correct types when possible. This was
4171 already done for most constructors, but conversions are now also done
4172 for nested types (like lists of lists).
4174 * Removed custom Setup.hs, use build-type: simple. The only thing we
4175 gained from the custom build was automatic installation of the man
4176 page when using 'cabal install'. But custom builds cause problems,
4177 e.g., with cross-compilation. Installation of the man page is
4178 better handled by packagers. Note to packagers (e.g. Debian): it
4179 may be necessary to add a step installing the man page with the
4182 * Allow latest http-client, tasty, zip-archive, Glob.
4184 * Require skylighting >= 0.7.5, adding support for sml, J,
4187 * Tests: Cleaned up `findPandoc` in `Tests.Helpers`, so it
4188 works well with cabal v2.
4192 + Use button for installer links (John MacFarlane, Mauro Bieg,
4194 + Fix links and bump required stack version (max).
4195 + Improve installation notes on associated software (Andrew
4196 Dunning). Includes explanation of how to install related tools
4197 with package managers (since the method of installing
4198 `rsvg-convert` is not obvious).
4200 * doc/org.md: improve documentation of org features (Albert
4203 * doc/lua-filters.md: use 3rd level headers for module fields.
4207 + Clarify automatic identifiers (#5201). We remove
4208 non-alphanumerics. This includes, e.g., emojis.
4209 + Fix example for Div with id (Geoffrey Ely).
4210 + Update list of LaTeX packages used.
4211 + Make it clear that `hard_line_breaks` works in `gfm` (see #5195).
4212 + Mention `raw_attribute` in documentation for `raw_html` and
4213 `raw_tex` (#5240, thanks to @eiro).
4214 + Clarify that `$sep$` must come right before `$endfor$` in templates
4216 + Document metadata support for docx, odt, pptx writers (Agustín
4218 + Reorganize template variables (#5249, Andrew Dunning).
4219 Add additional headings to categorize variables, and
4220 alphabetize when there is large number; add more examples.
4221 + Document `date-meta` template variable (#5260, Tristan Stenner).
4223 * trypandoc: Fix CSS and viewport.
4225## pandoc 2.5 (2018-11-27)
4227 * Text.Pandoc.App: split into several unexported submodules (Albert
4228 Krewinkel): Text.Pandoc.App.FormatHeuristics,
4229 Text.Pandoc.App.Opt, Text.Pandoc.App.CommandLineOptions,
4230 Text.Pandoc.App.OutputSettings. This is motivated partly by the
4231 desire to reduce recompilations when something is modified,
4232 since App previously depended on virtually every other module.
4234 * Text.Pandoc.Extensions
4236 + Semantically, `gfm_auto_identifiers` is now a modifier of
4237 `auto_identifiers`; for identifiers to be set, `auto_identifiers` must
4238 be turned on, and then the type of identifier produced depends on
4239 `gfm_auto_identifiers` and `ascii_identifiers` are set. Accordingly,
4240 `auto_identifiers` is now added to `githubMarkdownExtensions` (#5057).
4241 + Remove `ascii_identifiers` from `githubMarkdownExtensions`.
4242 GitHub doesn't seem to strip non-ascii characters any more.
4244 * Text.Pandoc.Lua.Module.Utils (Albert Krewinkel)
4246 + Test AST object equality via Haskell (#5092). Equality of Lua
4247 objects representing pandoc AST elements is tested by unmarshalling
4248 the objects and comparing the result in Haskell.
4249 A new function `equals` which performs this test has been added to the
4250 `pandoc.utils` module.
4251 + Improve stringify. Meta value strings (MetaString)
4252 and booleans (MetaBool) are now converted to the literal string and the
4253 lowercase boolean name, respectively. Previously, all values of these
4254 types were converted to the empty string.
4256 * Text.Pandoc.Parsing: Remove Functor and Applicative constraints where Monad
4257 already exists (Alexander Krotov).
4259 * Text.Pandoc.Pretty: Don't render BreakingSpace at end of line
4260 or beginning of line (#5050).
4262 * Text.Pandoc.Readers.Markdown
4264 + Fix parsing of citations, quotes, and underline emphasis
4265 after symbols. Starting with pandoc 2.4, citations, quoted inlines,
4266 and underline emphasis were no longer recognized after certain
4267 symbols, like parentheses (#5099, #5053).
4268 + In pandoc 2.4, a soft break after an abbreviation would be
4269 relocated before it to allow for insertion of a nonbreaking
4270 space after the abbreviation. This behavior is here reverted.
4271 A soft break after an abbreviation will remain, and no nonbreaking
4272 space will be added. Those who care about this issue should take care not
4273 to end lines with an abbreviation, or to insert nonbreaking spaces
4276 * Text.Pandoc.Readers.FB2: Do not throw error for unknown elements in
4277 `<body>` (Alexander Krotov). Some libraries include custom elements
4280 * Text.Pandoc.Readers.HTML
4282 + Allow `tfoot` before body rows (#5079).
4283 + Parse `<small>` as a Span with class "small" (#5080).
4284 + Allow thead containing a row with `td` rather than `th` (#5014).
4286 * Text.Pandoc.Readers.LaTeX
4288 + Cleaned up handling of dimension arguments. Allow decimal points,
4290 + Don't allow arguments for verbatim, etc.
4291 + Allow space before bracketed options.
4292 + Allow optional arguments after `\\` in tables.
4293 + Improve parsing of `\tiny`, `\scriptsize`, etc. Parse as raw,
4294 but know that these font changing commands take no arguments.
4296 * Text.Pandoc.Readers.Muse
4298 + Trim whitespace before parsing grid table cells (Alexander Krotov).
4299 + Add grid tables support (Alexander Krotov).
4301 * Text.Pandoc.Shared
4303 + For bibliography match Div with id `refs`, not class `references`.
4304 This was a mismatch between pandoc's docx, epub, latex, and markdown
4305 writers and the behavior of pandoc-citeproc, which actually looks for a
4306 div with id `refs` rather than one with class `references`.
4307 + Exactly match GitHub's identifier generating algorithm (#5057).
4308 + Add parameter for `Extensions` to `uniqueIdent` and
4309 `inlineListToIdentifier` (#5057). [API change]
4310 This allows these functions to be sensitive to the settings of
4311 `Ext_gfm_auto_identifiers` and `Ext_ascii_identifiers`, and allows us to
4312 use `uniqueIdent` in the CommonMark reader, replacing custom code. It
4313 also means that `gfm_auto_identifiers` can now be used in all formats.
4315 * Text.Pandoc.Writers.AsciiDoc
4317 + Use `.`+ as list markers to support nested ordered lists (#5087).
4318 + Support list number styles (#5089).
4319 + Render Spans using `[#id .class]#contents#` (#5080).
4321 * Text.Pandoc.Writers.CommonMark
4323 + Respect `--ascii` (#5043, quasicomputational).
4324 + Make sure `--ascii` affects quotes, super/subscript.
4326 * Text.Pandoc.Writers.Docx
4328 + Fix bookmarks to headers with long titles (#5091).
4329 Word has a 40 character limit for bookmark names. In addition, bookmarks
4330 must begin with a letter. Since pandoc's auto-generated identifiers may
4331 not respect these constraints, some internal links did not work. With
4332 this change, pandoc uses a bookmark name based on the SHA1 hash of the
4333 identifier when the identifier isn't a legal bookmark name.
4334 + Add bookmarks to code blocks (Nikolay Yakimov).
4335 + Add bookmarks to images (Nikolay Yakimov).
4336 + Refactor common bookmark creation code into a function (Nikolay Yakimov).
4338 * Text.Pandoc.Writers.EPUB: Handle calibre metadata (#5098).
4341 <meta name="calibre:series" content="Classics on War and Politics"/>
4343 are now included from an epub XML metadata file. You can also include
4344 this information in your YAML metadata, like so:
4347 series: Classics on War and Policitics
4349 In addition, ibooks-specific metadata can now be included via an XML
4350 file. (Previously, it could only be included via YAML metadata, see
4353 * Text.Pandoc.Writers.HTML: Use plain `"` instead of `"` outside of
4356 * Text.Pandoc.Writers.ICML: Consolidate adjacent strings, inc. spaces.
4357 This avoids splitting up the output unnecessarily into separate elements.
4359 * Text.Pandoc.Writers.LaTeX: Don't emit `[<+->]` unless beamer output, even
4360 if `writerIncremental` is True (#5072).
4362 * Text.Pandoc.Writers.Muse (Alexander Krotov).
4364 + Output tables as grid tables if they have multi-line cells.
4365 + Indent simple tables only on the top level.
4366 + Output tables with one column as grid tables.
4367 + Add support for `--reference-location`.
4368 + Internal improvements.
4370 * Text.Pandoc.Writers.OpenDocument: Fix list indentation (Nils Carlson,
4371 #5095). This was a regression in pandoc 2.4.
4373 * Text.Pandoc.Writers.RTF: Fix warnings for skipped raw inlines.
4375 * Text.Pandoc.Writers.Texinfo: Add blank line before `@menu` section (#5055).
4377 * Text.Pandoc.XML: in `toHtml5Entities`, prefer shorter entities
4378 when there are several choices for a particular character.
4380 * data/abbreviations
4382 + Add additional abbreviations (Andrew Dunning)
4383 Many of these borrowed from the Chicago Manual of Style 10.42,
4384 'Scholarly abbreviations'.
4388 + Asciidoc template: add :lang: to title header is lang is set in
4391 * pandoc.cabal: Add cabal flag `derive_json_via_th` (Albert Krewinkel)
4392 Disabling the flag will cause derivation of ToJSON and FromJSON
4393 instances via GHC Generics instead of Template Haskell. The flag is
4394 enabled by default, as deriving via Generics can be slow (see #4083).
4398 + Tweaked drop-down lists.
4399 + Put link to site in footer.
4400 + Preselect output format.
4401 + Update on change of in or out format.
4402 + Add man input format.
4406 + Fix outdated description of latex_macros extension.
4407 + Clarified placement of bibliography.
4408 + Added "A note on security."
4409 + Fix note on curly brace syntx for locators.
4410 + Document new explicit syntax for citeproc locators.
4411 + Remove confusing cross-links for some extensions.
4412 + Don't put pandoc in code ticks in heading.
4413 + Document that `--ascii` works for gfm and commonmark too.
4414 + Add `man` to `--from` options.
4416 * doc/customizing-pandoc.md: various improvements (Mauro Bieg).
4419## pandoc 2.4 (2018-11-03)
4423 * New input format `man` (Yan Pashkovsky, John MacFarlane).
4427 * `--ascii` is now implemented in the writers, not in Text.Pandoc.App,
4428 via the new `writerPreferAscii` field in `WriterOptions`.
4429 Now the `write*` functions for Docbook, HTML, ICML, JATS, LaTeX,
4430 Ms, Markdown, and OPML are sensitive to `writerPreferAscii`.
4431 Previously the to-ascii translation was done in Text.Pandoc.App,
4432 and thus not available to those using the writer functions
4435 * `--ascii` now works with Markdown output. HTML5 character reference
4438 * `--ascii` now works with LaTeX output. 100% ASCII output can't be
4439 guaranteed, but the writer will use commands like `\"{a}` and `\l`
4440 whenever possible, to avoid emitting a non-ASCII character.
4442 * For HTML5 output, `--ascii` now uses HTML5 character reference
4443 entities rather than numerical entities.
4445 * Improved detection of format based on extension (in Text.Pandoc.App).
4446 We now ensure that if someone tries to convert a file for a
4447 format that has a pandoc writer but not a reader, it won't just
4448 default to markdown.
4450 * Add viz. to abbreviations file (#5007, Nick Fleisher).
4452 * AsciiDoc writer: always use single-line section headers,
4453 instead of the old underline style (#5038). Previously the single-line
4454 style would be used if `--atx-headers` was specified, but
4455 now it is always used.
4457 * RST writer: Use simple tables when possible (#4750).
4459 * CommonMark (and gfm) writer: Add plain text fallbacks. (#4528,
4460 quasicomputational). Previously, the writer would unconditionally
4461 emit HTML output for subscripts, superscripts, strikeouts (if the
4462 strikeout extension is disabled) and small caps, even with
4463 `raw_html` disabled. Now there are plain-text (and, where
4464 possible, fancy Unicode) fallbacks for all of these corresponding
4465 (mostly) to the Markdown fallbacks, and the HTML output is only
4466 used when `raw_html` is enabled.
4468 * Powerpoint writer: support raw openxml (Jesse Rosenthal, #4976).
4469 This allows raw openxml blocks and inlines to be used in the pptx
4470 writer. Caveats: (1) It's up to the user to write
4471 well-formed openxml. The chances for corruption, especially with
4472 such a brittle format as pptx, is high. (2) Because of
4473 the tricky way that blocks map onto shapes, if you are using
4474 a raw block, it should be the only block on a slide
4475 (otherwise other text might end up overlapping it). (3) The
4476 pptx ooxml namespace abbreviations are different from the
4477 docx ooxml namespaces. Again, it's up to the user to get it
4478 right. Unzipped document and ooxml specification should be
4481 * With `--katex` in HTML formats, do not use the autorenderer (#4946).
4482 We no longer surround formulas with `\(..\)` or `\[..\]`. Instead,
4483 we tell katex to convert the contents of span elements with
4484 class "math". Since math has already been identified, this
4485 avoids wasted time parsing for LaTeX delimiters. Note, however,
4486 that this may yield unexpected results if you have span elements
4487 with class "math" that don't contain LaTeX math.
4488 Also, use latest version of KaTeX by default (0.9.0).
4490 * The man writer now produces ASCII-only output, using groff escapes,
4495 + Add title, author and date to metadata; any remaining
4496 metadata fields are added as `meta:user-defined` tags.
4497 + Implement table caption numbering (#4949, Nils Carlson).
4498 Captioned tables are numbered and labeled with format "Table 1:
4499 caption", where "Table" is replaced by a translation, depending
4500 on the value of `lang` in metadata. Uncaptioned tables are not
4502 + OpenDocument writer: Implement figure numbering in captions (#4944,
4503 Nils Carlson). Figure captions are now numbered 1, 2, 3, ...
4504 The format in the caption is "Figure 1: caption" and so on
4505 (where "Figure" is replaced by a translation, depending on the
4506 value of `lang` in the metadata). Captioned figures are numbered
4507 consecutively and uncaptioned figures are not enumerated. This
4508 is necessary in order for LibreOffice to generate an
4509 Illustration Index (Table of Figures) for included figures.
4511 * RST reader: Pass through fields in unknown directives as div attributes
4512 (#4715). Support `class` and `name` attributes for all directives.
4514 * Org reader: Add partial support for `#+EXCLUDE_TAGS` option. (#4284,
4515 Brian Leung). Headers with the corresponding tags should not
4516 appear in the output.
4518 * Log warnings about missing title attributes now include a
4519 suggestion about how to fix the problem (#4909).
4521 * Lua filter changes (Albert Krewinkel):
4523 + Report traceback when an error occurs. A proper Lua traceback is
4524 added if either loading of a file or execution of a filter
4525 function fails. This should be of help to authors of Lua filters
4526 who need to debug their code.
4528 + Allow access to pandoc state (#5015). Lua filters and custom
4529 writers now have read-only access to most fields of pandoc's
4530 internal state via the global variable `PANDOC_STATE`.
4532 + Push ListAttributes via constructor (Albert Krewinkel).
4533 This ensures that ListAttributes, as present in OrderedList elements,
4534 have additional accessors (viz. `start`, `style`, and `delimiter`).
4536 + Rename ReaderOptions fields, use snake_case. Snake case is used
4537 in most variable names, using camelCase for these fields was an
4538 oversight. A metatable is added to ensure that the old field
4539 names remain functional.
4541 + Iterate over AST element fields when using `pairs`. This makes
4542 it possible to iterate over all ield names of an AST element by
4543 using a generic `for` loop with pairs`:
4545 for field_name, field_content in pairs(element) do
4549 Raw table fields of AST elements should be considered an
4550 implementation detail and might change in the future. Accessing
4551 element properties should always happen through the fields
4552 listed in the Lua filter docs.
4554 Note that the iterator currently excludes the `t`/`tag` field.
4556 + Ensure that MetaList elements behave like Lists. Methods usable
4557 on Lists can also be used on MetaList objects.
4559 + Fix MetaList constructor (Albert Krewinkel). Passing a MetaList
4560 object to the constructor `pandoc.MetaList` now returns the
4561 passed list as a MetaList. This is consistent with the
4562 constructor behavior when passed an (untagged) list.
4564 * Custom writers: Custom writers have access to the global variable
4565 `PANDOC_DOCUMENT`(Albert Krewinkel, #4957). The variable contains
4566 a userdata wrapper around the full pandoc AST and exposes two
4567 fields, `meta` and `blocks`. The field content is only
4568 marshaled on-demand, performance of scripts not accessing the
4569 fields remains unaffected.
4573 * Text.Pandoc.Options: add `writerPreferAscii` to `WriterOptions`.
4575 * Text.Pandoc.Shared:
4577 + Export `splitSentences`. This was previously duplicated in the Man and
4579 + Add `ToString` typeclass (Alexander Krotov).
4581 * New exported module Text.Pandoc.Filter (Albert Krewinkel).
4583 * Text.Pandoc.Parsing
4585 + Generalize `gridTableWith` to any `Char` Stream (Alexander Krotov).
4586 + Generalize `readWithM` from `[Char]` to any `Char` Stream
4587 that is a `ToString` instance (Alexander Krotov).
4589 * New exposed module Text.Pandoc.Filter (Albert Krewinkel).
4591 * Text.Pandoc.XML: add `toHtml5Entities`.
4593 * New exported module Text.Pandoc.Readers.Man (Yan Pashkovsky, John
4596 * Text.Pandoc.Writers.Shared
4598 + Add exported functions `toSuperscript` and
4599 `toSubscript` (quasicomputational, #4528).
4600 + Remove exported functions `metaValueToInlines`,
4601 `metaValueToString`. Add new exported functions
4602 `lookupMetaBool`, `lookupMetaBlocks`, `lookupMetaInlines`,
4603 `lookupMetaString`. Use these whenever possible for uniformity
4604 in writers (Mauro Bieg, #4907). (Note that
4605 removed function `metaValueToInlines` was in previous
4607 + Add `metaValueToString`.
4611 + Expose more useful internals (Albert Krewinkel):
4613 - `runFilterFile` to run a Lua filter from file;
4614 - data type `Global` and its constructors; and
4615 - `setGlobals` to add globals to a Lua environment.
4617 This module also contains `Pushable` and `Peekable` instances
4618 required to get pandoc's data types to and from Lua. Low-level
4619 Lua operation remain hidden in Text.Pandoc.Lua.
4621 + Rename `runPandocLua` to `runLua` (Albert Krewinkel).
4623 + Remove `runLuaFilter`, merging this into Text.Pandoc.Filter.Lua's
4624 `apply` (Albert Krewinkel).
4626### Bug fixes and under-the-hood improvements
4628 * Text.Pandoc.Parsing
4630 + Make `uri` accept any stream with Char tokens (Alexander Krotov).
4631 + Rewrite `uri` without `withRaw` (Alexander Krotov).
4632 + Generalize `parseFromString` and `parseFromString'` to any
4633 streams with Char token (Alexander Krotov)
4634 + Rewrite `nonspaceChar` using `noneOf` (Alexander Krotov)
4636 * Text.Pandoc.Shared: Reimplement `mapLeft` using `Bifunctor.first`
4639 * Text.Pandoc.Pretty: Simplify `Text.Pandoc.Pretty.offset`
4644 + Work around HXT limitation for --syntax-definition with windows
4646 + Always preserve tabs for man format. We need it for tables.
4647 + Split command line parsing code into a separate unexported
4648 module, Text.Pandoc.App.CommandLineOptions (Albert Krewinkel).
4650 * Text.Pandoc.Readers.Roff: new unexported module for tokenizing
4653 * New unexported module Text.Pandoc.RoffChar, provided character
4654 escape tables for roff formats.
4656 * Text.Pandoc.Readers.HTML: Fix `htmlTag` and `isInlineTag` to
4657 accept processing instructions (#3123, regression since 2.0).
4659 * Text.Pandoc.Readers.JATS: Use `foldl'` instead of `maximum` to
4660 account for empty lists (Alexander Krotov).
4662 * Text.Pandoc.Readers.RST: Don't allow single-dash separator in
4663 headerless table (#4382).
4665 * Text.Pandoc.Readers.Org: Parse empty argument array in inline src
4666 blocks (Brian Leung).
4668 * Text.Pandoc.Readers.Vimwiki:
4670 + Get rid of `F`, `runF` and `stateMeta'` in favor of `stateMeta`
4672 + Parse `Text` without converting to `[Char]` (Alexander Krotov).
4674 * Text.Pandoc.Readers.Creole: Parse `Text` without converting to
4675 `[Char]` (Alexander Krotov).
4677 * Text.Pandoc.Readers.LaTeX
4679 + Allow space at end of math after `\` (#5010).
4680 + Add support for `nolinkurl` command (#4992, Brian Leung).
4681 + Simplified type on `doMacros'`.
4682 + Tokenize before pulling tokens, rather than after (#4408). This
4683 has some performance penalty but is more reliable.
4684 + Make macroDef polymorphic and allow in inline context.
4685 Otherwise we can't parse something like `\lowercase{\def\x{Foo}}`.
4686 I have actually seen tex like this in the wild.
4687 + Improved parsing of `\def`, `\let`. We now correctly parse:
4697 + Improve parsing of `\def` argspec.
4698 + Skip `\PackageError` commands (see #4408).
4699 + Fix bugs omitting raw tex (#4527). The default is `-raw_tex`,
4700 so no raw tex should result unless we explicitly say `+raw_tex`.
4701 Previously some raw commands did make it through.
4702 + Moved `isArgTok` to Text.Pandoc.Readers.LaTeX.Parsing.
4703 + Moved `babelLangToBCP`, `polyglossiaLangToBCP` to new module,
4704 Text.Pandoc.Readers.LaTeX.Lang (unexported).
4705 + Simplified accent code using unicode-transforms.
4706 New dependency on unicode-transforms package for normalization.
4707 + Allow verbatim blocks ending with blank lines (#4624).
4708 + Support `breq` math environments: `dmath`, `dgroup`, `darray`.
4709 This collects some of the general-purpose code from the LaTeX reader,
4710 with the aim of making the module smaller.
4712 * Text.Pandoc.Readers.Markdown
4714 + Fix awkward soft break movements before abbreviations (#4635).
4715 + Add updateStrPos in a couple places where needed.
4717 * Text.Pandoc.Readers.Docx: Trigger bold/italic with bCs, iCs
4718 (#4947). These are variants for "complex scripts" like Arabic
4719 and are now treated just like b, i (bold, italic).
4721 * Text.Pandoc.Readers.Muse (Alexander Krotov)
4723 + Try to parse lists before trying to parse table.
4724 This ensures that tables inside lists are parsed correctly.
4725 + Forbid whitespace after opening and before closing markup
4727 + Parse page breaks.
4728 + Simplify `museToPandocTable` to get rid of partial functions.
4729 + Allow footnotes to start with empty line.
4730 + Make sure that the whole text is parsed.
4731 + Allow empty headers. Previously empty headers caused parser to
4732 terminate without parsing the rest of the document.
4733 + Allow examples to be indented with tabs.
4734 + Remove indentation from examples indicated by `{{{` and `}}}`.
4735 + Fix parsing of empty cells.
4736 + Various changes to internals.
4737 + Rewrite some parsers in applicative style.
4738 + Avoid tagsoup dependency.
4739 + Allow table caption to contain `+`.
4741 * Text.Pandoc.Writers.LaTeX
4743 + Add newline if math ends in a comment (#4880). This prevents the
4744 closing delimiter from being swalled up in the comment.
4745 + With `--listings`, don't pass through org-babel attributes (#4889).
4746 + With `--biblatex`, use `\autocite` when possible (#4960).
4747 `\autocites{a1}{a2}{a3}` will not collapse the entries. So, if
4748 we don't have prefixes and suffixes, we use instead
4749 `\autocite{a1,a2,a3}`.
4750 + Fix description lists contining highlighted code (#4662).
4752 * Text.Pandoc.Writers.Man
4754 + Don't wrap `.SH` and `.SS` lines (#5019).
4755 + Avoid unnecessary `.RS`/`.RE` pair in definition lists with
4756 one paragraph definitions.
4757 + Moved common groff functions to Text.Pandoc.Writers.Groff.
4758 * Fix strong/code combination on man (should be `\f[CB]` not
4759 `\f[BC]`, see #4973).
4760 + Man writer: use `\f[R]` instead of `\f[]` to reset font
4761 (Alexander Krotov, #4973).
4762 + Move `splitSentences` to Text.Pandoc.Shared.
4764 * Text.Pandoc.Writers.Docx
4766 + Add framework for custom properties (#3034). So far, we don't
4767 actually write any custom properties, but we have the
4768 infrastructure to add this.
4770 + Handle tables in table cells (#4953). Although this is not
4771 documented in the spec, some versions of Word require a `w:p`
4772 element inside every table cell. Thus, we add one when the
4773 contents of a cell do not already include one (e.g. when a table
4774 cell contains a table).
4776 * Text.Pandoc.Writers.AsciiDoc: Prevent illegal nestings.
4777 Adjust header levels so that n+1 level headers are only
4778 found under n level headers, and the top level is 1.
4780 * Text.Pandoc.Writers.OpenDocument: Improve bullet/numbering
4781 alignment (#4385). This change eliminates the large gap we used
4782 to have between bullet and text, and also ensures that numbers
4783 in numbered lists will be right-aligned.
4785 * Text.Pandoc.Writers.ZimWiki
4787 + Number ordered list items sequentially, rather than always
4789 + Remove extra indentation on lists (#4963).
4791 * Text.Pandoc.Writers.EPUB: Use metadata field `css` instead of
4792 `stylesheet` (Mauro Bieg, #4990).
4794 * Text.Pandoc.Writers.Markdown: Ensure blank between raw block and
4795 normal content (#4629). Otherwise a raw block can prevent a
4796 paragraph from being recognized as such.
4798 * Text.Pandoc.Writers.Ms
4800 + Removed old `escapeBar`. We don't need this now that we use
4802 + Moved common code to Text.Pandoc.Writers.Roff and to
4803 Text.Pandoc.RoffChar.
4804 + Move `splitSentences` to Text.Pandoc.Shared (to avoid duplication
4805 with the man writer).
4807 * Text.Pandoc.Writers.Muse (Alexander Krotov).
4809 + Add support for grid tables.
4810 + Fix Muse writer style.
4811 + Use `length` instead of `realLength` to calculate definition
4812 indentation. Muse parsers don't take character width into
4813 account when calculating indentation.
4814 + Do not insert newline before lists.
4815 + Use lightweight markup after `</em>` tag.
4817 * New unexported module Text.Pandoc.Writers.Roff, providing functions
4818 useful for all roff format writers (man, ms).
4822 + Move globals handling to separate module Text.Pandoc.Lua.Global
4825 + Lua filter internals: push Shared.Element as userdata (Albert
4826 Krewinkel). Hierarchical Elements were pushed to Lua as plain
4827 tables. This is simple, but has the disadvantage that marshaling
4828 is eager: all child elements will be marshaled as part of the
4829 object. Using a Lua userdata object instead allows lazy access
4830 to fields, causing content marshaling just (but also each time)
4831 when a field is accessed. Filters which do not traverse the full
4832 element contents tree become faster as a result.
4834### Default template changes
4838 + Add variable `hyperrefoptions` (#4925, Mathias Walter).
4839 + Add variable `romanfont`, `romanfontoptions` (#4665, OvidiusCicero).
4841 * AsciiDoc template: use single-line style for title.
4843 * revealjs template: Fix typo in the socket.io javascript plugin (#5006,
4846 * Text.Pandoc.Lua.Util: add missing docstring to `defineHowTo`
4849 * data/pandoc.lua: add datatype ListAttributes (Albert Krewinkel)
4851 * data/sample.lua: replace custom pipe function with pandoc.utils.pipe
4854### Documentation improvements
4858 + Add chromeos install instructions (#4958) (Evan Pratten).
4859 + Add note about TinyTeX.
4863 + Change `groff` -> `roff`.
4864 + Implement `--ascii` for Markdown writer.
4865 + Clarify LaTeX image dimensions output (Mauro Bieg).
4867 * doc/customizing-pandoc.md: added skeleton (Mauro Bieg, #3288).
4869 * doc/getting-started.md: Added title to test1.md to avoid warning.
4871 * doc/lua-filters.md: merge type references into main document,
4872 fix description of Code.text (Albert Krewinkel).
4874### Build infrastructure improvements
4878 + Makefile: added quick-cabal, full-cabal targets.
4879 + Make .msi download targets insensitive to order of appveyor builds.
4881 * Update benchmarks for ghc 8.6.1.
4885 + Enable more compiler warnings (Albert Krewinkel).
4886 + Make base lower bound 4.8.
4887 + Bump upper bound for QuickCheck.
4888 + Bump upper bound for binary.
4889 + Updated version bounds for containers and haddock-library (#4974).
4890 + Added docx/docPropos/custom.xml to cabal data-files.
4891 + Require skylighting 0.7.4 (#4920).
4892 + New dependency on unicode-transforms package for normalization.
4894 * Improved .travis.yml testing and test with GHC 8.6.1 (Albert Krewinkel).
4896 * Added `tools/changelog-helper.sh`.
4898 * Added test/grofftest.sh for testing the man reader on real man pages.
4900## pandoc 2.3.1 (2018-09-28)
4904 + Parse RST inlines containing newlines (#4912, Francesco Occhipinti).
4905 This eliminates a regression introduced after pandoc 2.1.1, which
4906 caused inline constructions containing newlines not to be recognized.
4907 + Fix bug with internal link targets (#4919). They were gobbling up
4908 indented content underneath.
4910 * Markdown reader: distinguish autolinks in the AST. With this change,
4911 autolinks are parsed as Links with the `uri` class. (The same is true
4912 for bare links, if the `autolink_bare_uris` extension is enabled.)
4913 Email autolinks are parsed as Links with the `email` class. This
4914 allows the distinction to be represented in the AST.
4918 + Force inline code blocks to honor export options (Brian Leung).
4919 + Parse empty argument array in inline src blocks (Brian Leung).
4921 * Muse reader (Alexander Krotov):
4923 + Added additional tests.
4924 + Do not allow code markup to be followed by digit.
4925 + Remove heading level limit.
4926 + Simplify `<literal>` tag parsers
4927 + Parse Text instead of String. Benchmark shows 7% improvement.
4928 + Get rid of HTML parser dependency.
4929 + Various code improvements.
4931 * ConTeXt writer: change `\` to `/` in Windows image paths (#4918).
4932 We do this in the LaTeX writer, and it avoids problems.
4933 Note that `/` works as a LaTeX path separator on Windows.
4937 + Add support for multiprenote and multipostnote arguments
4938 with `--biblatex` (Brian Leung, #4930). The multiprenotes occur before
4939 the first prefix of a multicite, and the multipostnotes follow the
4941 + Fix a use of `last` that might take empty list. If you ran with
4942 `--biblatex` and have an empty document (metadata but no blocks),
4943 pandoc would previously raise an error because of the use of
4944 `last` on an empty list.
4946 * RTF writer: Fix build failure with ghc-8.6.1 caused by missing
4947 MonadFail instance (Jonas Scholl).
4949 * ODT Writer: Improve table header row style handling (Nils Carlson).
4950 This changes the way styles for cells in the header row
4951 and normal rows are handled in ODT tables.
4952 Previously a new (but identical) style was generated for
4953 every table, specifying the style of the cells within the table.
4954 After this change there are two style definitions for table cells,
4955 one for the cells in the header row, one for all other cells.
4956 This doesn't change the actual styles, but makes post-processing
4957 changes to the table styles much simpler as it is no longer
4958 necessary to introduce new styles for header rows and there are
4959 now only two styles where there was previously one per table.
4963 + Don't add `uri` class to presumed autolinks. Formerly the `uri`
4964 class was added to autolinks by the HTML writer, but it had to
4965 guess what was an autolink and could not distinguish
4966 `[http://example.com](http://example.com)` from
4967 `<http://example.com>`. It also incorrectly recognized
4968 `[pandoc](pandoc)` as an autolink. Now the HTML writer
4969 simply passes through the `uri` attribute if it is present,
4970 but does not add anything.
4971 + Avoid adding extra section nestings for revealjs.
4972 Previously revealjs title slides at level (slidelevel - 1)
4973 were nested under an extra section element, even when
4974 the section contained no additional (vertical) content.
4975 That caused problems for some transition effects.
4976 + Omit unknown attributes in EPUB2 output. For example,
4977 `epub:type` attributes should not be passed through,
4978 or the epub produced will not validate.
4980 * JATS writer: remove 'role' attribute on 'bold' and 'sc' elements (#4937).
4981 The JATS spec does not allow these.
4983 * Textile writer: don't represent `uri` class explicitly
4984 for autolinks (#4913).
4986 * Lua filters (Albert Krewinkel):
4988 + Cleanup filter execution code.
4989 + Better error on test failure.
4991 * HTML, Muse reader tests: reduce time taken by round-trip test.
4993 * Added cabal.project.
4995 * MANUAL: `epub:type` is only useful for epub3 (Maura Bieg).
4997 * Use hslua v1.0.0 (Albert Krewinkel).
4999 * Fix `translations/ru` to use modern Russian orthography
5002 * Build Windows binary using ghc 8.6.1 and cabal new-build. This
5003 fixes issues with segfaults in the 32-bit Windows binaries (#4283).
5005## pandoc 2.3 (2018-09-16)
5007 * Add `--metadata-file` option (Mauro Bieg, #1960), which allows
5008 users to specify metadata in a YAML file, regardless of the
5009 input format (#1960).
5011 * Text.Pandoc.Writers.Shared: export `isDisplayMath` (API change).
5013 * Text.Pandoc.Readers.Markdown: export `yamlToMeta` (API change,
5016 * Text.Pandoc.Readers.LaTeX.Types:
5018 + New type `ArgSpec` (API change).
5019 + Second parameter of `Macro` constructor is now `[ArgSpec]` instead of
5024 + Use `tex` instead of `latex` for raw tex-ish content. We can't
5025 always tell if it's LaTeX, ConTeXt, or plain TeX. Better just to
5026 use `tex` always. Note that if `context` or `latex` specifically
5027 is desired, you can still force that in a markdown document by
5028 using the raw attribute. Note that this change may affect some
5029 filters, if they assume that raw tex parsed by the Markdown reader
5030 will be RawBlock (Format `latex`). In most cases it should be
5031 trivial to modify the filters to accept `tex` as well.
5032 + Refactor and reorganize YAML code (Mauro Bieg).
5033 + Make `example_lists` work for interrupted lists
5034 without `startnum` (#4908).
5038 + Parse `<script type="math/tex` tags as math (#4877).
5039 These are used by MathJax in some configurations.
5040 + Extract spaces inside links instead of trimming them
5041 (Alexander Krotov, #4845).
5042 + Added round-trip tests (Alexander Krotov).
5043 + Make parsing sensitive to the `raw_tex` extension (#1126). This now
5044 allows raw LaTeX environments, `\ref`, and `\eqref` to be parsed
5045 (which is helpful for translation HTML documents using MathJaX).
5047 * Org reader (Albert Krewinkel):
5049 + Respect export option `p` for planning info. Inclusion of planning info
5050 (`*DEADLINE*`, `*SCHEDULED*`, and `*CLOSED*`) can be controlled via the
5051 `p` export option: setting the option to `t` will add all planning
5052 information in a *Plain* block below the respective headline.
5053 + Org reader internals: don't rely on RecordWildCards and ViewPatterns
5055 + Strip planning info from output. Planning info is parsed, but not
5056 included in the output (as is the default with Emacs Org-mode, #4867).
5060 + Handle parameter patterns for `\def` (#4768, #4771).
5061 For example: `\def\foo#1[#2]{#1 and #2}`.
5062 + Allow `%` characters in URLs. This affects `\href` and `\url` (#4832).
5063 + Fixed parsing of `\texorpdfstring`. We were returning the wrong
5064 argument as the content.
5065 + Support `blockcquote`, `foreignblockquote`, `foreigncblockquote`,
5066 `hyphenblockquote`, `hyphencblockquote`, `enquote*`, `foreignquote`,
5067 `hyphenquote` from `csquotes` (#4848). Note that `foreignquote`
5068 will be parsed as a regular Quoted inline (not using the quotes
5069 appropriate to the foreign language).
5070 + Support more text-mode accents (#4652). Add support for `\|`, `\b`, `\G`,
5071 `\h`, `\d`, `\f`, `\r`, `\t`, `\U`, `\i`, `\j`, `\newtie`,
5072 `\textcircled`. Also fall back to combining characters when composed
5073 characters are not available.
5074 + Resolve `\ref` for figure numbers.
5075 + Support `mintinline` (#4365, Marc Schreiber).
5076 + Fix siunitx unit commands so they are only recognized in
5077 siunitx contexts (#4842). For example, `\l` outside of an
5078 siunitx context should be l-slash, not l (for liter).
5079 + Fix double `unnumbered` class (#4838). The `unnumbered` class
5080 was being included twice for starred sections.
5082 * RST reader: Don't skip link definitions after comments (#4860).
5084 * Muse reader (Alexander Krotov):
5086 + Close the `</quote>` in indented tag test.
5087 There is already a separate test for unclosed `</quote>`.
5088 + Autonumber sections in the correct order. Parsing now stops
5089 at each section header to ensure the header is registered before
5090 parsing of the next section starts.
5091 + Move duplicate code into `headingStart` function.
5092 + Allow newline after opening `*` or `**`.
5093 + Don't allow digits after closing marker in lightweight markup
5094 This change makes reader more compatible with Emacs Muse.
5095 + Parse `<verse>` tag in one pass instead of using
5096 `parseFromString`. This change makes it possible to have
5097 verbatim `</verse>` tag inside verse.
5099 * ODT reader: deal gracefully with missing `<office:font-face-decls/>`
5100 (#4336). This allows pandoc to parse ODT document produced by KDE's
5103 * Muse writer (Alexander Krotov):
5105 + Output headers without asterisks if not on the top level.
5106 + Never wrap definition list terms.
5107 + Set `envInsideBlock = True` when rendering notes.
5108 + Use `""` instead of `[]` for empty String.
5109 + Check for whitespace in the beginning and end of Str's.
5110 + Escape `-`, `;` and `>` in the beginning of strings.
5111 + Escape list markers in the beginning of notes.
5112 + Normalize inline list before testing if tags should be used.
5113 + Use tags instead of lightweight markup for empty strings.
5114 + Use lightweight markup when possible.
5115 + Escape empty strings. This guarantees that `conditionalEscapeString`
5116 never returns empty string.
5117 + Wrap conditionalEscapeString result into `Muse` type.
5118 This removes the need to pass `envInsideLinkDescription` to it.
5119 + Separate `shouldEscapeString` function.
5120 + Simplify inline list rendering.
5121 + Replace newlines in strings with spaces.
5125 + Add MetaString case for abstract, subtitle (#4900, Mauro Bieg).
5126 + Properly handle display math in spans (#4826). This isn't a
5127 complete solution, since other nestings of display math may still
5128 cause problems, but it should work for what is by far the most
5133 + Always output `<dt>` element, even if it is empty (#4883,
5135 + Don't prefix `epub:` attributes with `data-`.
5137 * Org writer: Don't escape literal `_`, `^` (#4882). Org doesn't
5138 recognize these escapes.
5140 * ODT writer: Fix percentage image scaling (#4881, Nils Carlson).
5141 Image scaling was broken when a width was set to a percentage.
5143 * EPUB writer: set `epub:type` on body element in each chapter,
5144 depending on the `epub:type` of the first section (#4823). This
5145 only affects epub3. See
5146 http://www.idpf.org/epub/profiles/edu/structure/#h.l0bzsloklt10
5148 * FB2 writer: put `coverpage` element between title and date rather than in
5149 `document-info` element (#4854).
5151 * Markdown writer: Escape `~` if strikeout extension enabled (#4840).
5153 * Haddock writer: Use proper format for latex math in haddock (#4571, Joe
5154 Hermaszewski). Inline math in `\(..\)`, display math in `\[..\]`,
5155 tex is now used. Previously we'd "fake it with unicode" and fall
5156 back to tex when that didn't work. But newer haddock versions
5161 + Ensure that title element is always present, even if empty (#4839).
5162 + Put author tags in the template, rather than adding them in
5165 * LaTeX writer/template: be sensitive to `filecolor` variable (#4822).
5166 `linkcolor` only affects internal links, and `urlcolor` only
5167 affects linked URLs. For external links, the option to use is
5170 * ConTeXt writer: output raw `tex` blocks as well as `context` (#969).
5174 + Use `.. raw:: latex` for `tex` content.
5175 + Use `.. container` for generic Divs, instead of raw HTML.
5176 + Render Divs with admonition classes as admonitions (#4833).
5177 Also omit Div with class `admonition-title`. These are generated
5178 by the RST reader and should be omitted on round-trip.
5180 * Text.Pandoc.PDF: fix message printed when rsvg-convert is not available
5181 (#4855, Antonio Terceiro).
5183 * HTML5 template: add the `title-block-header` identifier to the
5184 `header` element, to make it easier to style precisely (#4767,
5187 * OpenDocument template: Remove unnecessary indenting of TOC title (#4798,
5188 José de Mattos Neto).
5190 * latex template: Add support for $toc-title$ to LaTeX (and PDF)
5191 (#4853, Wandmalfarbe).
5193 * TEI template: improve `publicationStmt`. Add support for
5194 `publisher`, `address`, `pubPlace`, and `date` variables.
5196 * beamer template: Support "toc-title" (#4835, Cyril Roelandt).
5198 * Text.Pandoc.Extensions: Fix haddock on `Ext_footnotes` (Chris Martin).
5200 * Lua: cleanup Lua utils, remove unused functions (Albert Krewinkel).
5204 + Clarify that `--biblatex/--natbib` don't work directly for PDF
5206 + Document `epub:type` attribute (Mauro Bieg, #4901)
5207 + Clarify when `--resource-path` has an effect.
5208 + More detail on customization in syntax highlighting section.
5209 + Document encoding issue with `--listings` (#4871, Damien Clochard).
5210 + Remove docs on removed `--katex-stylesheet` (Mauro Bieg, #4862).
5211 + Use https for context wiki links (#4910).
5215 + Link to lua-filters repository (#4874).
5216 + Fix mistake in REPL instructions for stack. (#4849, Brian Leung).
5218 * lua-filters.md: add links to filters, and to lua-filters repository
5223 + Indicate that cabal >= 2.0 is needed.
5224 + Added chocolatey installation method (#4844, Miodrag Milić).
5226 * Travis: exclude round-trip tests, except for nightly test which can fail.
5228 * Use latest texmath, pandoc-citeproc.
5230 * Use a patched version of foundation until
5231 https://github.com/haskell-foundation/foundation/pull/503
5234 * Clean up appveyor build and Windows package creation.
5235 We now use 64-bit stack and ghc 8.4.3, lts-12 for the 64-bit build. The
5236 WiX-based msi is now 64-bit for 64-bit builds (fixing #4795).
5238 * Remove obsolete RELEASE-CHECKLIST.md.
5240 * Added additional compiler warnings in Makefile and CI builds.
5242## pandoc 2.2.3.2 (2018-08-07)
5244 * Markdown reader: Properly handle boolean values in YAML metadata (#4819).
5245 This fixes a regression in 2.2.3, which cause boolean values to
5246 be parsed as MetaInlines instead of MetaBool.
5248 We here record another undocumented (but desirable) change in 2.2.3:
5249 numerical metadata fields are now parsed as MetaInlines rather than
5252## pandoc 2.2.3.1 (2018-08-06)
5254 * Markdown reader: Fix parsing of embedded mappings in YAML metadata
5255 (#4817). This fixes a regression in 2.2.3 which caused embedded
5256 mappings (e.g. mappings in sequences) not to work in YAML metadata.
5258## pandoc 2.2.3 (2018-08-05)
5260 * RST reader: improve parsing of inline interpreted text roles (#4811).
5262 + Use a Span with class "title-reference" for the default
5263 title-reference role.
5264 + Use `B.text` to split up contents into `Space`s, `SoftBreak`s,
5265 and `Str`s for `title-reference`.
5266 + Use Code with class "interpreted-text" instead of Span and Str for
5267 unknown roles. (The RST writer has also been modified to round-trip
5269 + Disallow blank lines in interpreted text.
5270 + Backslash-escape now works in interpreted text.
5271 + Backticks followed by alphanumerics no longer end interpreted text.
5272 + Remove support for nested inlines (Francesco Occhipinti).
5273 RST does not allow nested emphasis, links, or other inline
5274 constructs. This fixes several bugs (#4581, #4561, #4792).
5276 * Org reader: fix parsers relying on `parseFromString` (#4784, Albert
5277 Krewinkel). Emphasis was not parsed when it followed directly after
5278 some block types (e.g., lists).
5280 * Markdown reader: Allow unquoted numbers and booleans as YAML mapping
5281 keys. Previously in 2.2.2 you could not do
5293 With this change, both forms work.
5295 * DocBook reader: metadata handling improvements.
5296 Now we properly parse title and subtitle elements that are direct
5297 children of book and article (as well as children of bookinfo,
5298 articleinfo, or info). We also now use the `subtitle` metadata
5299 field for subtitles, rather than tacking the subtitle on to the
5304 + Allow images to be directly nested within links (#4810, Francesco
5306 + Use `titleblock` instead of `title` variable for title block (#4803,
5307 Francesco Occhipinti). `titleblock` contains a properly formatted
5308 title and subtitle (using top-level headers). `title` and
5309 `subtitle` variables are still available and just contain the
5310 title and subtitle text. Note that this change will require an
5311 update to custom rst templates.
5312 + Render Code with class "interpreted-text" as interpreted text role.
5314 * MediaWiki writer: Avoid extra blank line in tables with empty cells
5315 (#4794). Note that the old output is semantically identical, but the
5316 new output looks better.
5318 * Lua Utils module: add function `blocks_to_inlines` (#4799, Albert
5319 Krewinkel). Exposes a function converting which flattenes a list of
5320 blocks into a list of inlines. An example use case would be the
5321 conversion of Note elements into other inlines.
5323 * RST template: use `titleblock` instead of `title`. Users of
5324 custom RST templates will want to update this.
5326 * LaTeX template: Moved some beamer code in default.latex template.
5327 This change allows beamer themes to change the template and font (as
5328 Metropolis does) (#4450).
5330 * Better error message on `-t pdf -o out.pdf` (#1155, Mauro Bieg).
5332 * Added test case for #4669 to repository.
5334 * INSTALL.md: Fix broken link for cabal-install (#4806, ChanHoHo).
5338 + Add beamer info for slide backgrounds (#4802, John Muccigrosso).
5339 + Clarify when `csquotes` is used in LaTeX writer (#4514).
5340 + Add `commonmark` to list of output formats where `raw_tex` has an
5344## pandoc 2.2.2.1 (2018-07-19)
5346 * Fix regression finding templates in user data directory (#4777).
5347 Under version 2.2.1 and prior pandoc found latex templates in the
5348 templates directory under the data directory, but this broke in 2.2.2.
5350 * Fix for bug in parsing `\input` in `rawLaTeXBlock` and
5351 `rawLaTeXInline` (#4781). (This primarily affects the markdown
5352 reader, and other readers that accept raw tex.)
5353 Starting in 2.2.2, everything after an `\input` (or `\include`)
5354 in a markdown file would be parsed as raw LaTeX.
5358 + Clarify `gfm` vs `markdown_github` (#4783, Mauro Bieg).
5359 * Use `keywords` instead of `tags` in YAML metadata example (#4779).
5360 Unlike `tags`, `keywords` is used in some of the writers
5361 and default templates.
5363 * Add missing `rollingLinks` option to revealjs template (#4778,
5366## pandoc 2.2.2 (2018-07-16)
5368 * Use HsYAML instead of yaml for translations and YAML metadata (#4747).
5369 yaml wraps a C library; HsYAML is pure Haskell. Advances #4535.
5371 Note: HsYAML implements YAML 1.2, in which the valid true
5372 values are `true`, `True`, `TRUE`. This means a change in
5373 the semantics of YAML metadata that could affect users:
5374 `y`, `yes`, and `on` no longer count as true values.
5376 * Fix regression: make `--pdf-engine` work with full paths (#4681, Mauro
5379 * CommonMark reader: Handle `ascii_identifiers` extension (#4742,
5380 Anders Waldenborg). Non-ascii characters were not stripped from
5381 identifiers even if the `ascii_identifiers` extension was
5382 enabled (which is is by default for gfm).
5384 * TikiWiki reader: Improve list parsing (#4722, Mauro Bieg).
5385 Remove trailing Space from list items. Parse lists that have no space
5390 + Treat `lilypond` as a verbatim environment (#4725).
5391 + Parse figure label into Image id (#4700, Mauro Bieg).
5392 + Beamer: Allow "noframenumbering" option (#4696, Raymond Ehlers).
5393 + Allow spaces around `\graphicspath` arguments (#4698).
5394 + Handle includes without surrounding blanklines (#4553).
5395 In addition, `\input` can now be used in an inline context,
5396 e.g. to provide part of a paragraph, as it can in LaTeX.
5397 + In `rawLaTeXBlock`, handle macros that resolve to a
5398 `\begin` or `\end` (#4667).
5399 + In `rawLaTeXBlock`, don't expand macros in macro definitions (#4653).
5400 Note that this only affected LaTeX in markdown.
5401 + Tighten up reading of beamer overlay specifications (#4669).
5402 Ideally we'd turn these on only when reading beamer, but currently
5403 beamer is not distinguished from latex as an input format.
5404 This commit also activates parsing of overlay specifications
5405 after commands in general (e.g. `\item`), since they can occur
5406 in many contexts in beamer.
5407 + Parse more siunitx unit commands (#4296, #4773).
5408 + Be more forgiving in key/value option parsing (#4761).
5412 + Allow empty code spans, e.g. `` ` ` ``.
5413 + Emojis are now wrapped in Spans with class `emoji` and
5414 attribute `data-emoji` (Anders Waldenborg, #4743).
5415 This allows the writer to handle them in a special way
5416 (e.g. using a special font, or just rendering the
5419 * Muse reader (Alexander Krotov, except where indicated):
5421 + Get rid of non-exhaustive pattern match warning (Mauro Bieg).
5422 + Add support for floating images.
5423 + Add support for images with specified width.
5424 + Parse image URLs without "guard" and "takeExtension".
5425 + Split link and image parsing into separate functions.
5426 + Parse links starting with "URL:" explicitly instead of trying to strip
5427 "URL:" prefix after parsing.
5429 * Texinfo writer: Use `@sup` and `@sub` instead of custom macros (#4728,
5432 * Markdown writer: Preserve `implicit_figures` with attributes, even if
5433 `implicit_attributes` is not set, by rendering in raw HTML (#4677).
5435 * Markdown and commonmark/github writers now respect the `emoji`
5436 extension. So, `-f markdown+emoji -t markdown+emoji` now leaves
5437 `:smile:` as `:smile:` rather than converting it to a smile
5440 * Docx writer: Be sensitive to `toc` in YAML metadata (#4645).
5442 * ODT/OpenDocument writer: Make internal links work (#4358).
5443 This adds proper bookmarks to the headers with non-null IDs.
5445 * EPUB writer: Properly escape pagetitle. Previously we weren't
5446 escaping `&` and other XML characters in the pagetitle, so a title
5447 containing a `&` would be invalid.
5449 * AsciiDoc Writer: Eescape square brackets at start of line (#4545,
5454 + Don't treat 'example' as a syntax name (#4748).
5455 This fixes conversions from org with example blocks.
5456 + Support `--number-sections` via the `section-numbering`
5457 directive in standalone output.
5459 * reveal.js writer and template: reuse mathjax URL
5460 provided by the argument to `--mathjax` or the normal pandoc default,
5461 rather than a hard-coded one in the template (#4701).
5465 + Properly handle footnotes in table captions (#4683).
5466 Refactored code from figure captions to use in both places.
5467 + In beamer output, fix single digit column percentage (#4690, Mauro
5470 * FB2 writer (Alexander Krotov):
5472 + Convert Plain to Para in annotation (#2424).
5473 + Fix order of items in title-info (#2424).
5475 * Custom writer: fix error message on script failure (Albert Krewinkel).
5476 Error messages produced by Lua were not displayed by Pandoc.
5478 * Text.Pandoc.Emoji now exports `emojiToInline`, which returns a Span
5479 inline containing the emoji character and some attributes with metadata
5480 (class `emoji`, attribute `data-emoji` with emoji name). (API change,
5481 Anders Waldenborg, #4743).
5485 + Revert fix for #4484 (only compress images on last run, #4755).
5486 This will mean some increase in the time it takes to
5487 produce an image-heavy PDF with xelatex, but it will
5488 make tables of contents correct, which is more important.
5489 + Fix logic error in `runTeXProgram`. We were running the tex program
5490 one more time than requested. This should speed up PDF production.
5492 * Allow `--template` to take a URL as argument.
5494 * Text.Pandoc.Highlighting: Add missing re-export of `breezeDark`
5495 highlighting style (#4687, Adrian Sieber, API change).
5497 * Clarify macOS install in INSTALL.md (#4661). Make the binary package
5498 installer the recommended method, and note that on some older versions of
5499 macOS, homebrew installs from source and takes a lot of disk space
5504 + Clarify EPUB linked media (#4756, Mauro Bieg)
5505 + Update manual for "true" YAML values. Now that we're using HsYAML and
5506 YAML 1.2, the valid true values are `true`, `True`, `TRUE`. NOTE!
5507 `y`, `yes`, `on` no longer count as true values.
5508 + Document `-F` as alias for `--filter` (thanks to Gandalf Saxe).
5509 + Update manual on how math is rendered in LaTeX.
5510 + Add proxy description (#4131, Mauro Bieg).
5511 + Clarify that `--toc` requires `--standalone` (#4703).
5512 + Update citation styles link (#4699, wiefling).
5514 * In API docs, clarify how `Ext_east_asian_line_breaks` extension works
5515 (kaizshang91). Note that it will not take effect when readers/writers
5516 are called as libraries (#4674).
5518 * Improved translations/fr (#4766, lux-lth).
5520 * Removed inadvertently added `.orig` files from repository (#4648).
5522 * Remove `network-uri` flag and use 'Network.Socket'.
5523 This removes a compiler warning. There is no need for the old
5524 `network-uri` flag, since network 2.6 was released in 2014.
5526 * Add stack.lts10.yaml, stack.lts11.yaml. use lts-12 in stack.yaml.
5528 * Bump upper bounds for dependent packages.
5530 * Exclude foundation 0.0.21 for ghc 7.10. Otherwise cabal gets
5531 confused because of the way ghc 7.10 is excluded in foundation's
5532 cabal file. This can be removed when haskell-foundation/foundation#500
5535 * Require cabal-version >= 2.0. This is needed for haddock-library.
5540## pandoc 2.2.1 (2018-05-10)
5542 * Restored and undeprecated gladtex for HTML math (#4607).
5544 + Added `GladTeX` constructor to `Text.Pandoc.Options.HTMLMathMethod`
5545 [API change, reverts removal in v2.2]
5546 + Restored and undeprecated `--gladtex` option, removed in v2.2.
5548 * LaTeX reader: Handle `$` in `/text{..}` inside math (#4576).
5550 * Org reader: Fix image filename recognition (Albert Krewinkel).
5551 Use a function from the filepath library to check whether a string is a
5552 valid file name. The custom validity checker that was used before gave
5553 wrong results (e.g. for absolute file paths on Windows,
5554 kawabata/ox-pandoc#52).
5556 * FB2 reader: Replace some errors with warnings (Alexander Krotov).
5560 + Strip links from headers when creating TOC (#4340).
5561 Otherwise the TOC entries will not link to the sections.
5562 + Fix regression with tex math environments in HTML + MathJax (#4639).
5564 * Muse writer (Alexander Krotov): Add support for left-align and
5565 right-align classes (#4542).
5567 * Docx writer: Support underline (#4633).
5569 * Text.Pandoc.Parsing: Lookahead for non-whitespace after
5570 `singleQuoteStart` and `doubleQuoteStart` (#4637).
5572 * `test-pandoc-utils.lua`: more robust testing on both windows
5573 and \*nix. Previously the pipe tests were only run if
5574 `\bin/false` and `/bin/sed` were present, which they aren't
5575 in default MacOS and Windows systems. Fixed by using `tr`
5576 and `false`, which should always be in the path on a \*nix
5577 system, and `find` and `echo` for Windows.
5579 * Text.Pandoc.Shared: add `uriPathToPath`.
5580 This adjusts the path from a file: URI in a way that is sensitive
5581 to Windows/Linux differences. Thus, on Windows,
5582 `/c:/foo` gets interpreted as `c:/foo`, but on Linux,
5583 `/c:/foo` gets interpreted as `/c:/foo`. See #4613.
5585 * Use `uriPathToPath` with file: URIs (#4613).
5587 * Revert piping HTML to pdf-engine (Mauro Bieg, #4413). Use a temp
5590 * Text.Pandoc.Class: Catch IO errors when writing media files
5591 and issue a warning, rather than an error (Francesco Occhipinti, #4559).
5593 * Don't lowercase custom writer filename (Alexander Krotov, #4610).
5595 * MANUAL (Mauro Bieg):
5597 + Clarify truthiness in template variables (#2281).
5598 + Clarify pipe table width calculation (#4520).
5600 * ConTeXt template: New Greek fallback typeface (Pablo Rodríguez, #4405).
5601 CMU Serif gives better typographic results than the previous
5602 Greek fallback DejaVu Serif.
5604 * Make HTML template polyglot (#4606, OvidiusCicero), by making
5605 `<link rel="stylesheet" href="$css$">` self-closing.
5607 * Use texmath 0.11, allowing better translation of non-ASCII
5608 characters in math (#4642).
5611## pandoc 2.2 (2018-04-27)
5613 * New input format: `fb2` (FictionBook2) (Alexander Krotov).
5615 * Make `--ascii` work for all XML formats (ICML, OPML, JATS,...),
5616 and for `ms` and `man`.
5618 * Remove deprecated `--latexmathml`, `--gladtex`, `--mimetex`, `--jsmath`, `-m`,
5619 `--asciimathml` options.
5621 * New module Text.Pandoc.Readers.FB2, exporting readFB2 (Alexander
5622 Krotov, API change).
5626 + Allow empty key-value attributes, like `title=""` (#2944).
5627 + Handle table w/o following blank line in fenced div (#4560).
5628 + Remove "fallback" for `doubleQuote` parser. Previously the
5629 parser tried to be efficient -- if no end double quote was found,
5630 it would just return the contents. But this could backfire in a
5631 case `**this should "be bold**`, since the fallback would return
5632 the content `"be bold**` and the closing boldface delimiter
5633 would never be encountered.
5634 + Improve computation of the relative width of the last column in a
5635 multiline table, so we can round-trip tables without constantly
5636 shrinking the last column.
5640 + Fix images with space in file path (#4344).
5644 + Properly resolve section numbers with `\ref` and chapters (#4529).
5645 + Parse sloppypar environment (#4517, Marc Schreiber).
5646 + Improve handling of raw LaTeX (for markdown etc.) (#4589, #4594).
5647 Previously there were some bugs in how macros were handled.
5648 + Support `\MakeUppercase`, `\MakeLowercase`, `\uppercase`,
5649 `\lowercase`, and also `\MakeTextUppercase` and
5650 `\MakeTextLowercase` from textcase (#4959).
5654 + Fixed tables with no body rows (#4513).
5655 Previously these raised an exception.
5659 + Improve table parsing (#4508). This fixes detection of table
5660 attributes and also handles `!` characters in cells.
5664 + Properly handle title in `section` element (#4526).
5665 Previously we just got `section_title` for `section` (though `sect1`,
5666 `sect2`, etc. were handled properly).
5667 + Read tex math as output by asciidoctor (#4569, Joe Hermaszewski).
5671 + Combine adjacent CodeBlocks with the same attributes into
5672 a single CodeBlock. This prevents a multiline codeblock in
5673 Word from being read as different paragraphs.
5677 + Allow < 3 spaces indent under directives (#4579).
5678 + Fix anonymous redirects with backticks (#4598).
5680 * Muse reader (Alexander Krotov):
5682 + Add support for Text::Amuse multiline headings.
5683 + Add `<math>` tag support.
5684 + Add support for `<biblio>` and `<play>` tags.
5685 + Allow links to have empty descriptions.
5686 + Require block `<literal>` tags to be on separate lines.
5687 + Allow `-` in anchors.
5688 + Allow verse to be indented.
5689 + Allow nested footnotes.
5690 + Internal improvements.
5692 * Muse writer (Alexander Krotov):
5694 + Escape `>` only at the beginning of a line.
5695 + Escape `]` in image title.
5696 + Escape `]` brackets in URLs as `%5D`.
5697 + Only escape brackets when necessary.
5698 + Escape ordered list markers.
5699 + Do not escape list markers unless preceded by space.
5700 + Escape strings starting with space.
5701 + Escape semicolons and markers after line break.
5702 + Escape `;` to avoid accidental comments.
5703 + Don't break headers, line blocks and tables with line breaks.
5704 + Correctly output empty headings.
5705 + Escape horizontal rule only if at the beginning of the line.
5706 + Escape definition list terms starting with list markers.
5707 + Place header IDs before header.
5708 + Improve span writing.
5709 + Do not join Spans in normalization.
5710 + Don't align ordered list items.
5711 + Remove key-value pairs from attributes before normalization.
5712 + Enable `--wrap=preserve` for all tests by default.
5713 + Reduced `<verbatim>` tags in output.
5718 + Use more consistent indentation (#4563). Previously we
5719 used an odd mix of 3- and 4-space indentation. Now we use 3-space
5720 indentation, except for ordered lists, where indentation must
5721 depend on the width of the list marker.
5722 + Flatten nested inlines (#4368, Francesco Occhipinti).
5723 Nested inlines are not valid RST syntax, so we flatten them following
5724 some readability criteria discussed in #4368.
5728 + Ensure that `pagetitle` is always set, even when structured titles
5729 are used. This prevents spurious warnings about empty title
5732 * FB2 writer (Alexander Krotov):
5734 + Output links inline instead of producing notes. Previously all links
5735 were turned into footnotes with unclickable URLs inside.
5736 + Allow emphasis and notes in titles.
5737 + Don't intersperse paragraph with empty lines.
5738 + Convert metadata value `abstract` to book annotation.
5739 + Use `<empty-line />` for `HorizontalRule` rather than `LineBreak`.
5740 FB2 does not have a way to represent line breaks inside paragraphs;
5741 previously we used `<empty-line />` elements, but these are not allowed
5744 * Powerpoint writer (Jesse Rosenthal):
5746 + Handle Quoted Inlines (#4532).
5747 + Simplify code with `ParseXml`.
5748 + Allow fallback options when looking for placeholder type.
5749 + Check reference-doc for all layouts.
5750 + Simplify speaker notes logic.
5751 + Change notes state to a simpler per-slide value.
5752 + Remove `Maybe` from `SpeakerNotes` in `Slide`. `mempty`
5753 means no speaker notes.
5754 + Add tests for improved speaker notes.
5755 + Handle speaker notes earlier in the conversion process.
5756 + Keep notes with related blocks (#4477). Some blocks automatically
5757 split slides (imgs, tables, `column` divs). We assume that any
5758 speaker notes immediately following these are connected to these
5759 elements, and keep them with the related blocks, splitting after them.
5760 + Remove `docProps/thumbnail.jpeg` in data dir (Jesse Rosenthal, #4588).
5761 It contained a nonfree ICC color calibration profile and is not needed
5762 for production of a powerpoint document.
5766 + Include a blank line at the end of the row in a single-row multiline
5767 table, to prevent it from being interpreted as a simple table (#4578).
5769 * CommonMark writer:
5771 + Correctly ignore LaTeX raw blocks when `raw_tex` is not
5772 enabled (#4527, quasicomputational).
5776 + Add `epub:type="footnotes"` to notes section in EPUB3 (#4489).
5780 + In beamer, don't use format specifier for default ordered lists
5781 (#4556). This gives better results for styles that put ordered list
5782 markers in boxes or circles.
5783 + Update `\lstinline` delimiters (#4369, Tim Parenti).
5787 + Use `\f[R]` rather than `\f[]` to reset font (#4552).
5788 + Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`,
5789 since the header font is automatically bold (#4552).
5790 + Use `\f[CB]` rather than `\f[BC]` for monospace bold (#4552).
5791 + Create pdf anchor for a Div with an identifier (#4515).
5792 + Escape `/` character in anchor ids (#4515).
5793 + Improve escaping for anchor ids: we now use _uNNN_ instead of uNNN
5798 + Don't escape U+2019 as `'` (#4550).
5800 * Text.Pandoc.Options:
5802 + Removed `JsMath`, `LaTeXMathML`, and `GladTeX` constructors from
5803 `Text.Pandoc.Options.HTMLMathMethod` [API change].
5805 * Text.Pandoc.Class:
5807 + `writeMedia`: unescape URI-escaping in file path. This avoids
5808 writing things like `file%20one.png` to the file system.
5810 * Text.Pandoc.Parsing:
5812 + Fix `romanNumeral` parser (#4480). We previously accepted 'DDC'
5814 + `uri`: don't treat `*` characters at end as part of URI (#4561).
5818 + Use the alias `application/eps` for EPS (#2067).
5819 This will ensure that we retain the eps extension after reading the
5820 image into a mediabag and writing it again.
5824 + Use `withTempDir` in `html2pdf`.
5825 + With `xelatex`, don't compress images til the last run (#4484).
5826 This saves time for image-heavy documents.
5827 + Don't try to convert EPS files (#2067). `pdflatex` converts them
5828 itself, and JuicyPixels can't do it.
5829 + For `pdflatex`, use a temp directory in the working directory.
5830 Otherwise we can have problems with the EPS conversion pdflatex
5831 tries to do, which can't operate on a file above the working
5832 directory without `--shell-escape`.
5834 * Changes to tests to accommodate changes in pandoc-types.
5835 In <https://github.com/jgm/pandoc-types/pull/36> we changed
5836 the table builder to pad cells. This commit changes tests
5837 (and two readers) to accord with this behavior.
5839 * Set default extensions for `beamer` same as `latex`.
5843 + Add `beameroption` variable (#4359, Étienne Bersac).
5844 + Use `pgfpages` package; this is needed for notes on second
5845 screen in beamer (Étienne Bersac).
5846 + Add `background-image` variable (#4601, John Muccigrosso).
5848 * reveal.js template: Add `background-image` variable (#4600,
5851 * ms template: Fix date. Previously `.ND` was used, but this only
5852 works if you have a title page, which we don't. Thanks to @teoric.
5854 * Removed pragmas for unused extensions (#4506, Anabra).
5856 * Fix bash completion for `--print-default-data-file` (#4549).
5857 Previously this looked in the filesystem, even if pandoc
5858 was compiled with `embed_data_files` (and sometimes it looked
5859 in a nonexistent build directory). Now the bash completion
5860 script just includes a hard-coded list of data file names.
5864 + Clarify template vs metadata variables (#4501, Mauro Bieg).
5865 + Fix raw content example (#4479, Mauro Bieg).
5866 + Specify that you use html for raw output in epub.
5867 + Add examples for raw docx blocks (#4472, Tristan Stenner).
5868 The documentation states that the target format name should match
5869 the output format, which isn't the case for `docx`/`openxml` and
5871 + Don't say that `empty_paragraphs` affects markdown output (#4540).
5872 + Consolidate input/output format documentation (#4577, Mauro Bieg).
5874 * New README template. Take in/out formats from manual.
5876 * Fix example in lua-filters docs (#4459, HeirOfNorton).
5878 * Use the `-threaded` GHC flag when building benchmarks (#4587,
5879 Francesco Occhipinti).
5881 * Bump temporary upper bound to 1.4.
5883 * Use pandoc-citeproc 0.14.3.1.
5885 * Use texmath-0.10.1.2 (fixes escapes in math in ms, #4597).
5887 * Removed old lib directory. This was used for something long ago,
5888 but plays no role now.
5890 * Removed unneeded data file `LaTeXMathML.js`.
5892 * Create 64- and 32-bit versions of Windows binary packages.
5894## pandoc 2.1.3 (2018-03-18)
5896 * Docx reader (Jesse Rosenthal):
5898 + Add tests for nested smart tags.
5899 + Parse nested smart tags.
5900 + Make unwrapSDT into a general `unwrap` function that can unwrap both
5901 nested SDT tags and smartTags. This makes the SmartTags constructor in
5902 the Docx type unnecessary, so we remove it (#4446).
5903 + Remove unused `docxWarnings` (Alexander Krotov).
5905 * RST reader: Allow unicode bullet characters (#4454).
5907 * Haddock reader: Better table handling, using haddock-library's
5908 new table support, if compiled against a version that
5909 includes it. Note that tables with col/rowspans will not
5910 translate well into Pandoc.
5912 * Muse reader (Alexander Krotov):
5914 + Various internal improvements.
5915 + Require closing tag to have the same indentation as opening.
5916 + Do not reparse blocks inside unclosed block tag (#4425).
5917 + Parse `<class>` tag (supported by Emacs Muse).
5918 + Do not produce empty Str element for unindented verse lines.
5922 + Add support to parse unit string of `\SI` command (closes #4296,
5925 * Haddock writer: In the writer, we now render tables always as
5926 grid tables, since Haddock supports these.
5928 * DokuWiki writer: rewrite backSlashLineBreaks (#4445, Mauro Bieg).
5930 * Docx writer: Fixed formatting of `DefaultStyle` ordered lists in
5931 docx writer. We want decimal for the top level, not lower roman.
5935 + Strip whitespace at beginning and ending of inline containers
5936 (#4327, Francesco Occhipinti).
5937 + Filter out empty inline containers (#4434). There is nothing in
5938 RST that corresponds to e.g. `Emph []`, so we just ignore elements
5939 like this (Francesco Occhipinti).
5941 * Muse writer (Alexander Krotov):
5943 + Support spans with anchors.
5944 + Replace smallcaps with emphasis before normalization.
5945 + Output smallcaps as emphasis.
5946 + Expand Cite before list normalization.
5947 + Write empty inline lists as `<verbatim></verbatim>`.
5948 + Remove empty Str from the beginning of inline lists during normalization.
5949 + Escape "-" to avoid creating bullet lists.
5950 + Fix math expansion for more than one expression per paragraph.
5951 + Expand math before inline list normalization.
5953 * Dokuwiki writer: fix LineBreaks in Tables (#4313, Mauro Bieg).
5957 + Asciify pdf anchors, since unicode anchors don't work (#4436).
5958 Internal links should be converted automatically, so this shouldn't
5959 affect users directly.
5960 + Don't escape hyphens as `\-`; that's for a minus sign (#4467).
5962 * Beamer writer: put hyperlink after `\begin{frame}` and not in the title
5963 (#4307). If it's in the title, then we get a titlebar on slides with
5964 the `plain` attribute, when the id is non-null. This fixes a regression
5967 * EPUB writer: Remove notes from TOC in nav.xhtml (#4453, Mauro Bieg).
5969 * JATS writer: Remove extraneous, significant whitespace (#4335,
5972 * html2pdf: inject base tag with current working directory (#4413, Mauro
5973 Bieg). This helps ensure that linked resources are included.
5975 * Add Semigroup instances for everything for which we defined a
5976 Monoid instance previously (API change):
5978 + Text.Pandoc.Class.FileTree.
5979 + Text.Pandoc.Translations.Translations.
5980 + Text.Pandoc.Extensions.Extensions.
5981 + Text.Pandoc.Readers.Odt.StyleReader.Styles.
5982 + Text.Pandoc.Pretty.Doc.
5983 + Text.Pandoc.MediaBag.MediaBag.
5985 * Add custom Prelude to give clean code for Monoid and Semigroup
5986 that works with ghc 7.10-8.4. The custom Prelude (`prelude/Prelude`)
5987 is used for ghc versions < 8.4. `NoImplicitPrelude` is used
5988 in all source files, and Prelude is explicitly imported
5989 (this is necessary for ghci to work properly with the custom prelude).
5991 * Text.Pandoc.Writers.Shared (Francesco Occhipinti):
5993 + Export `stripLeadingTrailingSpace`.
5994 + Don't wrap lines in grid tables when `--wrap=none` (#4320).
5995 + `gridTable`: Don't wrap lines in tables when `--wrap=none`. Instead,
5996 expand cells, even if it results in cells that don't respect relative
5997 widths or surpass page column width. This change affects RST,
5998 Markdown, and Haddock writers.
6000 * Raise error if someone tries to print docx, odt, etc. template (#4441).
6002 * LaTeX template: Provide `bidi` package's option using
6003 `\PassOptionsToPackage` (#4357, Václav Haisman). This avoid a
6004 clash when `polyglossia` loads it first and then it is loaded again
6007 * ConTeXt template: Added `pdfa` variable to generate PDF/A (#4294, Henri
6008 Menke). Instructions on how to install the ICC profiles on ConTeXt
6009 standalone can be found in the wiki:
6010 <http://wiki.contextgarden.net/PDFX#ICC_profiles>.
6011 If the ICC profiles are not available the log will contain error
6014 * Use latest pandoc-types, skylighting
6016 * Use latest pandoc-citeproc in binary package.
6018 * Bump upper bound for time, criterion, haddock-library, exceptions,
6019 http-types, aeson, haddock-library.
6021 * Bump upper bound tasty-quickcheck 0.10 (#4429, Felix Yan).
6023 * pandoc.cabal: fix up other-extensions and language fields.
6024 Language is now consistently `Haskell2010`, and other-extensions
6025 is consistently `NoImplicitPrelude`. Everything else to be specified
6026 in the module header as needed.
6028 * Removed `old-locale` flag and Text.Pandoc.Compat.Time.
6029 This is no longer necessary since we no longer support ghc 7.8.
6031 * Make `weigh-pandoc` into a benchmark program.
6032 Remove `weigh-pandoc` flag. `weigh-pandoc` is now built (and run)
6033 automatically when you build (and run) benchmarks.
6035 * MANUAL: add instructions for background images reveal.js (#4325, John
6038 * appveyor: use VS 2013 environment instead of VS 2015 for Windows builds.
6040## pandoc 2.1.2 (2018-03-02)
6044 + Fix parsing bug with nested fenced divs (#4281). Previously we allowed
6045 "nonindent spaces" before the opening and closing `:::`, but this
6046 interfered with list parsing, so now we require the fences to be flush with
6047 the margin of the containing block.
6049 * Commonmark reader:
6051 + `raw_html` is now on by default. It can be disabled explicitly
6052 using `-f commonmark-raw_html`.
6054 * Org reader (Albert Krewinkel):
6056 + Move citation tests to separate module.
6057 + Allow changing emphasis syntax (#4378). The characters allowed before
6058 and after emphasis can be configured via `#+pandoc-emphasis-pre` and
6059 `#+pandoc-emphasis-post`, respectively. This allows to change which
6060 strings are recognized as emphasized text on a per-document or even
6061 per-paragraph basis. Example:
6063 #+pandoc-emphasis-pre: "-\t ('\"{"
6064 #+pandoc-emphasis-post: "-\t\n .,:!?;'\")}["
6068 + Fixed comments inside citations (#4374).
6069 + Fix regression in package options including underscore (#4424).
6070 + Make `--trace` work.
6071 + Fixed parsing of `tabular*` environment (#4279).
6075 + Fix regression in parsing of headers with trailing space (#4280).
6077 * Muse reader (Alexander Krotov):
6079 + Enable `<literal>` tags even if amuse extension is enabled.
6080 Amusewiki disables <literal> tags for security reasons.
6081 If user wants similar behavior in pandoc, RawBlocks and RawInlines
6082 can be removed or replaced with filters.
6083 + Remove space prefix from `<literal>` tag contents.
6084 + Do not consume whitespace while looking for closing end tag.
6085 + Convert alphabetical list markers to decimal in round-trip test.
6086 Alphabetical lists are an addition of Text::Amuse.
6087 They are not present in Emacs Muse and can be ambiguous
6088 when list starts with "i.", "c." etc.
6089 + Allow `<quote>` and other tags to be indented.
6090 + Allow single colon in definition list term.
6091 + Fix parsing of verse in lists.
6092 + Improved parsing efficiency. Avoid `parseFromString`.
6093 Lists are parsed in linear instead of exponential time now.
6094 + Replace ParserState with MuseState.
6095 + Prioritize lists with roman numerals over alphabetical lists.
6096 This is to make sure "i." starts a roman numbered list,
6097 instead of a list with letter "i" (followed by "j", "k", ...").
6098 + Fix directive parsing.
6099 + Parse definition lists with multiple descriptions.
6100 + Parse next list item before parsing more item contents.
6101 + Fixed a bug: headers did not terminate lists.
6102 + Move indentation parsing from `definitionListItem` to `definitionList`.
6103 + Paragraph indentation does not indicate nested quote.
6104 Muse allows indentation to indicate quotation or alignment,
6105 but only on the top level, not within a <quote> or list.
6106 + Require that block tags are on separate lines.
6107 Text::Amuse already explicitly requires it anyway.
6108 + Fix matching of closing inline tags.
6109 + Various internal changes.
6110 + Fix parsing of nested definition lists.
6111 + Require only one space for nested definition list indentation.
6112 + Do not remove trailing whitespace from `<code>`.
6113 + Fix parsing of trailing whitespace. Newline after whitespace now
6114 results in softbreak instead of space.
6116 * Docx reader (Jesse Rosenthal, except where noted):
6118 + Handle nested sdt tags (#4415).
6119 + Don't look up dependant run styles if `+styles` is enabled.
6120 + Move pandoc inline styling inside custom-style span.
6121 + Read custom styles (#1843). This will read all paragraph and
6122 character classes as divs and spans, respectively. Dependent styles
6123 will still be resolved, but will be wrapped with appropriate style
6124 tags. It is controlled by the `+styles` extension (`-f docx+styles`).
6125 This can be used in conjunction with the `custom-style` feature in the
6126 docx writer for a pandoc-docx editing workflow. Users can convert from
6127 an input docx, reading the custom-styles, and then use that same input
6128 docx file as a reference-doc for producing an output docx file. Styles
6129 will be maintained across the conversion, even if pandoc doesn't
6131 + Small change to Fields hyperlink parser. Previously, unquoted string
6132 required a space at the end of the line (and consumed it). Now we
6133 either take a space (and don't consume it), or end of input.
6134 + Pick table width from the longest row or header (Francesco Occhipinti,
6137 * Muse writer (Alexander Krotov):
6139 + Change verse markup: `> ` instead of `<verse>` tag.
6140 + Remove empty strings during inline normalization.
6141 + Don't indent nested definition lists.
6142 + Use unicode quotes for quoted text.
6143 + Write image width specified in percent in Text::Amuse mode.
6144 + Don't wrap displayMath into `<verse>`.
6145 + Escape nonbreaking space (`~~`).
6146 + Join code with different attributes during normalization.
6147 + Indent lists inside Div.
6148 + Support definitions with multiple descriptions.
6150 * Powerpoint writer (Jesse Rosenthal):
6152 + Use table styles This will use the default table style in the
6153 reference-doc file. As a result they will be easier when using
6154 in a template, and match the color scheme.
6155 + Remove empty slides. Because of the way that slides were split, these
6156 could be accidentally produced by comments after images. When animations
6157 are added, there will be a way to add an empty slide with either
6158 incremental lists or pauses.
6159 + Implement syntax highlighting. Note that background colors can't
6160 be implemented in PowerPoint, so highlighting styles that require
6161 these will be incomplete.
6162 + New test framework for pptx. We now compare the output of the
6163 Powerpoint writer with files that we know to (a) not be corrupt,
6164 and (b) to show the desired output behavior (details below).
6165 + Add `notesMaster` to `presentation.xml` if necessary.
6166 + Ignore links and (end)notes in speaker notes.
6167 + Output speaker notes.
6168 + Read speaker note templates conditionally. If there are speaker
6169 notes in the presentation, we read in the notesMasters templates
6170 from the reference pptx file.
6171 + Fix deletion track changes (#4303, Jesse Rosenthal).
6173 * Markdown writer: properly escape @ to avoid capture as citation
6178 + Put hypertarget inside figure environment (#4388).
6179 This works around a problem with the endfloat package and
6180 makes pandoc's output compatible with it.
6181 + Fix image height with percentage (#4389). This previously caused
6182 the image to be resized to a percentage of textwidth, rather than
6185 * ConTeXt writer (Henri Menke):
6187 + New section syntax and support `--section-divs` (#2609).
6188 `\section[my-header]{My Header}` ->
6189 `\section[title={My Header},reference={my-header}]`.
6190 The ConTeXt writer now supports the `--section-divs` option to
6191 write sections in the fenced style, with `\startsection` and
6193 + xtables: correct wrong usage of caption (Henri Menke).
6197 + Fix image resizing with multiple images (#3930, Andrew Pritchard).
6198 + Use new golden framework (Jesse Rosenthal).
6199 + Make more deterministic to facilitate testing (Jesse Rosenthal).
6200 - `getUniqueId` now calls to the state to get an incremented digit,
6201 instead of calling to P.uniqueHash.
6202 - we always start the PRNG in mkNumbering/mkAbstractNum with the same
6203 seed (1848), so our randoms should be the same each time.
6204 + Fix ids in comment writing (Jesse Rosenthal). Comments from
6205 `--track-changes=all` were producing corrupt docx, because the
6206 writer was trying to get id from the `(ID,_,_)` field of
6207 the attributes, and ignoring the "id" entry in the key-value pairs. We
6210 * Ms writer: Added papersize variable.
6214 + Use `height` instead of `depth` for images (#4331).
6215 + Ensure that id prefix is always used.
6216 + Don't emit `role` attribute; that was a leftover from the
6218 + Use 'xml:id', not 'id' attribute (#4371).
6222 + Do not output implicit heading IDs (#4363, Alexander
6223 Krotov). Convert to `asciidoc-auto_identifiers` for old behaviour.
6227 + Remove `blockToRST'` moving its logic into `fixBlocks`
6228 (Francesco Occhipinti).
6229 + Insert comment between lists and quotes (#4248, Francesco Occchipinti).
6231 * RST template: remove definition of 'math' role as raw.
6232 This used to be needed prior to v 0.8 of docutils, but
6233 now math support is built-in.
6235 * Slides: Use divs to set incremental/non-incremental (#4381,
6236 Jesse Rosenthal). The old method (list inside blockquote) still
6237 works, but we are encouraging the use of divs with class
6238 `incremental` or `nonincremental`.
6240 * Text.Pandoc.ImageSize:
6242 + Make image size detection for PDFs more robust (#4322).
6243 + Determine image size for PDFs (#4322).
6244 + EMF Image size support (#4375, Andrew Pritchard).
6246 * Text.Pandoc.Extensions:
6248 + Add `Ext_styles` (Jesse Rosenthal, API change). This will be used in
6249 the docx reader (defaulting to off) to read pargraph and character
6250 styles not understood by pandoc (as divs and spans, respectively).
6251 + Made `Ext_raw_html` default for `commonmark` format.
6253 * Text.Pandoc.Parsing:
6255 + Export `manyUntil` (Alexander Krotov, API change).
6256 + Export improved `sepBy1` (Alexander Krotov).
6257 + Export list marker parsers: `upperRoman`, `lowerRoman`,
6258 `decimal`, `lowerAlpha`, `upperAlpha` (Alexander Krotov, API change).
6260 * Tests/Lua: fix tests on windows (Albert Krewinkel).
6262 * Lua: register script name in global variable (#4393). The name of the Lua
6263 script which is executed is made available in the global Lua variable
6264 `PANDOC_SCRIPT_FILE`, both for Lua filters and custom writers.
6266 * Tests: Abstract powerpoint tests out to OOXML tests (Jesse Rosenthal).
6267 There is very little pptx-specific in these tests, so we abstract out
6268 the basic testing function so it can be used for docx as well. This
6269 should allow us to catch some errors in the docx writer that slipped
6270 by the roundtrip testing.
6272 * Lua filters: store constructors in registry (Albert Krewinkel). Lua
6273 functions used to construct AST element values are stored in the Lua
6274 registry for quicker access. Getting a value from the registry is much
6275 faster than getting a global value (partly to idiosyncrasies of hslua);
6276 this change results in a considerable performance boost.
6280 + `doc/org.md` Add draft of Org-mode documentation (Albert Krewinkel).
6281 + `doc/lua-filters.md`: document global vars set for filters
6283 + INSTALL.md: mention Stack version. (#4343, Adam Brandizzi).
6284 + MANUAL: add documentation on custom styles (Jesse Rosenthal).
6285 + MANUAL.txt: Document incremental and nonincremental divs (Jesse
6286 Rosenthal). Blockquoted lists are still described, but fenced divs are
6287 presented in preference.
6288 + MANUAL.txt: document header and footer variables (newmana).
6289 + MANUAL.txt: self-contained implies standalone (#4304, Daniel Lublin).
6290 + CONTRIBUTING.md: label was renamed. (#4310, Alexander Brandizzi).
6292 * Require tagsoup 0.14.3 (#4282), fixing HTML tokenization bug.
6294 * Use latest texmath.
6296 * Use latest pandoc-citeproc.
6298 * Allow exceptions 0.9.
6300 * Require aeson-pretty 0.8.5 (#4394).
6302 * Bump blaze-markup, blaze-html lower bounds to 0.8, 0.9 (#4334).
6304 * Update tagsoup to 0.14.6 (Alexander Krotov, #4282).
6306 * Removed ghc-prof-options. As of cabal 1.24, sensible defaults are used.
6308 * Update default.nix to current nixpkgs-unstable for hslua-0.9.5 (#4348,
6311## pandoc 2.1.1 (2018-01-18)
6315 + Don't coalesce adjacent raw LaTeX blocks if they are separated by a
6316 blank line. See lierdakil/pandoc-crossref#160.
6317 + Improved `inlinesInBalancedBrackets` (#4272, jgm/pandoc-citeproc#315).
6318 The change both improves performance and fixes a regression whereby
6319 normal citations inside inline notes and figure captions were not
6324 + Better handling for headers with an anchor (#4240). Instead of creating a
6325 Div containing the header, we put the id directly on the header.
6326 This way header promotion will work properly.
6327 + Add aligned environment when needed in math (#4254). `rst2latex.py`
6328 uses an `align*` environment for math in `.. math::` blocks, so this
6329 math may contain line breaks. If it does, we put the math in an
6330 `aligned` environment to simulate `rst2latex.py`'s behavior.
6334 + Fix col width parsing for percentages < 10% (#4262, n3fariox).
6338 + Advance source position at end of stream.
6339 + Pass through macro defs in `rawLaTeXBlock` even if the `latex_macros`
6340 extension is set (#4246). This reverts to earlier behavior and is
6341 probably safer on the whole, since some macros only modify things in
6342 included packages, which pandoc's macro expansion can't modify.
6343 + Fixed pos calculation in tokenizing escaped space.
6344 + Allow macro definitions inside macros (#4253). Previously we went into
6345 an infinite loop with
6347 \newcommand{\noop}[1]{#1}
6348 \noop{\newcommand{\foo}[1]{#1}}
6351 + Fix inconsistent column widths (#4238). This fixes a bug whereby column
6352 widths for the body were different from widths for the header in some
6355 * Docx reader (Jesse Rosenthal):
6357 + Parse hyperlinks in `instrText` tags (#3389, #4266). This was a form of
6358 hyperlink found in older versions of word. The changes introduced for
6359 this, though, create a framework for parsing further fields in MS Word
6360 (see the spec, ECMA-376-1:2016, §17.16.5, for more on these fields).
6361 We introduce a new module, `Text.Pandoc.Readers.Docx.Fields` which
6362 contains a simple parsec parser. At the moment, only simple hyperlink
6363 fields are accepted, but that can be extended in the future.
6365 * Muse reader (Alexander Krotov):
6367 + Parse `~~` as non-breaking space in Text::Amuse mode.
6368 + Refactor list parsing.
6370 * Powerpoint writer (Jesse Rosenthal):
6372 + Change reference to `notesSlide` to `endNotesSlide`.
6373 + Move image sizing into `picProps`.
6374 + Improve table placement.
6375 + Make our own `_rels/.rels` file.
6376 + Import reference-doc images properly.
6377 + Move `Presentation.hs` out of `PandocMonad`.
6378 + Refactor into separate modules. T.P.W.Powerpoint.Presentation
6379 defines the Presentation datatype and goes Pandoc->Presentation;
6380 T.P.W.Pandoc.Output goes Presentation->Archive.
6381 Text.Pandoc.Writers.Powerpoint a thin wrapper around the two modules.
6382 + Avoid overlapping blocks in column output.
6383 + Position images correctly in two-column layout.
6384 + Make content shape retrieval environment-aware.
6385 + Improve image handling. We now determine image and caption placement
6386 by getting the dimensions of the content box in a given layout.
6387 This allows for images to be correctly sized and positioned in a
6388 different template. Note that images without captions and headers are
6389 no longer full-screened. We can't do this dependably in different
6390 layouts, because we don't know where the header is (it could be to
6391 the side of the content, for example).
6392 + Read presentation size from reference file. Our presentation size is
6393 now dependent on the reference/template file we use.
6394 + Handle (sub)headers above slidelevel correctly. Above the slidelevel,
6395 subheaders will be printed in bold and given a bit of extra space
6396 before them. Note that at the moment, no distinction is made between
6397 levels of headers above the slide header, though that can be changed.
6398 + Check for required files. Since we now import from reference/dist
6399 file by glob, we need to make sure that we're getting the files we
6400 need to make a non-corrupt Powerpoint. This performs that check.
6401 + Improve templating using `--reference-doc`. Templating should work
6402 much more reliably now.
6403 + Include Notes slide in TOC.
6404 + Set notes slide header to slide-level.
6405 + Add table of contents. This is triggered by the `--toc` flag. Note
6406 that in a long slide deck this risks overrunning the text box. The user
6407 can address this by setting `--toc-depth=1`.
6408 + Set notes slide number correctly.
6409 + Clean up adding metadata slide. We want to count the slide numbers
6410 correctly if it's in there.
6411 + Add anchor links. For anchor-type links (`[foo](#bar)`) we produce
6412 an anchor link. In powerpoint these are links to slides, so we keep
6413 track of a map relating anchors to the slides they occur on.
6414 + Make the slide number available to the blocks. For anchors,
6415 block-processing functions need to know what slide number
6416 they're in. We make the `envCurSlideId` available to blocks.
6417 + Move `curSlideId` to environment.
6418 + Allow setting `toc-title` in metadata.
6419 + Link notes to endnotes slide.
6423 + Fix cell width calculation (#4265). Previously we could get
6424 ever-lengthening cell widths when a table was run repeatedly through
6425 `pandoc -f markdown -t markdown`.
6429 + Escape `&` in lstinline (Robert Schütz).
6433 + Use xtables instead of Tables (#4223, Henri Menke).
6434 Default to xtables for context output. Natural Tables are used
6435 if the new `ntb` extension is set.
6439 + Fixed footnote backlinks with `--id-prefix` (#4235).
6441 * `Text.Pandoc.Extensions`: Added `Ext_ntb` constructor (API change,
6444 * `Text.Pandoc.ImageSize`: add derived `Eq` instance to `Dimension`
6445 (Jesse Rosenthal, API change).
6447 * Lua filters (Albert Krewinkel):
6449 + Make `PANDOC_READER_OPTIONS` available.
6450 The options which were used to read the document are made available to
6451 Lua filters via the `PANDOC_READER_OPTIONS` global.
6452 + Add lua module `pandoc.utils.run_json_filter`, which runs a JSON filter
6453 on a Pandoc document.
6454 + Refactor filter-handling code into `Text.Pandoc.Filter.JSON`,
6455 `Text.Pandoc.Filter.Lua`, and `Text.Pandoc.Filter.Path`.
6456 + Improve error messages. Provide more context about the task
6457 which caused an error.
6459 * data/pandoc.lua (Albert Krewinkel):
6461 + Accept singleton inline as a list. Every constructor which accepts a
6462 list of inlines now also accepts a single inline element for
6464 + Accept single block as singleton list. Every constructor which accepts
6465 a list of blocks now also accepts a single block element for
6466 convenience. Furthermore, strings are accepted as shorthand for
6467 `{pandoc.Str "text"}` in constructors.
6468 + Add attr, listAttributes accessors. Elements with
6469 attributes got an additional `attr` accessor. Attributes were
6470 accessible only via the `identifier`, `classes`, and `attributes`,
6471 which was in conflict with the documentation, which indirectly states
6472 that such elements have the an `attr` property.
6473 + Drop `_VERSION`. Having a `_VERSION` became superfluous, as this
6474 module is closely tied to the pandoc version, which is available via
6476 + Fix access to Attr components. Accessing an Attr value (e.g.,
6477 ` Attr().classes`) was broken; the more common case of accessing it via
6478 an Inline or Block element was unaffected by this.
6480 * Move `metaValueToInlines` to from Docx writer to
6481 `Text.Pandoc.Writers.Shared`, so it can be used by other writers
6486 + Clarify otherlangs in LaTeX (#4072).
6487 + Clarify `latex_macros` extension.
6488 + Recommend use of `raw_attribute` extension in header includes (#4253).
6490 * Allow latest QuickCheck, tasty, criterion.
6492 * Remove custom prelude and ghc 7.8 support.
6494 * Reduce compiler noise (exact paths for compiled modules).
6496## pandoc 2.1 (2018-01-07)
6498 * Allow filters and lua filters to be interspersed (#4196). Previously
6499 we ran all lua filters before JSON filters. Now we run filters in
6500 the order they are presented on the command line, whether lua or JSON.
6501 There are two incompatible API changes: The type of `applyFilters`
6502 has changed, and `applyLuaFilters` has been removed. `Filter` is
6505 * Use latest skylighting and omit the `missingIncludes` check, fixing
6506 a major performance regression in earlier releases of the 2.x series
6507 (#4226). Behavior change: If you use a custom syntax definition that
6508 refers to a syntax you haven't loaded, pandoc will now complain when
6509 it is highlighting the text, rather than doing a check at the start.
6510 This change dramatically speeds up invocations of pandoc on short
6513 * Text.Pandoc.Class: make `FileTree` opaque (don't export
6514 `FileTree` constructor). This forces users to interact with it using
6515 `insertInFileTree` and `getFileInfo`, which normalize file names.
6519 + Rewrite `inlinesInBalancedBrackets`. The rewrite is much more
6520 direct, avoiding `parseFromString`. And it performs significantly
6521 better; unfortunately, parsing time still increases exponentially
6523 + Avoid parsing raw tex unless `\` + letter seen. This seems to
6524 help with the performance problem, #4216.
6526 * LaTeX reader: Simplified a check for raw tex command.
6528 * Muse reader (Alexander Krotov):
6530 + Enable round trip test (#4107).
6531 + Automatically translate `#cover` into `#cover-image`.
6532 Amusewiki uses #cover directive to specify cover image.
6534 * Docx reader (Jesse Rosenthal):
6536 + Allow for insertion/deletion of paragraphs (#3927).
6537 If the paragraph has a deleted or inserted paragraph break (depending
6538 on the track-changes setting) we hold onto it until the next
6539 paragraph. This takes care of accept and reject. For this we introduce
6540 a new state which holds the ils from the previous para if necessary.
6541 For `--track-changes=all`, we add an empty span with class
6542 `paragraph-insertion`/`paragraph-deletion` at the end of the paragraph
6543 prior to the break to be inserted or deleted.
6544 + Remove unused anchors (#3679). Docx produces a lot of anchors with
6545 nothing pointing to them---we now remove these to produce cleaner
6546 output. Note that this has to occur at the end of the process
6547 because it has to follow link/anchor rewriting.
6548 + Read multiple children of `w:sdtContents`.
6549 + Combine adjacent anchors. There isn't any reason to have numerous
6550 anchors in the same place, since we can't maintain docx's
6551 non-nesting overlapping. So we reduce to a single anchor.
6554 * Muse writer (Alexander Krotov): don't escape URIs from AST
6558 + Removed redundant subtitle in title (Sebastian Talmon).
6559 + `firstRow` table definition compatibility for Word 2016 (Sebastian
6560 Talmon). Word 2016 seems to use a default value of "1" for table
6561 headers, if there is no firstRow definition (although a default
6562 value of 0 is documented), so all tables get the first Row formatted
6563 as header. Setting the parameter to 0 if the table has no header
6564 row fixes this for Word 2016
6565 + Fix custom styles with spaces in the name (#3290).
6567 * Powerpoint writer (Jesse Rosenthal):
6569 + Ignore Notes div for parity with other slide outputs.
6570 + Set default slidelevel correctly. We had previously defaulted to
6571 slideLevel 2. Now we use the correct behavior of defaulting to the
6572 highest level header followed by content. We change an expected test
6573 result to match this behavior.
6574 + Split blocks correctly for linked images.
6575 + Combine adjacent runs.
6576 + Make inline code inherit code size. Previously (a) the code size
6577 wasn't set when we force size, and (b) the properties was set from
6578 the default, instead of inheriting.
6579 + Simplify `replaceNamedChildren` function.
6580 + Allow linked images. The following markdown:
6581 `[](http://www.example.com)`
6582 will now produce a linked image in the resulting PowerPoint file.
6583 + Fix error with empty table cell. We require an empty `<a:p>` tag,
6584 even if the cell contains no paragraphs---otherwise PowerPoint
6585 complains of corruption.
6586 + Implement two-column slides. This uses the columns/column div
6587 format described in the pandoc manual. At the moment, only two
6588 columns (half the screen each) are allowed. Custom widths are not
6592 * OpenDocument/ODT writers: improved rendering of formulas (#4170, oltolm).
6594 * Lua filters (Albert Krewinkel):
6596 + `data/pandoc.lua`: drop 'pandoc-api-version' from Pandoc objects
6597 + The current pandoc-types version is made available to Lua programs in
6598 the global `PANDOC_API_VERSION`. It contains the version as a list of
6600 + The pandoc version available as a global `PANDOC_VERSION` (a list
6602 + `data/pandoc.lua`: make `Attr` an `AstElement`.
6603 + `data/pandoc.lua`: make all types subtypes of `AstElement`.
6604 `Pandoc`, `Meta`, and `Citation` were just plain functions and did
6605 not set a metatable on the returned value, which made it difficult
6606 to amend objects of these types with new behavior. They are now
6607 subtypes of AstElement, meaning that all their objects can gain
6608 new features when a method is added to the behavior object
6609 (e.g., `pandoc.Pandoc.behavior`).
6610 + `data/pandoc.lua`: split type and behavior tables. Clearly distinguish
6611 between a type and the behavioral properties of an instance of that
6612 type. The behavior of a type (and all its subtypes) can now be
6613 amended by adding methods to that types `behavior` object, without
6614 exposing the type objects internals. E.g.:
6616 pandoc.Inline.behavior.frob = function () print'42' end
6617 local str = pandoc.Str'hello'
6618 str.frob() -- outputs '42'
6620 + `data/pandoc.lua`: fix Element inheritance. Extending all elements
6621 of a given type (e.g., all inline elements) was difficult, as the
6622 table used to lookup unknown methods would be reset every time a
6623 new element of that type was created, preventing recursive property
6624 lookup. This is was changed in that all methods and attributes of
6625 supertypes are now available to their subtypes.
6626 + `data/pandoc.lua`: fix attribute names of Citation (#4222). The
6627 fields were named like the Haskell fields, not like the documented,
6628 shorter version. The names are changed to match the documentation
6629 and Citations are given a shared metatable to enable simple
6631 + `data/pandoc.lua`: drop function `pandoc.global_filter`.
6632 + Bump `hslua` version to 0.9.5. This version fixes a bug that made it
6633 difficult to handle failures while getting lists or a Map from Lua.
6634 A bug in pandoc, which made it necessary to always pass a tag when
6635 using MetaList or MetaBlock, is fixed as a result. Using the pandoc
6636 module's constructor functions for these values is now optional
6637 (if still recommended).
6638 + Stop exporting `pushPandocModule` (API change). The introduction
6639 of `runPandocLua` renders direct use of this function obsolete.
6640 + Update generation of module docs for lua filters.
6641 + `Lua.Module.Utils`: make stringify work on `MetaValues` (John
6642 MacFarlane). I'm sure this was intended in the first place,
6643 but currently only `Meta` is supported.
6645 * Improve benchmarks.
6647 + Set the default extensions properly.
6648 + Improve benchmark argument parsing. You can now say
6649 `make bench BENCHARGS="markdown latex reader"` and both the
6650 markdown and latex readers will be benchmarked.
6652 * MANUAL.txt simplify and add more structure (Mauro Bieg).
6654 * Generate README.md from template and MANUAL.txt.
6655 `make README.md` will generate the README.md after changes
6656 to MANUAL.txt have been made.
6658 * Update copyright notices to include 2018 (Albert Krewinkel).
6660## pandoc 2.0.6 (2017-12-28)
6662 * Added `jats` as an input format.
6664 + Add Text.Pandoc.Readers.JATS, exporting `readJATS` (API
6665 change) (Hamish Mackenzie).
6666 + Improved citation handling in JATS reader. JATS citations
6667 are now converted to pandoc citations, and JATS ref-lists
6668 are converted into a `references` field in metadata, suitable
6669 for use with pandoc-citeproc. Thus a JATS article with embedded
6670 bibliographic information can be processed with pandoc and
6671 pandoc-citeproc to produce a formatted bibliography.
6673 * Allow `--list-extensions` to take an optional FORMAT argument.
6674 This lists the extensions set by default for the selected FORMAT.
6675 The extensions are now alphabetized, and the `+` or `-`
6676 indicating the default setting comes before, rather than after,
6681 + Preserve original whitespace between blocks.
6682 + Recognize `\placeformula` as context.
6683 + Be pickier about table captions. A caption starts with a `:` which
6684 can't be followed by punctuation. Otherwise we can falsely interpret
6685 the start of a fenced div, or even a table header line like
6686 `:--:|:--:`, as a caption.
6687 + Always use four space rule for example lists. It would be awkward
6688 to indent example list contents to the first non-space character after
6689 the label, since example list labels are often long. Thanks to
6690 Bernhard Fisseni for the suggestion.
6691 + Improve raw tex parsing. Note that the Markdown reader is also
6692 affected by the `latex_macros` extension changes described below
6693 under the LaTeX reader.
6697 + `latex_macros` extension changes (#4179). Don't pass through macro
6698 definitions themselves when `latex_macros` is set. The macros
6699 have already been applied. If `latex_macros` is enabled, then
6700 `rawLaTeXBlock` in Text.Pandoc.Readers.LaTeX will succeed in parsing
6701 a macro definition, and will update pandoc's internal macro map
6702 accordingly, but the empty string will be returned.
6703 + Export `tokenize`, `untokenize` (API change).
6704 + Use `applyMacros` in `rawLaTeXBlock`, `rawLaTeXInline`.
6705 + Refactored `inlineCommand`.
6706 + Fix bug in tokenizer. Material following `^^` was
6707 dropped if it wasn't a character escape. This only affected
6708 invalid LaTeX, so we didn't see it in the wild, but it appeared
6709 in a QuickCheck test failure.
6710 + Fix regression in LateX tokenization (#4159). This mainly affects the
6711 Markdown reader when parsing raw LaTeX with escaped spaces.
6712 + Add tests of LaTeX tokenizer.
6713 + Support `\foreignlanguage` from babel.
6714 + Be more tolerant of `&` character (#4208). This allows us to parse
6715 unknown tabular environments as raw LaTeX.
6717 * Muse reader (Alexander Krotov):
6719 + Parse anchors immediately after headings as IDs.
6720 + Require that note references does not start with 0.
6721 + Parse empty comments correctly.
6723 * Org reader (Albert Krewinkel):
6725 + Fix asterisks-related parsing error (#4180).
6726 + Support minlevel option for includes (#4154). The level of headers
6727 in included files can be shifted to a higher level by specifying a
6728 minimum header level via the `:minlevel` parameter. E.g.
6729 `#+include: "tour.org" :minlevel 1` will shift the headers in
6730 tour.org such that the topmost headers become level 1 headers.
6731 + Break-up org reader test file into multiple modules.
6735 + Enable raw HTML and other extensions by default for notes
6736 (#4164). This fixes a regression in 2.0. Note that extensions can
6737 now be individually disabled, e.g. `-f opml-smart-raw_html`.
6741 + Allow empty list items (#4193).
6742 + More accurate parsing of references (#4156). Previously we erroneously
6743 included the enclosing backticks in a reference ID (#4156). This
6744 change also disables interpretation of syntax inside references, as
6745 in docutils. So, there is no emphasis in `` `my *link*`_ ``.
6749 + Continue lists after interruption (#4025, Jesse Rosenthal).
6750 Docx expects that lists will continue where they left off after an
6751 interruption and introduces a new id if a list is starting again. So
6752 we keep track of the state of lists and use them to define a "start"
6753 attribute, if necessary.
6754 + Add tests for structured document tags unwrapping (Jesse Rosenthal).
6755 + Preprocess Document body to unwrap `w:sdt` elements (Jesse Rosenthal,
6760 + Don't linkify table of contents.
6764 + Fix anchors for headers (#4188). We were missing an `_`.
6766 * PowerPoint writer (Jesse Rosenthal):
6768 + Treat lists inside BlockQuotes as lists. We don't yet produce
6769 incremental lists in PowerPoint, but we should at least treat lists
6770 inside BlockQuotes as lists, for compatibility with other slide formats.
6771 + Add ability to force size. This replaces the more specific
6772 `blockQuote runProp`, which only affected the size of blockquotes. We
6773 can use this for notes, etc.
6774 + Implement notes. This currently prints all notes on a final slide.
6775 Note that at the moment, there is a danger of text overflowing the
6776 note slide, since there is no logic for adding further slides.
6777 + Implement basic definition list functionality to PowerPoint writer.
6778 + Don't look for default template file for Powerpoint (#4181).
6779 + Add pptx to isTextFormat list. This is used to check standalone
6780 and not writing to the terminal.
6781 + Obey slide level option (Jesse Rosenthal).
6786 + Ensure that `distArchive` is the one that comes with pandoc
6787 (#4182). Previously a `reference.docx` in `~/.pandoc` (or the user data
6788 dir) would be used instead, and this could cause problems because a
6789 user-modified docx sometimes lacks vital sections that we count
6790 on the `distArchive` to supply.
6794 + Do not wrap "-" to avoid accidental bullet lists (Alexander Krotov).
6795 + Don't allow fn refs to wrap to beginning of line (#4171, with help from
6796 Alexander Krotov). Otherwise they can be interpreted as footnote
6799 * Muse writer (Alexander Krotov):
6801 + Don't wrap note references to the next line (#4172).
6805 + Use br elements in line blocks instead of relying on CSS
6806 (#4162). HTML-based templates have had the custom CSS for
6807 `div.line-block` removed. Those maintaining custom templates will want
6808 to remove this too. We still enclose line blocks in a div with class
6813 + Use `\renewcommand` for `\textlatin` with babel (#4161).
6814 This avoids a clash with a deprecated `\textlatin` command defined
6816 + Allow fragile=singleslide attribute in beamer slides (#4169).
6817 + Use `\endhead` after `\toprule` in headerless tables (#4207).
6821 + Add cover image specified by `cover-image` meta (Alexander Krotov,
6824 * JATS writer (Hamish Mackenzie):
6826 + Support writing `<fig>` and `<table-wrap>` elements
6827 with `<title>` and `<caption>` inside them by using Divs with class set
6828 to one of `fig`, `table-wrap` or `caption` (Hamish Mackenzie). The
6829 title is included as a Heading so the constraint on where Heading can
6830 occur is also relaxed.
6831 + Leave out empty alt attributes on links.
6832 + Deduplicate image mime type code.
6833 + Make `<p>` optional in `<td>` and `<th>` (#4178).
6834 + Self closing tags for empty xref (#4187).
6835 + Improve support for code language.
6839 + Use init file to setup Lua interpreter (Albert Krewinkel).
6840 The same init file (`data/init`) that is used to setup the Lua
6841 interpreter for Lua filters is also used to setup the interpreter of
6843 + Define instances for newtype wrapper (Albert Krewinkel). The custom
6844 writer used its own `ToLuaStack` instance definitions, which made
6845 it difficult to share code with Lua filters, as this could result
6846 in conflicting instances. A `Stringify` wrapper is introduced to
6848 + Added tests for custom writer.
6849 + Fixed definition lists and tables in `data/sample.lua`.
6851 * Fixed regression: when target is PDF, writer extensions were being
6852 ignored. So, for example, `pandoc -t latex-smart -o file.pdf`
6853 did not work properly.
6855 * Lua modules (Albert Krewinkel):
6857 + Add `pandoc.utils` module, to hold utility functions.
6858 + Create a Haskell module Text.Pandoc.Lua.Module.Pandoc to
6859 define the `pandoc` lua module.
6860 + Make a Haskell module for each Lua module. Move definitions for the
6861 `pandoc.mediabag` modules to a separate Haskell module.
6862 + Move `sha1` from the main `pandoc` module to `pandoc.utils`.
6863 + Add function `pandoc.utils.hierarchicalize` (convert list of
6864 Pandoc blocks into (hierarchical) list of Elements).
6865 + Add function `pandoc.utils.normalize_date` (parses a date and
6866 converts it (if possible) to "YYYY-MM-DD" format).
6867 + Add function `pandoc.utils.to_roman_numeral` (allows conversion
6868 of numbers below 4000 into roman numerals).
6869 + Add function `pandoc.utils.stringify` (converts any AST element
6870 to a string with formatting removed).
6871 + `data/init.lua`: load `pandoc.utils` by default
6872 + Turn pipe, read into full Haskell functions. The `pipe` and `read`
6873 utility functions are converted from hybrid lua/haskell functions
6874 into full Haskell functions. This avoids the need for intermediate
6875 `_pipe`/`_read` helper functions, which have dropped.
6876 + pandoc.lua: re-add missing MetaMap function. This was a bug
6877 introduced in version 2.0.4.
6879 * Text.Pandoc.Class: Add `insertInFileTree` [API change]. This gives
6880 a pure way to insert an ersatz file into a `FileTree`. In addition, we
6881 normalize paths both on insertion and on lookup.
6883 * Text.Pandoc.Shared: export `blocksToInlines'` (API change, Maura Bieg).
6885 * Text.Pandoc.MIME: Add opus to MIME type table as audio/ogg (#4198).
6887 * Text.Pandoc.Extensions: Alphabetical order constructors for
6888 `Extension`. This makes them appear in order in `--list-extensions`.
6890 * Allow lenient decoding of latex error logs, which are not always
6891 properly UTF8-encoded (#4200).
6893 * Update latex template to work with recent versions of beamer.
6894 The old template produced numbered sections with some recent
6895 versions of beamer. Thanks to Thomas Hodgson.
6897 * Updated reference.docx (#4175). Instead of just "Hello, world", the
6898 document now contains exemplars of most of the styles that have an
6899 effect on pandoc documents. This makes it easier to see the effect
6902 * Removed `default.theme` data file (#4096). It is no longer needed now
6903 that we have `--print-highlight-style`.
6905 * Added `stack.lts9.yaml` for building with lts 9 and ghc 8.0.2.
6906 We still need this for the alpine static linux build, since
6907 we don't have ghc 8.2.2 for that yet.
6909 * Removed `stack.pkg.yaml`. We only really need `stack.yaml`; we
6910 can put flag settings for pandoc-citeproc there.
6912 * Makefile: Add 'trypandoc' and 'pandoc-templates' targets to
6913 make releases easier.
6917 + Add note on what formats have `+smart` by default.
6918 + Use native syntax for custom-style (#4174, Mauro Bieg).
6919 + Introduce dedicated Extensions section, since some extensions
6920 affect formats other than markdown (Mauro Bieg, #4204).
6921 + Clarify default html output for `--section-divs` (Richard Edwards).
6923 * filters.md: say that Text.Pandoc.JSON comes form pandoc-types.
6924 Closes jgm/pandoc-website#16.
6926 * epub.md: Delete removed `-S` option from command (#4151, Georger Araújo).
6928## pandoc 2.0.5 (2017-12-12)
6930 * Fix a bug in 2.0.4, whereby pandoc could not read the theme files
6931 generated with `--print-highlight-style` (#4133). Improve JSON
6932 serialization of styles.
6934 * Fix CSS issues involving line numbers (#4128).
6935 Highlighted code blocks are now enclosed in a div with class `sourceCode`.
6936 Highlighting CSS no longer sets a generic color for pre and code; we only
6937 set these for class `sourceCode`.
6939 * `--pdf-engine-opt`: fix bug where option order was reversed (#4137).
6941 * Add PowerPoint (pptx) writer (Jesse Rosenthal).
6942 It works following the standard Pandoc conventions for making other
6943 sorts of slides. Caveats:
6945 + Syntax highlighting is not yet implemented. (This is difficult
6946 because there are no character classes in Powerpoint.)
6947 + Footnotes and Definition lists are not yet implemented. (Notes will
6948 usually take the form of a final slide.
6949 + Image placement and auto-resizing has a few glitches.
6950 + Reference powerpoint files don't work dependably from the command
6951 line. This will be implemented, but at the moment users are advised
6952 to change themes from within Powerpoint.
6954 * Create shared Text.Pandoc.Writers.OOXML module (Jesse Rosenthal).
6955 This is for functions used by both Powerpoint and Docx writers.
6957 * Add default pptx data for Powerpoint writer (Jesse Rosenthal).
6959 * Add `empty_paragraphs` extension.
6961 + Deprecate `--strip-empty-paragraphs` option. Instead we now
6962 use an `empty_paragraphs` extension that can be enabled on
6963 the reader or writer. By default, disabled.
6964 + Add `Ext_empty_paragraphs` constructor to `Extension`.
6965 + Revert "Docx reader: don't strip out empty paragraphs."
6966 This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b.
6967 + Implement `empty_paragraphs` extension in docx reader and writer,
6968 opendocument writer, html reader and writer.
6969 + Add tests for `empty_paragraphs` extension.
6973 + Don't parse native div as table caption (#4119).
6974 + Improved computation of column widths in pipe tables.
6975 Pipe tables with lines longer than the text width (as set
6976 by `--columns`) are now scaled to text width, with the relative
6977 widths of columns determined by the ratios between the
6978 header lines. Previously we computed column widths using
6979 the ratio of header line lengths to column width, so that
6980 tables with narrow header lines were extremely thin, which
6981 was very rarely the desired result.
6983 * LaTeX reader: fix `\` before newline (#4134). This should be a space,
6984 as long as it's not followed by a blank line. This has been fixed at the
6987 * Muse reader (Alexander Krotov):
6989 + Add test for `#disable-tables` directive in Emacs mode.
6990 + Don't allow emphasis to be preceded by letter.
6991 + Add underline support in Emacs Muse mode..
6992 + Support multiline directives in Amusewiki mode
6994 * Man writer: omit internal links (#4136). That is, just print the link
6995 text without the URL.
6997 * Markdown reader: accept processing instructions as raw HTML (#4125).
6999 * Lua filters (Albert Krewinkel):
7001 + Use script to initialize the interpreter. The file `init.lua` is
7002 used to initialize the Lua interpreter which is used in Lua filters.
7003 This gives users the option to require libraries which they want to
7004 use in all of their filters, and to extend default modules.
7005 + Fix package loading for Lua 5.1. The list of package searchers is
7006 named `package.loaders` in Lua 5.1 and LuaJIT, and `package.searchers`
7007 in Lua 5.2 and later.
7008 + Refactor lua module handling. The integration with Lua's package/module
7009 system is improved: A pandoc-specific package searcher is prepended to
7010 the searchers in `package.searchers`. The modules `pandoc` and
7011 `pandoc.mediabag` can now be loaded via `require`.
7012 + Bump lower bound of hslua. The release hslua 0.9.3 contains a new
7013 function which makes using Haskell functions as package loaders much
7016 * reveal.js template: add title-slide identifier to title slide (#4120).
7017 This allows it to be styled more easily.
7019 * LaTeX template: Added support for `pagestyle` variable (#4135,
7022 * Add `-threaded` to ghc-options for executable (#4130, fixes a build
7026## pandoc 2.0.4 (2017-12-03)
7028 * Add `--print-highlight-style` option. This generates a JSON version
7029 of a highlighting style, which can be saved as a `.theme` file, modified,
7030 and used with `--highlight-style` (#4106, #4096).
7032 * Add `--strip-empty-paragraphs` option. This works for any input format.
7033 It is primarily intended for use with docx and odt documents where
7034 empty paragraphs have been used for inter-paragraph spaces.
7036 * Support `--webtex` for `gfm` output.
7038 * Recognize `.muse` file extension.
7040 * Support beamer `\alert` in LaTeX reader. Closes #4091.
7042 * Docx reader: don't strip out empty paragraphs (#2252).
7043 Users who have a conversion pipeline from docx may want to consider adding
7044 `--strip-empty-paragraphs` to the command line.
7046 * Org reader (Albert Krewinkel): Allow empty list items (#4090).
7048 * Muse reader (Alexander Krotov):
7050 + Parse markup in definition list terms.
7051 + Allow definition to end with EOF.
7052 + Make code blocks round trip.
7053 + Drop common space prefix from list items.
7054 + Add partial round trip test.
7055 + Don't interpret XML entities.
7057 + Parse `~~` as non-breaking space in Emacs mode.
7058 + Correctly remove indentation from notes. Exactly one space is
7059 required and considered to be part of the marker.
7060 + Allow list items to be empty.
7061 + Add ordered list test.
7062 + Add more multiline definition tests.
7063 + Don't allow blockquotes within lists.
7064 + Fix reading of multiline definitions.
7065 + Add inline `<literal>` support.
7066 + Concatenate inlines of the same type
7068 * Docx writer: allow empty paragraphs (#2252).
7070 * CommonMark/gfm writer:
7072 + Use raw html for native divs/spans (#4113). This allows a pandoc
7073 markdown native div or span to be rendered in gfm using raw html tags.
7074 + Implement `raw_html` and `raw_tex` extensions. Note that `raw_html`
7075 is enabled by default for `gfm`, while `raw_tex` is disabled by default.
7077 * Muse writer (Alexander Krotov):
7079 + Test that inline math conversion result is normalized.
7080 Without normalization this test produced
7081 `<em>a</em><em>b</em><em>c</em>`.
7082 + Improve inline list normalization and move to writer.
7083 + Escape hash symbol.
7084 + Escape `----` to avoid accidental horizontal rules.
7085 + Escape only `</code>` inside code tag.
7086 + Additional `<verbatim>` is not needed as `<code>` is verbatim already.
7090 + Allow specifying just width or height for image size.
7091 Previously both needed to be specified (unless the image was
7092 being resized to be smaller than its original size).
7093 If height but not width is specified, we now set width to
7094 textwidth. If width but not height is specified, we now set
7095 height to textheight. Since we have `keepaspectratio`, this
7096 yields the desired result.
7097 + Escape `~` and `_` in code with `--listings` (#4111).
7099 * HTML writer: export `tagWithAttributes`. This is a helper allowing
7100 other writers to create single HTML tags.
7102 * Let papersizes `a0`, `a1`, `a2`, ... be case-insensitive by
7103 converting the case as needed in LaTeX and ConTeXt writers.
7105 * Change `fixDisplayMath` from `Text.Pandoc.Writers.Shared`
7106 so that it no longer produces empty `Para`'s as an artifact.
7108 * `Text.Pandoc.Shared.blocksToInlines`: rewrote using builder.
7109 This gives us automatic normalization, so we don't get
7110 for example two consecutive Spaces.
7112 * Include default CSS for 'underline' class in HTML-based templates.
7114 * revealjs template: add `tex2jax` configuration for the
7115 math plugin. With the next release of reveal.js, this will
7116 fix the problem of `$`s outside of math contexts being
7117 interpreted as math delimiters (#4027).
7119 * `pandoc.lua` module for use in lua filters (Albert Krewinkel):
7121 + Add basic lua List module (#4099, #4081). The List module is
7122 automatically loaded, but not assigned to a global variable. It can be
7123 included in filters by calling `List = require 'List'`. Lists of blocks,
7124 lists of inlines, and lists of classes are now given `List` as a metatable,
7125 making working with them more convenient. E.g., it is now possible to
7126 concatenate lists of inlines using Lua's concatenation operator `..`
7127 (requires at least one of the operants to have `List` as a metatable):
7129 function Emph (emph)
7130 local s = {pandoc.Space(), pandoc.Str 'emphasized'}
7131 return pandoc.Span(emph.content .. s)
7134 The `List` metatable is assigned to the tables which get passed to
7135 the constructors `MetaBlocks`, `MetaInline`, and `MetaList`. This
7136 enables the use of the resulting objects as lists.
7137 + `Lua/StackInstances`: push Pandoc and Meta via constructor.
7138 Pandoc and Meta elements are now pushed by calling the respective
7139 constructor functions of the pandoc Lua module. This makes serialization
7140 consistent with the way blocks and inlines are pushed to lua and allows
7141 to use List methods with the `blocks` value.
7142 + Add documentation for pandoc.List in `lua-filters.md`.
7144 * Use latest tagsoup. This fixes a bug in parsing HTML tags with
7145 `&` (but not a valid entity) following them (#4094, #4088).
7147 * Use skylighting 0.4.4.1, fixing the color of unmarked code text
7148 when `numberLines` is used (#4103).
7150 * Make `normalizeDate` more forgiving (Mauro Bieg, #4101), not
7151 requiring a leading 0 on single-digit days.
7153 * Fix `--help` output for `--highlight-style` to include `FILE` (Mauro
7156 * Clearer deprecation warning for `--latexmathml, --asciimathml, -m`.
7157 Previously we only mentioned `--latexmathml`, even if `-m` was
7160 * Changelog: fix description of lua filters in 2.0 release
7161 (Albert Krewinkel). Lua filters were initially run *after* conventional
7162 (JSON) filters. However, this was changed later to make it easier to deal
7163 with files in the mediabag. The changelog is updated to describe that
7164 feature of the 2.0 release correctly.
7166 * Change Generic JSON instances to TemplateHaskell (Jasper Van der Jeugt,
7167 #4085). This reduces compile time and memory usage significantly.
7169 * `lua-filters.md`: Added tikz filter example.
7171 * Create alternative zip file for macOS binaries.
7173 * Create alternative zip file for Windows binaries.
7175 * Update INSTALL.md since we now provide zips for binaries.
7177 * Relax `http-types` dependency (Justus Sagemüller, #4084).
7179 * Add `epub.md`, `getting-started.md` to docs. These used to live in
7182 * Add `packages` target to Makefile.
7184 * Bump bounds for binary, http-types, tasty-hunit
7186## pandoc 2.0.3 (2017-11-20)
7188 * Lua filters: preload text module (Albert Krewinkel, #4077).
7189 The `text` module is preloaded in lua. The module contains some UTF-8
7190 aware string functions, implemented in Haskell. The module is loaded on
7193 text = require 'text'
7195 s.text = text.upper(s.text)
7199 * Allow table-like access to attributes in lua filters (Albert Krewinkel,
7200 #4071). Attribute lists are represented as associative lists in Lua. Pure
7201 associative lists are awkward to work with. A metatable is attached to
7202 attribute lists, allowing to access and use the associative list as if
7203 the attributes were stored in as normal key-value pair in table.
7204 Note that this changes the way `pairs` works on attribute lists. Instead
7205 of producing integer keys and two-element tables, the resulting iterator
7206 function now returns the key and value of those pairs. Use `ipairs` to
7207 get the old behavior. Warning: the new iteration mechanism only works if
7208 pandoc has been compiled with Lua 5.2 or later (current default: 5.3).
7210 * Text.Pandoc.Parsing.uri: allow `&` and `=` as word characters (#4068).
7211 This fixes a bug where pandoc would stop parsing a URI with an
7212 empty attribute: for example, `&a=&b=` wolud stop at `a`.
7213 (The uri parser tries to guess which punctuation characters
7214 are part of the URI and which might be punctuation after it.)
7216 * Introduce `HasSyntaxExtensions` typeclass (Alexander Krotov, #4074).
7218 + Added new `HasSyntaxExtensions` typeclass for `ReaderOptions` and
7220 + Reimplemented `isEnabled` function from `Options.hs` to accept both
7221 `ReaderOptions` and `WriterOptions`.
7222 + Replaced `enabled` from `CommonMark.hs` with new `isEnabled`.
7224 * Add `amuse` extension (Alexander Krotov) to enable Amuse wiki
7225 behavior for `muse`. New `Ext_amuse` constructor for
7226 `Extension`. Note: this is switched on by default; for
7227 Emacs behavior, use `muse-amuse`.
7229 * Muse reader (Alexander Krotov):
7231 + Count only one space as part of list item marker.
7232 + Produce SoftBreaks on newlines. Now wrapping can be preserved
7233 with `--wrap=preserve`.
7234 + Add Text::Amuse footnote extensions. Footnote end is indicated by
7235 indentation, so footnotes can be placed anywhere in the text,
7236 not just at the end of it.
7237 + Accept Emacs Muse definition lists when `-amuse`.
7238 Emacs Muse does not require indentation.
7242 + Ensure we don't produce level 0 headers (#4076), even for chapter
7243 sections in epubs. This causes problems because writers aren't set
7245 + Allow spaces after `\(` and before `\)` with `tex_math_single_backslash`.
7246 Previously `\( \frac{1}{a} < \frac{1}{b} \)` was not parsed as math in
7247 `markdown` or `html` `+tex_math_single_backslash`.
7249 * MANUAL: clarify that math extensions work with HTML.
7250 Clarify that `tex_math_dollars` and `tex_math_single_backslash`
7251 will work with HTML as well as Markdown.
7253 * Creole reader: Fix performance issue for longer lists (Sascha Wilde,
7256 * RST reader: better support for 'container' directive (#4066).
7257 Create a div, incorporate name attribute and classes.
7261 + Support column specs like `*{2}{r}` (#4056). This is equivalent to
7262 `rr`. We now expand it like a macro.
7263 + Allow optional args for parbox (#4056).
7264 + Allow optional arguments on `\footnote` (#4062).
7266 * EPUB writer: Fixed path for cover image (#4069). It was previously
7267 `media/media/imagename`, and should have been `media/imagename`.
7269 * Markdown writer: fix bug with doubled footnotes in grid tables
7272 * LaTeX template: include natbib/biblatex after polyglossia (#4073).
7273 Otherwise we seem to get an error; biblatex wants polyglossia
7274 language to be defined.
7276 * Added examples to lua filters documentation.
7279## pandoc 2.0.2 (2017-11-12)
7281 * Deprecated ancient HTML math methods: `--latexmathml`, `--gladtex`,
7282 `--mimetex`, `--jsmath`.
7284 * Fixed URIs in `data/jats.csl`. They were being rendered twice,
7285 leading to invalid XML in default JATS output with pandoc-citeproc.
7287 * `lua-filters.md`: use real-world man page filter as example.
7289 * Add lua filter functions `walk_inline` and `walk_block`
7290 in the pandoc module, to apply filters inside particular
7291 inline and block elements.
7293 * Refactored some code from `Text.Pandoc.Lua.PandocModule`
7294 into new internal module `Text.Pandoc.Lua.Filter`.
7298 + Allow fenced code blocks to be indented 1-3 spaces (#4011).
7299 This brings our handling of them into alignment with CommonMark's.
7300 + Fix YAML metadata with "chomp" (`|-`). Previously if a
7301 YAML block under `|-` contained a blank line, pandoc would
7302 not parse it as metadata.
7304 * Removed `etc.` from abbreviations file. Often `etc.` ends a
7305 sentence, and we want the period to be treated as a
7306 sentence-ending period.
7308 * Fix regression with `--metadata` (#4054). Values specified with
7309 `--metadata` should replace a metadata value set in the document
7310 itself, rather than creating a list including a new value.
7314 + Fix EPUB OCF structure. #3720 had been improperly implemented.
7315 + Fix modified paths for raw HTML tags (src, poster, etc.)
7316 (#4050, #4055). This had not been updated for the new EPUB
7317 container layout, with a separate text/ subdirectory.
7318 + Fix image paths with empty `--epub-subdirectory`.
7320 * Miscellaneous code cleanup (Alexander Krotov).
7322 * Use pandoc-types 1.17.3, which adds `Walkable` instances
7323 for `[Block] Block` and `[Inline] Inline`.
7325 * Remove obsolete `stack.full.yaml` (#4052).
7327 * Change to using pandoc-citeproc 0.12.1 in binary packages.
7329 * Consolidate math output method documentation (#4049, Mauro Bieg).
7331 * `MANUAL.txt`: fix header level of "Extension: emoji" (Albert Krewinkel).
7333 * Use lua filter to generate man page from `MANUAL.txt`, replacing old
7334 Haskell filters. This is easier and faster.
7336 * Improved `INSTALL.md`.
7338 * Update commands to extract deb archive on Linux (#4043, Salim B).
7341## pandoc 2.0.1.1 (2017-11-04)
7343 * Improved fix to #3989 (parsing of HTML tags containing
7344 `>` in an attribute or comment). The previous fix (in 2.0.1) only
7345 worked in certain cases.
7347 * FB2 writer (Alexander Krotov):
7349 + Add `unrecognised` genre to `<title-info>`
7350 (Alexander Krotov). XML schema requires at least one genre.
7351 + Remove `<annotation>` from `<body>`.
7353 * CommonMark writer: fix strikethrough for `gfm` (#4038).
7355 * Use texmath 0.10, which adds support for a wider range of
7356 symbols and fixes default column alignments in MathML
7359 * Highlighting fixes, using skylighting 0.4.3.2:
7362 + Support `lineAnchors` (or `line-anchors`) in HTML code blocks.
7363 + Ensure that code lines don't get duplicate identifiers (#4031).
7364 The line identifiers are built using the code block's identifier
7365 as a prefix. If the code block has null identifier, we use
7368 * Added a few abbreviations to `data/abbreviations`,
7369 and sorted the list (#3984, Wandmalfarbe).
7371 * Improved support for columns in HTML writer (#4028).
7373 + Remove `width` attribute from the `div`.
7374 + Remove space between `<div class="column">` elements,
7375 since this prevents columns whose widths sum to 100%
7376 (the space takes up space).
7377 + Move as much as possible of the CSS to the template.
7378 + Ensure that all the HTML-based templates (including epub)
7379 contain the CSS for columns.
7380 + Columns default to 50% width unless they are given a width
7381 attribute. So if you want two equal-width columns, you
7382 can use a div with class `column` and no `width` attribute.
7384 * SelfContained: use `base64` for css links with media attribute (#4026).
7385 This fixes `--self-contained` with S5.
7387 * Improve `pandoc-template-mode.el` (Vaclav Haisman).
7389 * INSTALL.md: MacOS instructions needed xar -f (adam234).
7393 + Clarify that --setext-headers doesn't affect gfm output (#4035).
7394 + Clarify what is needed to open and close a div in `fenced_divs`
7395 (#4039, Tristano Ajmone).
7396 + Removed reference to `default.beamer` in docs (#4024).
7397 Also added mention of other templates affecting PDF output
7398 with different settings.
7401## pandoc 2.0.1 (2017-10-31)
7403 * Fixed regression in parsing of HTML comments in markdown and other
7404 non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`) (#4019).
7405 The parser stopped at the first `>` character, even if it wasn't
7406 the end of the comment.
7408 * Creole reader (Sascha Wilde):
7410 + Fix some minor typos and formatting.
7411 + Add additional test on nowiki-block after para.
7412 + Fix lists with trailing white space.
7414 * LaTeX reader: handle `%` comment right after command.
7415 For example, `\emph%`.
7417 * Markdown reader: make sure fenced div closers work in lists.
7418 Previously the following failed:
7425 and you needed a blank line before the closing `:::`.
7427 * Make `fenced_divs` affect the Markdown writer. If `fenced_divs` is
7428 enabled, Divs will be rendered as fenced divs.
7430 * LaTeX/Beamer writer: support "blocks" inside columns and other Divs
7433 * HTML Writer: consistently use dashed class-names (Mauro Bieg, #3556).
7434 Note: this change may require some changes in CSS rules.
7435 `footnoteRef` has become `footnote-ref`, `titleslide` has
7436 become `title-slide`, and `footnoteBack` has become `footnote-back`.
7438 * JATS writer: Properly pass through author metadata (#4020).
7440 * FB2 writer (Alexander Krotov):
7442 + Write blocks outside of `<p>` in definitions.
7443 + Make bullet lists consistent with ordered lists, repeating
7444 the marker for the outer list rather than indenting sublists,
7445 since indentation does not work in readers.
7446 + Add new style FB2 tests.
7448 * `Text.Pandoc.ImageSize`: Add `Millimeter` constructor to `Dimension`
7449 (#4012) [API change]. Now sizes given in 'mm' are no longer converted
7452 * Revise documentation of small caps syntax (Andrew Dunning, #4013).
7454 * Fix broken reference links in manual (Andrew Dunning, #4014)
7456 * Fixed example of slide columns structure in changelog (#4015).
7457 Also documented this feature in MANUAL.txt.
7460## pandoc 2.0.0.1 (2017-10-30)
7464 + Fixed filepaths for nonstandard epub-subdirectory values.
7465 + Ensure that epub2 is recognized as a non-text format,
7466 so that a template is used.
7467 + Don't include "prefix" attribute for ibooks for epub2.
7468 It doesn't validate.
7469 + Fix stylesheet paths; previously we had an incorrect
7470 stylesheet path for the cover page and nav page.
7474 + Insert space when needed in macro expansion (#4007).
7475 Sometimes we need to insert a space after a control sequence
7476 to prevent it merging with a following letter.
7477 + Allow unbraced arguments for macros (#4007).
7478 + Allow body of macro definition to be unbraced (#4007).
7480 * Linux package build: ensure that pandoc-citeproc is statically linked.
7482 * trypandoc: add native, ms.
7485## pandoc 2.0 (2017-10-29)
7489 * New output format `ms` (groff ms). Complete support, including
7490 tables, math, syntax highlighting, and PDF bookmarks. The writer uses
7491 texmath's new eqn writer to convert math to eqn format, so a ms file
7492 produced with this writer should be processed with `groff -ms -e` if
7495 * New output format `jats` (Journal Article Tag Suite). This is an XML
7496 format used in archiving and publishing articles. Note that a
7497 URI-encoded CSL stylesheet (`data/jats.csl`) is added automatically
7498 unless a stylesheet is specified using `--css`.
7500 * New output format `gfm` (GitHub-flavored CommonMark) (#3841).
7501 This uses bindings to GitHub's fork of cmark, so it should parse
7502 gfm exactly as GitHub does (excepting certain postprocessing
7503 steps, involving notifications, emojis, etc.). `markdown_github`
7504 has been deprecated in favor of `gfm`.
7506 * New output format `muse` (Emacs Muse) (Alexander Krotov, #3489).
7508 * New input format `gfm` (GitHub-flavored CommonMark) (#3841).
7509 This uses bindings to GitHub's fork of cmark. `markdown_github`
7510 has been deprecated in favor of `gfm`.
7512 * New input format `muse` (Emacs Muse) reader (Alexander Krotov, #3620).
7514 * New input format `tikiwiki` (TikiWiki markup) (rlpowell, #3800).
7516 * New input format `vimwiki` (Vimwiki markup) (Yuchen Pei, #3705).
7517 Note that there is a new data file, `data/vimwiki.css`, which can
7518 be used to display the HTML produced by this reader and
7519 pandoc's HTML writer in the style of vimwiki's own HTML
7522 * New input format `creole` (Creole 1.0) (#3994, Sascha Wilde).
7524 * New syntax for Divs, with `fenced_divs` extension enabled by
7525 default (#168). This gives an attractive, plain-text way to create
7526 containers for block-level content.
7528 * Added new syntax for including raw content in any output format,
7529 enabled by the `raw_attribute` extension (which is on by default
7530 for `markdown` and `multimarkdown`). The syntax is the same as
7531 for fenced code blocks or code inlines, only with `{=FORMAT}` for
7532 attributes, where `FORMAT` is the name of the output format
7533 (e.g., `ms`, `html`).
7535 * Implement multicolumn support for slide formats (#1710).
7536 The structure expected is:
7538 :::::::::::::: {.columns}
7539 ::: {.column width="40%"}
7542 ::: {.column width="60%"}
7547 Support has been added for beamer and all HTML slide formats.
7549 * Allows line comments in templates, beginning with `$--` (#3806).
7550 (Requires doctemplates 0.2.1.)
7552 * Add `--eol=crlf|lf|native` flag and writer option to control line endings
7553 (Stefan Dresselhaus, #3663, #2097).
7555 * Add `--log` option to save log messages in JSON format to a file (#3392).
7557 * Add `--request-header` option, to set request headers when pandoc
7558 makes HTTP requests to fetch external resources. For example:
7559 `--request-header User-Agent:blah`.
7561 * Added lua filters (Albert Krewinkel, #3514). The new `--lua-filter`
7562 option works like `--filter` but takes pathnames of special lua filters
7563 and uses the lua interpreter baked into pandoc, so that no external
7564 interpreter is needed. Note that lua filters are all applied after
7565 regular filters, regardless of their position on the command line.
7566 For documentation of lua filters, see `doc/lua-filters.md`.
7568 * Set `PANDOC_READER_OPTIONS` in environment where filters are run.
7569 This contains a JSON representation of `ReaderOptions`, so filters
7572 * Support creation of pdf via groff `ms` and pdfroff.
7573 `pandoc -t ms -o output.pdf input.txt`.
7575 * Support for PDF generation via HTML and `weasyprint` or `prince`
7576 (Mauro Bieg, #3909). `pandoc -t html5 -o output.pdf --pdf-engine=prince`.
7578 * Added `--epub-subdirectory` option (#3720). This specifies the
7579 subdirectory in the OCF container that holds the EPUB specific content.
7580 We now put all EPUB related content in an `EPUB/` subdirectory by default
7581 (later this will be configurable).
7586 com.apple.ibooks.display-options.xml
7588 EPUB/ <<--configurable-->>
7589 fonts/ <<--static-->>
7591 media/ <<--static-->>
7594 styles/ <<--static-->>
7598 text/ <<--static-->>
7602 * Added `--resource-path=SEARCHPATH` command line option (#852).
7603 SEARCHPATH is separated by the usual character, depending on OS
7604 (: on unix, ; on windows). Default resource path is just working
7605 directory. However, the working directory must be explicitly
7606 specified if the `--resource-path` option is used.
7608 * Added --abbreviations=FILE option for custom abbreviations file
7609 (#256). Dfault abbreviations file (`data/abbreviations`) contains
7610 a list of strings that will be recognized by pandoc's
7611 Markdown parser as abbreviations. (A nonbreaking space will
7612 be inserted after the period, preventing a sentence space in
7613 formats like LaTeX.) Users can override the default by putting a file
7614 abbreviations in their user data directory (`~/.pandoc` on *nix).
7616 * Allow a theme file as argument to `--highlight-style`.
7617 Also include a sample, `default.theme`, in `data/`.
7619 * Allow `--syntax-definition` option for dynamic loading of syntax
7620 highlighting definitions (#3334).
7622 * Lists in `markdown` by default now use the CommonMark variable
7623 nesting rules (#3511). The indentation required for a block-level
7624 item to be included in a list item is no longer fixed, but is
7625 determined by the first line of the list item. To be included in
7626 the list item, a block must be indented to the level of the first
7627 non-space content after the list marker. Exception: if are 5 or more
7628 spaces after the list marker, then the content is interpreted as an
7629 indented code block, and continuation paragraphs must be indented
7630 two spaces beyond the end of the list marker. See the CommonMark
7631 spec for more details and examples.
7633 Documents that adhere to the four-space rule should, in most cases,
7634 be parsed the same way by the new rules. Here are some examples
7635 of texts that will be parsed differently:
7640 will be parsed as a list item with a sublist; under the four-space
7641 rule, it would be a list with two items.
7647 Here we have an indented code block under the list item, even though it
7648 is only indented six spaces from the margin, because it is four spaces
7649 past the point where a continuation paragraph could begin. With the
7650 four-space rule, this would be a regular paragraph rather than a code
7657 Here the code block will start with two spaces, whereas under
7658 the four-space rule, it would start with `code`. With the four-space
7659 rule, indented code under a list item always must be indented eight
7660 spaces from the margin, while the new rules require only that it
7661 be indented four spaces from the beginning of the first non-space
7662 text after the list marker (here, `a`).
7664 This change was motivated by a slew of bug reports from people
7665 who expected lists to work differently (#3125, #2367, #2575, #2210,
7666 #1990, #1137, #744, #172, #137, #128) and by the growing prevalance
7667 of CommonMark (now used by GitHub, for example). Those who
7668 prefer the old behavior can use `-f markdown+four_space_rule`.
7670 * Added `four_space_rule` extension. This triggers the old pandoc
7671 parsing rule for content nested under list items (the "four space
7674 * Added `spaced_reference_links` extension (#2602). It allows whitespace
7675 between the two parts of a reference link: e.g.
7681 This was previously enabled by default; now it is forbidden by default.
7683 * Add `space_in_atx_header` extension (#3512). This is enabled by default
7684 in pandoc and GitHub markdown but not the other flavors.
7685 This requirse a space between the opening #'s and the header
7686 text in ATX headers (as CommonMark does but many other implementations
7687 do not). This is desirable to avoid falsely capturing things ilke
7695 * Add `sourcefile` and `outputfile` template variables (Roland Hieber,
7698 * Allow ibooks-specific metadata in epubs (#2693). You can now have
7699 the following fields in your YAML metadata, and it will be treated
7700 appropriately in the generated EPUB:
7705 specified-fonts: false
7706 ipad-orientation-lock: portrait-only
7707 iphone-orientation-lock: landscape-only
7709 scroll-axis: vertical
7715 * Reader functions no longer presuppose that CRs have been
7716 stripped from the input. (They strip CRs themselves, before
7717 parsing, to simplify the parsers.)
7719 * Added support for translations (localization) (#3559).
7720 Currently this only affects the LaTeX reader, for things
7721 like `\figurename`. Translation data files for 46 languages
7722 can be found in `data/translations`.
7724 * Make `--ascii` work with DocBook output too.
7726 * Rename `--latex-engine` to `--pdf-engine`,
7727 and `--latex-engine-opt` to `--pdf-engine-opt`.
7729 * Removed `--parse-raw` and `readerParseRaw`. These were confusing.
7730 Now we rely on the `+raw_tex` or `+raw_html` extension with latex or html
7731 input. Thus, instead of `--parse-raw -f latex` we use `-f latex+raw_tex`,
7732 and instead of `--parse-raw -f html` we use `-f html+raw_html`.
7734 * With `--filter` R filters are now recognized, even if they are
7735 not executable (#3940, #3941, Andrie de Vries).
7737 * Support SVG in PDF output, converting with `rsvg2pdf` (#1793).
7739 * Make epub an alias for epub3, not epub2.
7741 * Removed `--epub-stylesheet`; use `--css` instead (#3472, #847).
7742 Multiple stylesheets may be used. Stylesheets will be taken both from
7743 `--css` and from the `stylesheet` metadata field (which can contain
7744 either a file path or a list of them).
7746 * `--mathml` and MathML in HTMLMathMethod no longer take an argument.
7747 The argument was for a bridge JavaScript that used to be necessary
7748 in 2004. We have removed the script already.
7750 * `--katex` improvements. The latest version is used, and the
7751 autoload script is loaded by default.
7753 * Change MathJax CDN default since old one is shutting down (#3544).
7754 Note: The new URL requires a version number, which we'll have
7755 to update manually in subsequent pandoc releases in order to
7756 take advantage of mathjax improvements.
7758 * `--self-contained`: don't incorporate elements with `data-external="1"`
7759 (#2656). You can leave an external link as it is by adding the attribute
7760 data-external="1" to the element. Pandoc will then not try to
7761 incorporate its content when `--self-contained` is used. This is
7762 similar to a feature already supported by the EPUB writer.
7764 * Allow `--extract-media` to work with non-binary input formats
7765 (#1583, #2289). If `--extract-media` is supplied with a non-binary
7766 input format, pandoc will attempt to extract the contents of all
7767 linked images, whether in local files, data: uris, or external uris.
7768 They will be named based on the sha1 hash of the contents.
7770 * Make `papersize: a4` work regardless of the case of `a4`.
7771 It is converted to `a4` in LaTeX and `A4` in ConTeXt.
7773 * Make `east_asian_line_breaks` affect all readers/writers (#3703).
7775 * Underlined elements are now treated consistently by readers
7776 (#2270, hftf); they are always put in a Span with class `underline`.
7777 This allows the user to treat them differently from other emphasis,
7778 using a filter. Docx, Org, Textile, Txt2Tags, and HTML readers
7781 * Improved behavior of `auto_identifiers` when there are explicit ids
7782 (#1745). Previously only autogenerated ids were added to the list
7783 of header identifiers in state, so explicit ids weren't taken
7784 into account when generating unique identifiers. Duplicated
7785 identifiers could result. This simple fix ensures that explicitly given
7786 identifiers are also taken into account.
7788 * Use `table-of-contents` for contents of toc, make `toc` a boolean
7789 (#2872). Changed markdown, rtf, and HTML-based templates accordingly.
7790 This allows you to set `toc: true` in the metadata; this
7791 previously produced strange results in some output formats.
7792 For backwards compatibility, `toc` is still set to the
7793 toc contents. But it is recommended that you update templates
7794 to use `table-of-contents` for the toc contents and `toc`
7797 * Change behavior with binary format output to stdout.
7798 Previously, for binary formats, output to stdout was disabled
7799 unless we could detect that the output was being piped (and not
7800 sent to the terminal). Unfortunately, such detection is not
7801 possible on Windows, leaving windows users no way to pipe binary
7802 output. So we have changed the behavior in the following way:
7804 + Output to stdout is allowed when it can be determined that
7805 the output is being piped (on non-Windows platforms).
7806 + If the `-o` option is not used, binary output is never sent
7807 to stdout by default; instead, an error is raised.
7808 + If `-o -` is used, binary output is sent to stdout, regardless
7809 of whether it is being piped. This works on Windows too.
7811 * Better error behavior: uses of `error` have been replaced by
7812 raising of `PandocError`, which can be trapped and handled by the
7815 * Removed `hard_line_breaks` extension from `markdown_github` (#3594).
7816 GitHub has two Markdown modes, one for long-form documents like READMEs
7817 and one for short things like issue comments. In issue comments, a line
7818 break is treated as a hard line break. In README, wikis, etc., it is
7819 treated as a space as in regular Markdown. Since pandoc is more likely to
7820 be used to convert long-form documents from GitHub Markdown,
7821 `-hard_line_breaks` is a better default.
7823 * Include `backtick_code_blocks` extension in `mardkown_mmd` (#3637).
7825 * Escape `MetaString` values (as added with `-M/--metadata` flag) (#3792).
7826 Previously they would be transmitted to the template without any
7827 escaping. Note that `--M title='*foo*'` yields a different result from
7833 In the latter case, we have emphasis; in the former case, just
7834 a string with literal asterisks (which will be escaped
7835 in formats, like Markdown, that require it).
7837 * Allow `em`, `cm`, `in` for image height/width in HTML, LaTeX (#3450).
7839 * HTML writer: Insert `data-` in front of unsupported attributes. Thus,
7840 a span with attribute `foo` gets written to HTML5 with `data-foo`, so
7841 it is valid HTML5. HTML4 is not affected. This will allow us to use
7842 custom attributes in pandoc without producing invalid HTML. (With help
7843 from Wandmalfarbe, #3817.)
7845 * Plain writer: improved super/subscript rendering. We now
7846 handle more non-digit characters for which there are
7847 sub/superscripted unicode characters. When unicode
7848 sub/superscripted characters are not available, we use
7849 `_(..)` or `^(..)` (#3518).
7851 * Docbook, JATS, TEI writers: print INFO message when omitting interior
7852 header (#3750). This only applies to section headers inside list items,
7853 e.g., which were otherwise silently omitted.
7855 * Change to `--reference-links` in Markdown writer (#3701). With
7856 `--reference-location` of `section` or `block`, pandoc will now repeat
7857 references that have been used in earlier sections. The Markdown
7858 reader has also been modified, so that *exactly* repeated references
7859 do not generate a warning, only references with the same label but
7860 different targets. The idea is that, with references after every block,
7861 one might want to repeat references sometimes.
7863 * ODT/OpenDocument writer:
7865 + Support `lang` attribute (#1667).
7866 + Added support for `--toc` (#2836). Thanks to @anayrat.
7870 + `lang` meta, see #1667 (Mauro Bieg, #3515).
7871 + Change `FigureWithCaption` to `CaptionedFigure` (iandol, #3658).
7872 + Use `Table` rather than `Table Normal` for table style (#3275).
7873 `Table Normal` is the default table style and can't be modified.
7874 + Pass through comments (#2994). We assume that comments are defined as
7875 parsed by the docx reader:
7877 I want <span class="comment-start" id="0" author="Jesse Rosenthal"
7878 date="2016-05-09T16:13:00Z">I left a comment.</span>some text to
7879 have a comment <span class="comment-end" id="0"></span>on it.
7881 We assume also that the id attributes are unique and properly
7882 matched between comment-start and comment-end.
7883 + Bookmark improvements. Bookmark start/end now surrounds content rather
7884 than preceding it. Bookmarks generated for Div with id
7885 (jgm/pandoc-citeproc#205).
7886 + Add `keywords` metadata to docx document properties (Ian).
7888 * RST writer: support unknown interpreted text roles by
7889 parsing them as `Span` with `role` attributes (#3407). This
7890 way they can be manipulated in the AST.
7894 + Line block: Use class instead of style attribute (#1623). We now
7895 issue `<div class="line-block">` and include a default definition
7896 for `line-block` in the default templates, instead of hard-coding a
7898 + Add class `footnoteBack` to footnote back references (Timm Albers).
7899 This allows for easier CSS styling.
7900 + Render SmallCaps as span with smallcaps class (#1592), rather than
7901 using a style attribute directly. This gives the user more flexibility
7902 in styling small caps in CSS.
7903 + With reveal.js we use `data-src` instead of `src` for images for
7905 + Special-case `.stretch` class for images in reveal.js (#1291).
7906 Now in reveal.js, an image with class `stretch` in a paragraph
7907 by itself will stretch to fill the whole screen, with no
7908 caption or figure environment.
7910 * Added warnings for non-rendered blocks to writers.
7912 * Writers now raise an error on template failure.
7914 * When creating a PDF via LaTeX, warn if the font is missing some
7917 * Remove initial check for PDF-creating program (#3819).
7918 Instead, just try running it and raise the exception if it
7919 isn't found at that point. This improves things for users of Cygwin
7920 on Windows, where the executable won't be found by `findExecutable`
7921 unless `.exe` is added. The same exception is raised as before, but
7924 * Readers issue warning for duplicate header identifiers (#1745).
7925 Autogenerated header identifiers are given suffixes so as not to clash
7926 with previously used header identifiers. But they may still coincide with
7927 an explicit identifier that is given for a header later in the document,
7928 or with an identifier on a div, span, link, or image. We now issue
7929 a warning in this case, so users can supply an explicit identifier.
7931 * CommonMark reader now supports `emoji`, `hard_line_breaks`, `smart`,
7932 and `raw_html` extensions.
7936 + Don't allow backslash + newline to affect block structure (#3730).
7937 Note that as a result of this change, the following, which formerly
7938 produced a header with two lines separated by a line break, will
7939 now produce a header followed by a paragraph:
7944 This may affect some existing documents that relied on
7945 this undocumented and unintended behavior. This change makes pandoc
7946 more consistent with other Markdown implementations, and with itself
7947 (since the two-space version of a line break doesn't work inside ATX
7948 headers, and neither version works inside Setext headers).
7951 * Org reader (Albert Krewinkel, unless noted):
7953 + Support `table.el` tables (#3314).
7954 + Support macros (#3401).
7955 + Support the `#+INCLUDE:` file inclusion mechanism (#3510).
7956 Recognized include types are `example`, `export`, `src`, and
7957 normal org file inclusion. Advanced features like line numbers
7958 and level selection are not implemented yet.
7959 + Interpret more meta value as inlines. The values of the following
7960 meta variables are now interpreted using org-markup instead of
7961 treating them as pure strings: `keywords` (comma-separated list of
7962 inlines), `subtitle` (inline values), `nocite` (inline values, can
7964 + Support `\n` export option (#3940). This turns all newlines in the
7965 text into hard linebreaks.
7969 + Improved admonition support (#223). We no longer add an
7970 `admonition` class, we just use the class for the type of admonition,
7971 `note` for example. We put the word corresponding to the label in
7972 a paragraph inside a `Div` at the beginning of the admonition with
7973 class `admonition-title`. This is about as close as we can get to
7975 + Initial support of `.. table` directive. This allows adding captions
7977 + Support `.. line-block` directive. This is deprecated but may still
7978 be in older documents.
7979 + Support scale and align attributes of images (#2662).
7980 + Implemented implicit internal header links (#3475).
7981 + Support RST-style citations (#853). The citations appear at the end
7982 of the document as a definition list in a special div with id
7983 `citations`. Citations link to the definitions.
7984 + Recurse into bodies of unknown directives (#3432).
7985 In most cases it's better to preserve the content than
7986 to emit it. This isn't guaranteed to have good results;
7987 it will fail spectacularly for unknown raw or verbatim directives.
7988 + Handle chained link definitions (#262). For example,
7991 .. _goodbye: example.com
7993 Here both `hello` and `goodbye` should link to `example.com`.
7994 + Support anchors (#262). E.g.
8002 This is supported by putting "paragraph" in a `Div` with id `hello`.
8003 + Support `:widths:` attribute for table directive.
8004 + Implement csv-table directive (#3533). Most attributes are supported,
8005 including `:file:` and `:url:`.
8006 + Support unknown interpreted text roles by parsing them as Span
8007 with "role" attributes (#3407). This way they can be manipulated in
8010 * HTML reader: parse a span with class `smallcaps` as `SmallCaps`.
8014 + Implemented `\graphicspath` (#736).
8015 + Properly handle column prefixes/suffixes. For example, in
8016 `\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}`
8017 each cell will be interpreted as if it has a `$`
8018 before its content and a `$` after (math mode).
8019 + Handle komascript `\dedication` (#1845). It now adds a
8020 `dedication` field to metadata. It is up to the user to supply
8021 a template that uses this variable.
8022 + Support all `\textXX` commands, where XX = `rm`, `tt`, `up`, `md`,
8023 `sf`, `bf` (#3488). Spans with a class are used when there is
8025 + Expand `\newenvironment` macros (#987).
8026 + Add support for LaTeX subfiles package (Marc Schreiber, #3530).
8027 + Better support for subfigure package (#3577).
8028 A figure with two subfigures turns into two pandoc
8029 figures; the subcaptions are used and the main caption
8030 ignored, unless there are no subcaptions.
8031 + Add support for `\vdots` (Marc Schreiber, #3607).
8032 + Add basic support for hyphenat package (Marc Schreiber, #3603).
8033 + Add basic `\textcolor` support (Marc Schreiber).
8034 + Add support for `tabularx` environment (Marc Schreiber, #3632).
8035 + Better handling of comments inside math environments (#3113).
8036 This solves a problem with commented out `\end{eqnarray}` inside
8037 an eqnarray (among other things).
8038 + Parse tikzpicture as raw verbatim environment if `raw_tex` extension
8039 is selected (#3692). Otherwise skip with a warning. This is better
8040 than trying to parse it as text!
8041 + Add `\colorbox` support (Marc Schreiber).
8042 + Set identifiers on Spans used for `\label`.
8043 + Have `\setmainlanguage` set `lang` in metadata.
8044 + Support etoolbox's `\ifstrequal`.
8045 + Support `plainbreak`, `fancybreak` et al from the memoir class
8046 (bucklereed, #3833).
8047 + Support `\let`. Also, fix regular macros so they're expanded at the
8048 point of use, and NOT also the point of definition. `\let` macros,
8049 by contrast, are expanded at the point of definition. Added an
8050 `ExpansionPoint` field to `Macro` to track this difference.
8051 + Support simple `\def` macros. Note that we still don't support
8052 macros with fancy parameter delimiters, like `\def\foo#1..#2{...}`.
8053 + Support `\chaptername`, `\partname`, `\abstractname`, etc. (#3559,
8055 + Put content of `\ref`, `\label`, `\eqref` commands into `Span` with
8056 attributes, so they can be handled in filters (Marc Schreiber, #3639)
8057 + Add Support for `glossaries` and `acronym` package (Marc Schreiber,
8058 #3589). Acronyms are not resolved by the reader, but acronym and
8059 glossary information is put into attributes on Spans so that they
8060 can be processed in filters.
8061 + Use `Link` instead of `Span` for `\ref`. This makes more sense
8062 semantically and avoids unnecessary `Span [Link]` nestings when
8063 references are resolved.
8064 + Rudimentary support for `\hyperlink`.
8065 + Support `\textquoteleft|right`, `\textquotedblleft|right` (#3849).
8066 + Support `\lq`, `\rq`.
8067 + Implement `\newtoggle`, `\iftoggle`, `\toggletrue|false` from etoolbox
8069 + Support `\RN` and `\Rn`, from biblatex (bucklereed, #3854).
8070 + Improved support for `\hyperlink`, `\hypertarget` (#2549).
8071 + Support `\k` ogonek accent.
8072 + Improve handling of accents. Handle ogonek, and fall back correctly
8073 with forms like `\"{}`.
8074 + Better support for ogonek accents.
8075 + Support for `\faCheck` and `\faClose` (Marc Schreiber, #3727).
8076 + Support for `xspace` (Marc Schreiber, #3797).
8077 + Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia)
8079 + Better handling of `\part` in LaTeX (#1905). Now we parse chapters as
8080 level 0 headers, and parts as level -1 headers. After parsing, we
8081 check for the lowest header level, and if it's less than 1 we bump
8082 everything up so that 1 is the lowest header level. So `\part` will
8083 always produce a header; no command-line options are needed.
8084 + Add block version of `\textcolor` (Marc Schreiber).
8085 + `\textcolor` works as inline and block command (Marc Schreiber).
8086 + `\textcolor` will be parse as span at the beginning of a paragraph
8088 + Read polyglossia/babel `\text(LANG){...}` (bucklereed)
8089 + Improved handling of include files in LaTeX reader (#3971).
8090 Previously `\include` wouldn't work if the included file
8091 contained, e.g., a begin without a matching end.
8092 + Support `\expandafter` (#3983).
8093 + Handle `\DeclareRobustCommand` (#3983). Currently it's just treated
8094 as a synonym for `\newcommand`.
8095 + Handle `\lettrine` (Mauro Bieg).
8097 * Math improvements due to updates in texmath:
8099 + Improved handling of accents and upper/lower delimiters.
8100 + Support for output in GNU eqn format (used with *roff).
8101 + Allow `\boldsymbol` + a token without braces, and similarly
8102 with other styling commands.
8103 + Improve parsing of `\mathop` to allow multi-character operator names.
8104 + Add thin space after math operators when "faking it with
8107 * `walk` is now used instead of `bottomUp` in the `ToJSONFilter`
8108 instance for `a -> [a]` (pandoc-types). Note that behavior
8109 will be slightly different, since `bottomUp`'s treatment of
8110 a function `[a] -> [a]` is to apply it to each sublist of a
8111 list, while walk applies it only to maximal sublists.
8112 Usually the latter behavior is what is wanted, and the
8113 former can be simulated when needed. But there may be
8114 existing filters that need to be rewritten in light of the
8115 new behavior. Performance should be improved.
8117 * There are some changes to syntax highlighting due to revisions
8118 in the `skylighting` library:
8120 + Support for `powershell` has been added, and many syntax
8121 definitions have been updated.
8122 + Background colors have been added to the `kate` style.
8123 + The way highlighted code blocks are formatted in HTML has
8124 been changed (David Baynard), in ways that may require
8125 changes in hard-coded CSS affecting highlighting.
8126 (If you haven't included hard-coded highlighting CSS in
8127 your template, you needn't change anything.)
8132 * New module `Text.Pandoc.Class` (Jesse Rosenthal, John MacFarlane).
8133 This contains definitions of the `PandocMonad` typeclass, the
8134 `PandocIO` and `PandocPure` monads, and associated functions.
8136 * Changed types of all writers and readers.
8138 + We now use `Text` instead of `String` in the interface (#3731).
8139 (We have not yet changed the internals of most readers to work
8140 with `Text`, but making this change in the API now opens up a
8141 path to doing that.)
8142 + The result is now of form `m a` with constraint `PandocMonad m`.
8143 Readers and writers can be combined to form monadic values which
8144 can be run using either `runIO` or `runPure`. If `runIO` is used,
8145 then both readers and writers will be able to do IO when needed
8146 (for include files, for example); if `runPure` is used,
8147 then the functions are pure and will not touch IO.
8148 + Where previously you used
8149 `writeRST def (readMarkdown def "[foo](url)")`, now you
8151 `runPure $ readMarkdown def (pack "[foo](url)") >>= writeRST def`.
8153 * New module `Text.Pandoc.Readers` (Albert Krewinkel). This
8154 contains reader helper functions formerly defined in the
8155 top-level `Text.Pandoc` module.
8157 + Changed `StringReader` -> `TextReader`.
8158 + `getReader` now returns a pair of a reader and
8159 `Extensions`, instead of building the extensions into the
8160 reader (#3659). The calling code must explicitly set
8161 `readerExtensions` using the `Extensions` returned. The
8162 point of the change is to make it possible for the calling
8163 code to determine what extensions are being used.
8165 * New module `Text.Pandoc.Writers` (Albert Krewinkel).
8166 This contains writer helper functions formerly defined in the
8167 top-level `Text.Pandoc` module.
8169 + Changed `StringWriter` -> `TextWriter`.
8170 + `getWriter` now returns a pair of a reader and
8171 `Extensions`, instead of building the extensions into the
8172 reader (#3659). The calling code must explicitly set
8173 `readerExtensions` using the `Extensions` returned. The
8174 point of the change is to make it possible for the calling
8175 code to determine what extensions are being used.
8177 * New module `Text.Pandoc.Lua`, exporting `runLuaFilter` (Albert Krewinkel,
8180 * New module `Text.Pandoc.App`. This abstracts out the functionality
8181 of the command line program (`convertWithOpts`), so it can be reproduced
8182 e.g. in a desktop or web application. Instead of exiting, we throw errors
8183 (#3548), which are caught (leading to exit) in pandoc.hs, but allow other
8184 users of `Text.Pandoc.App` to recover. `pandoc.hs` is now a 2-liner.
8185 The module also exports some utility functions for parsing options
8186 and running filters.
8188 * New module `Text.Pandoc.Logging` (exported module) (#3392).
8189 This now contains the `Verbosity` definition previously in
8190 `Text.Pandoc.Options`, as well as a new `LogMessage` datatype that will
8191 eventually be used instead of raw strings for warnings. This will enable
8192 us, among other things, to provide machine-readable warnings if desired.
8193 Include ToJSON instance and showLogMessage. This gives us the possibility
8194 of both machine-readable and human-readable output for log messages.
8196 * New module `Text.Pandoc.BCP47`, with `getLang`, `Lang(..)`, `parseBCP47`.
8198 * New module `Text.Pandoc.Translations`, exporting `Term`,
8199 `Translations`, `readTranslations`.
8201 * New module `Text.Pandoc.Readers.LaTeX.Types', exporting `Macro`, `Tok`,
8202 `TokType`, `Line`, `Column`.
8204 * `Text.Pandoc.Error`: added many new constructors for `PandocError`.
8206 * Expose some previously private modules (#3260). These are often
8207 helpful to people writing their own reader or writer modules:
8209 + `Text.Pandoc.Writers.Shared`
8210 + `Text.Pandoc.Parsing`
8211 + `Text.Pandoc.Asciify`
8212 + `Text.Pandoc.Emoji`
8213 + `Text.Pandoc.ImageSize`
8214 + `Text.Pandoc.Highlighting`
8216 * New module `Text.Pandoc.Extensions` (Albert Krewinkel):
8217 Extension parsing and processing functions were defined in the top-level
8218 `Text.Pandoc` module. These functions are moved to the Extensions
8219 submodule as to enable reuse in other submodules.
8221 * Add `Ext_raw_attribute` constructor for `Extension`.
8223 * Add `Ext_fenced_divs` constructor for `Extension'.
8225 * Add `Ext_four_space_rule` constructor in `Extension`.
8227 * Add `Ext_gfm_auto_identifiers` constructor for `Extension`.
8229 * Add `Monoid` instance for `Extensions`.
8231 * Add `Text.Pandoc.Writers.Ms`, exporting `writeMs`.
8233 * Add `Text.Pandoc.Writers.JATS`, exporting `writeJATS`.
8235 * Add `Text.Pandoc.Writers.Muse`, exporting `writeMuse`.
8237 * Add `Text.Pandoc.Readers.Muse`, exporting `readMuse`.
8239 * Add `Text.Pandoc.Readers.TikiWiki`, exporting `readTikiWiki`.
8241 * Add `Text.Pandoc.Readers.Vimwiki`, exporting `readVimwiki`.
8243 * Add `Text.Pandoc.Readers.Creole`, exporting `readCreole`.
8245 * Export `setVerbosity` from `Text.Pandoc`.
8247 * `Text.Pandoc.Pretty`: Add `Eq` instance for `Doc`.
8249 * `Text.Pandoc.XML`: `toEntities`: changed type to `Text -> Text`.
8251 * `Text.Pandoc.UTF8`:
8253 + Export `fromText`, `fromTextLazy`, `toText`, `toTextLazy`.
8254 Define `toString`, `toStringLazy` in terms of them.
8255 + Add new functions parameterized on `Newline`: `writeFileWith`,
8256 `putStrWith`, `putStrLnWith`, `hPutStrWith`, `hPutStrLnWith`.
8258 * `Text.Pandoc.MediaBag`: removed `extractMediaBag`.
8260 * `Text.Pandoc.Highlighting`:
8262 + `highlighting` now returns an Either rather than Maybe.
8263 This allows us to display error information returned by the skylighting
8264 library. Display a warning if the highlighting library throws an error.
8265 + Add parameter for `SyntaxMap` to `highlight`.
8267 * `Text.Pandoc.Writers.Math`:
8269 + Export `defaultMathJaxURL`, `defaultKaTeXURL`. This will ensure that
8270 we only need to update these in one place.
8272 * `Text.Pandoc.SelfContained`:
8274 + Removed `WriterOptions` parameter from `makeSelfContained`.
8275 + Put `makeSelfContained` in PandocMonad instead of IO. This removes
8276 the need to pass MediaBag around and improves exceptions. It also
8277 opens up the possibility of using makeSelfContained purely.
8278 + Export `makeDataURI`.
8280 * `Text.Pandoc.ImageSize`:
8282 + Export `lengthToDim`, new function `scaleDimension`.
8283 + Export `inEm` from ImageSize (#3450).
8284 + Change `showFl` and `show` instance for `Dimension` so
8285 extra decimal places are omitted.
8286 + Added `Em` as a constructor of `Dimension`.
8287 + Add `WriterOptions` parameter to `imageSize` signature (Mauro Bieg).
8289 * `Text.Pandoc.Templates`:
8291 + Change type of `renderTemplate'`. Now it runs in `PandocMonad`
8292 and raises a proper `PandocTemplateError` if there are problems, rather
8293 than failing with uncatchable `error`.
8294 + Change signature of `getDefaultTemplate`. Now it runs in any instance
8295 of `PandocMonad`, and returns a `String` rather than an `Either` value.
8296 And it no longer takes a `datadir` parameter, since this can be
8297 retrieved from `CommonState`.
8299 * `Text.Pandoc.Options`:
8301 + Added `writerEpubSubdirectory` to `WriterOptions` (#3720).
8302 The EPUB writer now takes its EPUB subdirectory from this option.
8303 + In `WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine`
8304 and `writerLaTeXArgs` to `writerPdfArgs` (Mauro Bieg, #3909).
8305 + Add `writerSyntaxMap` to `WriterOptions`.
8306 + Removed `writerEpubStylesheet` from `WriterOptions`.
8307 + Remove `writerUserDataDir` from `WriterOptions`. It is now carried
8308 in `CommonState` in `PandocMonad` instances. (And thus it can be used
8310 + Changed `writerEpubMetadata` to a `Maybe String`.
8311 + Removed `readerApplyMacros` from `ReaderOptions`. Now we just check
8312 the `latex_macros` reader extension.
8313 + FromJSON/ToJSON instances for `ReaderOptions`.
8314 + In `HTMLMathMethod`, the `KaTeX` contsructor now takes only
8315 one string (for the KaTeX base URL), rather than two.
8316 + Removed `writerSourceURL` from `WriterOptions`. We now use
8317 `stSourceURL` in `CommonState`, which is set by `setInputFiles`.
8319 * `Text.Pandoc.Shared`:
8321 + `tabFilter` now takes a `Text`, not `String`.
8322 + `openURL`: Changed type from an Either. Now it will just raise
8323 an exception to be trapped later.
8324 + Remove `normalizeSpaces` (#1530).
8325 + Remove `warn`. (Use `report` from `Text.Pandoc.Class` instead.)
8326 + Export a new function `crFilter`.
8327 + Add `eastAsianLineBreakFilter` (previously in Markdown reader).
8328 + Provide custom `isURI` that rejects unknown schemes.
8329 (Albert Krewinkel, #2713). We also export the set of known
8330 `schemes`. The new function replaces the function of the same name
8331 from `Network.URI`, as the latter did not check whether a scheme is
8332 well-known. All official IANA schemes (as of 2017-05-22) are
8333 included in the set of known schemes. The four non-official schemes
8334 `doi`, `isbn`, `javascript`, and `pmid` are kept.
8336 + Remove `readDataFile`, `readDefaultDataFile`, `getReferenceDocx`,
8337 `getReferenceODT`. These now live in `Text.Pandoc.Class`,
8338 where they are defined in terms of `PandocMonad`
8339 primitives and have different signatures.
8340 + Remove `openURL`. Use `openURL` from `Text.Pandoc.Class` instead.
8341 + Add `underlineSpan`.
8343 * `Text.Pandoc.Readers.HTML`: export new `NamedTag` class.
8345 * `Text.Pandoc.Readers.Markdown`: remove `readDocxWithWarnings`.
8346 With the new API one can simply use `getLog` after running
8349 * `Text.Pandoc.Readers.LaTeX`: Changed types for `rawLaTeXInline`
8350 and `rawLaTeXBlock`. (Both now return a `String`, and they are
8351 polymorphic in state.)
8354### Bug fixes and under-the-hood improvements
8356 * TEI writer: Added identifiers on `<div>` elements.
8358 * DokuWiki reader: Better handling for code block in list item (#3824).
8360 * Custom writer: Remove old preprocesesor conditionals (Albert Krewinkel).
8362 * ZimWiki writer: Removed internal formatting from note and table cells,
8363 because ZimWiki does not support it (Alex Ivkin, #3446).
8367 + Updated list of syntax highlighting languages (#3461).
8368 Now `r` gets you `<source>` rather than `<code>` (among others).
8369 + Add display attribute on `<math>` tags (#3452). This allows display
8370 math to be rendered properly.
8371 + Remove newline before `</ref>` (#2652).
8372 + Don't softbreak lines inside list items (#3531).
8376 + Reduce to two spaces after bullets (#3417, Albert Krewinkel).
8377 + Add unit tests (Alexander Krotov).
8378 + Stop using raw HTML to wrap divs (Albert Krewinkel, #3771).
8379 + Do not strip `#` from Org anchor links (Alexander Krotov).
8381 * CommonMark writer:
8383 + Avoid excess blank lines at end of output.
8384 + Prefer pipe tables to HTML tables even if it means losing relative
8385 column width information (#3734).
8386 + Support table, strikethrough extensions, when enabled (as with gfm).
8387 Note that we bypass the commonmark writer from cmark and construct our
8388 own pipe tables, with better results.
8389 + Properly support `--wrap=none`.
8390 + Use smallcaps class for `SmallCaps` (#1592).
8391 + Omit "fig:" prefix in image titles. This is used internally to
8392 indicate internal figures.
8396 + Properly handle table captions.
8397 + Don't wrap lines in in definition list terms. Wrapping is not allowed.
8398 + Implemented `+/-smart` and improved escaping with `+smart`.
8399 + Add empty comments when needed to avoid including a blockquote
8400 in the indented content of a preceding block (#3675).
8401 + Improve grid table output, fix bug with empty rows (#3516).
8402 Uses the new `gridTable` in Writers.Shared, which is here
8403 improved to better handle 0-width cells.
8404 + Remove space at beginning/end of RST code span (#3496). Otherwise
8405 we get invalid RST. There seems to be no way to escape the space.
8406 + Add header anchors when header has non-standard id (#3937).
8407 + Correctly handle inline code containing backticks, using a `:literal:`
8409 + Don't backslash-escape word-internal punctuation (#3978).
8413 + Don't include variables in metadata blocks. Previously variables set
8414 on the command line were included in e.g. YAML metadata, contrary to
8415 documentation and intentions.
8416 + Improved escaping with `+smart`.
8417 + Fixed grid tables embedded in grid tables (#2834).
8418 + Use span with class 'smallcaps' for SmallCaps, instead of a style
8419 attribute as before (#1592).
8420 + Escape initial `%` in a paragraph if the `pandoc_title_blocks`
8421 extension is enabled (#3454). Otherwise in a document starting with
8422 a literal `%` the first line is wrongly interpreted as a title.
8423 + Fixed false ordered lists in YAML metadata (#3492, #1685). Now we
8424 properly escape things that would otherwise start ordered lists,
8430 + Better handling of tables with empty columns (#3337). We now
8431 calculate the number of columns based on the longest row (or the
8432 length of aligns or widths).
8433 + Escape unordered list markers at beginning of paragraph (#3497), to
8434 avoid false interpretation as a list.
8435 + Escape `|` appropriately.
8436 + Ensure space before list at top level (#3487).
8437 + Avoid spurious blanklines at end of document after tables and list,
8439 + Fixed bugs in simple/multiline list output (#3384).
8440 Previously we got overlong lists with `--wrap=none`. This is fixed.
8441 Previously a multiline list could become a simple list (and would
8442 always become one with `--wrap=none`).
8443 + Don't emit a simple table if `simple_tables` disabled (#3529).
8444 + Case-insensitive reference links (David A Roberts, #3616).
8445 Ensure that we do not generate reference links whose labels differ only
8446 by case. Also allow implicit reference links when the link
8447 text and label are identical up to case.
8448 + Put space before reference link definitions (Mauro Bieg, #3630).
8449 + Better escaping for links (David A. Roberts, #3619). Previously the
8450 Markdown writer would sometimes create links where there were none
8451 in the source. This is now avoided by selectively escaping bracket
8452 characters when they occur in a place where a link might be created.
8453 + Added missing `\n` (David A. Roberts, #3647).
8454 + Fixed duplicated reference links with `--reference-links`
8455 and `--reference-location=section` (#3674). Also ensure that there
8456 are no empty link references `[]`.
8457 + Avoid inline surround-marking with empty content (#3715).
8458 E.g. we don't want `<strong></strong>` to become `****`.
8459 Similarly for emphasis, super/subscript, strikeout.
8460 + Don't allow soft break in header (#3736).
8461 + Make sure `plain`, `markdown_github`, etc. work for raw.
8462 Previously only `markdown` worked. Note: currently a raw block labeled
8463 `markdown_github` will be printed for any `markdown` format.
8464 + Ensure that `+` and `-` are escaped properly so they don't cause
8465 spurious lists (#3773). Previously they were only
8466 if succeeded by a space, not if they were at end of line.
8467 + Use pipe tables if `raw_html` disabled and `pipe_tables` enabled,
8468 even if the table has relative width information (#3734).
8469 + Markdown writer: don't crash on `Str ""`.
8470 + Make `Span` with null attribute transparent. That is, we don't use
8471 brackets or `<span>` tags to mark spans when there are no attributes;
8472 we simply output the contents.
8473 + Escape pipe characters when `pipe_tables` enabled (#3887).
8474 + Better escaping of `<` and `>`. If `all_symbols_escapable` is set,
8475 we backslash escape these. Otherwise we use entities as before.
8476 + When writing plain, don't use ` ` to separate list and indented
8477 code. There's no need for it in this context, since this isn't to be
8478 interpreted using Markdown rules.
8479 + Preserve classes in JS obfuscated links (Timm Albers, #2989).
8480 HTML links containing classes originally now preserve them when using
8481 javascript email obfuscation.
8482 + Render `SmallCaps` as a native span when `native_spans` are enabled.
8483 + Always write attributes with `bracketed_spans` (d-dorazio).
8487 + Fix handling of nested font commands (#3568). Previously pandoc emitted
8488 incorrect markup for bold + italic, for example, or bold + code.
8489 + Avoid error for definition lists with no definitions (#3832).
8493 + Fix internal links with `writerIdentifierPrefix opt`
8494 (#3397, Mauro Bieg).
8498 + Don't include bookmarks on headers unless non-null id (#3476).
8499 + Support 9 levels of headers (#1642).
8500 + Allow 9 list levels (#3519).
8501 + Don't take `distArchive` from datadir (#3322). The docx writer takes
8502 components from the distribution's version of `reference.docx` when it
8503 can't find them in a user's custom `reference.docx`. Previously, we
8504 allowed a `reference.docx` in the data directory (e.g. `~/.pandoc`)
8505 to be used as the distribution's reference.docx. This led to a
8506 bizarre situation where pandoc would produce a good docx using
8507 `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to
8508 `~/.pandoc/reference.docx`, it would then produce a corrupted docx.
8509 + Fixed handling of soft hyphen (0173) (#3691).
8510 + Better handling of keywords (#3719).
8511 + Cleaner code for handling dir and style attributes for `Div`.
8512 + Use `Set` for dynamic styles to avoid duplicates.
8513 + Removed redundant element from data/docx/word/numbering.xml.
8514 The elements we need are generated when the document is
8515 compiled; this didn't do anything.
8516 + Activate `evenAndOddHeaders` from reference docx (#3901,
8517 Augustín Martín Barbero).
8519 * ODT/OpenDocument writer:
8521 + Calculate aspect ratio for percentage-sized images (Mauro Bieg, #3239).
8522 + Use more widely available bullet characters (#1400). The old
8523 characters weren't available in some font sets. These seem to work
8524 well on Windows and Linux versions of LibreOffice.
8525 + Wider labels for lists (#2421). This avoids overly narrow labels for
8526 ordered lists with `()` delimiters. However, arguably it creates
8527 overly wide labels for bullets. Also, lists now start flush with
8528 the margin, rather than indented.
8529 + Fixed dropped elements in some ordered lists (#2434).
8533 + Don't render `RawBlock` as code.
8534 + Don't fail with an error on interior headers (e.g. in list) (#3750).
8535 Instead, omit them with an INFO message.
8536 + Add support for "lang" metadata (Alexander Krotov, #3625).
8537 + Format `LineBlock` as poem (Alexander Krotov). Previously writer
8538 produced one paragraph with `<empty-line/>` elements, which are not
8539 allowed inside `<p>` according to FB2 schema.
8540 + Replace `concatMap` with `cMap` (Alexander Krotov).
8541 + Write FB2 lists without nesting blocks inside `<p>` (Alexander
8546 + Make sure `html4`, `html5` formats work for raw blocks/inlines.
8547 + Render raw inline environments when `--mathjax` used (#3816).
8548 We previously did this only with raw blocks, on the assumption
8549 that math environments would always be raw blocks. This has changed
8550 since we now parse them as inline environments.
8551 + Ensure we don't get two style attributes for width and height.
8552 + Report when not rendering raw inline/block.
8553 + Issue warning if no title specified and template used (#3473).
8554 + Info message if `lang` is unspecified (#3486).
8555 + Removed unused parameter in `dimensionsToAttributeList`.
8556 + Avoid two class attributes when adding `uri` class (#3716).
8557 + Fix internal links with `writerIdentifierPrefix opt` (#3397, Mauro
8559 + Use revealjs's math plugin for mathjax (#3743). This is a thin
8560 wrapper around mathjax that makes math look better on revealjs.
8561 + Slidy: use h1 for all slides, even if they were originally
8562 level 2 headers (#3566). Otherwise the built-in table of contents
8567 + Don't render LaTeX images with data: URIs (#3636). Note that
8568 `--extract-media` can be used when the input contains data: URIs.
8569 + Make highlighted code blocks work in footnotes (Timm Albers).
8570 + Don't use figure inside table cell (#3836).
8571 + Use proper code for list enumerators (#3891). This should fix problems
8572 with lists that don't use arabic numerals.
8573 + Always add hypertarget when there's a non-empty identifier (#2719).
8574 Previously the hypertargets were only added when there was actually
8575 a link to that identifier.
8576 + Use `%` after hypertarget before code block.
8577 + Add `\leavevmode` before hypertarget at start of paragraph (#2704,
8578 fixes formatting problems in beamer citations).
8579 + Don't use `lstinline` in `\item[..]` (#645). If you do, the contents
8580 of item disappear or are misplaced. Use `\texttt` instead.
8581 + Fix problem with escaping in `lstinline` (#1629). Previously the
8582 LaTeX writer created invalid LaTeX when `--listings` was specified and
8583 a code span occurred inside emphasis or another construction.
8584 + Fix error with line breaks after empty content (#2874). LaTeX
8585 requires something before a line break, so we insert a `~` if no
8586 printable content has yet been emitted.
8588 + Fixed detection of otherlangs (#3770). We weren't recursing into
8590 + Handle language in inline code with `--listings` (#3422).
8591 + Write euro symbol directly in LaTeX (Andrew Dunning, #3801).
8592 The textcomp package allows pdfLaTeX to parse `€` directly, making the
8593 `\euro` command unneeded.
8594 + Fixed footnotes in table captions (#2378). Note that if the table has
8595 a first page header and a continuation page header, the notes will
8596 appear only on the first occurrence of the header.
8597 + In `writeBeamer` output, allow hyperlinks to frames (#3220).
8598 Previously you could link to a header above or below slide level but
8599 not *to* slide level. This commit changes that. Hypertargets are
8600 inserted inside frame titles; technically the reference is to just
8601 after the title, but in normal use (where slides are viewed full
8602 screen in a slide show), this does not matter.
8603 + Remove `\strut` at beginning of table cells (#3436). This fixes a
8604 problem with alignment of lists in table cells. The `\strut` at the
8605 end seems to be enough to avoid the too-close spacing that motivated
8606 addition of the strut in #1573.
8607 + Add partial siunitx Support (Marc Schreiber, #3588).
8611 + Refactored to use BCP47 module.
8612 + Remove unnecessary `$` (Alexander Krotov, #3482).
8613 + Use header identifiers for chapters (#3968).
8617 + `title_page.xhtml` is now put in `text/`.
8618 + Don't strip formatting in TOC (#1611).
8622 + Fix bug for certain links in table cells (#3667).
8623 + Allow 'pre' code in list item (#3916).
8627 + Added warnings for ignored material (#3392).
8628 + Better sanity checks to avoid parsing unintended things as
8629 raw HTML in the Markdown reader (#3257).
8630 + Revise treatment of `li` with `id` attribute (#3596). Previously we
8631 always added an empty div before the list item, but this created
8632 problems with spacing in tight lists. Now we do this: If the list
8633 item contents begin with a `Plain` block, we modify the `Plain`
8634 block by adding a `Span` around its contents. Otherwise, we add a
8635 `Div` around the contents of the list item (instead of adding an
8636 empty `Div` to the beginning, as before).
8637 + Add `details` tag to list of block tags (#3694).
8638 + Removed `button` from block tag list (#3717). It is already in the
8639 `eitherBlockOrInlineTag` list, and should be both places.
8640 + Use `Set`s instead of lists for block tag lookup.
8641 + Rewrote to use `Text` throughout. Effect on memory usage is modest
8643 + Use the lang value of `<html>` to set the lang meta value (bucklereed,
8645 + Ensure that paragraphs are closed properly when the parent block
8646 element closes, even without `</p>` (#3794).
8647 + Parse `<figure>` and `<figcaption>` (Mauro Bieg, #3813).
8648 + Parse `<main>` like `<div role=main>` (bucklereed, #3791).
8649 `<main>` closes `<p>` and behaves like a block element generally
8650 + Support column alignments (#1881). These can be set either
8651 with a `width` attribute or with `text-width` in a `style` attribute.
8652 + Modified state type to be an instance of `HasLogMessages`, so
8653 `registerHeader` can issue warnings.
8654 + `</td>` or `</th>` should close any open block tag (#3991).
8655 + `<td>` should close an open `<th>` or `<td>`.
8656 + `htmlTag` improvements (#3989). We previously failed on cases
8657 where an attribute contained a `>` character. This patch fixes the
8658 bug, which especially affects raw HTML in Markdown.
8662 + Newline is not indentation (Alexander Krotov).
8666 + Allow extra hyphens after `|-` in tables (#2649).
8667 + Allow blank line after table start (#2649).
8668 + Fixed more table issues (#2649).
8669 + Ensure that list starts begin at left margin (#2606). Including when
8670 they're in tables or other list items.
8671 + Make smart double quotes depend on `smart` extension (#3585).
8672 + Don't do curly quotes inside `<tt>` contexts (#3585). Even if `+smart`.
8673 + Modified state type to be an instance of `HasLogMessages`, so
8674 `registerHeader` can issue warnings.
8676 * TWiki reader (Alexander Krotov):
8678 + Remove unnecessary `$` (#3597).
8679 + Simplify `linkText` (#3605).
8683 + Minor refactoring, avoiding explicit MediaBag handling.
8684 This all works behind the scenes in CommonState plumbing.
8688 + Don't drop smartTag contents (#2242).
8689 + Handle local namespace declarations (#3365). Previously we didn't
8690 recognize math, for example, when the xmlns declaration occurred on
8691 the element and not the root.
8692 + More efficient trimSps (#1530). Replacing `trimLineBreaks`. This
8693 does the work of `normalizeSpaces` as well, so we avoid the need for
8695 + Avoid 0-level headers (Jesse Rosenthal, #3830). We used to parse
8696 paragraphs styled with "HeadingN" as "nth-level header." But if a
8697 document has a custom style named "Heading0", this will produce a
8698 0-level header, which shouldn't exist. We only parse this style
8699 if N>0. Otherwise we treat it as a normal style name, and
8700 follow its dependencies, if any.
8701 + Add tests for avoiding zero-level header (Jesse Rosenthal).
8705 + Replaced `collectRights` with Rights from `Data.Either`.
8706 + Remove dead code (Albert Krewinkel).
8708 * Org reader (Albert Krewinkel, unless noted).
8710 + Don't allow tables inside list items (John MacFarlane, #3499).
8711 + Disallow tables on list marker lines (#3499).
8712 + Convert markup at beginning of footnotes (John MacFarlane, #3576).
8713 + Allow emphasized text to be followed by `[` (#3577).
8714 + Handle line numbering switch for src blocks.
8715 The line-numbering switch that can be given to source blocks (`-n` with
8716 an start number as an optional parameter) is parsed and translated to a
8717 class/key-value combination used by highlighting and other readers and
8719 + Stop adding rundoc prefix to src params. Source block parameter names
8720 are no longer prefixed with `rundoc`. This was intended to simplify
8721 working with the rundoc project, a babel runner. However, the rundoc
8722 project is unmaintained, and adding those markers is not the reader's
8723 job anyway. The original language that is specified for a source
8724 element is now retained as the `data-org-language` attribute and only
8725 added if it differs from the translated language.
8726 + Allow multi-word arguments to src block params (#3477). The reader now
8727 correctly parses src block parameter list even if parameter arguments
8728 contain multiple words.
8729 + Avoid creating `nullMeta` by applying `setMeta` directly
8731 + Replace `sequence . map` with `mapM`.
8732 + Fix smart parsing behavior. Parsing of smart quotes and special
8733 characters can either be enabled via the `smart` language extension or
8734 the `'` and `-` export options. Smart parsing is active if either the
8735 extension or export option is enabled. Only smart parsing of special
8736 characters (like ellipses and en and em dashes) is enabled by default,
8737 while smart quotes are disabled. Previously, all smart parsing was
8738 disabled unless the language extension was enabled.
8739 + Subject full doc tree to headline transformations (Albert Krewinkel,
8740 #3695). Emacs parses org documents into a tree structure, which is
8741 then post-processed during exporting. The reader is changed to do the
8742 same, turning the document into a single tree of headlines starting
8744 + Fix cite parsing behaviour (Herwig Stuetz). Until now, `org-ref`
8745 cite keys included special characters also at the end. This caused
8746 problems when citations occur right before colons or at the end of
8747 a sentence. With this change, all non alphanumeric characters at
8748 the end of a cite key are ignored. This also adds `,` to the list
8749 of special characters that are legal in cite keys to better mirror
8750 the behaviour of org-export.
8751 + Fix module names in haddock comments. Copy-pasting had lead to
8752 haddock module descriptions containing the wrong module names.
8753 + Recognize babel result blocks with attributes (#3706). Babel
8754 result blocks can have block attributes like captions and names.
8755 Result blocks with attributes were not recognized and were parsed
8756 as normal blocks without attributes.
8757 + Include tags in headlines. The Emacs default is to include tags in the
8758 headline when exporting. Instead of just empty spans, which contain the
8759 tag name as attribute, tags are rendered as small caps and wrapped in
8760 those spans. Non-breaking spaces serve as separators for multiple tags.
8761 + Respect export option for tags (#3713). Tags are appended to
8762 headlines by default, but will be omitted when the `tags` export option
8764 + Use `tag-name` attribute instead of `data-tag-name`.
8765 + Use `org-language` attribute rather than `data-org-language`.
8766 + Modified state type to be an instance of `HasLogMessages`, so
8767 `registerHeader` can issue warnings.
8768 + End footnotes after two blank lines. Footnotes can not only be
8769 terminated by the start of a new footnote or a header, but also by two
8770 consecutive blank lines.
8771 + Update emphasis border chars (#3933). The org reader was updated to
8772 match current org-mode behavior: the set of characters which are
8773 acceptable to occur as the first or last character in an org emphasis
8774 have been changed and now allows all non-whitespace chars at the
8775 inner border of emphasized text (see `org-emphasis-regexp-components`).
8779 + Fixed small bug in list parsing (#3432). Previously the parser didn't
8780 handle properly this case:
8786 + Handle multiline cells in simple tables (#1166).
8787 + Parse list table directive (Keiichiro Shikano, #3432).
8788 + Make use of `anyLineNewline` (Alexander Krotov, #3686).
8789 + Use `anyLineNewline` in `rawListItem` (Alexander Krotov, #3702).
8790 + Reorganize block parsers for ~20% faster parsing.
8791 + Fixed `..include::` directive (#3880).
8792 + Handle blank lines correctly in line blocks (Alexander Krotov, #3881).
8793 Previously pandoc would sometimes combine two line blocks separated
8794 by blanks, and ignore trailing blank lines within the line block.
8795 + Fix indirect hyperlink targets (#512).
8799 + Allow attributes in reference links to start on next line (#3674).
8800 + Parse YAML metadata in a context that sees footnotes defined in
8801 the body of the document (#1279).
8802 + When splitting pipe table cells, skip tex math (#3481).
8803 You might have a `|` character inside math. (Or for that matter
8804 something that the parser might mistake for raw HTML.)
8805 + Treat span with class `smallcaps` as SmallCaps.
8806 This allows users to specify small caps in Markdown this way:
8807 `[my text]{.smallcaps}` (#1592).
8808 + Fixed internal header links (#2397).
8809 This patch also adds `shortcut_reference_links` to the list
8811 + Treat certain environments as inline
8812 when they occur without space surrounding them (#3309, #2171).
8813 E.g. equation, math. This avoids incorrect vertical space
8815 + Optimized `nonindentSpaces`. Makes the benchmark go from 40 to 36 ms.
8816 + Allow latex macro definitions indented 1-3 spaces.
8817 Previously they only worked if nonindented.
8818 + Improved parsing of indented raw HTML blocks (#1841).
8819 Previously we inadvertently interpreted indented HTML as
8820 code blocks. This was a regression. We now seek to determine the
8821 indentation level of the contents of an HTML block, and (optionally)
8822 skip that much indentation. As a side effect, indentation may be
8823 stripped off of raw HTML blocks, if `markdown_in_html_blocks` is
8824 used. This is better than having things interpreted as indented
8826 + Fixed smart quotes after emphasis (#2228). E.g. in `*foo*'s 'foo'`.
8827 + Warn for notes defined but not used (#1718).
8828 + Use `anyLineNewline` (Alexander Krotov).
8829 + Interpret YAML metadata as Inlines when possible (#3755). If
8830 the metadata field is all on one line, we try to interpret it as
8831 Inlines, and only try parsing as Blocks if that fails. If it
8832 extends over one line (including possibly the `|` or `>` character
8833 signaling an indented block), then we parse as Blocks. This was
8834 motivated by some German users finding that `date: '22. Juin 2017'`
8835 got parsed as an ordered list.
8836 + Fixed spurious parsing as citation as reference def (#3840).
8837 We now disallow reference keys starting with `@` if the
8838 `citations` extension is enabled.
8839 + Parse `-@roe` as suppress-author citation (pandoc-citeproc#237).
8840 Previously only `[-@roe]` (with brackets) was recognized as
8841 suppress-author, and `-@roe` was treated the same as `@roe`.
8842 + Fixed parsing of fenced code after list when there is no intervening
8844 + Allow raw latex commands starting with `\start` (#3558). Previously
8845 these weren't allowed because they were interpreted as starting
8846 ConTeXt environments, even without a corresponding `\stop`...
8847 + Added `inlines`, `inlines1`.
8848 + Require nonempty alt text for `implicit_figures` (#2844).
8849 A figure with an empty caption doesn't make sense.
8850 + Removed texmath macro material; now all this is handled
8851 in the LaTeX reader functions.
8852 + Fixed bug with indented code following raw LaTeX (#3947).
8856 + Rewrote LaTeX reader with proper tokenization (#1390,
8857 #2118, #3236, #3779, #934, #982). This rewrite is primarily
8858 motivated by the need to get macros working properly. A side benefit
8859 is that the reader is significantly faster. We now tokenize the
8860 input text, then parse the token stream. Macros modify the token
8861 stream, so they should now be effective in any context, including
8862 math. Thus, we no longer need the clunky macro processing
8863 capacities of texmath.
8864 + Parse `\,` to `\8198` (six-per-em space) (Henri Werth).
8865 + Allow `\newcommand\foo{blah}` without braces.
8866 + Support `\lstinputlisting` (#2116).
8867 + Issue warnings when skipping unknown latex commands (#3392).
8868 + Include contents of `\parbox`.
8869 + Allow `\hspace` and `\vspace` to count as raw block or inline.
8870 Previously we would refuse to parse anything as raw inline if
8871 it was in the `blockCommands` list. Now we allow exceptions
8872 if they're listed under ignoreInlines in inlineCommands.
8873 This should make it easier e.g. to include an `\hspace`
8874 between two side-by-side raw LaTeX tables.
8875 + Don't drop contents of `\hypertarget`.
8876 + Handle spaces before `\cite` arguments.
8877 + Allow newpage, clearpage, pagebreak in inline contexts as well as
8878 block contexts (#3494).
8879 + Treat `{{xxx}}` the same as `{xxx}` (#2115).
8880 + Use `pMacroDefinition` in macro (for more direct parsing).
8881 Note that this means that `macro` will now parse one
8882 macro at a time, rather than parsing a whole group together.
8883 + Fixed failures on `\ref{}`, `\label{}` with `+raw_tex`. Now these
8884 commands are parsed as raw if `+raw_tex`; otherwise, their argument
8885 is parsed as a bracketed string.
8886 + Don't crash on empty `enumerate` environment (#3707).
8887 + Handle escaped `&` inside table cell (#3708).
8888 + Handle block structure inside table cells (#3709). `minipage` is no
8890 + Handle some width specifiers on table columns (#3709). Currently
8891 we only handle the form `0.9\linewidth`. Anything else would have
8892 to be converted to a percentage, using some kind arbitrary assumptions
8894 + Make sure `\write18` is parsed as raw LaTeX. The change is in the
8895 LaTeX reader's treatment of raw commands, but it also affects the
8897 + Fixed regression with starred environment names (#3803).
8898 + Handle optional args in raw `\titleformat` (#3804).
8899 + Improved heuristic for raw block/inline. An unknown command at the
8900 beginning of the line that could be either block or inline is
8901 treated as block if we have a sequence of block commands followed by
8902 a newline or a `\startXXX` command (which might start a raw ConTeXt
8904 + Don't remove macro definitions from the output, even if
8905 `Ext_latex_macros` is set, so that macros will be applied.
8906 Since they're only applied to math in Markdown, removing the macros
8907 can have bad effects. Even for math macros, keeping them should be
8909 + Removed `macro`. It is no longer necessary, since the
8910 `rawLaTeXBlock` parser will parse macro definitions. This also avoids
8911 the need for a separate `latexMacro` parser in the Markdown reader.
8912 + Use `label` instead of `data-label` for label in caption (#3639).
8913 + Fixed space after `\figurename` etc.
8914 + Resolve references to section numbers.
8915 + Fix `\let\a=0` case, with single character token.
8916 + Allow `@` as a letter in control sequences. `@` is commonly used
8917 in macros using `\makeatletter`. Ideally we'd make the tokenizer
8918 sensitive to `\makeatletter` and `\makeatother`, but until then this
8919 seems a good change.
8920 + Track header numbers and correlate with labels.
8921 + Allow `]` inside group in option brackets (#3857).
8922 + lstinline with braces can be used (verb cannot be used with braces)
8923 (Marc Schreiber, #3535).
8924 + Fix keyval function: pandoc did not parse options in braces correctly
8925 (Marc Schreiber, #3642).
8926 + When parsing raw LaTeX commands, include trailing space (#1773).
8927 Otherwise things like `\noindent foo` break and turn into
8928 `\noindentfoo`. Affects `-f latex+raw_tex` and `-f markdown` (and other
8929 formats that allow `raw_tex`).
8930 + Don't treat "..." as Quoted (#3958). This caused quotes to be omitted in
8932 + Add tests for existing `\includegraphics` behaviour (Ben Firshman).
8933 + Allow space before `=` in bracketd options (Ben Firshman).
8934 + Be more forgiving in parsing command options. This was needed, for
8935 example, to make some minted options work.
8936 + Strip off quotes in `\include` filenames.
8938 * Added `Text.Pandoc.CSV`, simple (unexported) CSV parser.
8940 * `Text.Pandoc.PDF`:
8942 + Got `--resource-path` working with PDF output (#852).
8943 + Fetch images when generating PDF via context (#3380).
8944 To do this, we create the temp directory as a subdirectory
8945 of the working directory. Since context mk IV by default looks
8946 for images in the parent directory, this works.
8947 + Use `report` instead of `warn`, make it sensitive to verbosity settings.
8948 + Use `fillMediaBag` and `extractMedia` to extract media to temp dir.
8949 This reduces code duplication.
8950 + `html2pdf`: use stdin instead of intermediate HTML file
8951 + Removed useless `TEXINPUTS` stuff for `context2pdf`. mkiv context
8952 doesn't use `TEXINPUTS`.
8954 * `Text.Pandoc.Pretty`:
8956 + Simplified definition of `realLength`.
8957 + Don't error for blocks of size < 1. Instead, resize to 1 (see #1785).
8959 * `Text.Pandoc.MIME`:
8961 + Use `application/javascript` (not `application/x-javascript`).
8962 + Added `emf` to mimeTypes with type `application/x-msmetafile` (#1713).
8964 * `Text.Pandoc.ImageSize`:
8966 + Improve SVG image size code (Marc Schreiber, #3580).
8967 + Make `imageSize` recognize basic SVG dimensions (Mauro Bieg, #3462).
8969 * Use `Control.Monad.State.Strict` throughout. This gives 20-30% speedup
8970 and reduction of memory usage in most of the writers.
8972 * Use `foldrWithKey` instead of deprecated `foldWithKey`.
8974 * `Text.Pandoc.SelfContained`:
8976 + Fixed problem with embedded fonts (#3629).
8977 + Refactored getData from `getDataURI` in `SelfContained`.
8978 + Don't use data URIs for script or style (#3423). Instead, just use
8979 script or style tags with the content inside. The old method with
8980 data URIs prevents certain optimizations outside pandoc. Exception:
8981 data URIs are still used when a script contains `</script>` or a
8982 style contains `</`.
8983 + SelfContained: Handle URL inside material retrieved from a URL
8984 (#3629). This can happen e.g. with an @import of a google web font.
8985 (What is imported is some CSS which contains an url reference
8986 to the font itself.) Also, allow unescaped pipe (|) in URL.
8987 + Load resources from `data-src` (needed for lazy loading in
8988 reveal.js slide shows).
8989 + Handle `data-background-image` attribute on section (#3979).
8991 * `Text.Pandoc.Parsing`:
8993 + Added `indentWith` (Alexander Krotov, #3687).
8994 + Added `stateCitations` to `ParserState`.
8995 + Removed `stateChapters` from `ParserState`.
8996 + In `ParserState`, make `stateNotes'` a Map, add `stateNoteRefs`.
8997 + Added `gobbleSpaces` and `gobbleAtMostSpaces`.
8998 + Adjusted type of `insertIncludedFile` so it can be used with token
9000 + Replace old texmath macro stuff from Parsing. Use Macro from
9001 Text.Pandoc.Readers.LaTeX.Types instead.
9002 + Export `insertIncludedFile`.
9003 + Added `HasLogMessages`, `logMessage`, `reportLogMessages` (#3447).
9004 + Replace partial with total function (Albert Krewinkel).
9005 + Introduce `HasIncludeFiles` type class (Albert Krewinkel). The
9006 `insertIncludeFile` function is generalized to work with all parser
9007 states which are instances of that class.
9008 + Add `insertIncludedFilesF` which returns F blocks (Albert Krewinkel).
9009 The `insertIncludeFiles` function was generalized and renamed
9010 to `insertIncludedFiles'`; the specialized versions are based on that.
9011 + `many1Till`: Check for the end condition before parsing (Herwig
9012 Stuetz). By not checking for the end condition before the first
9013 parse, the parser was applied too often, consuming too much of the
9014 input. This only affects `many1Till p end` where `p` matches on a
9016 + Provide `parseFromString` (#3690). This is a version of
9017 `parseFromString` specialied to ParserState, which resets
9018 `stateLastStrPos` at the end. This is almost always what we want.
9019 This fixes a bug where `_hi_` wasn't treated as emphasis in the
9020 following, because pandoc got confused about the position of the
9021 last word: `- [o] _hi_`.
9022 + Added `takeP`, `takeWhileP` for efficient parsing of `[Char]`.
9023 + Fix `blanklines` documentation (Alexander Krotov, #3843).
9024 + Give less misleading line information with `parseWithString`.
9025 Previously positions would be reported past the end of the chunk.
9026 We now reset the source position within the chunk and report
9027 positions "in chunk."
9028 + Add `anyLineNewline` (Alexander Krotov).
9029 + Provide shared F monad functions for Markdown and Org readers
9030 (Albert Krewinkel). The `F` monads used for delayed evaluation
9031 of certain values in the Markdown and Org readers are based on a
9032 shared data type capturing the common pattern of both `F` types.
9033 + Add `returnF` (Alexander Krotov).
9034 + Avoid parsing `Notes:**` as a bare URI (#3570). This avoids parsing
9035 bare URIs that start with a scheme + colon + `*`, `_`, or `]`.
9036 + Added `readerAbbreviations` to `ParserState`. Markdown reader
9037 now consults this to determine what is an abbreviation.
9038 + Combine grid table parsers (Albert Krewinkel, #3638). The grid table
9039 parsers for markdown and rst was combined into one single
9040 parser `gridTable`, slightly changing parsing behavior of both
9041 parsers: (1) The markdown parser now compactifies block content
9042 cell-wise: pure text blocks in cells are now treated as paragraphs
9043 only if the cell contains multiple paragraphs, and as plain blocks
9044 otherwise. Before, this was true only for single-column tables. (2)
9045 The rst parser now accepts newlines and multiple blocks in header
9047 + Generalize tableWith, gridTableWith (Albert Krewinkel).
9048 The parsing functions `tableWith` and `gridTableWith` are generalized
9049 to work with more parsers. The parser state only has to be an
9050 instance of the `HasOptions` class instead of requiring a concrete
9051 type. Block parsers are required to return blocks wrapped into a
9052 monad, as this makes it possible to use parsers returning results
9053 wrapped in `Future`s.
9055 * `Text.Pandoc.Shared`:
9057 + Simplify `toRomanNumeral` using guards (Alexander Krotov, #3445)
9058 + `stringify`: handle Quoted better (#3958). Previously we were losing
9059 the quotation marks in Quoted elements.
9061 * `Text.Pandoc.Writers.Shared`:
9063 + Export `metaToJSON'`, `addVariablesToJSON` (#3439).
9064 This allows us to add the variables AFTER using the metadata
9065 to generate a YAML header (in the Markdown writer).
9066 + Added `unsmartify` (previously in RST writer).
9067 Undo literal double curly quotes. Previously we left these.
9068 + Generalize type of `metaToJSON` so it can take a Text. Previously a
9069 String was needed as argument; now any ToJSON instance will do.
9070 + Added `gridTable` (previously in Markdown writer).
9071 + `gridTable`: Refactored to use widths in chars.
9072 + `gridTable`: remove unnecessary extra space in cells.
9073 + Fixed `addVariablesToJSON`. It was previously not allowing multiple
9074 values to become lists.
9075 + Pipe tables: impose minimum cell size (see #3526).
9078### Default template changes
9080 * HTML templates (including EPUB and HTML slide show templates):
9082 + Make default.html5 polyglot markup conformant (John Luke Bentley,
9083 #3473). Polyglot markup is HTML5 that is also valid XHTML. See
9084 <https://www.w3.org/TR/html-polyglot>. With this change, pandoc's
9085 html5 writer creates HTML that is both valid HTML5 and valid XHTML.
9086 + Regularized CSS in html/epub/html slide templates (#3485).
9087 All templates now include `code{white-space: pre-wrap}`
9088 and CSS for `q` if `--html-q-tags` is used. Previously some templates
9089 had `pre` and others `pre-wrap`; the `q` styles were only sometimes
9091 + CSS for `.smallcaps`, (Mauro Bieg, #1592)
9092 + `default.revealjs`: make `history` default to true.
9093 + `default.revealjs`: use lazy loading (#2283).
9094 + `default.revealjs`: add `mathjax` variable and some conditional code
9095 to use the MathJaX plugin.
9096 + `default.slidy` uses `https` instead of `http` (ickc, #3848).
9097 + `default.dzslides`: Load Google Font using HTTPS by default
9100 * DocBook5 template: Use `lang` and `subtitle` variables (Jens Getreu,
9103 * LaTeX/Beamer template:
9105 + Combine LaTeX/Beamer templates (Andrew Dunning, #3878).
9106 `default.beamer` has been removed; beamer now uses the
9107 `default.latex` template. Beamer-specific parts are conditional
9108 on the `beamer` variable set by the writer. Note that
9109 `pandoc -D beamer` will return this (combined) template.
9110 + Use `xcolor` for `colorlinks` option (Andrew Dunning, #3877).
9111 Beamer loads `xcolor` rather than `color`, and thus the
9112 `dvipsnames` option doesn't take effect. This also provides a wider
9113 range of colour selections with the `svgnames` option.
9114 + Use starred versions of `xcolor` names (Andrew Dunning).
9115 Prevents changes to documents defined using the `dvipsnames` list (e.g.
9116 `Blue` gives a different result with svgnames enabled).
9117 + Load `polyglossia` after header-includes (#3898). It needs to be
9118 loaded as late as possible.
9119 + Use `unicode-math` (Vaclav Haisman). Use `mathspec` with only
9121 + Don't load `fontspec` before `unicode-math` (over there).
9122 The `unicode-math` package loads `fontspec` so explicit loading of
9123 `fontspec` before `unicode-math` is not necessary.
9124 + Use `unicode-math` by default in default.latex template. mathspec will
9125 be used in xelatex if the `mathspec` variable is set; otherwise
9126 unicode-math will be used (Václav Haisman).
9127 + Use `dvipsnames` options when `colorlinks` specified (otherwise
9128 we get an error for `maroon`) (Thomas Hodgson).
9129 + Added beamer `titlegraphic` and `logo` variables (Thomas Hodgson).
9130 + Fix typo in fix for notes in tables (#2378, zeeMonkeez).
9131 + Fix `hyperref` options clash (Andrew Dunning, #3847) Avoids an options
9132 clash when loading a package (e.g. `tufte-latex`) that uses
9133 `hyperref` settings different from those in the template.
9134 + Add `natbiboptions` variable (#3768).
9135 + Fix links inside captions in LaTeX output with links-as-notes
9136 (Václav Haisman, #3651). Declare our redefined `\href` robust.
9137 + Load `parskip` before `hyperref` (Václav Haisman, #3654).
9138 + Allow setting Japanese fonts when using LuaLaTeX (Václav Haisman,
9139 #3873). by using the `luatexja-fontspec` and `luatexja-preset`
9140 packages. Use existing `CJKmainfont` and `CJKoptions` template
9141 variables. Add `luatexjafontspecoptions` for `luatexja-fontspec`
9142 and `luatexjapresetoptions` for `luatexja-preset`.
9143 + Added `aspectratio` variable to beamer template (Václav Haisman,
9145 + Modified template.latex to fix XeLaTex being used with tables
9146 (lwolfsonkin, #3661). Reordered `lang` variable handling to
9147 immediately before `bidi`.
9149 * ConTeXt template: Improved font handling: `simplefonts` is now
9150 obsolete in ConTeXt (Pablo Rodríguez).
9153### Documentation improvements
9157 + Add URL for Prince HTML > PDF engine (Ian, #3919).
9158 + Document that content above slide-level will be omitted in
9159 slide shows. See #3460, #2265.
9160 + Explain `--webtex` SVG url (Mauro Bieg, #3471)
9161 + Small clarification in YAML metadata section.
9162 + Document that html4 is technically XHTML 1.0 transitional.
9163 + Remove refs to highlighting-kate (#3672).
9164 + Document ibooks specific epub metadata.
9165 + Clarify that mathml is used for ODT math.
9166 + Mention limitations of Literate Haskell Support (#3410,
9168 + Add documentation of limitations of grid tables (Stephen
9170 + Clarify that meta-json contains transformed values (Jakob Voß,
9171 #3491) Make clear that template variable `meta-json` does not
9172 contain plain text values or JSON output format but field values
9173 transformed to the selected output format.
9177 + Clarify that templates are dual-licensed.
9178 + Clarify that pandoc-types is BSD3 licensed.
9179 + List new files not written by jgm (Albert Krewinkel).
9180 + Update dates in copyright notices (Albert Krewinkel). This follows
9181 the suggestions given by the FSF for GPL licensed software.
9182 <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
9186 + Improved instructions for tests with patterns.
9187 + Put RPM-based distros on separate point (Mauro Bieg, #3449)
9191 + Fixed typos (Wandmalfarbe, #3479).
9192 + Add "ask on pandoc-discuss" (Mauro Bieg).
9194 * Add lua filter documentation in `doc/lua-filters.md`. Note that the
9195 end of this document is autogenerated from `data/pandoc.lua`
9196 using `make doc/lua-filters.md`, which uses `tools/ldoc.ltp`
9199 * Add `doc/filters.md`. This is the old scripting tutorial from
9202 * Add `doc/using-the-pandoc-api.md` (#3289). This gives an introduction
9203 to using pandoc as a Haskell library.
9206### Build infrastructure improvements
9208 * Removed `data/templates` submodule. Templates are now a subtree
9209 in `data/templates`. This removes the need to do `git submodule
9212 * Renamed `tests` -> `test`.
9214 * Remove `https` flag. Always build with HTTPS support.
9216 * Use `file-embed` instead of `hsb2hs` to embed data files when
9217 `embed_data_files` flag is set. `file-embed` gives us better dependency
9218 tracking: if a data file changes, ghc/stack/cabal know to recompile
9219 the Data module. This also removes `hsb2hs` as a build dependency.
9221 * Add `custom-setup` stanza to pandoc, lowercase field names.
9223 * Add `static` Cabal flag.
9225 * Name change OSX -> MacOS. Add a -MacOS suffix to mac package rather
9226 than -OSX. Changed local names from osx to macos.
9228 * make_macos_package.sh - Use strip to reduce executable size.
9230 * Revised binary linux package. Now a completely static executable
9231 is created, using Docker and alpine. We create both a deb and a
9232 tarball. The old `deb` directory has been replaced with a `linux`
9233 directory. Running `make` in the `linux` directory should
9234 perform the build, putting the binary packages in `artifacts/`.
9236 * `linux/control.in`: add `Replaces:`, so existing pandoc-citeproc and
9237 pandoc-data packages will be uninstalled; this package provides
9238 both (#3822). Add latex packages as 'suggested', update
9241 * Remove cpphs build requirement -- it is no longer needed.
9243 * Replaced `{deb,macos,windows}/stack.yaml` with `stack.pkg.yaml`.
9245 * Name change OSX -> macOS (ickc, #3869).
9247 * Fix casing of Linux, UNIX, and Windows (ickc).
9249 * `.travis.yml`: create a source dist and do cabal build and test there.
9250 That way we catch errors due to files missing from the data
9251 section of pandoc.cabal.
9255 + Split `make haddock` from `make full`.
9256 + Add BRANCH variable for winpkg.
9257 + Add `lint` target.
9258 + Improve `make full`. Disable optimizations.
9259 Build everything, inc. trypandoc and benchmarks. Use parallel build.
9260 + Allow `make test` to take `TESTARGS`.
9262 * Added new command tests (`Tests.Command`), using small text files
9263 in `test/command/`. Any files added in this directory will be treated
9264 as shell tests (see smart.md for an example). This makes it very easy
9265 to add regression tests etc.
9267 * Test fixes so we can find data files. In old tests & command tests,
9268 we now set the environment variable `pandoc_datadir`. In lua tests,
9269 we set the datadir explicitly.
9271 * Refactored `compareOutput` in docx writer test.
9273 * Consolidated some common functions in `Tests.Helper`.
9275 * Small change to unbalanced bracket test to speed up test suite.
9277 * Speed up Native writer quickcheck tests.
9279 * Use tasty for tests rather than test-framework.
9281 * Add simple Emacs mode to help with Pandoc templates editing.
9282 (Václav Haisman, #3889). `tools/pandoc-template-mode.el`
9285## pandoc 1.19.2.4 (2017-09-10)
9287 * Add dependencies on texmath and skylighting to the executable.
9288 This is needed for dependency version numbers to be available,
9291## pandoc 1.19.2.3 (2017-09-09)
9293 * Add CPP to Setup.hs so it works with Cabal >= 2 and < 2.
9295## pandoc 1.19.2.2 (2017-09-08)
9297 * Fix build with GHC 8.2.1 (#3876, Peter Simons). Setup.hs does not
9298 compile with Cabal 2.x, so we require an earlier version via
9299 setup-depends. The following packages need newer versions with
9300 GHC 8.2.1 and had their constraints relaxed accordingly:
9301 executable-path, process, syb, and time.
9303## pandoc 1.19.2.1 (2017-01-31)
9305 * Require skylighting >= 0.1.1.4.
9306 * Adjust test output for skylighting version.
9307 * Relax upper bounds on blaze-html and blaze-markup.
9309## pandoc 1.19.2 (2017-01-29)
9311 * Use skylighting library instead of highlighting-kate for syntax
9312 highlighting. Skylighting is faster and more accurate (#3363).
9313 Later we'll be able to add features like warning messages, dynamic
9314 loading of xml syntax definitions, and dynamic loading of themes.
9316 * Added a new highlight style, `breezeDark`.
9318 * Text.Pandoc.Highlighting: Update list of `listings` languages (#3374).
9319 This allows more languages to be used when using the `--listings`
9322 * OpenDocument writer:
9324 + Small refactoring. Removed separate 'parent' parameter in paraStyle.
9325 + Don't profilerate text styles unnecessarily (#3371).
9326 This change makes the writer create only as many temporary
9327 text styles as are absolutely necessary. It also consolidates
9328 adjacent nodes with the same style.
9330 * Org reader (Albert Krewinkel):
9332 + Allow short hand for single-line raw blocks (Albert Krewinkel,
9333 #3366). Single-line raw blocks can be given via `#+FORMAT: raw line`,
9334 where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
9335 + Accept org-ref citations followed by commas (Albert Krewinkel).
9336 Bugfix for an issue which, whenever the citation was immediately
9337 followed by a comma, prevented correct parsing of org-ref citations.
9338 + Ensure emphasis markup can be nested. Nested emphasis markup (e.g.
9339 `/*strong and emphasized*/`) was interpreted incorrectly in that the
9340 inner markup was not recognized.
9341 + Remove pipe char irking the haddock coverage tool (Albert Krewinkel).
9343 * Docx reader: Empty header should be list of lists (Jesse Rosenthal).
9344 In the past, the docx reader wrote an empty header as an empty list. It
9345 should have the same width as a row (and be filled with empty cells).
9349 + Improved handling of display math (#3362). Sometimes display math is
9350 indented with more than one colon. Previously we handled these cases
9351 badly, generating definition lists and missing the math.
9352 + Fix quotation mark parsing (#3336, tgkokk). Change MediaWiki reader's
9353 behavior when the smart option is parsed to match other readers'
9358 + Fixed `-f markdown_github-hard_line_breaks+escaped_line_breaks`
9359 (#3341). Previously this did not properly enable escaped line breaks.
9360 + Disallow space between inline code and attributes (#3326, #3323,
9363 * DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330, Mauro Bieg).
9365 * Added some test cases for ODT reader (#3306, #3308, Hubert Plociniczak).
9367 * LaTeX writer: allow tables with empty cells to count as "plain."
9368 This addresses a problem of too-wide tables when empty cells
9369 are used. Thanks to Joost Kremers for reporting the issue.
9371 * Org writer: prefix footnote numbers with `fn:` (Albert Krewinkel).
9372 Unprefixed numbers where used by older org-mode versions, but are no
9375 * HTML writer: don't process pars with empty RawInline, (#1040, #3327,
9378 * Markdown writer: Fix display math with `--webtex` (#3298).
9380 * Fix sample.lua so it properly handles raw blocks/inlines (#3358,
9385 + default.latex: Moved geometry after hyperref (Václav Haisman).
9386 Otherwise PDF sizes can be wrong in some circumstances.
9387 + Copied a few changes from default.latex to default.beamer
9389 + default.latex, default.beamer: Changed position of `\VerbatimNotes`
9390 and `fancyvrb`. This fixes hyperlinks on footnotes in documents
9391 that contain verbatim in notes (#3361). (Note: the beamer template
9392 was updated to match the LaTeX template, but at this point verbatim
9393 in notes seems not to work in beamer.)
9394 + default.latex: Allow passing `microtypeoptions` to microtype
9396 + default.latex: Add hyphen option to url package.
9397 + default.docbook5: Fix namespace declarations (Mauro Bieg).
9399 * Moved `make_osx_package.sh` to `osx/` directory.
9401 * Travis continuous integration:
9403 + Fix false positives with dist build.
9404 + Speed improvements (Kolen Cheung, #3304, #3357).
9408 + Clarify that blank space is needed around footnotes (#3352).
9409 + Fixed typo (#3351, Alexey Rogechev).
9410 + Note that `--wrap=auto` does not work in HTML output.
9411 + Default `--columns` width is 72, not 80.
9412 + Fixed broken links (#3316, Kolen Cheung).
9413 + Document usage of `@*` in nocite section (#3333, John Muccigrosso).
9417 + Indent code so it's properly formatted (#3335, Bheesham Persaud).
9418 + Added instructions for extracting binary from OSX, Windows packages.
9420 * CONTRIBUTING.md: Describe labels currently used in issue tracker
9421 (Albert Krewinkel). The labels have changed over time, the list of
9422 labels is updated to reflect the current set of labels used in the
9425 * Rearrange and extend badges in README (Albert Krewinkel, #3354)
9427 * Bumped version bounds for dependencies.
9430## pandoc 1.19.1 (2016-12-10)
9432 * Set `PANDOC_VERSION` environment variable for filters (#2640).
9433 This allows filters to check the pandoc version that produced
9434 the JSON they are receiving.
9436 * Docx reader: Ensure one-row tables don't have header (#3285,
9437 Jesse Rosenthal). Tables in MS Word are set by default to have
9438 special first-row formatting, which pandoc uses to determine whether
9439 or not they have a header. This means that one-row tables will, by
9440 default, have only a header -- which we imagine is not what people
9441 want. This change ensures that a one-row table is not understood to
9442 be a header only. Note that this means that it is impossible to
9443 produce a header-only table from docx, even though it is legal
9444 pandoc. But we believe that in nearly all cases, it will be an
9445 accidental (and unwelcome) result
9449 + Fixed some bad regressions in HTML table parser (#3280).
9450 This regression leads to the introduction of empty rows
9451 in some circumstances.
9452 + Understand `style=width:` as well as `width` in `col` (#3286).
9456 + Print warnings when keys, substitition, notes not found.
9457 Previously the parsers failed and we got raw text. Now we get a
9458 link with an empty URL, or empty inlines in the case of a note or
9461 + Fix hyperlink aliases (#3283).
9463 * Man writer: Ensure that periods are escaped at beginning of line
9466 * LaTeX writer: Fix unnumbered headers when used with `--top-level`
9467 (#3272, Albert Krewinkel). Fix interaction of top-level
9468 divisions `part` or `chapter` with unnumbered headers when
9469 emitting LaTeX. Headers are ensured to be written using
9470 stared commands (like `\subsection*{}`).
9472 * LaTeX template: use comma not semicolon to separate keywords for
9473 `pdfkeywords`. Thanks to Wandmalfarbe.
9475 * Markdown writer: Fixed incorrect word wrapping (#3277).
9476 Previously pandoc would sometimes wrap lines too early due to
9479 * Text.Pandoc.Pretty: Added `afterBreak` [API change]. This makes it
9480 possible to insert escape codes for content that needs escaping at the
9481 beginning of a line.
9483 * Removed old MathMLInHTML.js from 2004, which should no longer
9484 be needed for MathML with modern browsers.
9486 * Fixed tests with dynamic linking (#2709).
9488 * Makefile: Use stack instead of cabal for targets. This is just
9489 a convenience for developers.
9491 * Fixed bash completion of filenames with space (#2749).
9493 * MANUAL: improved documentation on how to create a custom
9496 * Fix minor spelling typos in the manual (#3273, Anthony Geoghegan)
9498## pandoc 1.19 (2016-12-01)
9500 * Changed resolution of filter paths.
9502 + We now first treat the argument of `--filter` as a full (absolute
9503 or relative) path, looking for a program there. If it's found, we
9505 + If not, and if it is a simple program name or a relative path, we
9506 try resolving it relative to `$DATADIR/filters`.
9507 + If this fails, then we treat it as a program name and look in the
9509 + Removed a hardcoded '/' that may have caused problems with
9512 Previously if you did `--filter foo` and you had `foo` in your path and
9513 also an executable `foo` in your working directory, the one in the path
9514 would be used. Now the one in the working directory is used.
9516 In addition, when you do `--filter foo/bar.hs`, pandoc will now find a
9517 filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a
9518 `foo/bar.hs` relative to the working directory.
9520 * Allow `file://` URIs as arguments (#3196). Also improved default reader
9521 format detection. Previously with a URI ending in .md or .markdown,
9522 pandoc would assume HTML input. Now it treats these as markdown.
9524 * Allow to overwrite top-level division type heuristics (#3258,
9525 Albert Krewinkel). Pandoc uses heuristics to determine the most
9526 reasonable top-level division type when emitting LaTeX or
9527 Docbook markup. It is now possible to overwrite this implicitly set
9528 top-level division via the `top-level-division` command line parameter.
9530 * Text.Pandoc.Options \[API changes\]:
9532 + Removed `writerStandalone` field in `WriterOptions`, made
9533 `writerTemplate` a `Maybe` value. Previously setting
9534 `writerStandalone = True` did nothing unless a template was provided
9535 in writerTemplate. Now a fragment will be generated if
9536 `writerTemplate` is `Nothing`; otherwise, the specified template
9537 will be used and standalone output generated.
9538 + `Division` has been renamed `TopLevelDivision` (#3197). The
9539 `Section`, `Chapter`, and `Part` constructors were renamed to
9540 `TopLevelSection`, `TopLevelChapter`, and
9541 `TopLevelPart`, respectively. An additional `TopLevelDefault`
9542 constructor was added, which is now also the new default value of
9543 the `writerTopLevelDivision` field in `WriterOptions`.
9545 * Improved error if they give wrong arg to `--top-level-division`.
9547 * Use new module from texmath to lookup MS font codepoints in Docx reader.
9548 Removed unexported module Text.Pandoc.Readers.Docx.Fonts. Its code now
9549 lives in texmath (0.9).
9551 * DocBook reader: Fixed xref lookup (#3243). It previously only worked
9552 when the qnames lacked the docbook namespace URI.
9556 + Improved table parsing (#3027). We now check explicitly for non-1
9557 rowspan or colspan attributes, and fail when we encounter them.
9558 Previously we checked that each row had the same number of cells,
9559 but that could be true even with rowspans/colspans. And there are
9560 cases where it isn't true in tables that we can handle fine -- e.g.
9561 when a tr element is empty. So now we just pad rows with empty cells
9563 + Treat `<math>` as MathML by default unless something else is
9564 explicitly specified in xmlns. Provided it parses as MathML,
9565 of course. Also fixed default which should be to inline math if no
9566 display attribute is used.
9567 + Only treat "a" element as link if it has href (#3226). Otherwise
9570 * Docx reader (Jesse Rosenthal):
9572 + Add a placeholder value for CHART. We wrap `[CHART]` in a
9573 `<span class="chart">`. Note that it maps to inlines because, in
9574 docx, anything in a drawing tag can be part of a larger paragraph.
9575 + Be more specific in parsing images We not only want `w:drawing`,
9576 because that could also include charts. Now we specify
9577 `w:drawing/pic:pic`. This shouldn't change behavior at all, but it's
9578 a first step toward allowing other sorts of drawing data as well.
9579 + Abstract out function to avoid code repetition.
9580 + Update tests for img title and alt (#3204).
9581 + Handle Alt text and titles in images. We use the "description" field
9582 as alt text and the "title" field as title. These can be accessed
9583 through the "Format Picture" dialog in Word.
9584 + Docx reader utils: handle empty namespace in `elemName`. Previously,
9585 if given an empty namespace `(elemName ns "" "foo")` `elemName`
9586 would output a QName with a `Just ""` namespace. This is never what
9587 we want. Now we output a `Nothing`. If someone *does* want a
9588 `Just ""` in the namespace, they can enter the QName
9591 * ODT reader/writer:
9593 + Inline code when text has a special style (Hubert Plociniczak). When
9594 a piece of text has a text `Source_Text` then we assume that this is
9595 a piece of the document that represents a code that needs to
9596 be inlined. Adapted the writer to also reflect that change.
9597 Previously it was just writing a 'preformatted' text using a
9598 non-distinguishable font style. Code blocks are still not recognized
9599 by the ODT reader. That's a separate issue.
9600 + Infer table's caption from the paragraph (#3224,
9601 Hubert Plociniczak). ODT's reader always put empty captions for the
9602 parsed tables. This commit
9604 1. checks paragraphs that follow the table definition
9605 2. treats specially a paragraph with a style named 'Table'
9606 3. does some postprocessing of the paragraphs that combines tables
9607 followed immediately by captions
9609 The ODT writer used the `TableCaption` style for the caption
9610 paragraph. This commit follows the OpenOffice approach which allows
9611 for appending captions to table but uses a built-in style named
9612 `Table` instead of `TableCaption`. Users of a custom `reference.odt`
9613 should change the style's name from `TableCaption` to `Table`.
9615 * ODT reader: Infer tables' header props from rows (#3199,
9616 Hubert Plociniczak). ODT reader simply provided an empty header list
9617 which meant that the contents of the whole table, even if not empty, was
9618 simply ignored. While we still do not infer headers we at least have to
9619 provide default properties of columns.
9623 + Allow reference link labels starting with `@...` if `citations`
9624 extension disabled (#3209). Example: in
9628 `link text` isn't hyperlinked because `[@a]` is parsed as
9629 a citation. Previously this happened whether or not the `citations`
9630 extension was enabled. Now it happens only if the `citations`
9631 extension is enabled.
9632 + Allow alignments to be specified in Markdown grid tables. For
9635 +-------+---------------+--------------------+
9636 | Right | Left | Centered |
9637 +=========:+:=================+:=============:+
9638 | Bananas | $1.34 | built-in wrapper |
9639 +-------+---------------+--------------------+
9641 + Allow Small Caps elements to be created using bracketed spans (as
9642 they already can be using HTML-syntax spans) (#3191, Kolen Cheung).
9646 + Don't treat `\vspace` and `\hspace` as block commands (#3256).
9647 Fixed an error which came up, for example, with `\vspace` inside
9648 a caption. (Captions expect inlines.)
9649 + Improved table handling. We can now parse all of the tables emitted
9650 by pandoc in our tests. The only thing we don't get yet are
9651 alignments and column widths in more complex tables. See #2669.
9652 + Limited support for minipage.
9653 + Allow for `[]`s inside LaTeX optional args. Fixes cases like:
9654 + Handle BVerbatim from fancyvrb (#3203).
9655 + Handle hungarumlaut (#3201).
9656 + Allow beamer-style `<...>` options in raw LaTeX (also in Markdown)
9657 (#3184). This allows use of things like `\only<2,3>{my content}` in
9658 Markdown that is going to be converted to beamer.
9660 * Use pre-wrap for code in dzslides template (Nicolas Porcel). Otherwise
9661 overly long code will appear on every slide.
9663 * Org reader (Albert Krewinkel):
9665 + Respect column width settings (#3246). Table column properties can
9666 optionally specify a column's width with which it is displayed in
9667 the buffer. Some exporters, notably the ODT exporter in org-mode
9668 v9.0, use these values to calculate relative column widths. The org
9669 reader now implements the same behavior. Note that the org-mode
9670 LaTeX and HTML exporters in Emacs don't support this feature yet,
9671 which should be kept in mind by users who use the column
9673 + Allow HTML attribs on non-figure images (#3222). Images which are
9674 the only element in a paragraph can still be given HTML attributes,
9675 even if the image does not have a caption and is hence not a figure.
9676 The following will add set the `width` attribute of the image to
9679 +ATTR\_HTML: :width 50%
9680 =======================
9682 \[\[file:image.jpg\]\]
9684 + Support `ATTR_HTML` for special blocks (#3182). Special
9685 blocks (i.e. blocks with unrecognized names) can be prefixed with an
9686 `ATTR_HTML` block attribute. The attributes defined in that
9687 meta-directive are added to the `Div` which is used to represent the
9689 + Support the `todo` export option. The `todo` export option allows to
9690 toggle the inclusion of TODO keywords in the output. Setting this to
9691 `nil` causes TODO keywords to be dropped from headlines. The default
9692 is to include the keywords.
9693 + Add support for todo-markers. Headlines can have optional
9694 todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`,
9695 or `#+TYP_TODO` meta directive. Multiple such directives can be
9696 given, each adding a new set of recognized todo-markers. If no
9697 custom todo-markers are defined, the default `TODO` and `DONE`
9698 markers are used. Todo-markers are conceptually separate from
9699 headline text and are hence excluded when autogenerating
9700 headline IDs. The markers are rendered as spans and labelled with
9701 two classes: One class is the markers name, the other signals the
9702 todo-state of the marker (either `todo` or `done`).
9706 + Use `\autocites*` when "suppress-author" citation used.
9707 + Ensure that simple tables have simple cells (#2666). If cells
9708 contain more than a single Plain or Para, then we need to set
9709 nonzero widths and put contents into minipages.
9710 + Remove invalid inlines in sections (#3218, Hubert Plociniczak).
9714 + Fix calculation of column widths for aligned multiline tables
9715 (#1911, Björn Peemöller). This also fixes excessive CPU and memory
9716 usage for tables when `--columns` is set in such a way that cells
9717 must be very tiny. Now cells are guaranteed to be big enough so that
9718 single words don't need to line break, even if this pushes the line
9719 length above the column width.
9720 + Use bracketed form for native spans when `bracketed_spans`
9722 + Fixed inconsistent spacing issue (#3232). Previously a tight bullet
9723 sublist got rendered with a blank line after, while a tight ordered
9724 sublist did not. Now we don't get the blank line in either case.
9725 + Fix escaping of spaces in super/subscript (#3225). Previously two
9726 backslashes were inserted, which gave a literal backslash.
9727 + Adjust widths in Markdown grid tables so that they match
9732 + Give full detail when there are errors converting tex math.
9733 + Handle title text in images (Jesse Rosenthal). We already handled
9734 alt text. This just puts the image "title" into the docx
9736 + Fixed XML markup for empty cells (#3238). Previously the Compact
9737 style wasn't being applied properly to empty cells.
9741 + Updated `renderHtml` import from blaze-html.
9743 * Text.Pandoc.Pretty:
9745 + Fixed some bugs that caused blank lines in tables (#3251). The bugs
9746 caused spurious blank lines in grid tables when we had things like
9747 `blankline $$ blankline`.
9748 + Add exported function `minOffet` \[API change\] (Björn Peemöller).
9749 + Added error message for illegal call to `block` (Björn Peemöller).
9751 * Text.Pandoc.Shared:
9753 + Put `warn` in MonadIO.
9754 + `fetchItem`: Better handling of protocol-relative URL (#2635). If
9755 URL starts with `//` and there is no "base URL" (as there would be
9756 if a URL were used on the command line), then default to http:.
9758 * Export Text.Pandoc.getDefaultExtensions \[API change\] (#3178).
9760 * In --version, trap error in `getAppUserDataDirectory` (#3241). This
9761 fixes a crash with `pandoc --version` on unusual systems with no real
9762 user (e.g. SQL Server 2016).
9764 * Added weigh-pandoc for memory usage diagnostics (#3169).
9766 * Use correct mime types for woff and woff2 (#3228).
9768 * Remove make\_travis\_yml.hs (#3235, Kolen Cheung).
9770 * changelog: Moved an item that was misplaced in the 1.17.2 section to the
9771 1.18 section where it belongs.
9773 * CONTRIBUTING.md: minor change in wording and punctuation (#3252,
9776 * Further revisions to manual for `--version` changes (#3244).
9780## pandoc 1.18 (2016-10-26)
9782 * Added `--list-input-formats`, `--list-output-formats`,
9783 `--list-extensions`, `--list-highlight-languages`, and
9784 `--list-highlight-styles` (#3173). Removed list of highlighting
9785 languages from `--version` output. Removed list of input and output
9786 formats from default `--help` output.
9788 * Added `--reference-location=block|section|document` option
9789 (Jesse Rosenthal). This determines whether Markdown link references
9790 and footnotes are placed at the end of the document, the end of the
9791 section, or the end of the top-level block.
9793 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
9794 This determines what a level-1 header corresponds to in LaTeX,
9795 ConTeXt, DocBook, and TEI output. The default is `section`.
9796 The `--chapters` option has been deprecated in favor of
9797 `--top-level-division=chapter`.
9799 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
9800 is now used in parsing RST and Markdown line blocks, DocBook
9801 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
9802 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
9803 are handled specially in the following output formats: AsciiDoc
9804 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
9805 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
9806 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
9807 other output formats, a paragraph with hard linebreaks is emitted.
9809 * Allow binary formats to be written to stdout (but not to tty) (#2677).
9810 Only works on posix, since we use the unix library to check whether
9811 output is to tty. On Windows, pandoc works as before and always requires
9812 an output file parameter for binary formats.
9814 * Changed JSON output format (Jesse Rosenthal). Previously we used
9815 generically generated JSON, but this was subject to change depending
9816 on the version of aeson pandoc was compiled with. To ensure stability,
9817 we switched to using manually written ToJSON and FromJSON
9818 instances, and encoding the API version. **Note:** pandoc filter
9819 libraries will need to be revised to handle the format change.
9820 Here is a summary of the essential changes:
9822 + The toplevel JSON format is now `{"pandoc-api-version" :
9823 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
9824 instead of `[{"unMeta": META}, [BLOCKS]]`.
9825 Decoding fails if the major and minor version numbers don't
9827 + Leaf nodes no longer have an empty array for their "c" value.
9828 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
9829 rather than `{"t":"Space","c":[]}` as before.
9831 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
9832 module to pandoc-types (Jesse Rosenthal). This makes it easier
9833 to use QuickCheck with pandoc types outside of pandoc itself.
9835 * Add `bracketed_spans` Markdown extension, enabled by default
9836 in pandoc `markdown`. This allows you to create a native span
9837 using this syntax: `[Here is my span]{#id .class key="val"}`.
9839 * Added `angle_brackets_escapable` Markdown extension (#2846).
9840 This is needed because github flavored Markdown has a slightly
9841 different set of escapable symbols than original Markdown;
9842 it includes angle brackets.
9844 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
9846 * Print highlighting-kate version in `--version`.
9848 * `Text.Pandoc.Options`:
9850 + `Extension` has new constructors `Ext_brackted_spans` and
9851 `Ext_angle_brackets_escapable` [API change].
9852 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
9853 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
9856 * `--filter`: we now check `$DATADIR/filters` for filters before
9857 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
9858 Voß for the idea). Filters placed in this directory need not
9859 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
9860 or `.rb`, pandoc will run the right interpreter.
9862 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
9863 default (Kolen Cheung).
9865 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
9867 * Execute .js filters with node (Jakob Voß).
9871 + Support `bc..` extended code blocks (#3037). Also, remove trailing
9872 newline in code blocks (consistently with Markdown reader).
9873 + Improve table parsing. We now handle cell and row attributes, mostly
9874 by skipping them. However, alignments are now handled properly.
9875 Since in pandoc alignment is per-column, not per-cell, we
9876 try to devine column alignments from cell alignments.
9877 Table captions are also now parsed, and textile indicators
9878 for thead and tfoot no longer cause parse failure. (However,
9879 a row designated as tfoot will just be a regular row in pandoc.)
9880 + Improve definition list parsing. We now allow multiple terms
9881 (which we concatenate with linebreaks). An exponential parsing
9882 bug (#3020) is also fixed.
9883 + Disallow empty URL in explicit link (#3036).
9887 + Use Div instead of BlockQuote for admonitions (#3031).
9888 The Div has class `admonition` and (if relevant) one of the
9889 following: `attention`, `caution`, `danger`, `error`, `hint`,
9890 `important`, `note`, `tip`, `warning`. **Note:** This will change
9891 the rendering of some RST documents! The word ("Warning", "Attention",
9892 etc.) is no longer added; that must be done with CSS or a filter.
9893 + A Div is now used for `sidebar` as well.
9894 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
9895 space before a footnote marker. We discard those spaces so that footnotes
9896 will be adjacent to the text that comes before it. This is in line with
9897 what rst2latex does.
9898 + Allow empty lines when parsing line blocks (Albert Krewinkel).
9902 + Allow empty lines when parsing line blocks (Albert Krewinkel).
9903 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
9907 + More robust parsing of unknown environments (#3026).
9908 We no longer fail on things like `^` inside options for tikz.
9909 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
9910 Some custom environments give these a meaning, so we should try not to
9911 fall over when we encounter them.
9912 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
9916 + Fix for unquoted attribute values in mediawiki tables (#3053).
9917 Previously an unquoted attribute value in a table row
9918 could cause parsing problems.
9919 + Improved treatment of verbatim constructions (#3055).
9920 Previously these yielded strings of alternating Code and Space
9921 elements; we now incorporate the spaces into the Code. Emphasis
9922 etc. is still possible inside these.
9923 + Properly interpret XML tags in pre environments (#3042). They are meant
9924 to be interpreted as literal text.
9926 * EPUB reader: don't add root path to data: URIs (#3150).
9927 Thanks to @lep for the bug report and patch.
9929 * Org reader (Albert Krewinkel):
9931 + Preserve indentation of verse lines (#3064). Leading spaces in verse
9932 lines are converted to non-breaking spaces, so indentation is preserved.
9933 + Ensure image sources are proper links. Image sources as those in plain
9934 images, image links, or figures, must be proper URIs or relative file
9935 paths to be recognized as images. This restriction is now enforced
9936 for all image sources. This also fixes the reader's usage of uncleaned
9937 image sources, leading to `file:` prefixes not being deleted from
9938 figure images. Thanks to @bsag for noticing this bug.
9939 + Trim verse lines properly (Albert Krewinkel).
9940 + Extract meta parsing code to module. Parsing of meta-data is well
9941 separable from other block parsing tasks. Moving into new module to
9942 get small files and clearly arranged code.
9943 + Read markup only for special meta keys. Most meta-keys should be read
9944 as normal string values, only a few are interpreted as marked-up text.
9945 + Allow multiple, comma-separated authors. Multiple authors can be
9946 specified in the `#+AUTHOR` meta line if they are given as a
9947 comma-separated list.
9948 + Give precedence to later meta lines. The last meta-line of any given
9949 type is the significant line. Previously the value of the first line
9950 was kept, even if more lines of the same type were encountered.
9951 + Read LaTeX_header as header-includes. LaTeX-specific header commands
9952 can be defined in `#+LaTeX_header` lines. They are parsed as
9953 format-specific inlines to ensure that they will only show up in LaTeX
9955 + Set documentclass meta from LaTeX_class.
9956 + Set classoption meta from LaTeX_class_options.
9957 + Read HTML_head as header-includes. HTML-specific head content can be
9958 defined in `#+HTML_head` lines. They are parsed as format-specific
9959 inlines to ensure that they will only show up in HTML output.
9960 + Respect `author` export option. The `author` option controls whether
9961 the author should be included in the final markup. Setting
9962 `#+OPTIONS: author:nil` will drop the author from the final meta-data
9964 + Respect `email` export option. The `email` option controls whether the
9965 email meta-field should be included in the final markup. Setting
9966 `#+OPTIONS: email:nil` will drop the email field from the final
9968 + Respect `creator` export option. The `creator` option controls whether
9969 the creator meta-field should be included in the final markup. Setting
9970 `#+OPTIONS: creator:nil` will drop the creator field from the final
9971 meta-data output. Org-mode recognizes the special value `comment` for
9972 this field, causing the creator to be included in a comment. This is
9973 difficult to translate to Pandoc internals and is hence interpreted the
9974 same as other truish values (i.e. the meta field is kept if it's
9976 + Respect unnumbered header property (#3095). Sections the `unnumbered`
9977 property should, as the name implies, be excluded from the automatic
9978 numbering of section provided by some output formats. The Pandoc
9979 convention for this is to add an "unnumbered" class to the header. The
9980 reader treats properties as key-value pairs per default, so a special
9981 case is added to translate the above property to a class instead.
9982 + Allow figure with empty caption (Albert Krewinkel, #3161).
9983 A `#+CAPTION` attribute before an image is enough to turn an image into
9984 a figure. This wasn't the case because the `parseFromString` function,
9985 which processes the caption value, would fail on empty values. Adding
9986 a newline character to the caption value fixes this.
9990 + Use XML convenience functions (Jesse Rosenthal).
9991 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
9992 the code a lot cleaner than the original XML.Light functions, but they
9993 had been used inconsistently. This puts them in wherever applicable.
9994 + Handle anchor spans with content in headers. Previously, we would only
9995 be able to figure out internal links to a header in a docx if the
9996 anchor span was empty. We change that to read the inlines out of the
9997 first anchor span in a header.
9998 + Let headers use existing id. Previously we always generated an id for
9999 headers (since they wouldn't bring one from Docx). Now we let it use an
10000 existing one if possible. This should allow us to recurs through anchor
10002 + Use all anchor spans for header ids. Previously we only used the first
10003 anchor span to affect header ids. This allows us to use all the anchor
10004 spans in a header, whether they're nested or not (#3088).
10005 + Test for nested anchor spans in header. This ensures that anchor spans
10006 in header with content (or with other anchor spans inside) will resolve
10007 to links to a header id properly.
10009 * ODT reader (Hubert Plociniczak)
10011 + Include list's starting value. Previously the starting value of
10012 the lists' items has been hardcoded to 1. In reality ODT's list
10013 style definition can provide a new starting value in one of its
10015 + Infer caption from the text following the image.
10016 Frame can contain other frames with the text boxes.
10017 + Add `fig:` to title for Image with a caption (as expected
10018 by pandoc's writers).
10019 + Basic support for images in ODT documents.
10020 + Don't duplicate text for anchors (#3143). When creating an anchor
10021 element we were adding its representation as well as the original
10022 content, leading to text duplication.
10026 + Include an anchor element when a div or span has an id (#3102).
10027 Note that DocBook does not have a class attribute, but at least this
10028 provides an anchor for internal links.
10032 + Don't use * for unnumbered paragraph, subparagraph. The starred
10033 variants don't exist. This helps with part of #3058...it gets rid of
10034 the spurious `*`s. But we still have numbers on the 4th and 5th level
10036 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
10037 Otherwise they can cause unintended ligatures like `` ?` ``.
10038 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
10039 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
10040 This allows figure placement defaults to be changed by the user
10043 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
10044 TEI doesn't have `<book>` elements but only generic `<divN>` division
10045 elements. Checking the template for a trailing `</book>` is nonsensical.
10047 * MediaWiki writer: transform filename with underscores in images (#3052).
10048 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
10049 for internal links, but it also needs to happen for images.
10051 * ICML writer: replace partial function (!!) in table handling (#3175,
10054 * Man writer: allow section numbers that are not a single digit (#3089).
10056 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
10057 (#3068). In AsciiDoc, you must use a special form of emphasis
10058 (double `__`) for intraword emphasis. Pandoc was previously using
10059 this more than necessary.
10061 * EPUB writer: use stringify instead of plain writer for metadata
10062 (#3066). This means that underscores won't be used for emphasis,
10063 or CAPS for bold. The metadata fields will just have unadorned
10068 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
10069 with a `custom-style` key in the attributes will apply the corresponding
10070 key to the contained blocks or inlines.
10071 + Add ReaderT env to the docx writer (Jesse Rosenthal).
10072 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
10073 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
10074 on the command line. For finer-grained control, you can set
10075 the `dir` attribute in Div or Span elements.
10077 * Org writer (Albert Krewinkel):
10079 + Remove blank line after figure caption. Org-mode only treats an image
10080 as a figure if it is directly preceded by a caption.
10081 + Ensure blank line after figure. An Org-mode figure should be surrounded
10082 by blank lines. The figure would be recognized regardless, but images
10083 in the following line would unintentionally be treated as figures as
10085 + Ensure link targets are paths or URLs. Org-mode treats links as
10086 document internal searches unless the link target looks like a URL or
10087 file path, either relative or absolute. This change ensures that this
10088 is always the case.
10089 + Translate language identifiers. Pandoc and Org-mode use different
10090 programming language identifiers. An additional translation between
10091 those identifiers is added to avoid unexpected behavior. This fixes a
10092 problem where language specific source code would sometimes be output
10094 + Drop space before footnote markers (Albert Krewinkel, #3162).
10095 The writer no longer adds an extra space before footnote markers.
10099 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
10100 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
10102 + Check for the `raw_html` extension before emitting a raw HTML block.
10103 + Abstract out note/ref function (Jesse Rosenthal).
10104 + Add ReaderT monad for environment variables (Jesse Rosenthal).
10106 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
10107 subtitle, author, date (#3119). Note that, as a result of this change,
10108 authors may need to update CSS.
10110 * revealjs template: Added `notes-server` option
10111 (jgm/pandoc-templates#212, Yoan Blanc).
10115 + Restore whitespace between paragraphs. This was
10116 a regression in the last release (jgm/pandoc-templates#207).
10117 + Added `themeoptions` variable (Carsten Gips).
10118 + Added `beamerarticle` variable. This causes the `beamerarticle`
10119 package to be loaded in beamer, to produce an article from beamer
10120 slides. (Carsten Gips)
10121 + Added support for `fontfamilies` structured variable
10123 + Added hypersetup options (Jake Zimmerman).
10127 + Added dummy definition for `\institute`.
10128 This isn't a standard command, and we want to avoid a crash when
10129 `institute` is used with the default template.
10130 + Define default figure placement (Václav Haisman), since pandoc
10131 no longer includes `[htbp]` for figures. Users with custom templates
10132 will want to add this. See #3103.
10133 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
10136 * Moved template compiling/rendering code to a separate library.
10137 `doctemplates`. This allows the pandoc templating system to be
10138 used independently.
10140 * Text.Pandoc.Error: Fix out of index error in `handleError`
10141 (Matthew Pickering). The fix is to not try to show the exact line when
10142 it would cause an out-of-bounds error as a result of included files.
10144 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
10146 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
10147 addresses. Technically `**@user` is a valid email address, but if we
10148 allow things like this, we get bad results in markdown flavors
10149 that autolink raw email addresses (see #2940). So we exclude a few
10150 valid email addresses in order to avoid these more common bad cases.
10152 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
10153 emit the alt text, emphasized. This accords with what the ODT writer
10154 currently does. The user will still get a warning about a nonexistent
10157 * Fix example in API documentation (#3176, Thomas Weißschuh).
10159 * Tell where to get tarball in INSTALL (#3062).
10161 * Rename README to MANUAL.txt and add GitHub-friendly README.md
10162 (Albert Krewinkel, Kolen Cheung).
10164 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
10168 + Put note on structured vars in separate paragraph (#2148, Albert
10169 Krewinkel). Make it clearer that structured author variables require a
10171 + Note that `--katex` works best with `html5` (#3077).
10172 + Fix the LaTeX and EPUB links in manual (Morton Fox).
10173 + Document `biblio-title` variable.
10175 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
10177 * Update KaTeX to v0.6.0 (Kolen Cheung).
10179 * Allow latest dependencies.
10181 * Use texmath 0.8.6.6 (#3040).
10183 * Allow http-client 0.4.30, which is the version in stackage lts.
10184 Previously we required 0.5.
10185 Remove CPP conditionals for earlier versions.
10187 * Remove support for GHC < 7.8 (Jesse Rosenthal).
10189 + Remove Compat.Monoid.
10190 + Remove an inline monad compatibility macro.
10191 + Remove Text.Pandoc.Compat.Except.
10192 + Remove directory compat.
10193 + Change constraint on mtl.
10194 + Remove unnecessary CPP condition in UTF8.
10195 + Bump base lower bound to 4.7.
10196 + Remove 7.6 build from .travis.yaml.
10197 + Bump supported ghc version in CONTRIBUTING.md.
10198 + Add note about GHC version support to INSTALL.
10199 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
10200 + Remove TagSoup compat.
10201 + Add EOL note to time compat module. Because time 1.4 is a boot library
10202 for GHC 7.8, we will support the compatibility module as long as we
10203 support 7.8. But we should be clear about when we will no longer need
10205 + Remove blaze-html CPP conditional.
10206 + Remove unnecessary CPP in custom Prelude.
10208## pandoc 1.17.2 (2016-07-17)
10210 * Added Zim Wiki writer, template and tests. `zimwiki` is now
10211 a valid output format. (Alex Ivkin)
10213 * Changed email-obfuscation default to no obfuscation (#2988).
10214 + `writerEmailObfuscation` in `defaultWriterOptions` is now
10216 + the default for the command-line `--email-obfuscation` option is
10219 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
10223 + Support arbitrary raw inlines (Albert Krewinkel).
10224 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
10225 parlance) to be included as `@@format:raw foreign format text@@`.
10226 + Improve Div handling (Albert Krewinkel). Div blocks handling is
10227 changed to make the output look more like idiomatic org mode:
10228 - Div-wrapped content is output as-is if the div's attribute is the
10230 - Div containers with an id but neither classes nor key-value pairs
10231 are unwrapped and the id is added as an anchor.
10232 - Divs with classes associated with greater block elements are
10233 wrapped in a `#+BEGIN`...`#+END` block.
10234 - The old behavior for Divs with more complex attributes is kept.
10236 * HTML writer: Better support for raw LaTeX environments (#2758).
10237 Previously we just passed all raw TeX through when MathJax
10238 was used for HTML math. This passed through too much.
10239 With this patch, only raw LaTeX environments that MathJax
10240 can handle get passed through.
10241 This patch also causes raw LaTeX environments to be treated
10242 as math, when possible, with MathML and WebTeX output.
10244 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
10245 (#2993). Markdown line breaks involve a newline, and simple and pipe
10246 tables can't contain one.
10248 * Make --webtex work with the Markdown writer (#1177).
10249 This is a convenient option for people using
10250 websites whose Markdown flavors don't provide for math.
10254 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
10255 We treat display math like block quotes, and apply FirstParagraph style
10256 to paragraphs that follow them. These can be styled as the user
10257 wishes. (But, when the user is using indentation, this allows for
10258 paragraphs to continue after display math without indentation.)
10259 + Use actual creation time as doc prop (Jesse Rosenthal).
10260 Previously, we had used the user-supplied date, if available, for Word's
10261 document creation metadata. This could lead to weird results, as in
10262 cases where the user post-dates a document (so the modification might be
10263 prior to the creation). Here we use the actual computer time to set the
10268 + Don't URI-escape image source (#2825). Usually this is a local file,
10269 and replacing spaces with `%20` ruins things.
10270 + Allow 'standout' as a beamer frame option (#3007).
10271 `## Slide title {.standout}`.
10273 * RST reader: Fixed links with no explicit link text. The link
10274 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
10275 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
10276 Closes Debian #828167 -- reported by Christian Heller.
10280 + Fixed attributes (#2984). Attributes can't be followed by
10281 a space. So, `_(class)emph_` but `_(noclass) emph_`.
10282 + Fixed exponential parsing bug (#3020).
10283 + Fix overly aggressive interpretation as images (#2998).
10284 Spaces are not allowed in the image URL in textile.
10288 + Fix `\cite` so it is a NormalCitation not AuthorInText.
10289 + Strip off double quotes around image source if present (#2825).
10290 Avoids interpreting these as part of the literal filename.
10294 + Add semicolon to list of special chars (Albert Krewinkel)
10295 Semicolons are used as special characters in citations syntax. This
10296 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
10297 suffix]`. Previously, parsing would have failed unless there was a space
10298 or other special character as the last <prefix> character.
10299 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
10300 A specification for an official Org-mode citation syntax was drafted by
10301 Richard Lawrence and enhanced with the help of others on the orgmode
10302 mailing list. Basic support for this citation style is added to the
10304 + Support arbitrary raw inlines (Albert Krewinkel).
10305 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
10306 parlance) to be included as `@@format:raw foreign format text@@`.
10307 + Remove partial functions (Albert Krewinkel, #2991).
10308 Partial functions like `head` lead to avoidable errors and should be
10309 avoided. They are replaced with total functions.
10310 + Support figure labels (Albert Krewinkel, #2496, #2999).
10311 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
10312 respective image. This allows e.g. the LaTeX to add proper `\label`
10314 + Improve tag and properties type safety (Albert Krewinkel).
10315 Specific newtype definitions are used to replace stringly typing of tags
10316 and properties. Type safety is increased while readability is improved.
10317 + Parse as headlines, convert to blocks (Albert Krewinkel).
10318 Emacs org-mode is based on outline-mode, which treats documents as trees
10319 with headlines are nodes. The reader is refactored to parse into a
10320 similar tree structure. This simplifies transformations acting on
10321 document (sub-)trees.
10322 * Refactor comment tree handling (Albert Krewinkel).
10323 Comment trees were handled after parsing, as pattern matching on lists
10324 is easier than matching on sequences. The new method of reading
10325 documents as trees allows for more elegant subtree removal.
10326 * Support archived trees export options (Albert Krewinkel).
10327 Handling of archived trees can be modified using the `arch` option.
10328 Archived trees are either dropped, exported completely, or collapsed to
10329 include just the header when the `arch` option is nil, non-nil, or
10330 `headline`, respectively.
10331 * Put export setting parser into module (Albert Krewinkel).
10332 Export option parsing is distinct enough from general block parsing to
10333 justify putting it into a separate module.
10334 * Support headline levels export setting (Albert Krewinkel).
10335 The depths of headlines can be modified using the `H` option. Deeper
10336 headlines will be converted to lists.
10337 * Replace ugly code with view pattern (Albert Krewinkel).
10338 Some less-than-smart code required a pragma switching of overlapping
10339 pattern warnings in order to compile seamlessly. Using view patterns
10340 makes the code easier to read and also doesn't require overlapping
10341 pattern checks to be disabled.
10342 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
10343 Org rules for allowed characters before or after markup chars were not
10344 checked for verbatim text. This resultet in wrong parsing outcomes of
10345 if the verbatim text contained e.g. space enclosed markup characters as
10346 part of the text (`=is_substr = True=`). Forcing the parser to update
10347 the positions of allowed/forbidden markup border characters fixes this.
10349 * LaTeX template: fix for obscure hyperref/xelatex issue.
10350 Here's a minimal case:
10352 \documentclass[]{article}
10353 \usepackage{hyperref}
10358 Without this change, this fails on the second invocation of xelatex.
10359 This affects inputs this like `# %á` with pdf output via xelatex.
10361 * trypandoc: call results 'html' instead of 'result'.
10362 This is for better compatibility with babelmark2.
10364 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
10365 MultiMarkdown was only mentioned as a supported Markdown dialect but not
10366 as a possible input or output format. A brief mention is added
10367 everywhere the other supported markdown dialects are mentioned.
10369 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
10370 Raw HTML is kept when the output format is Emacs Org mode.
10372 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
10374 * Text.Pandoc.Shared:
10376 + Introduce blocksToInlines function (Jesse Rosenthal).
10377 This is a lossy function for converting `[Block] -> [Inline]`. Its main
10378 use, at the moment, is for docx comments, which can contain arbitrary
10379 blocks (except for footnotes), but which will be converted to spans.
10380 This is, at the moment, pretty useless for everything but the basic
10381 `Para` and `Plain` comments. It can be improved, but the docx reader
10382 should probably emit a warning if the comment contains more than this.
10383 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
10384 + Add further formats for `normalizeDate` (Jesse Rosenthal).
10385 We want to avoid illegal dates -- in particular years with greater than
10386 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
10387 `%Y%m`, and finally `%Y`.
10388 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
10389 We only allow years between 1601 and 9999, inclusive. The ISO 8601
10390 actually says that years are supposed to start with 1583, but MS Word
10391 only allows 1601-9999. This should stop corrupted word files if the date
10392 is out of that range, or is parsed incorrectly.
10393 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
10394 Previously we parsed a list of dates, took the first one, and then
10395 tested its year range. That meant that if the first one failed, we
10396 returned nothing, regardless of what the others did. Now we test for
10397 sanity before running `msum` over the list of Maybe values. Anything
10398 failing the test will be Nothing, so will not be a candidate.
10402 + Add simple comment functionality. (Jesse Rosenthal).
10403 This adds simple track-changes comment parsing to the docx reader. It is
10404 turned on with `--track-changes=all`. All comments are converted to
10405 inlines, which can list some information. In the future a warning will be
10406 added for comments with formatting that seems like it will be excessively
10407 denatured. Note that comments can extend across blocks. For that reason
10408 there are two spans: `comment-start` and `comment-end`. `comment-start`
10409 will contain the comment. `comment-end` will always be empty. The two
10410 will be associated by a numeric id.
10411 + Enable warnings in top-level reader (Jesse Rosenthal).
10412 Previously we had only allowed for warnings in the parser. Now we allow
10413 for them in the `Docx.hs` as well. The warnings are simply concatenated.
10414 + Add warning for advanced comment formatting. (Jesse Rosenthal).
10415 We can't guarantee we'll convert every comment correctly, though we'll
10416 do the best we can. This warns if the comment includes something other
10417 than Para or Plain.
10418 + Add tests for warnings. (Jesse Rosenthal).
10419 + Add tests for comments (Jesse Rosenthal).
10420 We test for comments, using all track-changes options. Note that we
10421 should only output comments if `--track-changes=all`. We also test for
10422 emitting warnings if there is complicated formatting.
10424 * README: update to include track-changes comments. (Jesse Rosenthal)
10426 * Improved Windows installer - don't ignore properties set on command-line.
10427 See #2708. Needs testing to see if this resolves the issue.
10430 * Process markdown extensions on command line in L->R order (#2995).
10431 Previously they were processed, very unintuitively, in R->L
10432 order, so that `markdown-tex_math_dollars+tex_math_dollars`
10433 had `tex_math_dollars` disabled.
10435 * Added `secnumdepth` variable to LaTeX template (#2920).
10437 * Include table of contents in README.html in Windows package.
10439 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
10440 In Writers.Shared, we strip leading and trailing spaces for display
10441 math. Since SoftBreak's are treated as spaces, we should strip those
10444 * beamer, latex templates: pass biblatexoptions directly in package load.
10445 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
10447 * CPP workaround for deprecation of `parseUrl` in http-client.
10449 * Removed some redundant class constraints.
10451 * make_oxs_package.sh - use OSX env variable.
10453 * Added `winpkg` target to Makefile. This downloads the windows package
10454 from appveyor and signs it using the key.
10456 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
10457 Raw TeX is kept verbatim when the output format is Emacs Org mode.
10459 * Support math with haddock-library >= 1.4.
10461 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
10462 wouldn't accept the package.
10464 * Update library dependency versions.
10466## pandoc 1.17.1 (2016-06-04)
10468 * New output format: `docbook5` (Ivo Clarysse).
10470 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
10475 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
10476 This allows header attributes to be added to org documents in the form
10477 of `:PROPERTIES:` drawers. All available attributes are stored as
10478 key/value pairs. This reflects the way the org reader handles
10479 `:PROPERTIES:` blocks.
10480 + Add drawer capability (Carlos Sosa). For the implementation of the
10481 Drawer element in the Org Writer, we make use of a generic Block
10482 container with attributes. The presence of a `drawer` class defines
10483 that the `Div` constructor is a drawer. The first class defines the
10484 drawer name to use. The key-value list in the attributes defines
10485 the keys to add inside the Drawer. Lastly, the list of Block elements
10486 contains miscellaneous blocks elements to add inside of the Drawer.
10487 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
10488 reserved for internal use by Org-mode and should not be used.
10489 The `CUSTOM_ID` property is to be used instead, it is converted to the
10490 `ID` property for certain export format.
10494 + Ignore `--incremental` unless output format is beamer (#2843).
10495 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
10496 Allow for optional argument in square brackets.
10497 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
10498 This allows one to access the hyphenation patterns in CTAN's
10500 + Add missing languages from hyph-utf8 (Andrew Dunning).
10501 + Improve use of `\strut` with `\minipage` inside tables
10502 (Jose Luis Duran). This improves spacing in multiline
10504 + Use `{}` around options containing special chars (#2892).
10505 + Avoid lazy `foldl`.
10506 + Don't escape underscore in labels (#2921). Previously they were
10508 + brazilian -> brazil for polyglossia (#2953).
10510 * HTML writer: Ensure mathjax link is added when math appears in footnote
10511 (#2881). Previously if a document only had math in a footnote, the
10512 MathJax link would not be added.
10514 * EPUB writer: set `navpage` variable on nav page.
10515 This allows templates to treat it differently.
10519 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
10520 + Properly handle `ulink`/`link` (Ivo Clarysse).
10524 + Unescape URIs in spine (#2924).
10525 + EPUB reader: normalise link id (Mauro Bieg).
10529 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
10530 `moveTo` and `moveFrom` are track-changes tags that are used when a
10531 block of text is moved in the document. We now recognize these tags and
10532 treat them the same as `insert` and `delete`, respectively. So,
10533 `--track-changes=accept` will show the moved version, while
10534 `--track-changes=reject` will show the original version.
10535 + Tests for track-changes moving (Jesse Rosenthal).
10537 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
10538 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
10539 would error out if zip-archive failed. We change the archive extraction
10540 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
10542 * Markdown, HTML readers: be more forgiving about unescaped `&` in
10543 HTML (#2410). We are now more forgiving about parsing invalid HTML with
10544 unescaped `&` as raw HTML. (Previously any unescaped `&`
10545 would cause pandoc not to recognize the string as raw HTML.)
10549 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
10550 + Added `-s` to markdown-reader-more test.
10552 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
10553 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
10555 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
10558 * RST reader: Support `:class:` option for code block in RST reader
10561 * Org reader (all Albert Krewinkel, except where noted otherwise):
10563 + Stop padding short table rows.
10564 Emacs Org-mode doesn't add any padding to table rows. The first
10565 row (header or first body row) is used to determine the column count,
10566 no other magic is performed.
10567 + Refactor rows-to-table conversion. This refactors
10568 the codes conversing a list table lines to an org table ADT.
10569 The old code was simplified and is now slightly less ugly.
10570 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
10571 This fixes Org mode parsing of some corner cases regarding empty cells
10572 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
10573 two empty cells, but would be parsed as a single cell containing a pipe
10574 character. Empty rows where parsed as alignment rows and dropped from
10576 + Fix spacing after LaTeX-style symbols.
10577 The org-reader was dropping space after unescaped LaTeX-style symbol
10578 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
10579 instead. This seems to be because the LaTeX-reader treats the
10580 command-terminating space as part of the command. Dropping the trailing
10581 space from the symbol-command fixes this issue.
10582 + Print empty table rows. Empty table rows should not
10583 be dropped from the output, so row-height is always set to be at least 1.
10584 + Move parser state into separate module.
10585 The org reader code has become large and confusing. Extracting smaller
10586 parts into submodules should help to clean things up.
10587 + Add support for sub/superscript export options.
10588 Org-mode allows to specify export settings via `#+OPTIONS` lines.
10589 Disabling simple sub- and superscripts is one of these export options,
10590 this options is now supported.
10591 + Support special strings export option Parsing of special strings
10592 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
10594 + Support emphasized text export option. Parsing of emphasized text can
10595 be toggled using the `*` option. This influences parsing of text marked
10596 as emphasized, strong, strikeout, and underline. Parsing of inline math,
10597 code, and verbatim text is not affected by this option.
10598 + Support smart quotes export option. Reading of smart quotes can be
10599 toggled using the `'` option.
10600 + Parse but ignore export options. All known export options are parsed
10602 + Refactor block attribute handling. A parser state attribute was used
10603 to keep track of block attributes defined in meta-lines. Global state
10604 is undesirable, so block attributes are no longer saved as part of the
10605 parser state. Old functions and the respective part of the parser state
10607 + Use custom `anyLine`. Additional state changes need to be made after
10608 a newline is parsed, otherwise markup may not be recognized correctly.
10609 This fixes a bug where markup after certain block-types would not be
10611 + Add support for `ATTR_HTML` attributes (#1906).
10612 Arbitrary key-value pairs can be added to some block types using a
10613 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
10614 when exporting to HTML, but since we cannot make this distinction here,
10615 the attributes are always added. The functionality is now supported
10617 + Add `:PROPERTIES:` drawer support (#1877).
10618 Headers can have optional `:PROPERTIES:` drawers associated with them.
10619 These drawers contain key/value pairs like the header's `id`. The
10620 reader adds all listed pairs to the header's attributes; `id` and
10621 `class` attributes are handled specially to match the way `Attr` are
10622 defined. This also changes behavior of how drawers of unknown type
10623 are handled. Instead of including all unknown drawers, those are not
10624 read/exported, thereby matching current Emacs behavior.
10625 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
10626 + Respect drawer export setting. The `d` export option can be used
10627 to control which drawers are exported and which are discarded.
10628 Basic support for this option is added here.
10629 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
10630 Also fix up tab handling for leading whitespace in code blocks.
10631 + Support new syntax for export blocks. Org-mode version 9
10632 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
10633 where `<FORMAT>` is the format of the block's content, the new
10634 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
10636 + Refactor `BEGIN...END` block parsing.
10637 + Fix handling of whitespace in blocks, allowing content to be indented
10638 less then the block header.
10639 + Support org-ref style citations. The *org-ref* package is an
10640 org-mode extension commonly used to manage citations in org
10641 documents. Basic support for the `cite:citeKey` and
10642 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
10643 + Split code into separate modules, making for cleaner code and
10646 * Added `docbook5` template.
10648 * `--mathjax` improvements:
10650 + Use new CommonHTML output for MathJax (updated default MathJax URL,
10652 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
10653 This is designed for cases where the input is always TeX and maximal
10654 conformity with TeX is desired. It seems to be smaller and load faster
10655 than what we used before. See #2858.
10656 + Load the full MathJax config to maximize loading speed (KolenCheung).
10658 * Bumped upper version bounds to allow use of latest packages
10659 and compilation with ghc 8.
10661 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
10662 #2310, #2310, #2824). This fixes behavior of roots, e.g.
10663 `\sqrt[3]{x}`, and issues with sub/superscript positioning
10664 and matrix column alignment in docx.
10668 + Clarified documentation of `implicit_header_references` (#2904).
10669 + Improved documentation of `--columns` option.
10671 * Added appveyor setup, with artefacts (Jan Schulz).
10673 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
10675 * LaTeX template: support for custom font families (vladipus).
10676 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
10677 can find some other usages. Example usage in YAML metadata:
10680 - name: \cyrillicfont
10681 font: Liberation Serif
10682 - name: \cyrillicfonttt
10683 options: Scale=MatchLowercase
10686 * Create unsigned msi as build artifact in appveyor build.
10688 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
10692## pandoc 1.17.0.3 (2016-03-24)
10694 * LaTeX writer: Fixed position of label in figures (#2813).
10695 Previously the label wasn't in the right place, and `\ref`
10696 wouldn't work properly.
10697 * Added .tei test files to pandoc.cabal so they'll be included
10698 in tarball (#2811).
10699 * Updated copyright dates.
10701## pandoc 1.17.0.2 (2016-03-23)
10703 * Fixed serious regression in `htmlInBalanced`, which caused
10704 newlines to be omitted in some raw HTML blocks in Markdown
10707## pandoc 1.17.0.1 (2016-03-21)
10709 * File scope is no longer used when there are no input files (i.e.,
10710 when input comes from stdin). Previously file scope was triggered
10711 when the `json` reader was specified and input came from `stdin`,
10712 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
10713 thanks to Fedor Sheremetyev for calling the bug to our attention.)
10714 * Improved documentation of templates (#2797).
10716## pandoc 1.17 (2016-03-20)
10718 * Added `--file-scope` option (Jesse Rosenthal).
10719 By default pandoc operates on multiple files by first concatenating
10720 them (around extra line breaks) and then processing the joined file. So
10721 it only parses a multi-file document at the document scope. This has the
10722 benefit that footnotes and links can be in different files, but for
10723 some purposes it is useful to parse the individual files first
10724 and then combine their outputs (e.g. when the files use footnotes
10725 or links with the same labels). The `--file-scope` option causes
10726 pandoc to parse the files first, and then combine the parsed output,
10727 instead of combining before parsing. `--file-scope` is selected
10728 automatically for binary input files (which cannot be concatenated)
10729 and for pandoc json.
10731 * Add TEI Writer (Chris Forster) and `tei` output format.
10733 * Added a general `ByteStringReader` with warnings, used by the docx
10734 reader (API change, Jesse Rosenthal).
10736 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
10738 * Changed type of `Shared.uniqueIdent` argument from
10739 `[String]` to `Set String`. This avoids performance problems in documents
10740 with many identically named headers (API change, #2671).
10742 * Removed `tex_math_single_backslash` from `markdown_github` options
10745 * Make language extensions as well as full language names
10746 trigger syntax highlighting. For example, `py` will now work as
10747 well as `python` (jgm/highlighting-kate#83).
10749 * Added `institute` variable to latex, beamer templates (Fraser
10750 Tweedale, Josef Svenningsson).
10752 * Docx reader (Jesse Rosenthal):
10754 + Handle alternate content. Some word functions (especially graphics)
10755 give various choices for content so there can be backwards compatibility.
10756 + Don't turn numbered headers into lists.
10757 + Docx Reader: Add state to the parser, for warnings
10758 + Update feature checklist in source code.
10759 + Get rid of `Modifiable` typeclass.
10760 + Add tests for adjacent hyperlinks.
10761 + Add a "Link" modifier to `Reducible`. We want to make sure that
10762 links have their spaces removed, and are appropriately smushed
10767 + Fixed behavior of base tag (#2777).
10768 If the base path does not end with slash, the last component
10769 will be replaced. E.g. base = `http://example.com/foo`
10770 combines with `bar.html` to give `http://example.com/bar.html`.
10771 If the href begins with a slash, the whole path of the base
10772 is replaced. E.g. base = `http://example.com/foo/` combines
10773 with `/bar.html` to give `http://example.com/bar.html`.
10774 + Rewrote `htmlInBalanced`. This version avoids an exponential
10775 performance problem with `<script>` tags, and it should be faster
10776 in general (#2730).
10777 + Properly handle an empty cell in a simple table (#2718).
10778 + Handle multiple `<meta>` tags with same name. Put them in a list
10779 in the metadata so they are all preserved, rather than (as before)
10780 throwing out all but one..
10784 + Improved pipe table parsing (#2765).
10785 + Allow `+` separators in pipe table cells. We already allowed
10786 them in the header, but not in the body rows, for some reason.
10787 This gives compatibility with org-mode tables.
10788 + Don't cross line boundary parsing pipe table row.
10789 Previously an Emph element could be parsed across the newline
10790 at the end of the pipe table row.
10791 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
10792 performance (#2730).
10793 + Fixed bug with smart quotes around tex math.
10797 + Handle interior `$` characters in math (#2743). For example,
10799 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
10800 This gives better results when people write e.g. `\TeX{}` in Markdown.
10801 + Properly handle LaTeX "math" environment as inline math (#2171).
10803 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
10806 * Org reader (Albert Krewinkel):
10808 + Prefix even empty figure names with "fig:" (#2643). The
10809 convention used by pandoc for figures is to mark them by prefixing
10810 the name with `fig:`. The org reader failed to do this if a figure
10812 + Refactor link-target processing (#2684).
10814 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
10815 Thanks to @c-foster.
10817 * HTML writer: Don't include alignment attribute for default table columns.
10818 Previously these were given "left" alignment. Better to leave off
10819 alignment attributes altogether (#2694).
10821 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
10822 better compatibility with other Markdown flavors (Henrik Tramberend).
10826 + Use image identifier to create a label and hypertarget for
10827 figures (Mauro Bieg).
10828 + Avoid double toprule in headerless table with caption (#2742).
10829 + Clean up options parser (Jesse Rosenthal).
10830 + Treat `memoir` template with `article` option as article, instead
10831 of treating all `memoir` templates as books.
10832 + Allow more flexible table alignment (Henrik Tramberend, #2665).
10833 New default is not to include `[c]` option (which is the default
10834 anyway if no positioning is specified). Now LaTeX emplates can
10835 control the overall table alignment in a document by setting the
10836 longtable length variables `LTleft` and `LTright`. For example,
10837 `\setlength\LTleft\parindent\setlength\LTright\fill`
10838 will create left-aligned tables that respect paragraph indentation.
10840 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
10842 * Org writer - pass through RawInline with format "org".
10844 * DokuWiki writer: use `$$` for display math.
10846 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
10848 * Make protocol-relative URIs work again (#2737).
10850 * make_osx_package.sh: Use env variable for developer id certs.
10852 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
10855 * Allow `zip-archive` 0.3.
10857 * Allow `aeson` 0.11.
10859## pandoc 1.16.0.2 (2016-01-12)
10861 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
10863 * Fixed regression in latex smart quote parsing (#2645).
10864 In cases where a match was not found for a quote, everything
10865 from the open quote to the end of the paragraph was being dropped.
10867## pandoc 1.16.0.1 (2016-01-10)
10869 * Fixed regression with `--latex-engine` (#2618). In 1.16
10870 `--latex-engine` raises an error if a full path is given.
10872 * Org reader: Fix function dropping subtrees tagged `:noexport`
10873 (Albert Krewinkel, #2628):
10875 * Markdown reader: renormalize table column widths if they exceed 100%
10878 * Textile reader: don't allow block HTML tags in inline contexts.
10879 The reader previously did allow this, following redcloth,
10880 which happily parses
10882 Html blocks can be <div>inlined</div> as well.
10886 <p>Html blocks can be <div>inlined</div> as well.</p>
10888 This is invalid HTML. The above sample now produces;
10890 <p>Html blocks can be</p>
10896 * Improved default template lookup for custom lua scripts (#2625).
10897 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
10898 pandoc would look for the template in
10899 `~/.pandoc/templates/default./path/to/lua/script.lua`.
10900 With this change it will look in the more reasonable
10901 `~/.pandoc/templates/default.script.lua`. This makes it possible to
10902 store default templates for custom writers.
10904 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
10907 * LaTeX writer: restore old treatment of Span (#2624). A Span is
10908 now rendered with surrounding `{}`, as it was before 1.16.
10910 * Entity handling fixes: improved handling of entities like
10911 `⟨` that require a trailing semicolon. Allow uppercase
10912 `x` in numerical hexadecimal character references, working
10913 around a tagsoup bug.
10915 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
10916 memory use on compile. With aeson 0.10 we were getting an out of
10917 memory error on a 2GB Ubuntu 64-bit VM.
10919 * Improved deb package creation script. Made `DPKGVER` work.
10920 Renamed `COMMIT` to `TREE`. You should now be able to do
10921 `TREE=1.16.0.1 DPKGVER=2 make deb`.
10924## pandoc 1.16 (2016-01-02)
10926 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
10928 + Added syntax for link and image attributes to pandoc's Markdown.
10929 + Updated readers and writers to use link and image attributes
10931 + Support image attributes in Docx, Textile, RST readers.
10933 * Renamed link attribute extensions. The old `link_attributes` is
10934 now `mmd_link_attributes`, and `link_attributes` now enables the
10935 new pandoc-style link and image attributes (API change).
10936 Note: this change could break some existing workflows.
10938 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
10939 Added threefold wrapping option.
10941 + Command line option: deprecated `--no-wrap`, added
10942 `--wrap=[auto|none|preserve]`
10943 + Added `WrapOption`, exported from `Text.Pandoc.Options`
10944 + Changed type of `writerWrapText` in `WriterOptions` from
10945 `Bool` to `WrapOption`.
10946 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
10947 + Supported `SoftBreak` in readers and writers.
10949 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
10950 change, Mauro Bieg).
10952 * Added `--dpi` command-line option (Mauro Bieg).
10954 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
10955 This change makes `--no-tex-ligatures` affect the LaTeX reader
10956 as well as the LaTeX and ConTeXt writers. If it is used,
10957 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
10958 literally, rather than parsing ligatures for quotation marks
10959 and dashes. And the LaTeX writer will print unicode quotation
10960 mark and dash characters literally, rather than converting
10961 them to the standard ASCII ligatures. Note that `--smart` has
10962 no effect on the LaTeX reader. `--smart` is still the default
10963 for all input formats when LaTeX or ConTeXt is the output format,
10964 *unless* `--no-tex-ligatures` is used.
10966 Some examples to illustrate the logic:
10969 % echo "'hi'" | pandoc -t latex
10971 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
10973 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
10975 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
10977 % echo "'hi'" | pandoc -f latex
10981 * Removed deprecated options `--offline` and `--html5`.
10983 * Fixed language code for Czech (`cs` not `cz`) (#2597).
10985 * Implemented `east_asian_line_breaks` extension (#2586).
10986 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
10987 to `Extension` (API change). This extension is like
10988 `ignore_line_breaks`, but smarter -- it only ignores line breaks
10989 between two East Asian wide characters. This makes it better suited
10990 for writing with a mix of East Asian and non-East Asian scripts.
10992 * Added support for PDF creation via `wkhtmltopdf`.
10993 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
10994 if you have math.) Margins can be set using the variables
10995 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
10996 Other styling can be done through CSS.
10998 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
10999 We were capturing final colons as in `[@foo: bar]`; the citation id
11000 was being parsed as `@foo:`.
11004 + Fixed image syntax for local files (#2589).
11005 + Changed type of `writeICML` (Mauro Bieg).
11006 API change: It is now `WriterOptions -> Pandoc -> IO String`.
11007 Also handle new image attributes.
11008 + Intersperse line breaks instead of appending them to
11009 every `ParagraphStyleRange` (Mauro Bieg, #2501).
11010 + Add `Cite` style to citations (Mauro Bieg).
11011 + Added figure handling (#2590, Mauro Bieg).
11012 + Better handling of math. Instead of just printing the raw tex,
11013 we now try to fake it with unicode characters.
11015 * HTML writer: Include `example` class for example lists (#2524).
11017 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
11019 + Support for percentage widths/heights
11020 + Use `Attr` instead of title to get dimensions from ODT walker
11021 to `writeOpenDocument`.
11025 + Support anchors in spans and divs with id elements
11026 (jgm/pandoc-citeproc#143).
11027 + Fixed code blocks (#1861).
11029 * Haddock writer: omit formatting inside links, which isn't supported
11030 by Haddock (#2515).
11032 * MediaWiki writer: Fixed spacing issues in table cells.
11034 + Start cell on new line unless it's a single Para or Plain
11036 + For single Para or Plain, insert a space after the `|` to
11037 avoid problems when the text begins with a character like
11040 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
11044 + Add support for GAP highlighting using listings (Raniere Silva).
11045 + Consider `header-includes` content as well as templates
11046 when determining whether to use csquotes (Andreas Lööw).
11047 + Create defaults for geometry using `margin-left` etc.
11048 If `geometry` has no value, but `margin-left`, `margin-right`,
11049 `margin-top`, and/or `-margin-bottom` are given, a default value
11050 for `geometry` is created from these. Note that these variables
11051 already affect PDF production via HTML5 with `wkhtmltopdf`.
11053 * ConTeXt writer: set default layout based on `margin-left`, etc.
11054 This sets up `\setuplayout` based on the variables `margin-left`,
11055 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
11058 * Docx writer: better handling of PDF images. Previously we tried
11059 to get the image size from the image even if an explicit size was
11060 specified. Since we still can't get image size for PDFs, this made
11061 it impossible to use PDF images in docx. Now we don't try to get
11062 the image size when a size is already explicitly specified.
11064 * Markdown writer: use raw HTML for link/image attributes when
11065 the `link_attributes` extension is unset and `raw_html` is set (#2554).
11067 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
11071 + Improved smart quote parsing (#2555). This fixes redering of
11073 + Use curly quotes for unmatched ` (#2555).
11074 + Allow blank space between braced arguments of commands (#2592).
11078 + Improved pipe table relative widths. Previously pipe table
11079 columns got relative widths (based on the header underscore lines)
11080 when the source of one of the rows was greater in width than the
11081 column width. This gave bad results in some cases where much of
11082 the width of the row was due to nonprinting material (e.g. link
11083 URLs). Now pandoc only looks at printable width (the width of a
11084 plain string version of the source), which should give better results.
11085 Thanks to John Muccigrosso for bringing up the issue.
11086 + Fixed parsing bug with macros. Previously macro definitions in
11087 indented code blocks were being parsed as macro definitions, not code.
11089 * Textile reader: skip over attribute in image source (#2515).
11090 We don't have a place yet for styles or sizes on images, but
11091 we can skip the attributes rather than incorrectly taking them
11092 to be part of the filename.
11094 * Docx reader: Handle dummy list items (Jesse Rosenthal).
11095 These come up when people create a list item and then delete the
11096 bullet. It doesn't refer to any real list item, and we used to ignore
11099 * CommonMark reader/writer rewritten to use latest `cmark`.
11101 * Fixed Emoji character definitions (#2523). There were many bugs in the
11104 * `Text.Pandoc.CSS`:
11106 + Added `pickStylesToKVs` function to extract multiple properties at
11107 once (API change, Mauro Bieg).
11108 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
11110 * `trypandoc`: sort drop-down lists.
11114 + Made `\euro` conditional on presence of character.
11115 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
11116 + Moved `header-includes` before setting of title (Thomas Hodgson),
11117 to match the LaTeX template (jgm/pandoc-templates#168).
11118 + Added `section-titles` variable (defaults to true)
11119 to enable/suppress section title pages in beamer
11120 slide shows (Thomas Hodgson).
11121 + Moved beamer themes after fonts, so that themes can
11122 change fonts. (Previously the fonts set were being
11123 clobbered by lmodern.sty.) (Thomas Hodgson).
11125 * Beamer/LaTeX template changes (Thomas Hodgson):
11126 + Added `thanks` variable
11127 + Use `parskip.sty` when `indent` isn't set (fall back to using
11128 `setlength` as before if `parskip.sty` isn't available).
11129 + Use `biblio-style` with biblatex.
11130 + Added `biblatexoptions` variable.
11132 * LaTeX template changes:
11134 + Added `paper` after `$papersize$` variable in latex template.
11135 Thus you can say `papersize: a4` and the latex will contain
11136 `a4paper`. This change may break some existing workflows; if
11137 you currently specify `a4paper`, you'll get `a4paperpaper` which
11138 is meaningless. However, the change seems worth it, as it will
11139 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
11140 and html->pdf via wkhtmltopdf.
11141 + Only pass options to color package if `colorlinks` is set
11143 + Make definition of `\euro` conditional in xelatex/lualatex,
11144 as it is already for pdflatex (Andrew Dunning).
11145 + Removed setting of `subject` in PDF metadata.
11146 This used to be set to the subtitle, but really the subtitle
11147 need not give the subject. Also, `subtitle` can contain formatting,
11148 so we'd need, at least, a plain text version for this.
11149 + Moved `header-includes` before setting of `\title`, `\author`,
11150 etc. This allows these macros to be redefined.
11151 + Use `\subtitle` command for `subtitle`, instead of tacking it
11152 on to the title as before. We give a no-op fallback definition if it
11153 is not defined. This change should produce much better results
11154 in classes that support `\subtitle`. With the default article
11155 class, which does not define `\subtitle`, subtitles will no
11156 longer be printed unless the user defines `\subtitle` and
11157 redefines `\maketitle`.
11158 + Moved redefinitions of `\paragraph` and `\subparagraph` to
11159 before header-includes.
11161 * Context template:
11163 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
11164 needed for things to work on ConTeXt stable from TeXLive 2015.
11165 + Revert use of `\setuphead` in title block (Andrew Dunning,
11168 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
11170 * Fixed man template so disabling hyphenation actually works.
11171 The command needs to come after .TH.
11173 * Added 'navigation' variable to beamer template (#2543).
11174 Valid values are `empty` (the default), `horizontal`, `vertical`,
11175 and `frame`. Note that this changes the default behavior from
11176 `horizontal` to `empty`. Closes #2543.
11178 * Added `toc` to HTML slide format templates (Andrew Dunning),
11179 so that `--toc` creates a contents slide.
11181 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
11183 * Allow pipe tables with no body rows (#2556).
11184 Previously this raised a runtime error.
11186 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
11187 as URL. The Haskell URI parsing routines will accept "C:" as a
11188 scheme, so we rule that out manually. This helps with
11189 `--self-contained` and absolute Windows paths.
11191 * Define a `meta-json` variable for all writers (#2019). This contains
11192 a JSON version of all the metadata, in the format selected for the
11193 writer. So, for example, to get just the YAML metadata, you can run
11194 pandoc with the following custom template: `$meta-json$`. The intent
11195 is to make it easier for static site generators and other tools to get
11198 * Document limitations of --self-contained (#2553).
11200 * Improved Citations section of README (#2551). Added information
11201 about `link-citations` and a link to the pandoc-citeproc man page.
11203 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
11206 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
11208 * Improved implicit pandoc-citeproc inclusion.
11209 The filter pandoc-citeproc is automatically used when
11210 `--bibliography` is specified on the command line, unless
11211 `--natbib` or `--biblatex` is used. However, previously this
11212 only worked if `--bibliography` was spelled out in full, and not
11213 if `--biblio` was used.
11215 * reveal.js: Interpret pauses correctly for all headers (#2530).
11216 Previously, when using headers below the slide level, pauses are left
11217 uninterpreted into pauses. In my opinion, unexpected behavior but
11218 intentional looking at the code.
11220 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
11222 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
11225 * ImageSize: Added functions for converting between image dimensions
11228 * Use lts-3.18 in stack.yaml. This avoids Windows build
11229 issues with the HTTP library.
11231 * Bump version bounds for dependencies.
11233## pandoc 1.15.2.1 (2015-11-16)
11235 * Added two missing test files, and `stack.yaml`, to
11236 `extra-source-files` so they're included in the source tarball.
11238 * reveal.js template: Fixed parallaxBackground options.
11239 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
11240 need integer values, not strings. (Vaughn Iverson)
11242## pandoc 1.15.2 (2015-11-15)
11244 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
11245 ConTeXt rather than LaTeX (#2463).
11247 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
11249 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
11250 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
11253 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
11254 parsing (#2469). Tightened up the inline HTML parser so it disallows
11257 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
11261 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
11262 Paragraphs can be followed by lists, even if there is no blank line
11263 between the two blocks. However, this should only be true if the
11264 paragraph is not within a list, were the preceding block should be
11265 parsed as a plain instead of paragraph (to allow for compact lists).
11266 Thanks to @rgaiacs for bringing this up.
11267 + Allow toggling header args (Albert Krewinkel, #2269).
11268 Org-mode allows to skip the argument of a code block header argument if
11269 it's toggling a value. Argument-less headers are now recognized,
11270 avoiding weird parsing errors.
11271 + Fix markup parsing in headers (Albert Krewinkel, #2504).
11272 Markup as the very first item in a header wasn't recognized. This was
11273 caused by an incorrect parser state: positions at which inline markup
11274 can start need to be marked explicitly by changing the parser state.
11275 This wasn't done for headers. The proper function to update the state
11276 is now called at the beginning of the header parser, fixing this issue.
11277 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
11278 Smart quotes, ellipses, and dashes should behave like normal quotes,
11279 single dashes, and dots with respect to text markup parsing.
11280 + Require whitespace around definition list markers (#2518).
11281 This rule was not checked before, resulting in bugs with footnotes
11282 and some link types.
11286 + Pipe tables with long lines now get relative cell widths (#2471).
11287 If a pipe table contains a line longer than the column width (as set by
11288 `--columns` or 80 by default), relative widths are computed based on the
11289 widths of the separator lines relative to the column width. This should
11290 solve persistent problems with long pipe tables in LaTeX/PDF output, and
11291 give more flexibility for determining relative column widths in other
11292 formats, too. For narrower pipe tables, column widths of 0 are used,
11293 telling pandoc not to specify widths explicitly in output formats that
11295 + Improved parser for `mmd_title_block`. We now allow blank metadata
11296 fields. These were explicitly disallowed before.
11297 + Citation keys can now contain `://`, so URLs and DOIs can be used
11298 as citation keys (jgm/pandoc-citeproc#166).
11300 * Beamer template: fix incompatibility of section slides with natbib.
11301 Natbib (and presumably biblatex) bibliography commands create
11302 their own section. Since these are in frame environments,
11303 we have an incompatibility with the `\AtBeginSection` macro
11304 which creates a special frame when a new section occurs.
11305 (We can't have a frame inside another frame.) This change disables
11306 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
11307 bringing the problem to my attention. This supersedes #145. See
11310 * Textile reader: don't do smart punctuation unless explicitly asked
11311 (#2480). Note that although smart punctuation is part of the textile
11312 spec, it's not always wanted when converting from textile
11313 to, say, Markdown. So it seems better to make this an option.
11315 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
11316 The `comment` environment is handled in a similar way to the
11317 `verbatim` environment, except that its content is discarded.
11319 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
11320 Jesse Rosenthal). This fixes a problem with links in notes.
11322 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
11323 (mb21). For LaTeX, also collect `lang` and `dir` attributes on spans and
11324 divs to set the `lang`, `otherlangs` and `dir` variables if they aren’t set
11329 + Use proper command for `\textarabic` (mb21).
11330 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
11331 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
11332 to link to Div or Span elements. We now don't bother defining `\label`
11333 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
11334 + Avoid footnotes in list of figures (#1506).
11335 + Properly handle footnotes in captions (#1506).
11336 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
11337 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
11338 `toccolor` is set (#2508).
11340 * Textile writer: support start number in ordered lists (#2465).
11342 * OpenDocument writer: Allow customization of opendocument
11343 automatic styles. Automatic styles can now be inserted in the
11344 template, which now provides the enclosing `<office:automatic-styles>`
11347 * Docx writer: insert space between footnote reference and note (#2527).
11348 This matches Word's default behavior.
11350 * EPUB writer: don't download linked media when `data-external` attribute
11351 set (#2473). By default pandoc downloads all linked media and includes it
11352 in the EPUB container. This can be disabled by setting `data-external` on
11353 the tags linking to media that should not be downloaded. Example:
11355 <audio controls="1">
11356 <source src="http://www.sixbarsjail.it/tmp/bach_toccata.mp3"
11357 type="audio/mpeg"></source>
11360 * HTML writer: use width on whole table if col widths sum to < 100%.
11361 Otherwise some browsers display the table with the columns
11362 separated far apart.
11364 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
11365 `abstract` (Andrew Dunning).
11367 * HTML-based templates (Andrew Dunning):
11369 + Use en dash instead of hyphen between title prefix and title.
11370 + Add `keywords` to metadata.
11371 + Add `lang`, `dir`, `quotes` where missing.
11372 + Always make author and date display conditional.
11373 + Updated dzslides template from source.
11375 * Man template: make "generated by" comment conditional.
11377 * LaTeX, Beamer templates:
11379 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
11380 filled by commands that make babel understand the polyglossia-style
11381 language directives (mb21, #137).
11382 + Improved formatting of conditionals; `$for$` is always provided to allow
11383 multiple options (Andrew Dunning, #141).
11384 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
11385 to improve support for LuaTeX (Andrew Dunning, #135).
11386 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
11387 - use same options for all LaTeX engines;
11388 - add `subtitle` and `keywords` to PDF metadata;
11389 - do not override `hyperref` link coloring without user input, effectively making
11390 the `hidelinks` option the default (removed as a separate variable);
11391 - link colors can be enabled (using a slightly darker version of the old
11392 defaults) using a new `colorlinks` variable, automatically used by
11393 the LaTeX writer when custom colors are specified;
11394 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
11395 `colorlinks`, and is only applied if `colorlinks` is disabled.
11397 * ConTeXt template (Andrew Dunning):
11399 + New variables for controlling styles: `linkstyle`, `linkcolor`,
11400 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
11401 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
11402 `monofont`, `mathfont`, `fontsize`.
11403 + Default template no longer supports MkII.
11404 + Improve writing of title block (suppressing numbering of first page).
11405 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
11406 + Support `subtitle`, `abstract`.
11407 + Support list of figures (`lof`), list of tables (`lot`).
11408 + Disable link styling by default.
11409 + Define styles for all section types.
11410 + Enable microtype.
11411 + Improved formatting of conditionals.
11413 * Beamer template: added code to prevent slide breaks inside paragraphs
11414 (#2422, thanks to Nick Bart). This will matter, in practice, only when
11415 `allowframebreaks` is used. It is especially helpful for bibliography
11418 * OpenDocument template: Add `<office:automatic-styles>` tag around
11419 automatic styles. The writer now longer provides this (see #2520).
11421 * Restored Text.Pandoc.Compat.Monoid.
11423 * Do not export (<>) from custom Prelude. The Prelude now matches
11424 base 4.8 Prelude's API.
11426 * Don't use custom prelude with ghc 7.10. Use the custom prelude
11427 only for earlier versions. This change makes `stack ghci` and
11428 `cabal repl` work (#2503), at least with ghc 7.10.
11430 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
11431 This prevents problems building haddocks with "C" locale.
11433 * Change default for old-locale flag to False.
11435 * Use stack in deb, osx, and Windows package generators.
11437 * Added Vagrantfile for building deb in vm.
11438 This should help in automating binary package creation. 'make package'
11439 will make the package. 'make package COMMIT=blah' will make the package
11444 + Consistent capitalization for pandoc and Markdown.
11445 + Fixed `auto_identifiers` examples (Benoit Schweblin).
11446 + Improved documentation of template variables (Andrew Dunning).
11448## pandoc 1.15.1 (2015-10-15)
11450 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
11451 and reexported from `Text.Pandoc` (Alex Vong). This allows
11452 writers to access it. (Alex Vong) (API change)
11454 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
11455 `subscripts` (#2401).
11457 * Added `odt` as input format (MarLinn). Added new module
11458 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
11459 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
11460 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
11461 Partly implemented features: Citations, Tables.
11465 + Add basic tests for each header style (Ophir Lifshitz).
11466 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
11467 + Skip spaces in headers (Ophir Lifshitz).
11468 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
11469 `# Header {id="myid" class="foo bar"}`
11470 is now equivalent to `# Header {#myid .foo .bar}`.
11471 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
11472 (Kristof Bastiaensen)
11473 + Pipe tables: allow indented columns. Previously the left-hand column
11474 could not start with 4 or more spaces indent. This was inconvenient
11475 for right-aligned left columns. Note that the first (header column)
11476 must still have 3 or fewer spaces indentation, or the table will be
11477 treated as an indented code block.
11478 + Fix regression: allow HTML comments containing `--`.
11479 Technically this isn't allowed in an HTML comment, but
11480 we've always allowed it, and so do most other implementations.
11481 It is handy if e.g. you want to put command line arguments
11486 + Don't eat excess whitespace after macros with only optional
11488 + Support longtable (#2411).
11489 + Implement `\Cite` (#2335).
11490 + Support abstract environment. The abstract populates an
11491 `abstract` metadata field.
11492 + Properly handle booktabs lines. Lines aren't part of the
11493 pandoc table model, so we just ignore them (#2307).
11497 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
11498 + Updated for new automatic header attributes.
11499 + Add auto identifiers if not present on headers. This makes
11500 TOC linking work properly.
11501 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
11502 + Test `<ol>` type, class, and inline list-style(-type) CSS
11504 + Better handling of "section" elements (#2438). Previously
11505 `<section>` tags were just parsed as raw HTML blocks. With
11506 this change, section elements are parsed as Div elements with
11507 the class "section".
11509 * MediaWiki reader: handle unquoted table attributes (#2355).
11513 + Added proper support for DocBook `xref` elements (Frerich Raabe).
11514 Added `dbContent` field to reader state, so we can lookup
11516 + Handle `informalexample` (#2319).
11520 + Create special punctuation test (Ophir Lifshitz).
11521 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
11522 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
11523 in `headers.docx` with pandoc's current `styles.xml`, which
11524 contains styles for Heading 1 through 6. Added Heading 4
11525 through 7 to the test document. Note that Heading 7 is not
11526 parsed as a Heading because there is no Heading 7 style.
11528 * RST reader: better handling of indirect roles.
11529 Previously the parser failed on this kind of case
11531 .. role:: indirect(code)
11533 .. role:: py(indirect)
11538 Now it correctly recognizes `:py:` as a code role.
11542 + Add auto identifiers if not present on headers
11543 (#2354, Juliusz Gonera).
11544 + Allow verse blocks to contain empty lines (#2402,
11547 * EPUB reader: stop mangling external URLs (#2284).
11551 + Don't insert `\ ` when complex expression in matched pairs.
11552 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
11553 + Ensure that `\ ` is inserted when needed before Cite and Span
11554 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
11555 + Normalize headers only in "standalone" mode (#2394).
11557 * Haddock writer: escape `*` and `^` (G. Bataille).
11561 + In TOC, add links to headers (#829).
11562 + Use unicode super/subscripts for digits in plain output
11563 (when the `superscripts` and `subscripts` extensions are
11568 + Moved invalid character stripping to `formattedString`.
11569 This avoids an inefficient generic traversal (#2356).
11570 + Use user data directory for `reference.docx` archive.
11571 This allows the test suite to work without installing pandoc first.
11572 It also brings the docx writer in line with the odt writer.
11573 + Tests: docx writer tests now use `../data` for data directory.
11574 This allows tests to be run without installing first.
11575 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
11579 + Fixed detection of 'chapters' from template.
11580 If a documentclass isn't specified in metadata, but the
11581 template has a hardwired bookish documentclass, act as if
11582 `--chapters` was used. This was the default in earlier
11583 versions, but it has been broken for a little while.
11584 + Correctly recognize book documentclass in metadata (#2395).
11585 + Set language-related variables automatically, depending
11586 on the value of the `lang` field, which is now always
11587 assumed to be in BCP47 format (mb21, #1614, #2437).
11588 + Add `\protect` to `\hyperdef` in inline context. This way we
11589 don't get an error when this is used as a moveable argument (#2136).
11590 + Support all frame attributes in Beamer.
11591 + Percent-encode more special characters in URLs (#1640, #2377).
11592 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
11596 + Update KaTeX JS and CSS versions (Emily Eisenberg).
11597 + For dzslides, add `role="note"` for speaker notes (#1693).
11598 + Percent-encode more special characters in URLs (#1640, #2377).
11599 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
11600 + Render Div with class `section` as `<section>` in HTML5.
11604 + In TOC, replace literal `<br/>` with space (#2105).
11605 + With `--webtex`, include image file rather than `data:` URI (#2363).
11607 * Native writer: format Div properly, with blocks separated.
11609 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
11614 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
11615 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
11619 + Beamer: Add `innertheme`, `outertheme` variables
11620 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
11621 Integrate recent font and language updates from LaTeX template;
11622 allow use of `mainfont` variable for changing the slide text
11623 in XeTeX and LuaTeX (Andrew Dunning, #131).
11624 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
11625 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
11626 (Andrew Dunning, #122). Support handling of bidirectional
11627 text (mb21, #120). Improve reliability of superscripts/subscripts
11628 under XeTeX and prevent letters and numbers from appearing on a
11629 different baseline by removing use of the `realscripts` package
11630 (via `xltxtra`). To restore use of OpenType characters for these
11631 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
11632 `header-includes` (Andrew Dunning, #130). Remove redundant
11633 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
11634 `indent`, `subparagraph` variables (Andrew Dunning).
11635 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
11636 #113). Prevent package clash with `tufte-latex` and other classes that
11637 include `hyperref` or `color` (Xavier Olive, #115).
11638 + ConTeXt: Support handling of bidirectional text (mb21, #120).
11639 + LaTeX and ConTeXt: Use more specific language variables.
11640 Instead of directly using `lang`, we now use `babel-lang` and
11641 `polyglossia-lang` and `context-lang`. These variables are set by
11642 the writers to the necessary values, based on the `lang` variable
11643 (which now always takes a value in BCP47 format). (mb21, #114, #129).
11644 + HTML: Support handling of bidirectional text (mb21, #120).
11645 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
11646 Add dir attribute in html5 (Andrew Dunning).
11647 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
11648 Add `width`, `height` variables (Anrew Dunning). Update template
11649 from 3.1 source (Andrew Dunning). All configuration options are now
11650 available as variables, but are only be included if set (reveal.js
11651 uses defaults otherwise).
11652 + man: Added comment stating that the page is autogenerated by pandoc,
11653 giving version. Added `adjusting` and `hyphenate` variables
11656 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
11658 * MediaBag: ensure that `/` is always used as path separator.
11660 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
11662 * Added `--bash-completion` option. This generates a bash completion
11663 script. To use: `eval "$(pandoc --bash-completion)"`.
11665 * Text.Pandoc.Error: Define Typeable and Exception instances
11666 for PandocError (#2386).
11668 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
11669 This makes keys with extra space at the beginning and end
11676 will now be a link to bar (it wasn't before).
11678 * Text.Pandoc: disable `auto_identifiers` for epub.
11679 The epub writer inserts its own auto identifiers;
11680 this is more complex due to splitting into "chapter" files.
11682 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
11683 It now reexports Data.Time.
11685 * Use custom Prelude to avoid compiler warnings.
11687 + The (non-exported) prelude is in prelude/Prelude.hs.
11688 + It exports Monoid and Applicative, like base 4.8 prelude,
11689 but works with older base versions.
11690 + It exports (<>) for mappend.
11691 + It hides 'catch' on older base versions.
11693 * Added a `stack.ymal` and stack install instructions to INSTALL.
11695 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
11697 * Added note to CONTRIBUTING.md about ghc versions and travis.
11699 * Clarify docs on block quotes. The space after `>` is optional (#2346).
11701 * Removed obsolete reference to default.csl (#2372).
11703 * List all styles in manual for `--reference-docx` (Chris Black)
11705 * Don't capitalize header links in man page.
11707 * Added section on repl to CONTRIBUTING.md.
11709 * README: Added space after backslash in image example (#2329).
11711 * Document details of citation locator terms (Nick Bart).
11713 * Fixed some internal links in README (#2309).
11715 * Improve CSL documentation, variables documentations,
11716 links, and cross-references in README. (Andrew Dunning)
11718 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
11720 * Use `newManager` instead of `withManager` in recent `http-client`.
11721 This avoids a deprecation warning.
11723 * Allow building with latest versions of http-types,
11724 HUnit, criterion, syb, aeson.
11726 * Updated benchmark program for new criterion API.
11728 * Setup.hs: rewrite so as not to use process, directory, filepath.
11729 Using anything outside base is dangerous, since older
11730 versions of ghc may link against two different versions.
11732 * Added appveyor (Windows continuous integration) builds.
11734 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
11735 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
11736 `make .travis.yml` regenerates it based on the tested-with
11737 field of the cabal file.
11739## pandoc 1.15.0.6 (2015-07-15)
11741 * `--self-contained`: Fixed overaggressive CSS minimization
11742 (#2301, 2286). Previously `--self-contained` wiped out all
11743 spaces in CSS, including semantically significant spaces.
11744 This was a regression from 1.14.x.
11746 * Markdown reader: don't allow bare URI links or autolinks in link
11747 label (#2300). Added test cases.
11749 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
11750 Previously we disallowed `-` at the end of an autolink,
11751 and disallowed the combination `=-`. This commit liberalizes the
11752 rules for allowing punctuation in a bare URI, and adds test cases.
11753 One potential drawback is that you can no longer put a bare
11754 URI in em dashes like this:
11755 `this uri---http://example.com---is an example.`
11756 But in this respect we now match github's treatment of bare URIs.
11758 * HTML writer: support speaker notes in dzslides.
11759 With this change `<div class="notes">` and also `<div class="notes"
11760 role="note">` will be output if `-t dzslides` is used. So we can
11761 have speaker notes in dzslides too. Thanks to maybegeek.
11763 * Updated dzslides template.
11765 * Improved documentation of options to print system default files (#2298).
11766 `--print-default-data-file` and `--print-default-template`.
11768 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
11769 (Tiziano Müller). MathJax seems currently to be the only maintained
11770 math rendering extension for DokuWiki.
11772 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
11773 div as top-level header (#2294). This fixes a bug with `--section-divs`,
11774 where the final references section added by pandoc-citeproc, enclosed in
11775 its own div, got nested in the div for the section previous to it.
11777 * Allow vector 0.11.
11779 * Require cmark > 0.4.
11781## pandoc 1.15.0.5 (2015-07-10)
11783 * HTML writer: Fixed email javascript obfuscation with `mailto:`
11784 URLs (#2280). This fixes a potential security issue. Because
11785 single quotes weren't being escaped in the link portion, a
11786 specially crafted email address could allow javascript code injection.
11788 * RST reader: allow inline formatting in definition list field
11789 names (Lars-Dominik Braun).
11791 * PDF: Make sure `--latex-engine-opt` goes before the filename
11792 on the command line. LaTeX needs the argument to come after
11793 the options (#1779).
11795 * CommonMark writer: fixed tags used for super/subscript.
11797 * ConTeXt template: activate hanging indent for definition lists
11800 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
11801 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
11802 to include `hsb2hs` in Build-Tools in cabal.
11804 * Improved Windows installer (thanks to nkalvi).
11806 + When per-machine installation is chosen, the system path
11807 is updated instead of the user's.
11808 + An appropriate default is used for per-machine installation
11810 + Admin privileges are no longer required for a per-user install
11812 * Travis: unpack sdist for build to catch packaging bugs.
11814 * Improved documentation on where user templates go (#2272).
11816## pandoc 1.15.0.4 (2015-07-03)
11818 * Added pandoc.1 man page to the repository. It is no longer
11819 built as part of the cabal build process. (This proved too
11820 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
11821 when `README` is changed.
11823 * Copying of the man page now respects `--destdir` (#2262).
11825 * Improved error messages for filters. User is now informed if
11826 the filter requires an interpreter that isn't found in the path,
11827 or if the filter returns an error status.
11829## pandoc 1.15.0.3 (2015-07-02)
11831 * Ensure target directory is created when installing man page.
11833## pandoc 1.15.0.2 (2015-07-02)
11835 * Added files needed for building man page to Extra-Source-Files.
11837## pandoc 1.15.0.1 (2015-07-01)
11839 * Man page is now built and installed as part of the cabal build
11840 process. Removed Makefile target for man page.
11842## pandoc 1.15 (2015-07-01)
11844 * Man page changes:
11846 + Removed `--man1`, `--man5` options (breaking change).
11847 + Removed `Text.Pandoc.ManPages` module (breaking API change).
11848 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
11849 create the man page from README using a custom template and filters.
11850 + Added `man/` directory with template and filters needed to build
11852 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
11853 Now there is just pandoc.1, which has all the content from README.
11854 This change was needed because of the extensive cross-references
11855 between parts of the README.
11856 + Removed old `data/pandoc.1.template` and
11857 `data/pandoc_markdown.5.template`.
11859 * OpenDocument writer: Do not add a carriage return after a hard
11860 line break (Michael Chladek).
11864 + use `\goto` for internal links.
11865 + Added a `%` at end for `\reference` to avoid spurious space.
11867 * Ignore sandbox on 'make quick'
11869## pandoc 1.14.1 (2015-06-30)
11871 * Added `--man1` and `--man5` options to pandoc, allowing
11872 pandoc to generate its own man pages. Man pages are no longer
11873 automatically generated in the build process (the process for
11874 this was too complex and prone to failure, #2190). The
11875 `make-pandoc-man-pages` executable has been removed. The
11876 `man/` directory has been removed, and man page templates
11877 have been moved to `data/`. NOTE TO PACKAGERS: You will no
11878 longer find pandoc's man pages in `man/`, but you can
11879 generate them using `pandoc --man1 > pandoc.1` and `pandoc
11880 --man5 > pandoc_markdown.5`.
11882 * Added new unexported module: `Text.Pandoc.ManPages`.
11884 * `README` now acts like a data file (even though it isn't in
11885 `data/`). So, for example, `pandoc --print-default-data-file README`
11886 will produce the README.) This change was required for the `--man1`
11887 and `--man5` options, since the man pages are produced from the
11888 README, but it may be useful for other purposes as well.
11890 * Allow `reference.docx` and `reference.odt` to be used with
11891 `--print-default-data-file` and to shadow defaults if placed in
11892 the user data directory. Note that as of 1.14, we no longer
11893 include these files as data files; instead, we include their
11894 components. This change causes pandoc to behave as if it has
11895 these data files; they are constructed on demand when needed
11896 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
11898 * Fixed regression in CSS parsing with `--self-contained` (#2224).
11899 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
11900 silently drops big sections of CSS. This commit replaces the
11901 use of css-text with a small but principled CSS preprocessor,
11902 which removes whitespace and comments and replaces `url()` with
11903 base 64 data when possible.
11905 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
11906 This will allow math to work when pages are being viewed locally.
11908 * `Text.Pandoc.Options`: Export `plainExtensions`.
11909 These are the extensions used in `plain` output.
11911 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
11912 math mode; treat them as regular inline text. Normally these will
11913 cause an error in LaTeX, but there are contexts (e.g. `alltt`
11914 environments) where they are allowed.
11916 * HTML reader: allow `<body>` to close `<head>`.
11918 * DocBook reader: support `mediaobject`s and `figures` (#2184, mb21).
11920 * RST reader: Fix reference names with special characters
11921 (Lars-Dominik Braun).
11923 * Textile writer: escape `+` and `-` as entities (#2225).
11925 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
11927 * Plain writer: don't use symbols for super/subscript (#2237).
11928 Simplified code by using `plainExtensions`.
11930 * InDesign writer: Properly escape URLs containing more than one
11931 colon character (gohai).
11933 * Docx writer: Make sure we use dist version of `reference.docx`
11934 (and not the user's version) for certain settings. Taking some
11935 settings values from a user-supplied reference.docx can lead to
11936 corruption. This fixes a regression from the last release (#2249).
11938 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
11939 `getDefaultReferenceODT` (API change). These functions have been
11940 removed from the Docx and ODT writers.
11942 * LaTeX template (Xavier Olive):
11943 + Added `CJKmainfont` and `CJKoptions` variables.
11944 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
11946 * Epub templates: use `author.role`, not `author.type`.
11948 * Bump cmark version to >= 0.3.4.
11950 * Improved Windows installer (#2205, thanks to nkalvi).
11951 Users can now select a per-user or systemwide install, and can set
11952 the installation path. At the end of installation, the install location
11953 is given. The install location is also now given in the list of
11954 installed programs in Control Panel. Cleaner WiX syntax is used for
11957 * Added `download_stats` target to Makefile.
11959## pandoc 1.14.0.4 (2015-06-02)
11961 * Added missing commonmark template.
11963 * Improved try pandoc (moved button, show raw command).
11965## pandoc 1.14.0.3 (2015-06-01)
11967 * Allow compilation with syb 0.5.*.
11969 * Custom writer: fixed some compiler warnings for ghc < 7.10.
11971## pandoc 1.14.0.2 (2015-05-31)
11973 * Allow building with hslua 0.4.
11975## pandoc 1.14.0.1 (2015-05-28)
11977 * Fixed problem with building of `reference.docx` and `reference.odt`
11978 when the `embed_data_files` flag is used. Instead of having a phase
11979 of the build where `reference.docx` and `reference.odt` are created
11980 from their constituent data files, we now construct these archives
11981 from their constituents when a `docx` or `odt` is built. The
11982 constituent files have been moved from `extra-source-files` to
11983 `data-files`, and `reference.docx` and `reference.odt` have been
11984 removed. Users can create their own `reference.docx` or
11985 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
11986 `make-reference-files.hs` has been removed, simplifying the build
11989 * Don't include generated man pages in extra-source-files (#2189).
11991 * Bumped upper bound for aeson.
11993 * ConTeXt writer: create internal link anchors for Div elements with
11994 identifiers. (This is needed for linked citations to work.)
11996## pandoc 1.14 (2015-05-27)
12000 * Added `commonmark` as input and output format.
12002 * Added `--verbose` flag for debugging output in PDF production (#1840,
12005 * Allow wildcards in `--epub-embed-font` arguments (#1939).
12007 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
12009 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
12010 This is enabled by default for those markdown flavors that
12011 support reading shortcut reference links, namely: `markdown`,
12012 `markdown_strict`, `markdown_github`, `markdown_php`.
12013 If the extension is enabled, the reader parses shortcut reference
12014 links like `[foo]`, and the writer creates such links unless doing
12015 so would cause problems. Users of markdown flavors that support
12016 shortcut reference links should not notice a difference in reading
12017 markdown, but the markdown pandoc produces may differ.
12018 If shortcut links are not desired, the extension can be disabled
12021### Behavior changes
12023 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
12024 A "dirty" TOC is created at the beginning of document.
12025 It can be regenerated after the document has been opened.
12027 * An implicit `--filter pandoc-citeproc` is now triggered only when the
12028 `--bibliography` option is used, and not when the `bibliography`
12029 field in metadata is specified (#1849).
12033 + Reference links with `implicit_header_references` are no longer
12034 case-sensitive (#1606).
12035 + Definition lists no longer require indentation for first line (#2087).
12036 Previously the body of the definition (after the `:` or `~` marker)
12037 needed to be in column 4. This commit relaxes that requirement,
12038 to better match the behavior of PHP Markdown Extra. So, now
12039 this is a valid definition list:
12043 + Resolve a potentially ambiguity with table captions:
12053 Is "bar" a definition, or the caption for the table? We'll count
12054 it as a caption for the table.
12055 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
12056 Markdown Extra. Note: If you have been using headerless pipe tables,
12057 this change may cause existing tables to break.
12058 + Allow pipe tables with header but no body (#2017).
12059 + Allow a digit as first character of a citation key (Matthias Troffaes).
12060 See https://github.com/jgm/pandoc-citeproc/issues/97
12064 + Don't limit includes to `.tex` extension (#1882).
12065 If the extension is not `.tex`, it must be given explicitly in
12066 the `\input` or `\include`.
12070 + Allow numbering in the style file. This allows inherited styles
12071 with numbering (lists) (Jesse Rosenthal).
12075 + Support smart punctuation (Craig Bosma).
12076 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
12077 `:noexport:` tag set are not exported. This mirrors org-mode.
12078 + Put header tags into empty spans (Albert Krewinkel, #2160).
12079 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
12080 Instead of being interpreted as part of the headline, the tags are now
12081 put into the attributes of empty spans. Spans without textual content
12082 won't be visible by default, but they are detectable by filters. They
12083 can also be styled using CSS when written as HTML.
12084 + Generalize code block result parsing (Albert Krewinkel).
12085 Previously, only code blocks were recognized as result blocks;
12086 now, any kind of block can be the result.
12088 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
12089 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
12093 + Add "inline" or "display" class to math spans (#1914).
12094 This allows inline and display math to be styled differently.
12095 + Include raw latex blocks if `--mathjax` specified (#1938).
12096 + Require highlighting-kate >= 0.5.14 (#1903).
12097 This ensures that all code blocks will be wrapped in a `div`
12098 with class `sourceCode`. Also, the default highlighting CSS
12099 now adds `div.sourceCode { x-overflow: auto; }`, which means
12100 that code blocks (even with line numbers) will acquire a scroll
12101 bar on screens too small to display them (e.g. mobile phones).
12102 See also jgm/highlighting-kate#65.
12106 + Use a declaration for tight lists (Jose Luis Duran, Joseph
12107 Harriott). Previously, pandoc hard-coded some commands to make
12108 tight lists in LaTeX. Now we use a custom command instead,
12109 allowing the styling to be changed in a macro in the header.
12110 (Note: existing templates may need to be modified to include
12111 the definition of this macro. See the current template.)
12112 + Beamer output: if the header introducing a slide has the
12113 class `fragile`, add the `[fragile]` option to the slide (#2119).
12115 * MediaWiki writer:
12117 + Use `File:` instead of the deprecated `Image:` for images and
12118 other media files (Greg Rundlett).
12122 + Render a `Div (id,_,_) [Para _]` element as a `para` element
12123 with an `id` attribute. This makes links to citations work in
12124 DocBook with pandoc-citeproc.
12128 + Normalize headings to sequential levels (Nikolay Yakimov).
12129 This is pretty much required by docutils.
12130 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
12131 + Better handling of raw latex inline (#1961). We use
12132 `` :raw-latex:`...` `` and add a definition for this role to
12137 + Remove `linear=no` from cover `itemref` (#1609).
12138 + Don't use `sup` element for epub footnotes (#1995).
12139 Instead, just use an a element with class `footnoteRef`.
12140 This allows more styling options, and provides better results
12141 in some readers (e.g. iBooks, where anything inside the a
12142 tag breaks popup footnotes).
12143 + Take TOC title from `toc-title` metadata field.
12147 + Implemented `FirstParagraph` style (Jesse Rosenthal).
12148 Following the ODT writer, we add the `FirstParagraph` style to the
12149 first text paragraph following an image, blockquote, table, heading,
12150 or beginning of document. This allows it to be styled differently.
12151 The default is for it to be the same as `Normal`.
12152 + Added `BodyText` style (Jesse Rosenthal).
12153 We apply a `BodyText` style to all unstyled paragraphs. This is,
12154 essentially, the same as `Normal`, except that since not everything
12155 inherits from `BodyText` (the metadata won't, for example, or
12156 the headers or footnote numbers), we can change the text in the body
12157 without having to make exceptions for everything. If we do want to
12158 change *everything*, we can still do it through `Normal`.
12159 + Altered `Blockquote` style slightly (Jesse Rosenthal).
12160 Since `BlockQuote` derives from `BodyText`, we just want to specify
12161 by default that it won't indent, regardless of what `BodyText` does.
12162 Note that this will not produce any visible difference in the default
12164 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
12165 + Added a style to figure images (Nikolay Yakimov).
12166 Figures with empty captions use style `Figure`.
12167 Figures with nonempty captions use style `Figure with Caption`, which
12168 is based on `Figure`, and additionally has `keepNext` set.
12172 + Added figure captions (Nikolay Yakimov). The following styles are
12174 `Figure` -- for figure with empty caption),
12175 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
12176 `FigureCaption` (based on `Caption`) -- for figure captions.
12177 Also, `TableCaption` (based on `Caption`) is used for table captions.
12181 * New `Text.Pandoc.Error` module with `PandocError` type
12182 (Matthew Pickering).
12184 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
12185 (Matthew Pickering). This allows better handling of errors.
12187 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
12189 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
12191 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
12192 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
12193 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
12196 * New `Ext_shortcut_reference_links` constructor for `Extension`
12197 (Konstantin Zudov).
12203 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
12204 + Check for tex macros after indented code (#1973).
12205 + Rewrote `charsInBalancedBrackets` for efficiency.
12206 + Make sure a closing `</div>` doesn't get included in a
12207 definition list item (#2127).
12208 + Don't parse bracketed text as citation if it might be a link,
12209 image, or footnote (Nikolay Yakimov).
12210 + Require space after key in mmd title block (#2026, Nikolay
12211 Yakimov). Require space after key-value delimiter colon in mmd title
12213 + Require nonempty value in mmd title block (Nikolay Yakimov).
12214 + Disable all metadata block extensions when parsing
12215 metadata field values (#2026, Nikolay Yakimov). Otherwise we
12216 could get a mmd title block inside YAML metadata, for example.
12220 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
12221 + Handle tables with `<th>` in body rows (#1859, mb21).
12222 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
12223 to see if the input starts with `<!--`. If not, it's bogus comment
12224 mode and we fail `htmlTag`.
12225 + Handle `base` tag; if it has an `href` value, this is added to
12226 all relative URLs in links and images.
12230 + Look inside "info" elements for section titles (#1931).
12234 + Parse images in deprecated vml format (Jesse Rosenthal).
12235 + Allow sub/superscript verbatims (Jesse Rosenthal).
12236 Verbatim usually shuts off all other run styles, but we don't want it
12237 to shut off sub/superscript.
12241 + Handle `tabular*` environment (#1850).
12242 Note that the table width is not actually parsed or taken into
12243 account, but pandoc no longer chokes on it.
12244 + Ignore options in `\lstinline` rather than raising error (#1997).
12245 + Add some test cases for simple tables (Mathias Schenner).
12246 + Handle valign argument in tables (Mathias Schenner) (currently
12247 we just ignore this).
12248 + Allow non-empty colsep in tables (Mathias Schenner).
12249 The `tabular` environment allows non-empty column separators
12250 with the "@{...}" syntax. Previously, pandoc would fail to
12251 parse tables if a non-empty colsep was present. With this
12252 commit, these separators are still ignored, but the table gets
12253 parsed. A test case is included.
12254 + Recognize `\newpage` as a block command.
12255 + Allow block content in `\title{}` (#2001).
12256 + Check for block-level newcommand aliases in blockCommand (Nikolay
12258 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
12259 + Properly gobble spaces after `\\` (#2007).
12263 + Handle newlines in table cells, and empty cells (#1919).
12267 + Allow image links with non-image targets (Hans-Peter Deifel).
12268 This matches behavior of Org-Mode for links like
12269 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
12273 + Don't print empty id attributes (thanks to Steve Horne).
12277 + Fixed list-style-type for numbered example lists.
12278 Should be "decimal," not "example" (#1902).
12279 + Do not omit missing `alt` attribute on `img` tag (#1131,
12281 + Allow multiple colgroups in table (#2122).
12282 + In revealjs, ensure that lists in speaker notes don't add "fragment"
12283 classes, which can cause additional keypresses to be needed to
12284 advance a slide (#1394).
12288 + Don't escape `$` in URL (#1913).
12289 + Don't use listings in headers (Matthew Pickering, #1963).
12290 + Recognize book documentclass if set in metadata (#1971).
12291 This sets `--chapters` implicitly if the documentclass in metadata
12292 is a book documentclass. Previously this was done only if a book
12293 documentclass was set in a variable.
12294 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
12295 + Make `mainlang` work when `lang` is in metadata (#2174).
12299 + Fix wrapping by using breakable spaces (Tim Lin).
12303 + Fixed toc depth in RST writer. Previously the depth was being
12304 rendered as a floating point number with a decimal point.
12308 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
12309 compatibility with original Markdown. We now escape `<` and `>`
12310 with entities. Also, we now backslash-escape square brackets.
12311 + Avoid introducing spurious list items through wrapping (#1946).
12312 + Don't emit span tags if plain or raw HTML disabled.
12314 * MediaWiki writer:
12316 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
12320 + Insert some needed blank lines (#1860).
12321 + Avoid wrapping after list marker (#1858).
12325 + Properly handle internal links to IDs in spans, divs (#1884).
12326 + Use plain writer for metadata dc: fields (#2121).
12327 This gives better results when we have, e.g. multiple paragraphs.
12328 Note that tags aren't allowed in these fields.
12329 + Properly handle image links without an extension (#1855).
12330 + Improved chapter splitting and internal link rewriting (#1887,
12331 #2162, #2163). This will ensure that internal links work and
12332 that the references section produced by pandoc-citeproc is
12333 in its own chapter.
12334 + Fixed handling of svg images (#2183).
12338 + Better handling of raw blocks and inlines (#1951).
12339 Previously these were always escaped and printed verbatim.
12340 Now they are ignored unless the format is `icml`, in which
12341 case they are passed through unescaped.
12342 + Fixed image URIs in ICML output (gohai).
12346 + Raise error if loadstring returns an error status.
12347 + Raise `PandocLuaException` instead of using 'error'.
12348 Eventually we'll change the return type so that no exception
12349 is involved, but at least this can be trapped.
12350 + Use UTF-8 aware bytestring conversion.
12351 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
12352 Also factored out ByteString, since it's only used as an intermediate
12357 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
12358 + Filter out illegal XML characters (#1992, Matthew Pickering).
12359 + Added `noProof` to docx syntax highlighting `SourceCode` style.
12360 + Added footnotes id -1 and 0 (Jesse Rosenthal).
12361 Word uses, by default, footnotes with id -1 and 0 for separators. If a
12362 user modifies `reference.docx`, they will end up with a `settings.xml`
12363 file that references these footnotes, but no such footnotes in the
12364 document. This will produce a corruption error. Here we add these to the
12365 document and `settings.xml` file, so future modifications won't break
12367 + Handle lists correctly inside table cells (Jesse Rosenthal).
12368 Previously we didn't transform lists inside table cells.
12369 + Set firstRow information in tables (Nikolay Yakimov).
12370 + Don't replace `SourceCode` style in `reference.docx` if it is defined
12371 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
12372 any `SourceCode` and `*Tok` styles in `reference.docx`.
12373 + Attempt to match international style names (#1607, Nikolay Yakimov).
12374 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
12375 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
12376 `Definition`, `First Paragraph`.
12377 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
12378 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
12379 `Footnote Ref -> Footnote Reference`.
12380 + Added `Caption` style (Nikolay Yakimov).
12381 + Changed these styles' inheritance (Nikolay Yakimov):
12382 `Image Caption <- Caption`, `Table Caption <- Caption`.
12383 + Remove `SourceCode` style from `reference.docx` (#1872).
12384 This is added automatically by the docx writer.
12385 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
12387 * `Text.Pandoc.PDF`
12389 + Don't suggest "Try xelatex" if xelatex already in use (mb21, #1832).
12390 + More comprehensible errors on image conversion (#2067).
12391 EPS can't be supported without shelling out to something like
12392 ImageMagick, but at least we can avoid mysterious error messages.
12394 * `Text.Pandoc.Shared`:
12396 + Make safeRead safe (#1801, Matthew Pickering).
12397 + Added `mapLeft`, `hush` (Matthew Pickering).
12399 * `Text.Pandoc.Pretty`:
12401 + Remove partial function (Matthew Pickering).
12403 * `Text.Pandoc.SelfContained`:
12405 + Add `;charset=utf-8` to script mime type if missing (#1842).
12406 + Improved building of data URIs (#1940). Now base64 is used except
12407 for `text/*` mime types.
12408 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
12409 + Properly handle data URIs in css urls (#2129).
12410 Use a proper CSS parser (adds dependency on `text-css`).
12412 * `Text.Pandoc.UTF8`:
12414 + Better handling of bare CRs in input files (#2132).
12415 Previously we just stripped them out; now we convert
12416 other line ending styles to LF line endings.
12418 * `Text.Pandoc.ImageSize`:
12420 + Fixed some exif header parsing bugs (#1834).
12421 + Make imageSize return an Either, not a Maybe (#1834).
12422 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
12423 parse failure (rather than `error`).
12424 + Improved warnings when image size can't be determined.
12425 + Removed error landmines (Matthew Pickering).
12427 * Added woff2 to MIME types (Alfred Wechselberger).
12429 * pandoc: When a binary input format is used, warn that file
12430 arguments past the first one are being ignored (Matthew Pickering).
12432### Template changes
12436 + Degrade gracefully if `\paragraph` not defined.
12437 + Include `grffile` together with `graphicx` (#2074).
12438 This properly handles filenames containing spaces and dots.
12439 + Redefine `\paragraph`, `\subparagraph`... to behave more
12440 like section headers (#1658).
12441 + Import hyperref before polyglossia to avoid an error with xelatex,
12442 "please load package hyperref before bidi package" (Nick Bart).
12443 + Added `toccolor` variable to control link color in toc (Kaixhin).
12445 * LaTeX, Beamer templates:
12447 + Provide `\tightlist`, which is now used by the LaTeX writer.
12448 + Use polyglossia in beamer (#85).
12449 + Use `bibliography` instead of `biblio-files`
12450 (#1661). Also use `\addbibresource` instead of `\bibliography` for
12452 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
12453 variable that is derived from a comma-separated list in `lang`;
12454 the last language is `mainlang` and the others are `otherlang`.
12458 + Use `div`, not `p`, for "rights" on title page.
12459 + Added header-includes, include-before, include-after (#1987).
12461 * OpenDocument template:
12463 + Use `text:p` instead of `text:h` for title.
12464 Using `text:h` causes problems with numbering. Closes #2059.
12465 Thanks to @nkalvi for diagnosing this.
12467 * reveal.js template:
12469 + Link to non-minified css, js. The minified versions no longer
12470 ship with the library.
12471 + Correctly include style CSS (#1949).
12472 + New configurable options options: `center`, `maxScale`, `slideNuber`
12473 (Dmitry Smirnov, pandoc-templates#89).
12474 + Moved custom CSS after theme. This allows custom CSS to modify
12475 themes, instead of being replaced by them.
12476 + Allow `center` to be set to false.
12478### Under the hood improvements
12480 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
12481 Yakimov). Instead the repository now includes the component text files,
12482 and the zipped binaries are built from these using a helper
12483 program, `make-reference-files`. This should make maintenance of
12484 these components easier going forward.
12486 * `Text.Pandoc.Parsing`:
12488 + Added new `<+?>` combinator (Nikolay Yakimov).
12489 + Added `stateHeaderKeys` to `ParserState`.
12491 * `make_deb.sh` fixes:
12493 + Detect architecture.
12494 + Add Installed-Size to debian package control file (#1900).
12495 + Use `fakeroot` to get permissions right.
12496 + Use `mkdir` and `cp` instead of `install`.
12497 + Set permissions of directories to 755.
12498 + Install in `/usr` rather than `/usr/local`.
12499 + Compress man pages.
12500 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
12502 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
12503 to assist with transition to `time` 1.5.
12505 * Updated CONTRIBUTING.md with information about issue tags (Matthew
12508 * Updated travis installs to the new sudo-less syntax (Tim Lin).
12510 * Updated dependency version bounds.
12512 * EPUB tests: don't use `joinPath`, which varies across platforms.
12513 Instead, use a forward-slash to join paths, regardless of the
12514 platform. This matches the way `MediaBag` now works.
12516 * Clarify JSON input and output in usage message (Caleb McDaniel).
12518 * Improved INSTALL instructions.
12520 * Always build man pages. Removed make-pandoc-man-pages flag.
12522 * Makefile: removed man target, now that we generate man pages by default.
12526 + Fixed typos (J. Lewis Muir).
12527 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
12528 + Added note on in-field markup in biblio databases (Nick Bart).
12529 + Fixed misleading example of raw HTML block.
12530 + Various minor formatting and consistency fixes for the program
12531 options (Andreas Lööw).
12532 + Made definition lists for options all "loose" for consistency.
12533 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
12534 `--bib2json` and `--bib2yaml` options (Nick Bart).
12535 + Removed obsolete reference to `mods2yaml` (Nick Bart).
12536 + Added section on syntax highlighting.
12537 + Documented `toccolor` variable.
12539## pandoc 1.13.2.1 (2015-04-15)
12541 * Updated to build with ghc 7.10.1.
12543 * Bumped package upper bounds for filepath, blaze-html, blaze-markup.
12545## pandoc 1.13.2 (2014-12-20)
12547 * TWiki Reader: add new new twiki reader (API chaneg, Alexander Sulfrian).
12551 + Better handling of paragraph in div (#1591).
12552 Previously text that ended a div would be parsed as Plain
12553 unless there was a blank line before the closing div tag.
12554 + Don't treat a citation as a reference link label (#1763).
12555 + Fix autolinks with following punctuation (#1811).
12556 The price of this is that autolinked bare URIs can no longer
12557 contain `>` characters, but this is not a big issue.
12558 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
12559 + Allow `startnum` to work without `fancy_lists`. Formerly
12560 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
12562 * RST reader (all Daniel Bergey):
12564 + Parse quoted literal blocks (#65). RST quoted literal blocks are
12565 the same as indented literal blocks (which pandoc already supports)
12566 except that the quote character is preserved in each line.
12567 + Parse RST class directives. The class directive accepts one or more
12568 class names, and creates a Div value with those classes. If the
12569 directive has an indented body, the body is parsed as the children of
12570 the Div. If not, the first block following the directive is made a
12571 child of the Div. This differs from the behavior of rst2xml, which
12572 does not create a Div element. Instead, the specified classes are
12573 applied to each child of the directive. However, most Pandoc Block
12574 constructors to not take an Attr argument, so we can't duplicate this
12576 + Warn about skipped directives.
12577 + Literal role now produces Code. Code role should have "code" class.
12578 + Improved support for custom roles
12580 - Added `sourceCode` to classes for `:code:` role, and anything
12581 inheriting from it.
12582 - Add the name of the custom role to classes if the Inline
12583 constructor supports Attr.
12584 - If the custom role directive does not specify a parent role,
12585 inherit from the `:span:` role.
12587 This differs somewhat from the `rst2xml.py` behavior. If a custom
12588 role inherits from another custom role, Pandoc will attach both
12589 roles' names as classes. `rst2xml.py` will only use the class of
12590 the directly invoked role (though in the case of inheriting from a
12591 `:code:` role with a `:language:` defined, it will also provide the
12592 inherited language as a class).
12593 + Warn about ignored fields in role directives.
12597 + Parse label after caption into a span instead of
12598 inserting an additional paragraph of bracketed text (#1747).
12599 + Parse math environments as inline when possible (#1821).
12600 + Better handling of `\noindent` and `\greektext` (#1783).
12601 + Handle `\texorpdfstring` more gracefully.
12602 + Handle `\cref` and `\sep` (Wikiwide).
12603 + Support `\smartcite` and `\Smartcite` from biblatex.
12607 + Retain display type of MathML output (#1719, Matthew Pickering).
12608 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
12609 + Make `embed` tag either block or inline (#1756).
12613 + Handle `keycombo`, `keycap` (#1815).
12614 + Get string content in inner tags for literal elements (#1816).
12615 + Handle `menuchoice` elements better, with a `>` between (#1817).
12616 + Include `id` on section headers (#1818).
12617 + Document/test "type" as implemented (Brian O'Sullivan).
12618 + Add support for calloutlist and callout (Brian O'Sullivan).
12619 We treat a calloutlist as a bulleted list. This works well in practice.
12620 + Add support for `classname` (Bryan O'Sullivan).
12624 + Fix window path for image lookup (Jesse Rosenthal).
12625 Don't use os-sensitive "combine", since we always want the paths in our
12626 zip-archive to use forward-slashes.
12627 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
12628 When users number their headers, Word understands that as a single item
12629 enumerated list. We make the assumption that such a list is, in fact,
12631 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
12632 There could be new top-level headers after making lists, so we have to
12633 rewrite links after that.
12634 + Use polyglot header list (Jesse Rosenthal).
12635 We're just keeping a list of header formats that different languages
12636 use as their default styles. At the moment, we have English, German,
12637 Danish, and French. We can continue to add to this.
12638 This is simpler than parsing the styles file, and perhaps less
12639 error-prone, since there seems to be some variations, even within a
12640 language, of how a style file will define headers.
12641 + Remove header class properly in other langs (Jesse Rosenthal).
12642 When we encounter one of the polyglot header styles, we want to remove
12643 that from the par styles after we convert to a header. To do that, we
12644 have to keep track of the style name, and remove it appropriately.
12645 + Account for external link URLs with anchors. Previously, if a URL
12646 had an anchor, the reader would incorrectly identify it as an
12647 internal link and return only the anchor as URL. (Caleb McDaniel)
12648 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
12652 + Added state changing blanklines (Jesse Rosenthal).
12653 This allows us to emphasize at the beginning of a new paragraph (or, in
12654 general, after blank lines).
12655 + Fixed bug with bulleted lists:
12661 was being parsed as a list, even though an unindented `*`
12662 should make a heading. See
12663 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
12664 + Org reader: absolute, relative paths in link (#1741, Albert
12665 Krewinkel). The org reader was too restrictive when parsing links;
12666 some relative links and links to files given as absolute paths
12667 were not recognized correctly.
12668 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
12669 This is important for use in gitit, which uses empty links
12671 + Respect indent when parsing Org bullet lists (#1650, Timothy
12672 Humphries). Fixes issue with top-level bullet list parsing.
12673 + Fix indent issue for definition lists (Timothy Humphries,
12674 see #1650, #1698, #1680).
12675 + Parse multi-inline terms correctly in definition list (#1649,
12676 Matthew Pickering).
12677 + Fix rules for emphasis recognition (Albert Krewinkel).
12678 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
12679 strings. This is wrong, as `,` and `'` are forbidden border chars and
12680 may not occur on the inner border of emphasized text.
12681 + Drop COMMENT document trees (Albert Krewinkel).
12682 Document trees under a header starting with the word `COMMENT` are
12683 comment trees and should not be exported. Those trees are dropped
12685 + Properly handle links to `file:target` (Albert Krewinkel).
12686 Org links like `[[file:target][title]]` were not handled correctly,
12687 parsing the link target verbatim. The org reader is changed such that
12688 the leading `file:` is dropped from the link target (see #756, #1812).
12689 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
12690 Org supports special symbols which can be included using LaTeX syntax,
12691 but are actually MathML entities. Examples for this are
12692 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
12693 or `\copy` (the copyright sign ©)
12697 + URI handling improvements. Now we outsource most of the work to
12698 `fetchItem'`. Also, do not include queries in file extensions (#1671).
12702 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
12703 + Handle consecutive linebreaks (#1733).
12704 + Protect graphics in headers (Jesse Rosenthal).
12705 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
12706 + Put `~` before header in list item text (Jesse Rosenthal).
12707 Because of the built-in line skip, LaTeX can't handle a section header
12708 as the first element in a list item.
12709 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
12710 + Better handling of display math in simple tables (#1754).
12711 We convert display math to inline math in simple tables,
12712 since LaTeX can't deal with display math in simple tables.
12713 + Escape spaces in code (#1694, Bjorn Buckwalter).
12715 * MediaWiki writer:
12717 + Fixed links with URL = text. Previously these were rendered as bare
12718 words, even if the URL was not an absolute URL (#1825).
12722 + Don't force all citations into footnotes.
12726 + Add blankline at end of output (#1732, Matthew Pickering).
12730 + Ensure blank line after figure.
12731 + Avoid excess whitespace after last list item (#1777).
12732 + Wrap line blocks with spaces before continuations (#1656).
12733 + Fixed double-rendering of footnotes in RST tables (#1769).
12737 + Better handling of block quotes. This change ensures that
12738 multiple paragraph blockquotes are rendered using native `>`
12739 rather than as HTML (#1738).
12740 + Fix external images (#1739). Preface relative links with ":",
12741 absolute URIs without. (Timothy Humphries)
12745 + Use protocol-relative URL for mathjax.
12746 + Put newline btw img and caption paragraph.
12747 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
12748 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
12749 This adds `KaTeX` to `HTMLMathMethod` (API change).
12750 + Don't double render when `email-obfuscation=none` (#1625, Matthew
12752 + Make header attributes work outside top level (#1711).
12753 Previously they only appeared on top level header elements.
12754 Now they work e.g. in blockquotes.
12758 + Correctly handle images without extensions (#1729).
12759 + Strip querystring in ODT write (#1682, Todd Sifleet).
12763 + Add newline to output.
12767 + Don't add `sourceURL` to absolute URIs (#1669).
12768 + Don't use unsupported `opf:title-type` for epub2.
12769 + Include "landmarks" section in nav document for epub3 (#1757).
12770 + Removed playOrder from navpoint elements in ncx file (#1760).
12771 These aren't required, and they make manual modification of epubs
12773 + Extract title even from structured title.
12774 + Don't include nav node in spine unless `--toc` was requested.
12775 Previously we included it in the spine with `linear="no"`, leading
12776 to odd results in some readers (#1593).
12777 + Fixed absolute URI detection (#1672).
12778 + Correctly resolve relative URIs (#1671).
12779 + Use regular page template for `nav.xhtml`, including doctype (#1759).
12783 + Put docx table captions above tables (#1641, Nikolay Yakimov).
12784 + Get the page width from the reference docx file, and use
12785 it to scale images that are too large to fit (Grégory Bataille).
12786 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
12787 are inferred based on `<w:name val="heading #">` fallback, if there
12788 are no en-US "Heading#" styles
12789 + Look in user data dir for archive `reference.docx`.
12790 + Renumber header and footer relationships to avoid collisions (Jesse
12791 Rosenthal). We previously took the old relationship names of the
12792 headers and footer in secptr. That led to collisions. We now make
12793 a map of available names in the relationships file, and then rename
12798 + Add function toLabel (Mark Szepieniec).
12799 This function can be used to sanitize reference labels so that
12800 they do not contain any of the illegal characters \#[]",{}%()|= .
12801 Currently only Links have their labels sanitized, because they
12802 are the only Elements that use passed labels.
12804 * `Text.Pandoc.Shared`:
12806 + Moved import of `toChunks` outside of CPP conditional (#1590).
12807 + Fix `inDirectory` to reset to the original directory in case
12808 an exception occurs (Freiric Barral).
12812 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
12813 Thanks to bluebirch.
12814 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
12816 + LaTeX template: Add shorthands=off to babel options (#1648).
12817 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
12818 This aids styling, making it possible for example to set 0 margins
12819 on the title page (#1758).
12820 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
12821 Previously we just expected 'title', 'subtitle', 'author', 'date'.
12822 Now we still support those, but also support the format recommended
12823 for epub metadata in the pandoc README:
12830 text: An investigation of metadata
12838 text: doi:10.234234.234/33
12839 publisher: My Press
12840 rights: (c) 2007 John Smith, CC BY-NC
12843 * `Text.Pandoc.Templates.getDefaultTemplate`:
12844 don't fail when called with "fb2" (#1660).
12846 * `Text.Pandoc.Parsing`:
12848 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
12849 For example: `$x = \text{the $n$th root of $y$}` (#1677).
12850 + Change `parseFromString` to fail if not all input is consumed.
12851 (Matthew Pickering)
12852 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
12853 used by more readers (API change, Daniel Bergey).
12855 * `Text.Pandoc.Pretty`:
12857 + Improve performance of `realLength` (Matthew Pickering).
12858 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
12859 were getting at the end of markdown fragments (as well as rst, org,
12862 * `Text.Pandoc.MIME`:
12864 + Add mime type for WebVTT (Jason Ronallo).
12865 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
12866 This is needed for epub3 validation.
12868 * `Text.Pandoc.MediaBag`:
12870 + Fix Windows specific path problems (#1597).
12872 * `Text.Pandoc.Shared`:
12874 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
12876 * Link the test suite using `-threaded`.
12877 This allows the test suite to be run using `+RTS -N`.
12879 * Added `network` dependency under `network-uri` flag in test section.
12881 * Give better error messages when someone tries to convert from
12882 pdf, doc, odt (#1683).
12884 * Added `track` to list of tags treated by `--self-contained` (#1664).
12887## pandoc 1.13.1 (2014-08-30)
12889 * Fixed `--self-contained` with Windows paths (#1558).
12890 Previously `C:\foo.js` was being wrongly interpreted as a URI.
12892 * HTML reader: improved handling of tags that can be block or inline.
12893 Previously a section like this would be enclosed in a paragraph,
12894 with RawInline for the video tags (since video is a tag that can
12895 be either block or inline):
12897 <video controls="controls">
12898 <source src="../videos/test.mp4" type="video/mp4" />
12899 <source src="../videos/test.webm" type="video/webm" />
12901 The videos can not be played back on your system.<br/>
12902 Try viewing on Youtube (requires Internet connection):
12903 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
12908 This change will cause the video and source tags to be parsed
12909 as RawBlock instead, giving better output.
12910 The general change is this: when we're parsing a "plain" sequence
12911 of inlines, we don't parse anything that COULD be a block-level tag.
12915 + Be sensitive to user styles. Note that "Hyperlink" is
12916 "blacklisted," as we don't want the default underline styling to be
12917 inherited by all links by default (Jesse Rosenthal).
12918 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
12919 This makes to docx reader's native output fit with the way the markdown
12920 reader understands its markdown output.
12924 + Header is now parsed only if standalone flag is set (Matthew Pickering).
12925 + The header is now parsed as meta information. The first line is the
12926 `title`, the second is the `author` and third line is the `date`
12927 (Matthew Pickering).
12928 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
12929 + Fixed crash when reading from stdin.
12931 * Textile writer: Extended the range of cases where native textile
12932 tables will be used (as opposed to raw HTML): we now handle any
12933 alignment type, but only for simple tables with no captions.
12935 * EPUB writer: Don't use page-progression-direction in EPUB2, which
12936 doesn't support it. Also, if page-progression-direction not specified
12937 in metadata, don't include the attribute even in EPUB3; not including it
12938 is the same as including it with the value "default", as we did before.
12941 * Org writer: Accept example lines with indentation at the beginning
12946 + Refactor to use Reader monad (Matthew Pickering).
12947 + Avoid using raw HTML in table cells; instead, use `\\`
12948 instead of newlines (Jesse Rosenthal).
12949 + Properly handle HTML table cell alignments, and use spacing
12950 to make the tables look prettier (#1566).
12954 + Bibliography entries get `Bibliography` style (#1559).
12955 + Implement change tracking (Jesse Rosenthal).
12959 + Fixed a bug that caused a table caption to repeat across all pages
12961 + Improved vertical spacing in tables and made it customizable using
12962 standard lengths set by booktab. See
12963 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
12965 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
12966 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
12967 + Made horizontal rules more flexible (Jose Luis Duran).
12969 * Text.Pandoc.MIME:
12971 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
12972 Code cleanups (Artyom Kazak).
12976 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
12979 * Improved OSX build procedure.
12981 * Added `network-uri` flag, to deal with split of `network-uri` from
12984 * Fix build dependencies for the `trypandoc` flag, so that they are
12985 ignored if `trypandoc` flag is set to False (Gabor Pali).
12987 * Updated README to remove outdated claim that `--self-contained`
12988 looks in the user data directory for missing files.
12990## pandoc 1.13.0.1 (2014-08-17)
12994 + Fixed regression which bungled list numbering (#1544), causing
12995 all lists to appear as basic ordered lists.
12996 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
12997 Added a property to all table rows where the sum of column widths
12998 is specified in pct (fraction of 5000). This helps persuade Word
12999 to lay out the table with the widths we specify.
13001 * Fixed a bug in Windows 8 which caused pandoc not to find the
13002 `pandoc-citeproc` filter (#1542).
13004 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
13005 Most significantly, the reader now uses Builder, leading to some
13006 performance improvements.
13008 * HTML reader: Parse appropriately styled span as SmallCaps.
13010 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
13011 `superscript`, and `subscript` extensions, respectively, are
13012 deactivated (#1127).
13014 * Added `trypandoc` flag to build CGI executable used in the online
13017 * Makefile: Added 'quick', 'osxpkg' targets.
13019 * Updated README in templates to indicate templates license.
13020 The templates are dual-licensed, BSD3 and GPL2+.
13022## pandoc 1.13 (15 August 2014)
13026 * Added `docx` as an input format (Jesse Rosenthal). The docx
13027 reader includes conversion of native Word equations to pandoc
13028 LaTeX `Math` elements. Metadata is taken from paragraphs at the
13029 beginning of the document with styles `Author`, `Title`, `Subtitle`,
13030 `Date`, and `Abstract`.
13032 * Added `epub` as an input format (Matthew Pickering). The epub
13033 reader includes conversion of MathML to pandoc LaTeX `Math`
13036 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
13037 Txt2tags is a lightweight markup format described at
13038 <http://txt2tags.org/>.
13040 * Added `dokuwiki` as an output format (Clare Macrae).
13042 * Added `haddock` as an output format.
13044 * Added `--extract-media` option to extract media contained in a zip
13045 container (docx or epub) while adjusting image paths to point to the
13048 * Added a new markdown extension, `compact_definition_lists`, that
13049 restores the syntax for definition lists of pandoc 1.12.x, allowing
13050 tight definition lists with no blank space between items, and
13051 disallowing lazy wrapping. (See below under behavior changes.)
13053 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
13055 * Added extensions `native_spans` and `native_divs` to activate
13056 parsing of material in HTML span or div tags as Pandoc Span
13057 inlines or Div blocks.
13059 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
13060 Textile, and MediaWiki readers. This is an option intended
13061 for debugging parsing problems; ordinary users should not need
13064### Behavior changes
13066 * Changed behavior of the `markdown_attribute` extension, to bring
13067 it in line with PHP markdown extra and multimarkdown. Setting
13068 `markdown="1"` on an outer tag affects all contained tags,
13069 recursively, until it is reversed with `markdown="0"` (#1378).
13071 * Revised markdown definition list syntax (#1429). Both the reader
13072 and writer are affected. This change brings pandoc's definition list
13073 syntax into alignment with that used in PHP markdown extra and
13074 multimarkdown (with the exception that pandoc is more flexible about
13075 the definition markers, allowing tildes as well as colons). Lazily
13076 wrapped definitions are now allowed. Blank space is required
13077 between list items. The space before a definition is used to determine
13078 whether it is a paragraph or a "plain" element. **WARNING: This change
13079 may break existing documents!** Either check your documents for
13080 definition lists without blank space between items, or use
13081 `markdown+compact_definition_lists` for the old behavior.
13083 * `.numberLines` now works in fenced code blocks even if no language
13084 is given (#1287, jgm/highlighting-kate#40).
13086 * Improvements to `--filter`:
13088 + Don't search PATH for a filter with an explicit path.
13089 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
13090 the system path, even if there was a `caps.py` in the working directory.
13091 + Respect shebang if filter is executable (#1389).
13092 + Don't print misleading error message.
13093 Previously pandoc would say that a filter was not found,
13094 even in a case where the filter had a syntax error.
13098 + Parse `div` and `span` elements even without `--parse-raw`,
13099 provided `native_divs` and `native_spans` extensions are set.
13100 Motivation: these now generate native pandoc Div and Span
13101 elements, not raw HTML.
13102 + Parse EPUB-specific elements if the `epub_html_exts`
13103 extension is enabled. These include `switch`, `footnote`,
13104 `rearnote`, `noteref`.
13108 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
13109 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
13110 `\cite{Coffee}`), can be used without any further escaping (Albert
13113 * Textile reader and writer:
13115 + The `raw_tex` extension is no longer set by default. You can
13116 enable it with `textile+raw_tex`.
13120 + Support `equation`, `informalequation`, `inlineequation` elements with
13121 `mml:math` content. This is converted into LaTeX and put into a Pandoc
13124 * Revised `plain` output, largely following the style of Project
13127 + Emphasis is rendered with `_underscores_`, strong emphasis
13129 + Headings are rendered differently, with space to set them off,
13130 not with setext style underlines. Level 1 headers are ALL CAPS.
13131 + Math is rendered using unicode when possible, but without the
13132 distracting emphasis markers around variables.
13133 + Footnotes use a regular `[n]` style.
13137 + Horizontal rules are now a line across the whole page.
13138 + Prettier pipe tables. Columns are now aligned (#1323).
13139 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
13140 no longer emits any raw HTML, including span and div tags
13141 generated by Span and Div elements.
13142 + Use span with style for `SmallCaps` (#1360).
13146 + Autolinks now have class `uri`, and email autolinks have class
13147 `email`, so they can be styled.
13151 + Document formatting is carried over from `reference.docx`.
13152 This includes margins, page size, page orientation, header,
13153 and footer, including images in headers and footers.
13154 + Include abstract (if present) with `Abstract` style (#1451).
13155 + Include subtitle (if present) with `Subtitle` style, rather
13156 than tacking it on to the title (#1451).
13160 + Write empty span elements with an id attribute as org anchors.
13161 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
13165 + Put table captions above tables, to match the conventional
13166 standard. (Previously they appeared below tables.)
13167 + Use `\(..\)` instead of `$..$` for inline math (#1464).
13168 + Use `\nolinkurl` in email autolinks. This allows them to be styled
13169 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
13170 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
13171 curly quotes in the PDF output (#1364).
13172 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
13173 do not appear before the overlays in which their markers appear
13175 + Don't produce a `\label{..}` for a Div or Span element. Do produce
13176 a `\hyperdef{..}` (#1519).
13180 + If the metadata includes `page-progression-direction` (which can be
13181 `ltr` or `rtl`, the `page-progression-direction` attribute will
13182 be set in the EPUB spine (#1455).
13184 * Custom lua writers:
13186 + Custom writers now work with `--template`.
13187 + Removed HTML header scaffolding from `sample.lua`.
13188 + Made citation information available in lua writers.
13190 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
13191 adjacent `RawBlock`s when possible.
13195 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
13197 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
13200 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
13203 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
13206 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
13208 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
13209 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
13210 readers return a pair of a `Pandoc` document and a `MediaBag` with
13211 the media resources they contain. This can be extracted using
13212 `--extract-media`. Writers that incorporate media (PDF, Docx,
13213 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
13214 for resources in the `MediaBag` generated by the reader, in addition to
13215 the file system or web.
13217 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
13218 Renamed `readTeXMath'` to `texMathToInlines`.
13220 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
13221 `readers` now associates names of readers with `Reader`
13222 structures. This allows inclusion of readers, like the docx
13223 reader, that take binary rather than textual input.
13225 * `Text.Pandoc.Shared`:
13227 + Added `capitalize` (Artyom Kazak), and replaced uses of
13228 `map toUpper` (which give bad results for many languages).
13229 + Added `collapseFilePath`, which removes intermediate `.` and
13230 `..` from a path (Matthew Pickering).
13231 + Added `fetchItem'`, which works like `fetchItem` but searches
13232 a `MediaBag` before looking on the net or file system.
13233 + Added `withTempDir`.
13234 + Added `removeFormatting`.
13235 + Added `extractSpaces` (from HTML reader) and generalized its type
13236 so that it can be used by the docx reader (Matthew Pickering).
13238 + Added `normalizeInlines`, `normalizeBlocks`.
13239 + `normalize` is now `Pandoc -> Pandoc` instead of
13240 `Data a :: a -> a`. Some users may need to change their uses of
13241 `normalize` to the newly exported `normalizeInlines` or
13244 * `Text.Pandoc.Options`:
13246 + Added `writerMediaBag` to `WriterOptions`.
13247 + Removed deprecated and no longer used `readerStrict` in
13248 `ReaderOptions`. This is handled by `readerExtensions` now.
13249 + Added `Ext_compact_definition_lists`.
13250 + Added `Ext_epub_html_exts`.
13251 + Added `Ext_native_divs` and `Ext_native_spans`.
13252 This allows users to turn off the default pandoc behavior of
13253 parsing contents of div and span tags in markdown and HTML
13254 as native pandoc Div blocks and Span inlines.
13256 * `Text.Pandoc.Parsing`:
13258 + Generalized `readWith` to `readWithM` (Matthew Pickering).
13259 + Export `runParserT` and `Stream` (Matthew Pickering).
13260 + Added `HasQuoteContext` type class (Matthew Pickering).
13261 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
13262 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
13263 `applyMacros` (Matthew Pickering).
13264 + Added custom `token` (Matthew Pickering).
13265 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
13266 track of the ending tag we're waiting for when we're parsing inside
13268 + Added `stateMarkdownAttribute` to `ParserState`. This is used
13269 to keep track of whether the markdown attribute has been set in
13271 + Generalized type of `registerHeader`, using new type classes
13272 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
13273 Pickering). These allow certain common functions to be reused
13274 even in parsers that use custom state (instead of `ParserState`),
13275 such as the MediaWiki reader.
13276 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
13277 and generalized their types (Matthew Pickering).
13279 * `Text.Pandoc.Pretty`:
13282 + Added `blanklines`, which guarantees a certain number of blank lines
13289 + Fixed parsing of indented code in list items. Indented code
13290 at the beginning of a list item must be indented eight spaces
13291 from the margin (or edge of the container), or four spaces
13292 from the list marker, whichever is greater.
13293 + Fixed small bug in HTML parsing with `markdown_attribute`, which
13294 caused incorrect tag nesting for input like
13295 `<aside markdown="1">*hi*</aside>`.
13296 + Fixed regression with intraword underscores (#1121).
13297 + Improved parsing of inline links containing quote characters (#1534).
13298 + Slight rewrite of `enclosure`/`emphOrStrong` code.
13299 + Revamped raw HTML block parsing in markdown (#1330).
13300 We no longer include trailing spaces and newlines in the
13301 raw blocks. We look for closing tags for elements (but without
13302 backtracking). Each block-level tag is its own `RawBlock`;
13303 we no longer try to consolidate them (though `--normalize` will do so).
13304 + Combine consecutive latex environments. This helps when you have
13305 two minipages which can't have blank lines between them (#690, #1196).
13306 + Support smallcaps through span.
13307 `<span style="font-variant:small-caps;">foo</span>` will be
13308 parsed as a `SmallCaps` inline, and will work in all output
13309 formats that support small caps (#1360).
13310 + Prevent spurious line breaks after list items (#1137). When the
13311 `hard_line_breaks` option was specified, pandoc would formerly
13312 produce a spurious line break after a tight list item.
13313 + Fixed table parsing bug (#1333).
13314 + Handle `c++` and `objective-c` as language identifiers in
13315 github-style fenced blocks (#1318).
13316 + Inline math must have nonspace before final `$` (#1313).
13320 + Handle comments at the end of tables. This resolves the issue
13321 illustrated in <http://stackoverflow.com/questions/24009489>.
13322 + Correctly handle table rows with too few cells. LaTeX seems to
13323 treat them as if they have empty cells at the end (#241).
13324 + Handle leading/trailing spaces in `\emph` better.
13325 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
13326 so that we don't get things like `* hi *` in markdown output.
13327 Also applies to `textbf` and some other constructions (#1146).
13328 + Don't assume preamble doesn't contain environments (#1338).
13329 + Allow (and discard) optional argument for `\caption` (James Aspnes).
13333 + Fixed major parsing problem with HTML tables. Table cells were
13334 being combined into one cell (#1341).
13335 + Fixed performance issue with malformed HTML tables.
13336 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
13337 + Allow space between `<col>` and `</col>`.
13338 + Added `audio` and `source` in `eitherBlockOrInline`.
13339 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
13340 `blockTags` to `eitherBlockOrInline`.
13341 + `map` and `object` were mistakenly in both lists; they have been removed
13343 + Ignore `DOCTYPE` and `xml` declarations.
13345 * MediaWiki reader:
13347 + Don't parse backslash escapes inside `<source>` (#1445).
13348 + Tightened up template parsing.
13349 The opening `{{` must be followed by an alphanumeric or `:`.
13350 This prevents the exponential slowdown in #1033.
13351 + Support "Bild" for images.
13355 + Better handle elements inside code environments. Pandoc's document
13356 model does not allow structure inside code blocks, but at least this way
13357 we preserve the text (#1449).
13358 + Support `<?asciidoc-br?>` (#1236).
13362 + Fixed list parsing. Lists can now start without an intervening
13363 blank line (#1513).
13364 + HTML block-level tags that do not start a line are parsed as
13365 inline HTML and do not interrupt paragraphs (as in RedCloth).
13369 + Make tildes create inline code (#1345). Also relabeled `code` and
13370 `verbatim` parsers to accord with the org-mode manual.
13371 + Respect `:exports` header argument in code blocks (Craig Bosma).
13372 + Fixed tight lists with sublists (#1437).
13376 + Avoid excess whitespace in `nav.xhtml`. This should improve
13377 TOC view in iBooks (#1392).
13378 + Fixed regression on cover image.
13379 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
13380 because the metadata id was not correct. Now we derive the id from the
13381 actual cover image filename, which we preserve rather than using
13383 + Keep newlines between block elements. This allows
13384 easier diff-ability (#1424).
13385 + Use `stringify` instead of custom `plainify`.
13386 + Use `renderTags'` for all tag rendering. This properly handles tags
13387 that should be self-closing. Previously `<hr/>` would appear in EPUB
13388 output as `<hr></hr>` (#1420).
13389 + Better handle HTML media tags.
13390 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
13391 can have only one dc:date, so only the first one is used.
13395 + Correctly handle figures in notes. Notes can't contain figures in
13396 LaTeX, so we fake it to avoid an error (#1053).
13397 + Fixed strikeout + highlighted code (#1294).
13398 Previously strikeout highlighted code caused an error.
13402 + Improved detection of autolinks with URLs containing escapes.
13406 + Improved image embedding: `fetchItem'` is now used to get the
13407 images, and calculated image sizes are indicated in the RTF.
13408 + Avoid extra paragraph tags in metadata (#1421).
13412 + Deactivate "incremental" inside slide speaker notes (#1394).
13413 + Don't include empty items in the table of contents for
13414 slide shows. (These would result from creating a slide
13415 using a horizontal rule.)
13417 * MediaWiki writer:
13419 + Minor renaming of `st` prefixed names.
13423 + Double up emphasis and strong emphasis markers in intraword
13424 contexts, as required by asciidoc (#1441).
13428 + Avoid wrapping that might start a list, blockquote, or header (#1013).
13429 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
13430 + Don't use braced attributes for fenced code (#1416).
13431 If `Ext_fenced_code_attributes` is not set, the first class
13432 attribute will be printed after the opening fence as a bare word.
13433 + Separate adjacent lists of the same kind with an HTML comment (#1458).
13437 + Fixed treatment of data uris for images (#1062).
13441 + Use Compact style for empty table cells (#1353).
13442 Otherwise we get overly tall lines when there are empty
13443 table cells and the other cells are compact.
13444 + Create overrides per-image for `media/` in reference docx.
13445 This should be somewhat more robust and cover more types of images.
13446 + Improved `entryFromArchive` to avoid an unneeded parse.
13447 + Section numbering carries over from reference.docx (#1305).
13448 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
13449 we assign numbers based on the list marker styles.
13451 * `Text.Pandoc.Options`:
13453 + Removed `Ext_fenced_code_attributes` from `markdown_github`
13456 * `Text.Pandoc.ImageSize`:
13458 + Use default instead of failing if image size not found
13459 in exif header (#1358).
13460 + ignore unknown exif header tag rather than crashing.
13461 Some images seem to have tag type of 256, which was causing
13464 * `Text.Pandoc.Shared`:
13466 + `fetchItem`: unescape URI encoding before reading local file (#1427).
13467 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
13468 doing mime lookup, to improve mime type guessing.
13469 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
13470 other things are treated as relative URIs if `sourceURL` is `Just _`,
13471 otherwise as file paths on the local file system.
13472 + `fetchItem` now properly handles links without a protocol (#1477).
13473 + `fetchItem` now escapes characters not allowed in URIs before trying
13475 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
13477 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
13478 needed to resolve relative URLs when we fetch resources (#750).
13480 * `Text.Pandoc.Parsing`
13482 + Simplified `dash` and `ellipsis` (#1419).
13483 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
13484 + Generalized functions to use `ParsecT` (Matthew Pickering).
13485 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
13488### Template changes
13490 * Added haddock template.
13491 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
13492 be "advisory" in HTML5, but kindlegen seems to require them.
13493 * EPUB3: Put title page in section with `epub:type="titlepage"`.
13494 * LaTeX: Made `\subtitle` work properly (#1327).
13495 * LaTeX/Beamer: remove conditional around date (#1321).
13496 * LaTeX: Added `lot` and `lof` variables, which can be set to
13497 get `\listoftables` and `\listoffigures` (#1407). Note that
13498 these variables can be set at the command line with `-Vlot -Vlof`
13499 or in YAML metadata.
13501### Under the hood improvements
13503 * Rewrote normalize for efficiency (#1385).
13505 * Rewrote Haddock reader to use `haddock-library` (#1346).
13507 + This brings pandoc's rendering of haddock markup in line
13508 with the new haddock.
13509 + Fixed line breaks in `@` code blocks.
13510 + alex and happy are no longer build-depends.
13512 * Added `Text.Pandoc.Compat.Directory` to allow building against
13513 different versions of the `directory` library.
13515 + Added `Text.Pandoc.Compat.Except` to allow building against
13516 different versions of `mtl`.
13518 * Code cleanup in some writers, using Reader monad to avoid
13519 passing options parameter around (Matej Kollar).
13521 * Improved readability in `pandoc.hs`.
13523 * Miscellaneous code cleanups (Artyom Kazak).
13525 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
13528 * Changed `http-conduit` flag to `https`. Depend on `http-client`
13529 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
13530 depends on `conduit` via `yaml`.)
13532 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
13533 This change to highlighting-kate means that PHP fragments no longer need
13534 to start with `<?php`. It also fixes a serious bug causing failures with
13537 * Require latest `texmath`. This fixes `\tilde{E}` and allows
13538 `\left` to be used with `]`, `)` etc. (#1319), among many other
13541 * Require latest `zip-archive`. This has fixes for unicode path names.
13543 * Added tests for plain writer.
13545 * `Text.Pandoc.Templates`:
13547 + Fail informatively on template syntax errors.
13548 With the move from parsec to attoparsec, we lost good error
13549 reporting. In fact, since we weren't testing for end of input,
13550 malformed templates would fail silently. Here we revert back to
13551 Parsec for better error messages.
13552 + Use `ordNub` (#1022).
13556 + Made benchmarks compile again (Artyom Kazak).
13557 + Fixed so that the failure of one benchmark does not prevent others
13558 from running (Artyom Kazak).
13559 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
13560 + Changed benchmark to use only the test suite, so that benchmarks
13563 * Windows build script:
13565 + Add `-windows` to file name.
13566 + Use one install command for pandoc, pandoc-citeproc.
13567 + Force install of pandoc-citeproc.
13569 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
13570 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
13571 will extract it into a folder named `SOMETHING.pkg`, which it
13572 will interpret as a defective package (#1308).
13576 + Made headers for all extensions so they have IDs and can be
13577 linked to (Beni Cherniavsky-Paskin).
13578 + Fixed typos (Phillip Alday).
13579 + Fixed documentation of attributes (#1315).
13580 + Clarified documentation on small caps (#1360).
13581 + Better documentation for `fenced_code_attributes` extension
13583 + Documented fact that you can put YAML metadata in a separate file
13587## pandoc 1.12.4.2 (2014-05-14)
13589 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
13591 * Shared: `addMetaValue` now behaves slightly differently:
13592 if both the new and old values are lists, it concatenates their
13593 contents to form a new list.
13597 + Set `bibliography` in metadata from `\bibliography` or
13598 `\addbibresource` command.
13599 + Don't error on `%foo` with no trailing newline.
13603 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
13604 + Fix parsing of blank lines within blocks (Albert Krewinkel).
13605 + Support pandoc citation extension (Albert Krewinkel). This can
13606 be turned off by specifying `org-citation` as the input format.
13610 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
13611 other readers (Albert Krewinkel).
13613 * `Text.Pandoc.Parsing`:
13615 + Added `citeKey` (see above).
13616 + Added `HasLastStrPosition` type class and `updateLastStrPos`
13617 and `notAfterString` functions.
13619 * Updated copyright notices (Albert Krewinkel).
13621 * Added default.icml to data files so it installs with the package.
13625 + The binary is now built with options to ensure that it can be
13626 used with OSX 10.6+.
13627 + Moved OSX package materials to osx directory.
13628 + Added OSX package uninstall script, included in the zip container
13629 (thanks to Daniel T. Staal).
13631## pandoc 1.12.4 (2014-05-07)
13633 * Made it possible to run filters that aren't executable
13634 (#1096). Pandoc first tries to find the executable (searching
13635 the path if path isn't given). If it fails, but the file
13636 exists and has a `.py`, `.pl`, `.rb`, `.hs`, or `.php`
13637 extension, pandoc runs the filter using the appropriate
13638 interpreter. This should make it easier to use filters on
13639 Windows, and make it more convenient for everyone.
13641 * Added Emacs org-mode reader (Albert Krewinkel).
13643 * Added InDesign ICML Writer (mb21).
13645 * MediaWiki reader:
13647 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
13648 + Fixed bug in certain nested lists (#1213). If a level 2 list was
13649 followed by a level 1 list, the first item of the level 1 list
13651 + Handle table rows containing just an HTML comment (#1230).
13655 + Give better location information on errors, pointing to line
13656 numbers within included files (#1274).
13657 + LaTeX reader: Better handling of `table` environment (#1204).
13658 Positioning options no longer rendered verbatim.
13659 + Better handling of figure and table with caption (#1204).
13660 + Handle `@{}` and `p{length}` in tabular. The length is not actually
13661 recorded, but at least we get a table (#1180).
13662 + Properly handle `\nocite`. It now adds a `nocite` metadata
13663 field. Citations there will appear in the bibliography but not
13664 in the text (unless you explicitly put a `$nocite$` variable
13669 + Ensure that whole numbers in YAML metadata are rendered without
13670 decimal points. (This became necessary with changes to aeson
13671 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
13672 + Fixed regression on line breaks in strict mode (#1203).
13673 + Small efficiency improvements.
13674 + Improved parsing of nested `div`s. Formerly a closing `div` tag
13675 would be missed if it came right after other block-level tags.
13676 + Avoid backtracking when closing `</div>` not found.
13677 + Fixed bug in reference link parsing in `markdown_mmd`.
13678 + Fixed a bug in list parsing (#1154). When reading a raw list
13679 item, we now strip off up to 4 spaces.
13680 + Fixed parsing of empty reference link definitions (#1186).
13681 + Made one-column pipe tables work (#1218).
13685 + Better support for attributes. Instead of being ignored, attributes
13686 are now parsed and included in Span inlines. The output will be a bit
13687 different from stock textile: e.g. for `*(foo)hi*`, we'll get
13688 `<em><span class="foo">hi</span></em>` instead of
13689 `<em class="foo">hi</em>`. But at least the data is not lost.
13690 + Improved treatment of HTML spans (%) (#1115).
13691 + Improved link parsing. In particular we now pick up on attributes.
13692 Since pandoc links can't have attributes, we enclose the whole link in
13693 a span if there are attributes (#1008).
13694 + Implemented correct parsing rules for inline markup (#1175, Matthew
13696 + Use Builder (Matthew Pickering).
13700 + Better treatment of `formalpara`. We now emit the title (if present)
13701 as a separate paragraph with boldface text (#1215).
13702 + Set metadata `author` not `authors`.
13703 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
13704 Matthew Pickering).
13705 + Converted current meta information parsing in DocBook to a more
13706 extensible version which is aware of the more recent meta
13707 representation (Matthew Pickering).
13711 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
13713 + Treat processing instructions & declarations as block. Previously
13714 these were treated as inline, and included in paragraph tags in HTML
13715 or DocBook output, which is generally not what is wanted (#1233).
13716 + Updated `closes` with rules from HTML5 spec.
13717 + Use Builder (Matthew Pickering, #1162).
13721 + Remove duplicate `http` in PEP links (Albert Krewinkel).
13722 + Make rst figures true figures (#1168, CasperVector)
13723 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
13724 rST parser now supports: all built-in rST roles, new role definition,
13725 role inheritance, though with some limitations.
13726 + Use `author` rather than `authors` in metadata.
13727 + Better handling of directives. We now correctly handle field
13728 lists that are indented more than three spaces. We treat an
13729 `aafig` directive as a code block with attributes, so it can be
13730 processed in a filter (#1212).
13734 + Mark span contents with label if span has an ID (Albert Krewinkel).
13735 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
13736 + Handle line breaks in simple table cells (#1217).
13737 + Workaround for level 4-5 headers in quotes. These previously produced
13738 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
13739 This adds an `mbox{}` in these contexts to work around the problem.
13740 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
13741 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
13742 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
13743 ligature with LuaLaTeX but `\/` does.
13744 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
13746 * ConTeXt writer: Improved autolinks (#1270).
13750 + Improve handling of hard line breaks in Docbook writer
13751 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
13752 just for the newline character.
13753 + Don't let line breaks inside footnotes influence the enclosing
13754 paragraph (Neil Mayhew).
13755 + Distinguish tight and loose lists in DocBook output, using
13756 `spacing="compact"` (Neil Mayhew, #1250).
13758 * Docx writer: When needed files are not present in the user's
13759 `reference.docx`, fall back on the versions in the `reference.docx`
13760 in pandoc's data files. This fixes a bug that occurs when a
13761 `reference.docx` saved by LibreOffice is used. (#1185)
13765 + Include extension in epub ids. This fixes a problem with duplicate
13766 extensions for fonts and images with the same base name but different
13767 extensions (#1254).
13768 + Handle files linked in raw `img` tags (#1170).
13769 + Handle media in `audio` source tags (#1170).
13770 Note that we now use a `media` directory rather than `images`.
13771 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
13772 will both be incorporated into `content.opf` and the epub container.
13776 + Add colgroup around col tags (#877). Also affects EPUB writer.
13777 + Fixed bug with unnumbered section headings. Unnumbered section
13778 headings (with class `unnumbered`) were getting numbers.
13779 + Improved detection of image links. Previously image links with
13780 queries were not recognized, causing `<embed>` to be used instead
13783 * Man writer: Ensure that terms in definition lists aren't line wrapped
13788 + Use proper escapes to avoid unwanted lists (#980). Previously we used
13789 0-width spaces, an ugly hack.
13790 + Use longer backtick fences if needed (#1206). If the content contains a
13791 backtick fence and there are attributes, make sure longer fences are
13792 used to delimit the code. Note: This works well in pandoc, but github
13793 markdown is more limited, and will interpret the first string of three
13794 or more backticks as ending the code block.
13796 * RST writer: Avoid stack overflow with certain tables (#1197).
13798 * RTF writer: Fixed table cells containing paragraphs.
13802 + Correctly handle UTF-8 in custom lua scripts (#1189).
13803 + Fix bugs with lua scripts with mixed-case filenames and
13804 paths containing `+` or `-` (#1267). Note that `getWriter`
13805 in `Text.Pandoc` no longer returns a custom writer on input
13808 * AsciiDoc writer: Handle multiblock and empty table cells
13809 (#1245, #1246). Added tests.
13811 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
13813 * `Text.Pandoc.Shared`:
13815 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
13816 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
13817 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
13819 + `openURL`: set proxy with value of http_proxy env variable (#1211).
13820 Note: proxies with non-root paths are not supported, due to
13821 limitations in `http-conduit`.
13823 * `Text.Pandoc.PDF`:
13825 + Ensure that temp directories deleted on Windows (#1192). The PDF is
13826 now read as a strict bytestring, ensuring that process ownership will
13827 be terminated, so the temp directory can be deleted.
13828 + Use `/` as path separators in a few places, even on Windows.
13829 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
13830 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
13831 + Changes to error reporting, to handle non-UTF8 error output.
13833 * `Text.Pandoc.Templates`:
13835 + Removed unneeded datatype context (Merijn Verstraaten).
13837 + YAML objects resolve to "true" in conditionals (#1133).
13838 Note: If `address` is a YAML object and you just have `$address$`
13839 in your template, the word `true` will appear, which may be
13840 unexpected. (Previously nothing would appear.)
13842 * `Text.Pandoc.SelfContained`: Handle `poster` attribute in `video`
13845 * `Text.Pandoc.Parsing`:
13847 + Made `F` an instance of Applicative (#1138).
13848 + Added `stateCaption`.
13849 + Added `HasMacros`, simplified other typeclasses.
13850 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
13851 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
13852 + Changed the smart punctuation parser to return `Inlines`
13853 rather than `Inline` (Matthew Pickering).
13854 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
13855 from typeclasses of monads to typeclasses of states. This simplifies
13856 the instance definitions and provides more flexibility. Generalized
13857 type of `getOption` and added a default definition. Removed
13858 `askReaderOption`. Added `extractReaderOption`. Added
13859 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
13860 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
13861 `modifyHeaderMap`. Added `extractIdentifierList` and
13862 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
13863 for `getIdentifierList`, `putIdentifierList`, and
13864 `modifyIdentifierList`. The ultimate goal here is to allow different
13865 parsers to use their own, tailored parser states (instead of
13866 `ParserState`) while still using shared functions.
13868 * Template changes:
13870 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
13871 + LaTeX template: Add `linestretch` and `fontfamily` variables.
13872 + LaTeX template: Conditionalize author and date commands.
13873 + Beamer template: Consistent styles for figure and table captions
13875 + LaTeX and beamer template: Adjust widths correctly for oversized
13876 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
13877 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
13878 `upquote` only after `fontenc` (Yihui Xie).
13879 + Beamer template: Added caption package (#1200).
13880 + Beamer template: changes for better unicode handling (KarolS).
13881 + DocBook template: use `authorgroup` if there are authors.
13882 + revealjs template: Move `include-after` to end (certainlyakey).
13883 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
13885 * Bumped version bounds of dependencies.
13887 * Added a `--trace` command line option, for debugging backtracking
13888 bugs. So far this only works with the markdown reader.
13890 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
13892 * Updated travis script to test with multiple GHC versions.
13894 * Force failure of a Travis build if GHC produces warnings (Albert
13897 * Add `.editorconfig` (Albert Krewinkel).
13898 See <http://editorconfig.org/> for details.
13900 * Give more useful error message if '-t pdf' is specified (#1155).
13902 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
13904 * Allow `html4` as a synonym of `html` as a reader (it already works
13909 + Added an explanation of how to use YAML metadata to
13910 force items to appear in the bibliography without citations in
13911 the text (like LaTeX `\nocite`).
13912 + Added note to `--bibtex/--natbib`: not for use in making PDF
13913 (#1194, thanks to nahoj).
13914 + Added explanatory notes about `--natbib` and `--biblatex`.
13915 + Added specification of legal syntax for citation keys.
13916 + Fixed variable defaults documentation (Albert Krewinkel).
13918 * Removed copyright statements for files that have been removed
13919 (Albert Krewinkel).
13921 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
13922 They aren't needed at runtime. We keep README and COPYRIGHT in data
13923 to ensure that they'll be available on all systems on which pandoc
13926 * Use cabal sandboxes in Windows build script.
13928## pandoc 1.12.3.3 (2014-02-03)
13930 * To changes to source; recompiled tarball with latest alex and
13931 happy, so they will work with GHC 7.8.
13933## pandoc 1.12.3.2 (2014-02-03)
13935 * Bumped version bounds for blaze-html, blaze-markup.
13937 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
13940 * Fixed mediawiki ordered list parsing (#1122).
13942 * HTML reader: Fixed bug reading inline math with `$$` (#225).
13944 * Added support for LaTeX style literate Haskell code blocks in rST
13945 (Merijn Verstraaten).
13947## pandoc 1.12.3.1 (2014-01-14)
13949 * Relaxed version constraint on binary, allowing the use of binary 0.5.
13952## pandoc 1.12.3 (2014-01-10)
13954 * The `--bibliography` option now sets the `biblio-files` variable.
13955 So, if you're using `--natbib` or `--biblatex`, you can just use
13956 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
13958 * Don't run pandoc-citeproc filter if `--bibliography` is
13959 used together with `--natbib` or `--biblatex` (Florian Eitel).
13961 * Template changes:
13963 + Updated beamer template to include booktabs.
13964 + Added `abstract` variable to LaTeX template.
13965 + Put `header-includes` after `title` in LaTeX template (#908).
13966 + Allow use of `\includegraphics[size]` in beamer.
13967 This just required porting a macro definition from the default
13968 LaTeX template to the default beamer template.
13970 * `reference.docx`: Include `FootnoteText` style.
13971 Otherwise Word ignores the style, even when specified in the `pPr`.
13974 * `reference.odt`: Tidied `styles.xml`.
13976 * Relaxed version bounds for dependencies.
13978 * Added `withSocketsDo` around http conduit code in `openURL`,
13979 so it works on Windows (#1080).
13981 * Added `Cite` function to `sample.lua`.
13985 + Fixed regression in title blocks (#1089).
13986 If author field was empty, date was being ignored.
13987 + Allow backslash-newline hard line breaks in grid and
13988 multiline table cells.
13989 + Citation keys may now start with underscores, and may contain
13990 underscores adjacent to internal punctuation.
13994 + Add support for `Verb` macro (jrnold) (#1090).
13995 + Support babel-style quoting: `` "`..."' ``.
13997 * Properly handle script blocks in strict mode. (That is,
13998 `markdown-markdown_in_html_blocks`.) Previously a spurious
13999 `<p>` tag was being added (#1093).
14001 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
14006 + Factored out function for table cell creation.
14007 + Better treatment of footnotes in tables.
14008 Notes now appear in the regular sequence, rather than in the
14009 table cell. (This was a regression in 1.10.)
14011 * HTML reader: Parse name/content pairs from meta tags as metadata.
14014 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
14016 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
14018 * ODT writer: Use mathml for proper rendering of formulas.
14019 Note: LibreOffice's support for this seems a bit buggy. But
14020 it should be better than what we had before.
14022 * RST writer: Ensure no blank line after def in definition list (#992).
14024 * Markdown writer: Don't use tilde code blocks with braced attributes in
14025 `markdown_github` output. A consequence of this change is that the
14026 backtick form will be preferred in general if both are enabled. That
14027 is good, as it is much more widespread than the tilde form. (#1084)
14029 * Docx writer: Fixed problem with some modified reference docx files.
14030 Include `word/_rels/settings.xml.rels` if it exists, as well as other
14031 `rels` files besides the ones pandoc generates explicitly.
14035 + With `--toc`, headers no longer link to themselves (#1081).
14036 + Omit footnotes from TOC entries. Otherwise we get doubled
14037 footnotes when headers have notes!
14041 + Avoid duplicate notes when headings contain notes.
14042 This arose because the headings are copied into the metadata
14043 "title" field, and the note gets rendered twice. We strip the
14044 note now before putting the heading in "title".
14045 + Strip out footnotes from toc entries.
14046 + Fixed bug with `--epub-stylesheet`. Now the contents of
14047 `writerEpubStylesheet` (set by `--epub-stylesheet`)
14048 should again work, and take precedence over a stylesheet specified
14051 * `Text.Pandoc.Pretty`: Added `nestle`. API change.
14053 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
14055 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
14058 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
14059 we could only get size information for JFIF format, which led
14060 to squished images in Word documents. Closes #976.
14062 * Removed old `MarkdownTest_1.0.3` directory (#1104).
14065## pandoc 1.12.2.1 (2013-12-08)
14067 * Markdown reader: Fixed regression in list parser, involving
14068 continuation lines containing raw HTML (or even verbatim raw HTML).
14070## pandoc 1.12.2 (2013-12-07)
14072 * Metadata may now be included in YAML blocks in a markdown document.
14080 text: An investigation of metadata
14088 text: doi:10.234234.234/33
14089 publisher: My Press
14090 rights: (c) 2007 John Smith, CC BY-NC
14091 cover-image: img/mypic.jpg
14092 stylesheet: style.css
14095 Metadata may still be provided using `--epub-metadata`; it will
14096 be merged with the metadata in YAML blocks.
14100 + `meta` tags are now used instead of `opf` attributes for EPUB3.
14101 + Insert "svg" property as needed in opf (EPUB 3).
14102 + Simplify `imageTypeOf` using `getMimeType`.
14103 + Add properties attribute to `cover-image` item for EPUB 3.
14104 + Don't include node for `cover.xhtml` if no cover!
14105 + Ensure that same identifier is used throughout (#1044).
14106 If an identifier is given in metadata, we use that; otherwise
14107 we generate a random uuid.
14108 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
14109 Fixes an issue with Calibre putting the cover at the end of the book
14110 if the spine has `linear="no"`. Apparently this is best practice
14111 for other converters as well:
14112 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
14113 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
14114 + Allow partial dates: `YYYY`, `YYYY-MM`.
14116 * Markdown writer: Fix rendering of tight sublists (#1050).
14117 Previously a spurious blank line was included after a tight sublist.
14119 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
14120 This is reported to be necessary to avoid an error from recent
14121 versions of Libre Office when files contain more than one image
14122 Thanks to wmanley for reporting and diagnosing the problem.
14124 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
14125 Instead, let this be set in the template, using `\setupfloat`.
14126 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
14128 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
14130 * Fixed bug with markdown intraword emphasis. Closes #1066.
14132 * Docbook writer: Hierarchicalize block content in metadata.
14133 Previously headers just disappeared from block-level metadata
14134 when it was used in templates. Now we apply the 'hierarchicalize'
14135 transformation. Note that a block headed by a level-2 header will
14136 turn into a `<sect1>` element.
14138 * OpenDocument writer: Skip raw HTML (#1035).
14139 Previously it was erroneously included as verbatim text.
14141 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
14142 This allows better control of formatting, since the `<a>`
14143 tags have a distinguishing class (#1049).
14147 + Use mime type info returned by fetchItem.
14148 + Fixed core metadata (#1046).
14149 Don't create empty date nodes if no date given.
14150 Don't create multiple `dc:creator` nodes; instead separate by
14152 + Fix URL for core-properties in `_rels/.rels` (#1046).
14154 * Plain writer: don't print `<span>` tags.
14158 + Fix definition lists with internal links in terms (#1032).
14159 This fix puts braces around a term that contains an internal
14160 link, to avoid problems with square brackets.
14161 + Properly escape pdftitle, pdfauthor (#1059).
14162 + Use booktabs package for tables (thanks to Jose Luis Duran).
14164 * Updated beamer template. Now references should work properly
14165 (in a slide) when `--biblatex` or `--natbib` is used.
14169 + Parse contents of curly quotes or matched `"` as quotes.
14170 + Support `\textnormal` as span with class `nodecor`.
14171 This is needed for pandoc-citeproc.
14172 + Improved citation parsing. This fixes a run-time error that occurred
14173 with `\citet{}` (empty list of keys). It also ensures that empty keys
14174 don't get produced.
14176 * MediaWiki reader: Add automatic header identifiers.
14180 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
14182 + Recognize `svg` tags as block level content (thanks to MinRK).
14183 + Parse LaTeX math if appropriate options are set.
14187 + Yaml block must start immediately after `---`. If there's a blank
14188 line after `---`, we interpreted it as a horizontal rule.
14189 + Correctly handle empty bullet list items.
14190 + Stop parsing "list lines" when we hit a block tag.
14191 This fixes exponential slowdown in certain input, e.g.
14192 a series of lists followed by `</div>`.
14194 * Slides: Preserve `<div class="references">` in references slide.
14196 * `Text.Pandoc.Writer.Shared`:
14198 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
14199 attributes, leading to invalid HTML.
14200 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
14201 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
14202 encoded bytestring was returned. We now decode it so it's a proper
14205 * DocBook reader: Handle numerical attributes starting with decimal.
14206 Also use `safeRead` instead of `read`.
14208 * `Text.Pandoc.Parsing`:
14210 + Generalized type of `registerHeader`, using new type classes
14211 `HasReadeOptions`, `HasIdentifierList`, `HasHeaderMap`.
14212 These allow certain common functions to be reused
14213 even in parsers that use custom state (instead of `ParserState`),
14214 such as the MediaWiki reader.
14215 + Moved inlineMath, displayMath from Markdown reader to Parsing.
14216 Generalize their types and export them from Parsing. (API change.)
14218 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
14219 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
14220 in all the writers. Require `texmath >= 0.6.5.2`.
14222 * `Text.Pandoc.MIME`:
14224 + Add entry for `jfif`.
14225 + In looking up extensions, drop the encoding info.
14226 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
14228 * Templates: Changed how array variables are resolved. Previously if
14229 `foo` is an array (which might be because multiple values were set on
14230 the command line), `$foo$` would resolve to the concatenation of the
14231 elements of foo. This is rarely useful behavior. It has been changed
14232 so that the first value is rendered. Of course, you can still iterate
14233 over the values using `$for(foo)$`. This has the result that you can
14234 override earlier settings using `-V` by putting new values later on the
14235 command line, which is useful for many purposes.
14237 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
14239 * Allow "epub2" as synonym for "epub", "html4" for "html".
14241 * Don't look for slidy files in data files with `--self-contained`.
14243 * Allow `https:` command line arguments to be downloaded.
14245 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
14247## pandoc 1.12.1 (2013-10-20)
14249 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
14250 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
14251 "c": "foo"}`. This new format is easier to work with outside of Haskell.
14252 Incidentally, "t" stands for "tag", "c" for "contents".
14254 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
14255 when converting to markdown (#1027).
14259 + Ensure that preamble doesn't contribute to the text of
14261 + Fixed character escaping in `\url{}`. Previously `\~` wasn't handled
14262 properly, among others.
14263 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
14264 bibtex titles, since we need to know what was protected from
14265 titlecase conversions.
14269 + Specially escape non-ascii characters in labels.
14270 Otherwise we can get compile errors and other bugs when
14271 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
14272 + Add link anchors for code blocks with identifiers (#1025).
14274 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
14275 It allows fragments identifiers.
14279 + A Div element with class "notes" is treated as speaker
14280 notes. Currently beamer goes to `\note{}`, revealjs to
14281 `<aside class="notes">`, and the notes are simply suppressed in
14282 other formats (#925).
14283 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
14284 The old version caused a pause to be inserted before the first
14285 material on a slide. This has been fixed.
14286 + Removed data files for s5, slideous, slidy.
14287 Users of s5 and slideous will have to download the needed
14288 files, as has been documented for some time in the README.
14289 By default, slidy code will be sought on the web, as before.
14291 * HTML writer: Insert command to typeset mathjax only in slideous output
14294 * RST writer: Skip spaces after display math. Otherwise we get indentation
14295 problems, and part of the next paragraph may be rendered as part of the
14298 * OpenDocument writer: Fix formatting of strikeout code (#995),
14299 thanks to wilx. don't use `font-face-decls` variable.
14301 * Fixed test suite so it works with cabal sandboxes.
14303## pandoc 1.12.0.2 (2013-09-20)
14305 * Removed an unused dependency (`stringable`) from pandoc.cabal.
14306 This will help packagers, but users should not need to upgrade.
14308## pandoc 1.12.0.1 (2013-09-20)
14310 * Allow `--metadata` to be repeated for the same key to form a list.
14311 This also has the effect that `--bibliography` can be repeated,
14314 * Handle boolean values in `--metadata`. Note that anything not parseable
14315 as a YAML boolean or string is treated as a literal string.
14316 You can get a string value with "yes", or any of the strings interpretable
14317 as booleans, by quoting it:
14319 -M boolvalue=yes -M stringvalue='"yes"'
14321 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
14324 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
14325 in which docx files could not be read by some versions of Word
14326 and LibreOffice (#990).
14328 * Fixed a regression involving slide shows with bibliographies.
14329 The Div container around references messed up the procedure for carving
14330 a document into slides. So we now remove the surrounding Div in
14333 * More informative error message when a filter is not found in path.
14335 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
14336 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
14338 * Don't use unicode_collation in building OSX package:
14339 it adds something like 50MB of dependencies to the package.
14341 * Declare alex and happy as build-tools (#986).
14343## pandoc 1.12 (2013-09-15)
14347 * Much more flexible metadata, including arbitrary fields and structured
14348 values. Metadata can be specified flexibly in pandoc markdown using
14349 YAML metadata blocks, which may occur anywhere in the document:
14352 title: Here is my title.
14354 This is the abstract.
14358 and *inline markup*
14360 tags: [cat, dog, animal]
14363 Metadata fields automatically populate template variables.
14365 * Added `opml` (OPML) as input and output format. The `_note` attribute,
14366 used in OmniOutliner and supported by multimarkdown, is supported.
14367 We treat the contents as markdown blocks under a section header.
14369 * Added `haddock` (Haddock markup) as input format (David Lazar).
14371 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
14372 (Thanks to Jamie F. Olson for the initial patch.)
14373 Nested vertical stacks are used for hierarchical structure.
14374 Results for more than one level of nesting may be odd.
14376 * Custom writers can now be written in lua.
14378 pandoc -t data/sample.lua
14380 will load the script sample.lua and use it as a custom writer.
14381 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
14382 Note that pandoc embeds a lua interpreter, so lua need not be
14383 installed separately.
14385 * New `--filter/-F` option to make it easier to run "filters"
14386 (Pandoc AST transformations that operate on JSON serializations).
14387 Filters are always passed the name of the output format, so their
14388 behavior can be tailored to it. The repository
14389 <https://github.com/jgm/pandocfilters> contains
14390 a python module for writing pandoc filters in python, with
14391 a number of examples.
14393 * Added `--metadata/-M` option.
14394 This is like `--variable/-V`, but actually adds to metadata, not
14397 * Added `--print-default-data-file` option, which allows printing
14398 of any of pandoc's data files. (For example,
14399 `pandoc --print-default-data-file reference.odt` will print
14402 * Added syntax for "pauses" in slide shows:
14410 * New markdown extensions:
14412 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
14413 rather than being treated as hard line breaks or spaces. This is useful
14414 for some East Asian languages, where spaces aren't used between words,
14415 but text is separated into lines for readability.
14416 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
14417 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
14418 only. (Default for `markdown_github`.) (#807)
14419 + `lists_without_preceding_blankline`: Allow lists to start without
14420 preceding blank space. (Default for `markdown_github`.) (#972)
14422### Behavior changes
14424 * `--toc-level` no longer implies `--toc`.
14425 Reason: EPUB users who don't want a visible TOC may still want
14426 to set the TOC level for in the book navigation.
14428 * `--help` now prints in and out formats in alphabetical order, and
14429 says something about PDF output (#720).
14431 * `--self-contained` now returns less verbose output (telling you
14432 which URLs it is fetching, but not giving the full header). In
14433 addition, there are better error messages when fetching a URL fails.
14435 * Citation support is no longer baked in to core pandoc. Users who
14436 need citations will need to install and use a separate filter
14437 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
14438 `csl`, and `citation-abbreviations` from the metadata, though it
14439 may still be specified on the command line as before.
14441 * A `Cite` element is now created in parsing markdown whether or not
14442 there is a matching reference.
14444 * The `pandoc-citeproc` script will put the bibliography at the
14445 end of the document, as before. However, it will be put inside a `Div`
14446 element with class "references", allowing users some control
14447 over the styling of references. A final header, if any, will
14448 be included in the `Div`.
14450 * The markdown writer will not print a bibliography if the
14451 `citations` extension is enabled. (If the citations are formatted
14452 as markdown citations, it is redundant to have a bibliography,
14453 since one will be generated automatically.)
14455 * Previously we used to store the directory of the first input file,
14456 even if it was local, and used this as a base directory for finding
14457 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
14458 users. So we now look for images relative to the current
14459 working directory, even if the first file argument is in another
14460 directory. Note that this change may break some existing workflows.
14461 If you have been assuming that relative links will be interpreted
14462 relative to the directory of the first file argument, you'll need
14463 to make that the current directory before running pandoc. (#942)
14465 * Better error reporting in some readers, due to changes in `readWith`:
14466 the line in which the error occurred is printed, with a caret pointing
14469 * All slide formats now support incremental slide view for definition lists.
14471 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
14472 Parse `:<math>...</math>` as display math. These notations are used with
14473 the MathJax MediaWiki extension.
14475 * All writers: template variables are set automatically from metadata
14476 fields. However, variables specified on the command line with
14477 `--variable` will completely shadow metadata fields.
14479 * If `--variable` is used to set many variables with the same name,
14482 * Man writer: The `title`, `section`, `header`, and `footer` can now
14483 all be set individually in metadata. The `description` variable has been
14484 removed. Quotes have been added so that spaces are allowed in the
14485 title. If you have a title that begins
14487 COMMAND(1) footer here | header here
14489 pandoc will still parse it into a title, section, header, and
14490 footer. But you can also specify these elements explicitly (#885).
14494 + Added support for YAML metadata blocks, which can come anywhere
14495 in the document (not just at the beginning). A document can contain
14496 multiple YAML metadata blocks.
14497 + HTML span and div tags are parsed as pandoc Span and Div elements.
14501 + Allow simple tables to be printed as grid tables,
14502 if other table options are disabled. This means you can do
14503 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
14504 and all tables will render as grid tables.
14505 + Support YAML title block (render fields in alphabetical order
14506 to make output predictable).
14510 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
14511 structured metadata. (Note: existing code that pattern-matches
14512 on `Meta` will have to be revised.) Metadata can now contain
14513 indefinitely many fields, with content that can be a string,
14514 a Boolean, a list of `Inline` elements, a list of `Block`
14515 elements, or a map or list of these.
14517 * A new generic block container (`Div`) has been added to `Block`,
14518 and a generic inline container (`Span`) has been added to `Inline`.
14519 These can take attributes. They will render in HTML, Textile,
14520 MediaWiki, Org, RST and Markdown (with `markdown_in_html`
14521 extension) as HTML `<div>` and `<span>` elements; in other formats
14522 they will simply pass through their contents. But they can be
14523 targeted by scripts.
14525 * `Format` is now a newtype, not an alias for String.
14526 Equality comparisons are case-insensitive.
14528 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
14529 functions that are much faster than the SYB functions from
14530 `Text.Pandoc.Generic`. These functions are now used where possible
14531 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
14532 match the generic traversals `bottomUp` and `queryWith`.)
14534 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
14535 instances for the basic pandoc types. They use GHC generics and
14536 should be faster than the old JSON serialization using
14537 `Data.Aeson.Generic`.
14539 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
14540 This is a souped-up version of `readProcessWithErrorcode` that
14541 uses lazy bytestrings instead of strings and allows setting
14542 environment variables. (Used in `Text.Pandoc.PDF`.)
14544 * New module `Text.Pandoc.Readers.OPML`.
14546 * New module `Text.Pandoc.Writers.OPML`.
14548 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
14549 This is based on Haddock's own lexer/parser.
14551 * New module `Text.Pandoc.Writers.Custom`.
14553 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
14554 Either, for better error handling.
14556 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
14558 * Removed `stripTags` from `Text.Pandoc.XML`.
14560 * `Text.Pandoc.Templates`:
14562 + Simplified `Template` type to a newtype.
14564 + Changed type of `renderTemplate`: it now takes a JSON context
14565 and a compiled template.
14566 + Export `compileTemplate`.
14567 + Export `renderTemplate'` that takes a string instead of a compiled
14569 + Export `varListToJSON`.
14571 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
14575 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
14576 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
14577 `Text.Pandoc.JSON` should be used instead. (Compiling against
14578 pandoc-types instead of pandoc will also produce smaller executables.)
14579 * Removed the deprecated `jsonFilter` function.
14580 + Added `readJSON`, `writeJSON` to the API (#817).
14582 * `Text.Pandoc.Options`:
14584 + Added `Ext_lists_without_preceding_blankline`,
14585 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
14586 `Ext_yaml_metadataBlock` to `Extension`.
14587 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
14588 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
14589 first command-line argument is an absolute URL. (So, relative links
14590 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
14591 + All bibliography-related fields have been removed from
14592 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
14593 `readerReferences`, `readerCitationStyle`.
14595 * The `Text.Pandoc.Biblio` module has been removed. Users of the
14596 pandoc library who want citation support will need to use
14597 `Text.CSL.Pandoc` from `pandoc-citeproc`.
14601 * In markdown, don't autolink a bare URI that is followed by `</a>`
14604 * `Text.Pandoc.Shared`
14606 + `openURL` now follows redirects (#701), properly handles `data:`
14607 URIs, and prints diagnostic output to stderr rather than stdout.
14608 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
14609 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
14610 + Fixed `readDefaultDataFile` so it works on Windows.
14611 + Better error messages for `readDefaultDataFile`. Instead of
14612 listing the last path tried, which can confuse people who are
14613 using `--self-contained`, so now we just list the data file name.
14614 + URL-escape pipe characters. Even though these are legal, `Network.URI`
14615 doesn't regard them as legal in URLs. So we escape them first (#535).
14617 * Mathjax in HTML slide shows: include explicit "Typeset" call.
14618 This seems to be needed for some formats (e.g. slideous) and won't
14619 hurt in others (#966).
14621 * `Text.Pandoc.PDF`
14623 + On Windows, create temdir in working directory, since the system
14624 temp directory path may contain tildes, which can cause
14625 problems in LaTeX (#777).
14626 + Put temporary output directory in `TEXINPUTS` (see #917).
14627 + `makePDF` tries to download images that are not found locally,
14628 if the first argument is a URL (#917).
14629 + If compiling with `pdflatex` yields an encoding error, offer
14630 the suggestion to use `--latex-engine=xelatex`.
14632 * Produce automatic header identifiers in parsing textile, RST,
14633 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
14635 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
14636 before treating as a filename. This fixes `--self-contained` when used
14637 with CSS files that include web fonts using the method described here:
14638 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
14639 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
14641 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
14642 percent-encoding, or a `+` character, as final punctuation.
14644 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
14645 EPS images properly sized on conversion to Word.
14647 * Slidy: Use slidy.js rather than slidy.js.gz.
14648 Reason: some browsers have trouble with the gzipped js file,
14649 at least on the local file system (#795).
14653 + Properly handle blank line at beginning of input (#882).
14654 + Fixed bug in unmatched reference links. The input
14655 `[*infile*] [*outfile*]` was getting improperly parsed:
14656 "infile" was emphasized, but "*outfile*" was literal (#883).
14657 + Allow internal `+` in citation identifiers (#856).
14658 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
14659 + Do not generate blank title, author, or date metadata elements.
14660 Leave these out entirely if they aren't present.
14661 + Allow backtick code blocks not to be preceded by blank line (#975).
14665 + Correctly handle entities.
14666 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
14667 in code blocks, rather than printing them verbatim. Parse attributes
14668 on `<pre>` tag for code blocks.
14670 * HTML reader: Handle non-simple tables (#893). Column widths are read from
14671 `col` tags if present, otherwise divided equally.
14675 + Support alltt environment (#892).
14676 + Support `\textasciitilde`, `\textasciicircum` (#810).
14677 + Treat `\textsl` as emphasized text reader (#850).
14678 + Skip positional options after `\begin{figure}`.
14679 + Support `\v{}` for hacek (#926).
14680 + Don't add spurious ", " to citation suffixes.
14681 This is added when needed in pandoc-citeproc.
14682 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
14683 + Improved support for accented characters (thanks to Scott Morrison).
14684 + Parse label after section command and set id (#951).
14688 + Don't insert paragraphs where docutils doesn't.
14689 `rst2html` doesn't add `<p>` tags to list items (even when they are
14690 separated by blank lines) unless there are multiple paragraphs in the
14691 list. This commit changes the RST reader to conform more closely to
14692 what docutils does (#880).
14693 + Improved metadata. Treat initial field list as metadata when
14694 standalone specified. Previously ALL fields "title", "author",
14695 "date" in field lists were treated as metadata, even if not at
14696 the beginning. Use `subtitle` metadata field for subtitle.
14697 + Fixed 'authors' metadata parsing in reST. Semicolons separate
14702 + Allow space before table rows.
14703 + Fixed regression for `<ref>URL</ref>`.
14704 `<` is no longer allowed in URLs, according to the uri parser
14705 in `Text.Pandoc.Parsing`. Added a test case.
14706 + Correctly handle indented preformatted text without preceding
14707 or following blank line.
14708 + Fixed `|` links inside table cells. Improved attribute parsing.
14709 + Skip attributes on table rows. Previously we just crashed if
14710 rows had attributes, now we ignore them.
14711 + Ignore attributes on headers.
14712 + Allow `Image:` for images (#971).
14713 + Parse an image with caption in a paragraph by itself as a figure.
14717 + Don't use ligatures in escaping inline code.
14718 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
14719 wherein notes were numbered incorrectly in tables (#827).
14720 + Always create labels for sections. Previously the labels were only
14721 created when there were links to the section in the document (#871).
14722 + Stop escaping `|` in LaTeX math.
14723 This caused problems with array environments (#891).
14724 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
14725 `\` will cause major problems if unescaped.
14726 + Write id for code block to label attribute in LaTeX when listings
14727 is used (thanks to Florian Eitel).
14728 + Scale LaTeX tables so they don't exceed columnwidth.
14729 + Avoid problem with footnotes in unnumbered headers (#940).
14731 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
14732 to the slide if it is one of the header classes. It is recommended
14733 that your bibliography slide have this attribute:
14735 # References {.allowframebreaks}
14737 This causes multiple slides to be created if necessary, depending
14738 on the length of the bibliography.
14740 * ConTeXt writer: Properly handle tables without captions. The old output
14741 only worked in MkII. This should work in MkIV as well (#837).
14743 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
14747 + Fixed `--no-highlight` (Alexander Kondratskiy).
14748 + Don't convert to lowercase in email obfuscation (#839).
14749 + Ensure proper escaping in `<title>` and `<meta>` fields.
14753 + Support `--atx-headers` (Max Rydahl Andersen).
14754 + Don't print empty identifier blocks `([[]])` on headers (Max
14759 + Fixing wrong numbered-list indentation in open document format
14760 (Alexander Kondratskiy) (#369).
14761 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
14762 + Minor changes for ODF 1.2 conformance (#939). We leave the
14763 nonconforming `contextual-spacing` attribute, which is provided by
14764 LibreOffice itself and seems well supported.
14768 + Fixed rendering of display math in lists.
14769 In 1.11 and 1.11.1, display math in lists rendered as a new list
14770 item. Now it always appears centered, just as outside of lists,
14771 and in proper display math style, no matter how far indented the
14772 containing list item is (#784).
14773 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
14774 Previously we used `w:cr` (#873).
14775 + Use Compact style for Plain block elements, to
14776 differentiate between tight and loose lists (#775).
14777 + Ignore most components of `reference.docx`.
14778 We take the `word/styles.xml`, `docProps/app.xml`,
14779 `word/theme/theme1.xml`, and `word/fontTable.xml` from
14780 `reference.docx`, ignoring everything else. This should help
14781 with the corruption problems caused when different versions of
14782 Word resave the reference.docx and reorganize things.
14783 + Made `--no-highlight` work properly.
14787 + Don't add `dc:creator` tags if present in EPUB metadata.
14788 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
14789 + Don't put blank title page in reading sequence.
14790 Set `linear="no"` if no title block. Addresses #797.
14791 + Download webtex images and include as data URLs.
14792 This allows you to use `--webtex` in creating EPUBs.
14793 Math with `--webtex` is automatically made self-contained.
14794 + In `data/epub.css`, removed highlighting styles (which
14795 are no longer needed, since styles are added by the HTML
14796 writer according to `--highlighting-style`). Simplified
14798 + If resource not found, skip it, as in Docx writer (#916).
14802 + Properly handle characters above the 0000-FFFF range.
14803 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
14804 + Fixed regression with RTF table of contents.
14805 + Only autolink absolute URIs. This fixes a regression, #830.
14809 + Only autolink absolute URIs. This fixes a regression, #830.
14810 + Don't wrap attributes in fenced code blocks.
14811 + Write full metadata in MMD style title blocks.
14812 + Put multiple authors on separate lines in pandoc titleblock.
14813 Also, don't wrap long author entries, as new lines get treated
14816 * `Text.Pandoc.Templates`:
14818 + Fixed bug retrieving default template for markdown variants.
14819 + Templates can now contain "record lookups" in variables;
14820 for example, `author.institution` will retrieve the `institution`
14821 field of the `author` variable.
14822 + More consistent behavior of `$for$`. When `foo` is not a list,
14823 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
14824 So if `foo` resolves to "", no output should be produced.
14825 See pandoc-templates#39.
14827 * Citation processing improvements (now part of pandoc-citeproc):
14829 + Fixed `endWithPunct` The new version correctly sees a sentence
14830 ending in '.)' as ending with punctuation. This fixes a bug which
14831 led such sentences to receive an extra period at the end: '.).'.
14832 Thanks to Steve Petersen for reporting.
14833 + Don't interfere with Notes that aren't citation notes.
14834 This fixes a bug in which notes not generated from citations were
14835 being altered (e.g. first letter capitalized) (#898).
14836 + Only capitalize footnote citations when they have a prefix.
14837 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
14838 inserted before it before passing to citeproc-hs, so that bare numbers
14839 are treated as page numbers by default. A suffix not beginning with
14840 punctuation has a space added at the beginning (rather than a comma and
14841 space, as was done before for not-author-in-text citations).
14842 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
14843 properly, with '23' treated as a locator of type 'page'.
14844 + Many improvements to citation rendering, due to fixes in citeproc-hs
14845 (thanks to Andrea Rossato).
14846 + Warnings are issued for undefined citations, which are rendered
14848 + Fixed hanging behavior when locale files cannot be found.
14850### Template changes
14852 * DocBook: Use DocBook 4.5 doctype.
14854 * Org: '#+TITLE:' is inserted before the title.
14855 Previously the writer did this.
14857 * LaTeX: Changes to make mathfont work with xelatex.
14858 We need the mathspec library, not just fontspec, for this.
14859 We also need to set options for setmathfont (#734).
14861 * LaTeX: Use `tex-ansi` mapping for `monofont`.
14862 This ensures that straight quotes appear as straight, rather than
14863 being treated as curly. See #889.
14865 * Made `\includegraphics` more flexible in LaTeX template.
14866 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
14868 * LaTeX/Beamer: Added `classoption` variable.
14869 This is intended for class options like `oneside`; it may
14870 be repeated with different options. (Thanks to Oliver Matthews.)
14872 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
14874 * LaTeX: Added `biblio-style` variable (#920).
14876 * DZSlides: title attribute on title section.
14878 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
14880### Under-the-hood improvements
14882 * Markdown reader:Improved strong/emph parsing, using the strategy of
14883 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
14884 no backtracking, and no keeping track of nesting levels. It will give
14885 different results in some edge cases, but these should not affect normal
14888 * Added `Text.Pandoc.Compat.Monoid`.
14889 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
14890 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
14892 * Added `Text.Pandoc.Compat.TagSoupEntity`.
14893 This allows pandoc to compile with `tagsoup` 0.13.x.
14894 Thanks to Dirk Ullrich for the patch.
14896 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
14897 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
14898 handle simple math in bibliography fields.)
14900 * Added `Text.Pandoc.Writers.Shared` for shared functions used
14901 only in writers. `metaToJSON` is used in writers to create a
14902 JSON object for use in the templates from the pandoc metadata
14903 and variables. `getField`, `setField`, and `defField` are
14904 for working with JSON template contexts.
14906 * Added `Text.Pandoc.Asciify` utility module.
14907 This exports functions to create ASCII-only versions of identifiers.
14909 * `Text.Pandoc.Parsing`
14911 + Generalized state type on `readWith` (API change).
14912 + Specialize readWith to `String` input. (API change).
14913 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
14914 with `stateMeta` and `stateMeta'`.
14916 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
14917 bytestrings seemed to cause problems using pandoc on 64-bit Windows
14920 * Factored out `registerHeader` from markdown reader, added to
14921 `Text.Pandoc.Parsing`.
14923 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
14924 Reason: < 0.5 does not provide a monoid instance for Attribute,
14925 which is now needed by the HTML writer (#803).
14927 * Added `http-conduit` flag, which allows fetching https resources.
14928 It also brings in a large number of dependencies (`http-conduit`
14929 and its dependencies), which is why for now it is an optional flag
14932 * Added CONTRIBUTING.md.
14934 * Improved INSTALL instructions.
14936 * `make-windows-installer.bat`: Removed explicit paths for executables.
14938 * `aeson` is now used instead of `json` for JSON.
14940 * Set default stack size to 16M. This is needed for some large
14941 conversions, esp. if pandoc is compiled with 64-bit ghc.
14943 * Various small documentation improvements.
14944 Thanks to achalddave and drothlis for patches.
14946 * Removed comment that chokes recent versions of CPP (#933).
14948 * Removed support for GHC version < 7.2, since pandoc-types now
14949 requires at least GHC 7.2 for GHC generics.
14952## pandoc 1.11.1 (2013-03-17)
14956 + Fixed regression in which parentheses were lost in link URLs.
14957 Added tests. Closes #786.
14958 + Better handling of unmatched double quotes in `--smart` mode.
14959 These occur frequently in fiction, since it is customary not to
14960 close quotes in dialogue if the speaker does not change between
14961 paragraphs. The unmatched quotes now get turned into literal
14962 left double quotes. (No `Quoted` inline is generated, however.)
14963 Closes #99 (again).
14965 * HTML writer: Fixed numbering mismatch between TOC and sections.
14966 `--number-offset` now affects TOC numbering as well
14967 as section numbering, as it should have all along. Closes #789.
14969 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
14970 as markdown citations, even if `--bibliography` was specified, unless
14971 `citation` extension is disabled. Now, formatted citations are always
14972 printed if `--bibliography` was specified. If you want to reformat
14973 markdown keeping pandoc markdown citations intact, don't use
14974 `--bibliography`. Note that citations parsed from LaTeX documents will
14975 be rendered as pandoc markdown citations when `--bibliography` is not
14978 * ODT writer: Fixed regression leading to corrupt ODTs.
14979 This was due to a change in the `Show` instance for
14980 `Text.Pandoc.Pretty.Doc`. Closes #780.
14982 * Fixed spacing bugs involving code block attributes in
14983 RST reader and Markdown writer. Closes #763.
14985 * Windows package: Various improvements due to Fyodor Sheremetyev.
14987 + Automatically set installation path (Program Files or Local App Data).
14988 + Set system PATH environment variable when installing for all users.
14989 + Pandoc can installed for all users using the following command.
14990 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
14992 * Bumped QuickCheck version bound.
14994## pandoc 1.11 (2013-03-09)
14996 * Added `--number-offset` option. (See README for description.)
14998 * Added `--default-image-extension` option. (See README for description.)
15000 * `--number-sections` behavior change: headers with class `unnumbered`
15001 will not be numbered.
15003 * `--version` now reports the default data directory.
15005 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
15007 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
15009 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
15010 a field for `Attr` rather than just `String`. (API change.)
15012 * Added `markdown_github` as input format. This was an accidental
15015 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
15018 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
15022 + Fixed captions with longtable. Thanks to Joost Kremers.
15023 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
15027 + Load microtype after fonts. Microtype needs to know
15028 what fonts are being used. Thanks to dfc for the patch.
15029 + Set `secnumdepth` to 5 if `--number-sections` specified.
15030 This yields behavior equivalent to the other writers, numbering
15031 level 4 and 5 headers too. Closes #753.
15035 + Handle `<colgroup>` tag.
15036 + Preserve all header attributes.
15040 + Parse `\hrule` as `HorizontalRule`. Closes #746.
15041 + Parse starred variants of `\section` etc. as headers with
15042 attribute `unnumbered`.
15043 + Read optional attributes in `lstlisting` and `Verbatim` environments.
15044 We convert these to pandoc standard names, e.g. `numberLines`
15045 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
15046 + Handle language attribute for lstlistings.
15047 + Better support for Verbatim and minted environments. Closes #763.
15051 + `-` in an attribute context = `.unnumbered`. The point of this
15052 is to provide a way to specify unnumbered headers in non-English
15054 + Fixed bug parsing key/value attributes. Parsing failed if you
15055 had an unquoted attribute immediately before the final '}'.
15056 + Make backslash escape work in attributes.
15057 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
15058 pandoc will parse a MMD title block if it sees one, even if
15059 `pandoc_title_blocks` is enabled.
15060 + Refactoring: `litChar` now includes entities, so we don't need
15061 to use `fromEntities` e.g. on titles.
15062 + Allow spaces around borders in pipe tables. Closes #772.
15063 + Allow all punctuation in angle-bracket autolinks. Previously
15064 things like `----` were disallowed, because the uri parser
15065 treated them as trailing punctuation. Closes #768.
15066 + Make `implicit_header_references` work properly when
15067 headers are given explicit identifiers.
15068 + Check for tables before line blocks. Otherwise some pipe
15069 tables get treated as line blocks.
15070 + Allow `&` in emails (for entities).
15071 + Properly handle entities in titles and links. A markdown link
15072 `<http://göogle.com>` should be a link to `http://göogle.com`.
15077 + Handle attributes on headers.
15081 + Add `fig:` as title for images with captions.
15082 This is needed for them to be rendered as figures. Closes #766.
15083 + Never emit an empty paragraph. See #761.
15084 + Handle `\caption` for images in figures. Closes #766.
15085 + Parse `\section*`, etc. as unnumbered sections.
15089 + Support header attributes. The attributes go on
15090 the enclosing `section` or `div` tag if `--section-divs` is specified.
15091 + Fixed a regression (only now noticed) in html+lhs output.
15092 Previously the bird tracks were being omitted.
15096 + Omit lists with no items to avoid LaTeX errors.
15097 + Support line numbering with `--listings`.
15098 If `numberLines` class is present, we add `numbers=left`;
15099 if `startFrom` is present, we add `firstnumber=`. (#763)
15103 + Removed `\placecontent`. This produced a duplicate toc,
15104 in conjunction with `\placelist`.
15105 + Use `\title`, `\subject` etc. for headers with
15106 `unnumbered` class.
15110 + Support header attributes.
15114 + Use grid tables when needed, and if enabled. Closes #740.
15115 + Render citations as pandoc-markdown citations.
15116 Previously citations were rendered as citeproc-formatted citations
15117 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
15118 unless the `citations` extension is disabled.
15119 If you still want formatted citations in your markdown output,
15120 use `pandoc -t markdown-citations`.
15124 + Support `:number-lines:` in code blocks.
15128 + Better treatment of display math. Display math inside a
15129 paragraph is now put in a separate paragraph, so it will render
15130 properly (centered and without extra blank lines around it).
15131 Partially addresses #742.
15132 + Content types and document rels xml files are now created from
15133 scratch, rather than being taken over from `reference.docx`.
15134 This fixes problems that arise when you edit the `reference.docx`
15136 + We also now encode mime types for each individual image rather
15137 than using defaults. This should allow us to handle a wider
15138 range of image types (including PDF). Closes #414.
15139 + Changed style names in `reference docx`.
15140 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
15141 The old names got changed by Word when the `reference.docx` was
15142 edited. Closes #414.
15146 + Fix section numbering. Previously the numbering restarted from 1
15147 in each chapter (with `--number-sections`), though the numbers in
15148 the table of contents were correct.
15149 + Headers with "unnumbered" attribute are not numbered. (Nor do they
15150 cause an increment in running numbering.) Section numbers now work
15151 properly, even when there is material before the first numbered section.
15152 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
15153 but `linear` is set to `no` unless the `--toc` option is specified.
15154 Include `<guide>` element in OPF. This should allow the TOC to
15155 be usable in Kindles when converted with kindlegen. Closes #773.
15157 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
15158 This dramatically reduces the speed penalty that comes from enabling the
15159 `autolink_bare_uris` extension. The penalty is still substantial (in one
15160 test, from 0.33s to 0.44s), but nowhere near what it used to be.
15161 The RST reader is also much faster now, as it autodetects URIs.
15163 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
15164 with class "unnumbered". Unnumbered sections get `[]` for their
15167 * `Text.Pandoc.Pretty`:
15169 + Fixed `chomp` so it works inside `Prefixed` elements.
15170 + Changed `Show` instance so it is better for debugging.
15172 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
15174 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
15176 * Windows installer improvements:
15178 + The installer is now signed with a certificate (thanks to
15179 Fyodor Sheremetyev).
15180 + WiX is used instead of InnoSetup. The installer is now a
15182 + The version number is now auto-detected, and need not be
15183 updated separately.
15185 * OSX installer improvements:
15187 + The package and pandoc executable are now signed with a
15188 certificate (thanks to Fyodor Sheremetyev).
15189 + RTF version of license is used.
15190 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
15193 * Converted COPYING to markdown.
15195 * pandoc.cabal: Require latest versions of highlighting-kate,
15196 texmath, citeproc-hs, zip-archive.
15198## pandoc 1.10.1 (2013-01-23)
15200 * Markdown reader: various optimizations, leading to a
15201 significant performance boost.
15203 * RST reader: Allow anonymous form of inline links:
15204 `` `hello <url>`__ `` Closes #724.
15206 * Mediawiki reader: Don't require newlines after tables.
15207 Thanks to jrunningen for the patch. Closes #733.
15209 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
15210 when output is LaTeX, and applied when it is another format.
15211 Partially addresses #730.
15213 * Markdown and RST readers: Added parser to `block` that skips blank
15214 lines. This fixes a subtle regression involving grid tables with
15215 empty cells. Also added test for grid table with empty cells.
15218 * RST writer: Use `.. code:: language` for code blocks with language.
15221 * DocBook writer: Fixed output for hard line breaks, adding a newline
15222 between `<literallayout>` tags.
15224 * Markdown writer: Use an autolink when link text matches url.
15225 Previously we also checked for a null title, but this
15226 test fails for links produced by citeproc-hs in bibliographies.
15227 So, if the link has a title, it will be lost on conversion
15228 to an autolink, but that seems okay.
15230 * Markdown writer: Set title, author, date variables as before.
15231 These are no longer used in the default template, since we use
15232 titleblock, but we set them anyway for those who use custom templates.
15234 * LaTeX writer: Avoid extra space at start/end of table cell.
15235 Thanks to Nick Bart for the suggestion of using @{}.
15237 * `Text.Pandoc.Parsing`:
15239 + More efficient version of `anyLine`.
15240 + Type of `macro` has changed; the parser now returns `Blocks`
15241 instead of `Block`.
15243 * Relaxed old-time version bound, allowing 1.0.*.
15245 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
15246 should create a symlink as described in the README.
15248## pandoc 1.10.0.5 (2013-01-23)
15250 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
15251 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
15252 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
15254 * Markdown reader: Fixed bug with headerless grid tables.
15255 The 1.10 code assumed that each table header cell contains exactly one
15256 block. That failed for headerless tables (0) and also for tables with
15257 multiple blocks in a header cell. The code is fixed and tests provided.
15258 Thanks to Andrew Lee for pointing out the bug.
15260 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
15262 + Tilde code fences can again take a bare language string
15263 (`~~~ haskell`), not just curly-bracketed attributes
15264 (`~~~ {.haskell}`).
15265 + Backtick code blocks can take the curly-bracketed attributes.
15266 + Backtick code blocks don't *require* a language.
15267 + Consolidated code for the two kinds of fenced code blocks.
15269 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
15271 * Markdown writer: Use proportional font for email autolinks with
15272 obfuscation. Closes #714.
15274 * Corrected name of `blank_before_blockquote` in README. Closes #718.
15276 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
15277 The bug prevented an autolink at the end of a string (e.g.
15278 at the end of a line block line) from counting as a link. Closes #711.
15280 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
15281 This should work on Windows, unlike the TH solution with
15284 * Eliminated use of TH in test suite.
15286 * Added `Text.Pandoc.Data` (non-exported) to hold the association
15287 list of embedded data files, if the `embed_data_files` flag is selected.
15288 This isolates the code that needs special treatment with file-embed or
15291 * Changes to `make-windows-installer.bat`.
15293 + Exit batch file if any of the cabal-dev installs fail.
15294 + There's no longer any need to reinstall `highlighting-kate`.
15295 + Don't start with a `cabal update`; leave that to the user.
15296 + Force reinstall of pandoc.
15298 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
15301## pandoc 1.10.0.4 (2013-01-20)
15303 * Fixed bug with escaped % in LaTeX reader. Closes #710.
15305## pandoc 1.10.0.3 (2013-01-20)
15307 * Added further missing fb2 tests to cabal file.
15309## pandoc 1.10.0.2 (2013-01-20)
15311 * Added fb2 tests to cabal file's extra-source-files.
15313## pandoc 1.10.0.1 (2013-01-20)
15315 * Bump version bounds on test-framework packages.
15317## pandoc 1.10 (2013-01-19)
15321 * New input formats: `mediawiki` (MediaWiki markup).
15323 * New output formats: `epub3` (EPUB v3 with MathML),
15324 `fb2` (FictionBook2 ebooks).
15326 * New `--toc-depth` option, specifying how many levels of
15327 headers to include in a table of contents.
15329 * New `--epub-chapter-level` option, specifying the header
15330 level at which to divide EPUBs into separate files.
15331 Note that this normally affects only performance, not the
15332 visual presentation of the EPUB in a reader.
15334 * Removed the `--strict` option. Instead of using `--strict`,
15335 one can now use the format name `markdown_strict` for either input
15336 or output. This gives more fine-grained control that `--strict`
15337 did, allowing one to convert from pandoc's markdown to strict
15338 markdown or vice versa.
15340 * It is now possible to enable or disable specific syntax
15341 extensions by appending them (with `+` or `-`) to the writer
15342 or reader name. For example,
15344 pandoc -f markdown-footnotes+hard_line_breaks
15346 disables footnotes and enables treating newlines as hard
15347 line breaks. The literate Haskell extensions are now implemented
15348 this way as well, using either `+lhs` or `+literate_haskell`.
15349 For a list of extension names, see the README under
15350 "Pandoc's Markdown."
15352 * The following aliases have been introduced for specific
15353 combinations of markdown extensions: `markdown_phpextra`,
15354 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
15355 work just like regular reader and writer names, and can be modified
15356 with extension modifiers as described above. (Note that conversion
15357 from one markdown dialect to another does not work perfectly,
15358 because there are differences in markdown parsers besides
15359 just the extensions, and because pandoc's internal document model is
15360 not rich enough to capture all of the extensions.)
15362 * New `--html-q-tags` option. The previous default was to use `<q>`
15363 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
15364 Moreover, they are not a robust way of typesetting quotes, since
15365 some user agents don't support them, and some CSS resets (e.g.
15366 bootstrap) prevent pandoc's quotes CSS from working properly.
15367 We now just insert literal quote characters by default in both
15368 `html` and `html5` output, but this option is provided for
15369 those who still want `<q>` tags.
15371 * The markdown reader now prints warnings (to stderr) about
15372 duplicate link and note references. Closes #375.
15374 * Markdown syntax extensions:
15376 + Added pipe tables. Thanks to François Gannaz for the initial patch.
15377 These conform to PHP Markdown Extra's pipe table syntax. A subset
15378 of org-mode table syntax is also supported, which means that you can
15379 use org-mode's nice table editor to create tables.
15381 + Added support for RST-style line blocks. These are
15382 useful for verse and addresses.
15384 + Attributes can now be specified for headers, using the same
15385 syntax as in code blocks. (However, currently only the
15386 identifier has any effect in most writers.) For example,
15390 See [the header above](#foo).
15392 + Pandoc will now act as if link references have been defined
15393 for all headers without explicit identifiers.
15394 So, you can do this:
15398 Link to [My header].
15399 Another link to [it][My header].
15405 + Command macros now work everywhere, including non-math.
15406 Environment macros still not supported.
15407 + `\input` now works, as well as `\include`. TEXINPUTS is used.
15408 Pandoc looks recursively into included files for more included files.
15410### Behavior changes
15412 * The Markdown reader no longer puts the text of autolinks in a
15413 `Code` inline. This means that autolinks will no longer appear
15414 in a monospace font.
15416 * The character `/` can now appear in markdown citation keys.
15418 * HTML blocks in strict_markdown are no longer required to begin
15419 at the left margin. Technically this is required, according to
15420 the markdown syntax document, but `Markdown.pl` and other markdown
15421 processors are more liberal.
15423 * The `-V` option has been changed so that if there are duplicate
15424 variables, those specified later on the command line take precedence.
15426 * Tight lists now work in LaTeX and ConTeXt output.
15428 * The LaTeX writer no longer relien on the `enumerate` package.
15429 Instead, it uses standard LaTeX commands to change the list numbering
15432 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
15433 tables to be split over page boundaries.
15435 * The RST writer now uses a line block to render paragraphs containing
15436 linebreaks (which previously weren't supported at all).
15438 * The markdown writer now applies the `--id-prefix` to footnote IDs.
15441 * The plain writer no longer uses backslash-escaped line breaks
15442 (which are not very "plain").
15444 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
15445 Read bytestring and use `Text`'s decodeUtf8 instead of using
15446 `System.IO.hGetContents`. This way you get a message saying
15447 "invalid UTF-8 stream" instead of "invalid byte sequence."
15448 You are also told which byte caused the problem.
15450 * Docx, ODT, and EPUB writers now download images specified by a URL
15451 instead of skipping them or raising an error.
15455 + The default CSS now left-aligns headers by default, instead of
15456 centering. This is more consistent with the rest of the writers.
15457 + A proper multi-level table of contents is now used in `toc.ncx`.
15458 There is no longer a subsidiary table of contents at the beginning
15460 + Code highlighting now works by default.
15461 + Section divs are used by default for better semantic markup.
15462 + The title is used instead of "Title Page" in the table of contents.
15463 Otherwise we have a hard-coded English string, which looks
15464 strange in ebooks written in other languages. Closes #572.
15468 + Put mathjax in span with class "math". Closes #562.
15469 + Put citations in a span with class "citation." In HTML5, also include
15470 a `data-cite` attribute with a space-separated list of citation
15473 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
15474 This treats both `\r\n` and `\n` as `\n` on input, no matter
15475 what platform we're running on.
15477 * Citation processing is now done in the Markdown and LaTeX
15478 readers, not in `pandoc.hs`. This makes it easier for library users
15481### Template changes
15483 * HTML: Added css to template to preserve spaces in `<code>` tags.
15484 Thanks to Dirk Laurie.
15486 * Beamer: Remove English-centric strings in section pages.
15487 Section pages used to have "Section" and a number as well as the
15488 section title. Now they just have the title. Similarly for part
15489 and subsection. Closes #566.
15491 * LaTeX, ConTeXt: Added papersize variable.
15493 * LaTeX, Beamer templates: Use longtable instead of ctable.
15495 * LaTeX, Beamer templates: Don't require 'float' package for tables.
15496 We don't actually seem to use the '[H]' option.
15498 * Markdown, plain: Fixed titleblock so it is just a single string.
15499 Previously separate title, author, and date variables were used,
15500 but this didn't allow different kinds of title blocks.
15504 + Rationalized templates. Previously there were three different
15505 templates involved in epub production. There is now just one
15506 template, `default.epub` or `default.epub3`. It can now be
15507 overridden using `--template`, just like other templates.
15508 The titlepage is now folded into the default template.
15509 A `titlepage` variable selects it.
15510 + UTF-8, lang tag, meta tags, title element.
15512 * Added scale-to-width feature to beamer template
15516 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
15517 Previously header identifiers were autogenerated by the writers.
15518 Now they are added in the readers (either automatically or explicitly).
15520 * `Text.Pandoc.Builder`:
15522 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
15523 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
15524 custom Monoid instances for `Many Inline` and `Many Block. This
15525 allows `Many` to be made an instance of `Foldable` and `Traversable`.
15526 + The old `Listable` class has been removed.
15527 + The module now exports `isNull`, `toList`, `fromList`.
15528 + The old `Read` and `Show` instances have been removed; derived
15529 instances are now used.
15530 + Added `headerWith`.
15532 * The readers now take a `ReaderOptions` rather than a `ParserState`
15533 as a parameter. Indeed, not all parsers use the `ParserState` type;
15534 some have a custom state. The motivation for this change was to separate
15535 user-specifiable options from the accounting functions of parser state.
15537 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
15538 formerly in `Text.Pandoc.Shared`, and its associated
15539 data types. It also includes a new type `ReaderOptions`, which
15540 contains many options formerly in `ParserState`, and its associated
15543 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
15544 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
15545 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
15546 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
15547 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
15548 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
15549 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
15550 + `ParserState.stateIndentedCodeClasses` ->
15551 `ReaderOptions.readerIndentedCodeClasses`.
15552 + Added `ReaderOptions.readerCitationStyle`.
15554 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
15555 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
15556 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
15557 been renamed `writerEpubMetadata` for consistency.
15559 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
15560 longer stylesheet, fonts, reference files as separate parameters.
15562 * Removed `writerLiterateHaskell` from `WriterOptions`, and
15563 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
15564 by an extension (`Ext_literate_haskell`).
15566 * Removed deprecated `writerXeTeX`.
15568 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
15569 Strict is now handled through extensions.
15571 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
15572 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
15573 and `multimarkdownExtensions`, as well as the `Extensions` type.
15575 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
15578 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
15579 (thanks to Sergey Astanin).
15583 + Added `getReader`, `getWriter` to `Text.Pandoc`.
15584 + `writers` is now an association list `(String, Writer)`.
15585 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
15586 an `IOByteStringWriter`. ALL writers are now in the 'writers'
15587 list, including the binary writers and FB2 writer. This allows
15588 code in `pandoc.hs` to be simplified.
15589 + Changed type of `readers`, so all readers are in IO.
15590 Users who want pure readers can still get them form the reader
15591 modules; this just affects the function `getReader` that looks up
15592 a reader based on the format name. The point of this change is to
15593 make it possible to print warnings from the parser.
15595 * `Text.Pandoc.Parsing`:
15597 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
15598 No other module directly imports Parsec. This will make it easier
15599 to change the parsing backend in the future, if we want to.
15600 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
15601 + Export the type synonym `Parser`.
15602 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
15603 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
15604 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
15605 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
15606 + `ParserState` is no longer an instance of `Show`.
15607 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
15608 + Generalized type of `withQuoteContext`.
15609 + Added `guardEnabled`, `guardDisabled`, `getOption`.
15610 + Removed `failIfStrict`.
15611 + `lookupKeySrc` and `fromKey` are no longer exported.
15613 * `Data.Default` instances are now provided for `ReaderOptions`,
15614 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
15615 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
15616 of `defaultWriterOptions` (which is still defined). Closes #546.
15618 * `Text.Pandoc.Shared`:
15620 + Added `safeRead`.
15621 + Renamed `removedLeadingTrailingSpace` to `trim`,
15622 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
15623 + Count `\r` as space in `trim` functions.
15624 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
15626 + Removed `failUnlessLHS`.
15627 + Export `compactify'`, formerly in Markdown reader.
15628 + Export `isTightList`.
15629 + Do not export `findDataFile`.
15630 + `readDataFile` now returns a strict ByteString.
15631 + Export `readDataFileUTF8` which returns a String, like the
15632 old `readDataFile`.
15633 + Export `fetchItem` and `openURL`.
15635 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
15636 Removed `readImageSize`.
15638 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
15639 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
15642 * `Text.Pandoc.UTF8` is now an exposed module.
15644 * `Text.Pandoc.Biblio`:
15646 + csl parameter now a `String` rather than a `FilePath`.
15647 + Changed type of `processBiblio`. It is no longer in the IO monad.
15648 It now takes a `Maybe Style` argument rather than parameters for CSL
15649 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
15650 the style file and add abbreviations.)
15652 * Markdown reader now exports `readMarkdownWithWarnings`.
15654 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
15659 * Make `--ascii` work properly with `--self-contained`. Closes #568.
15663 + Fixed link parser to avoid exponential slowdowns. Closes #620.
15664 Previously the parser would hang on input like this:
15666 [[[[[[[[[[[[[[[[[[hi
15668 We fixed this by making the link parser parser characters
15669 between balanced brackets (skipping brackets in inline code spans),
15670 then parsing the result as an inline list. One change is that
15672 [hi *there]* bud](/url)
15674 is now no longer parsed as a link. But in this respect pandoc behaved
15675 differently from most other implementations anyway, so that seems okay.
15677 + Look for raw html/latex blocks before tables.
15678 Otherwise the following gets parsed as a table:
15689 + Added support for `:target:` on `.. image::` blocks
15691 + Field list fixes:
15693 - Fixed field lists items with body beginning after a new line
15695 - Allow any char but ':' in names of field lists in RST reader
15697 - Don't allow line breaks in field names.
15698 - Require whitespace after field list field names.
15699 - Don't create empty definition list for metadata field lists.
15700 Previously a field list consisting only of metadata fields (author,
15701 title, date) would be parsed as an empty DefinitionList, which is
15702 not legal in LaTeX and not needed in any format.
15704 + Don't recognize inline-markup starts inside words.
15705 For example, `2*2 = 4*1` should not contain an emphasized
15706 section. Added test case for "Literal symbols". Closes #569.
15707 + Allow dashes as separator in simple tables. Closes #555.
15708 + Added support for `container`, `compound`, `epigraph`,
15709 `rubric`, `highlights`, `pull-quote`.
15710 + Added support for `.. code::`.
15711 + Made directive labels case-insensitive.
15712 + Removed requirement that directives begin at left margin.
15713 This was (correctly) not in earlier releases; docutils doesn't
15714 make the requirement.
15715 + Added support for `replace::` and `unicode::` substitutions.
15716 + Ignore unknown interpreted roles.
15717 + Renamed image parser to `subst`, since it now handles all
15718 substitution references.
15722 + Allow newlines before pipes in table. Closes #654.
15723 + Fixed bug with list items containing line breaks.
15724 Now pandoc correctly handles hard line breaks inside list items.
15725 Previously they broke list parsing.
15726 + Implemented comment blocks.
15727 + Fixed bug affected words ending in hyphen.
15728 + Properly handle links with surrounding brackets.
15729 Square brackets need to be used when the link isn't surrounded by
15730 spaces or punctuation, or when the URL ending may be ambiguous.
15732 + Removed nullBlock. Better to know about parsing problems than
15733 to skip stuff when we get stuck.
15734 + Allow ID attributes on headers.
15735 + Textile reader: Avoid parsing dashes as strikeout.
15736 Previously the input
15743 would be parsed with strikeouts rather than dashes. This fixes
15744 the problem by requiring that a strikeout delimiting - not be
15745 followed by a -. Closes #631.
15746 + Expanded list of `stringBreakers`.
15747 This fixes a bug on input like "(_hello_)" which should
15748 be a parenthesized emphasized "hello".
15749 The new list is taken from the PHP source of textile 2.4.
15750 + Fixed autolinks. Previously the textile reader and writer
15751 incorrectly implemented RST-style autolinks for URLs and email
15752 addresses. This has been fixed. Now an autolink is done this way:
15753 `"$":http://myurl.com`.
15754 + Fixed footnotes bug in textile. This affected notes occurring
15755 before punctuation, e.g. `foo[1].`. Closes #518.
15759 + Better handling of citation commands.
15760 + Better handling of `\noindent`.
15761 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
15763 + Made `rawLaTeXInline` try to parse block commands as well. This
15764 is usually what we want, given how `rawLaTeXInline` is used in
15765 the markdown and textile readers. If a block-level LaTeX command
15766 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
15767 we can treat it as raw inline LaTeX.
15768 + Handle `\slash` command. Closes #605.
15769 + Basic `\enquote` support.
15770 + Fixed parsing of paragraphs beginning with a group. Closes #606.
15771 + Use curly quotes for bare straight quotes.
15772 + Support obeylines environment. Closes #604.
15773 + Guard against "begin", "end" in inlineCommand and
15775 + Better error messages for environments. Now it should tell you that
15776 it was looking for \end{env}, instead of giving "unknown parse error."
15780 + Added HTML 5 tags to list of block-level tags.
15781 + HTML reader: Fixed bug in `htmlBalanced`, which
15782 caused hangs in parsing certain markdown input using
15784 + Parse `<q>` as `Quoted DoubleQuote`.
15785 + Handle nested `<q>` tags properly.
15786 + Modified `htmlTag` for fewer false positives.
15787 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
15788 This makes it more useful in the wikimedia and markdown parsers.
15790 * DocBook reader: Support title in "figure" element. Closes #650.
15792 * MediaWiki writer:
15794 + Remove newline after `<br/>` in translation of `LineBreak`
15795 There's no particular need for a newline (other than making the
15796 generated MediaWiki source look nice to a human), and in fact
15797 sometimes it is incorrect: in particular, inside an enumeration, list
15798 items cannot have embedded newline characters. (Brent Yorgey)
15799 + Use `<code>` not `<tt>` for Code.
15801 * Man writer: Escape `-` as `\-`.
15802 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
15803 signs. That is preferable for use with command-line options. See
15804 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
15805 to Andrea Bolognani for bringing the issue to our attention.
15809 + Improved line block output. Use nonbreaking spaces for
15810 initial indent (otherwise lost in HTML and LaTeX).
15811 Allow multiple paragraphs in a single line block.
15812 Allow soft breaks w continuations in line blocks.
15813 + Properly handle images with no alt text. Closes #678.
15814 + Fixed bug with links with duplicate text. We now (a) use anonymous
15815 links for links with inline URLs, and (b) use an inline link instead
15816 of a reference link if the reference link would require a label that
15817 has already been used for a different link. Closes #511.
15818 + Fixed hyperlinked images. Closes #611. Use `:target:`
15819 field when you have a simple linked image.
15820 + Don't add `:align: center` to figures.
15822 * Texinfo writer: Fixed internal cross-references.
15823 Now we insert anchors after each header, and use `@ref` instead of `@uref`
15824 for links. Commas are now escaped as `@comma{}` only when needed;
15825 previously all commas were escaped. (This change is needed, in part,
15826 because `@ref` commands must be followed by a real comma or period.) Also
15827 insert a blank line in from of `@verbatim` environments.
15831 + Made --id-prefix work in DocBook as well as HTML.
15833 + Don't include empty captions in figures. Closes #581.
15837 + Use `\hspace*` for nonbreaking space after line break,
15838 since `~` spaces after a line break are just ignored.
15840 + Don't escape `_` in URLs or hyperref identifiers.
15841 + Properly escape strings inside `\url{}`. Closes #576.
15842 + Use `[fragile]` only for slides containing code rendered
15843 using listings. Closes #649.
15844 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
15845 highlighting-kate's macros, which redefine `|` as a short verbatim
15846 delimiter. Thanks to Björn Peemöller for raising this issue.
15847 + Use minipage rather than parbox for block containers in tables.
15848 This allows verbatim code to be included in grid tables.
15850 + Prevent paragraphs containing only linebreaks or spaces.
15854 + Included `highlighting-css` for code spans, too.
15855 Previously it was only included if used in a code block. Closes #653.
15856 + Improved line breaks with `<dd>` tags. We now put a newline between
15857 `</dd>` and `<dd>` when there are multiple definitions.
15858 + Changed mathjax cdn url so it doesn't use https. (This caused
15859 problems when used with `--self-contained`.) See #609.
15863 + `--number-sections` now works properly.
15864 + Don't strip meta and link elements in epub metadata.
15865 Patch from aberrancy. Closes #589.
15866 + Fixed a couple validation bugs.
15867 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
15868 of chapters in some readers, which apparently sort ch2 after ch10.
15871 * ODT writer: properly set title property (Arlo O'Keeffe).
15875 + Fixed bug with nested lists. Previously a list like
15882 would come out with a bullet instead of "2."
15883 Thanks to Russell Allen for reporting the bug.
15884 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
15885 This seems to fix a problem viewing pandoc-generated
15886 docx files in LibreOffice.
15887 + Use integer ids for bookmarks. Closes #626.
15888 + Added nsid to abstractNum elements. This helps when merging
15889 word documents with numbered or bulleted lists. Closes #627.
15890 + Use separate footnotes.xml for notes.
15891 This seems to help LibreOffice convert the file, even though
15892 it was valid docx before. Closes #637.
15893 + Use rIdNN identifiers for r:embed in images.
15894 + Avoid reading image files again when we've already processed them.
15895 + Fixed typo in `referenc.docx` that prevented image captions from
15896 working. Thanks to Huashan Chen.
15898 * `Text.Pandoc.Parsing`:
15900 + Fixed bug in `withRaw`, which didn't correctly handle the case
15901 where nothing is parsed.
15902 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
15903 though it still doesn't implement quoted strings in email addresses.
15904 + Revised URI parser. It now allows many more schemes, allows
15905 uppercase URIs, and better handles trailing punctuation and
15906 trailing slashes in bare URIs. Added many tests.
15907 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
15908 etc. parse properly. Formerly we had some English-centric heuristics,
15909 but they are no longer needed. Closes #698.
15911 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
15912 This fixes bug with Chinese commas in markdown and reST tables, and
15913 a bug that caused combining characters to be dropped.
15915 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
15917 * `Text.Pandoc.Biblio`:
15919 + Run `mvPunc` and `deNote` on metadata too.
15920 This fixed a bug with notes on titles using footnote styles.
15921 + Fixed bug in fetching CSL files from CSL data directory.
15923 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
15924 is provided. It should be the URL up to the path.
15926 * Fixed/simplified diff output for tests.
15927 Biblio: Make sure mvPunc and deNote run on metadata too.
15928 This fixed a bug with notes on titles using footnote styles.
15930### Under the hood improvements
15932 * We no longer depend on `utf8-string`. Instead we use functions
15933 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
15935 * Use `safeRead` instead of using `reads` directly (various modules).
15937 * "Implicit figures" (images alone in a paragraph) are now handled
15938 differently. The markdown reader gives their titles the prefix `fig:`; the
15939 writers look for this before treating the image as a figure. Though this
15940 is a bit of a hack, it has two advantages: (i) implicit figures can be
15941 limited to the markdown reader, and (ii) they can be deactivated by turning
15942 off the `implicit_figures` extension.
15944 * `catch` from `Control.Exception` is now used instead of the
15945 old Preface `catch`.
15947 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
15948 and `oneOfStrings` (which is now non-backtracking).
15950 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
15951 Now citeproc-hs is fixed upstream, so this is no longer needed.
15954 * Textile reader: Improved speed of `hyphenedWords`.
15955 This speeds up the textile reader by about a factor of 4.
15957 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
15958 better performance, and automatic normalization.
15960 * Major rewrite of markdown reader:
15962 + Use `Text.Pandoc.Builder` instead of lists. This also
15963 means that everything is normalized automatically.
15964 + Move to a one-pass parsing strategy, returning values in the reader
15965 monad, which are then run (at the end of parsing) against the final
15968 * In HTML writer, we now use `toHtml` instead of pre-escaping.
15969 We work around the problem that blaze-html unnecessarily escapes `'`
15970 by pre-escaping just the `'` characters, instead of the whole string.
15971 If blaze-html later stops escaping `'` characters, we can simplify
15972 `strToHtml` to `toHtml`. Closes #629.
15974 * Moved code for embedding images in RTFs from `pandoc.hs` to the
15975 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
15977 * Moved citation processing from `pandoc.hs` into the readers.
15978 This makes things more convenient for library users.
15980 * The man pages are now built by an executable `make-pandoc-man-pages`,
15981 which has its own stanza in the cabal file so that dependencies can be
15982 handled by Cabal. Special treatment in `Setup.hs` ensures that this
15983 executable never gets installed; it is only used to create the man pages.
15985 * The cabal file has been modified so that the pandoc library is used
15986 in building the pandoc executable. (This required moving `pandoc.hs`
15987 from `src` to `.`.) This cuts compile time in half.
15989 * The `executable` and `library` flags have been removed.
15991 * `-threaded` has been removed from ghc-options.
15993 * Version bounds of dependencies have been raised, and the
15994 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
15997 * We now require base >= 4.2.
15999 * Integrated the benchmark program into cabal. One can now do:
16001 cabal configure --enable-benchmarks && cabal build
16002 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
16004 The benchmark now uses README + testsuite, so benchmark results
16005 from older versions aren't comparable.
16007 * Integrated test suite with cabal.
16008 To run tests, configure with `--enable-tests`, then `cabal test`.
16009 You can specify particular tests using `--test-options='-t markdown'`.
16010 No output is shown unless tests fail. The Haskell test modules
16011 have been moved from `src/` to `tests/`.
16013 * Moved all data files and templates to the `data/` subdirectory.
16015 * Added an `embed_data_files` cabal flag. This causes all
16016 data files to be embedded in the binary, so that the binary
16017 is self-sufficient and can be relocated anywhere, copied on
16018 a USB key, etc. The Windows installer now uses this.
16019 (Since we no longer have the option to build the executable
16020 without the library, this is the only way to get a relocatable
16021 binary on Windows.)
16023 * Removed pcre3.dll from windows package.
16024 It isn't needed unless highlighting-kate is compiled with the
16025 `pcre-light` flag. By default, regex-prce-builtin is used.
16028## pandoc 1.9.4.5 (2012-10-21)
16030 * Raised version bounds on network, base64-bytestring, json,
16031 and template-haskell.
16033## pandoc 1.9.4.4 (2012-10-20)
16035 * Removed `tests` flag and made test suite into a proper cabal
16036 test suite, which can now be enabled using `--enable-tests`
16037 and run with `cabal test`.
16039 * Moved man page creation out of `Setup.hs` and into an
16040 executable built by Cabal, but never installed. This
16041 allows dependencies to be specified, and solves a problem
16042 with 1.9.4.3, which could only be installed if `data-default`
16043 had already been installed.
16045 * Updated `lhs-latex.tex` test for latest highlighting-kate
16046 representation of backticks.
16048## pandoc 1.9.4.3 (2012-10-20)
16050 * Removed `-threaded` from default compile flags.
16052 * Modified modules to compile with GHC 7.6 and latest version of time
16055## pandoc 1.9.4.2 (2012-06-29)
16057 * Don't encode/decode file paths if base >= 4.4.
16058 Prior to base 4.4, filepaths and command line arguments were treated
16059 as unencoded lists of bytes, not unicode strings, so we had to work
16060 around that by encoding and decoding them. This commit adds CPP
16061 checks for the base version that intelligibly enable encoding/decoding
16062 when needed. Fixes a bug with multilingual filenames when pandoc was
16063 compiled with ghc 7.4 (#540).
16065 * Don't generate an empty H1 after hrule slide breaks.
16066 We now use a slide-level header with contents `[Str "\0"]` to mark
16067 an hrule break. This avoids creation of an empty H1 in these
16068 contexts. Closes #484.
16070 * Docbook reader: Added support for "bold" emphasis. Thanks to mb21.
16072 * In make_osx_package.sh, ensure citeproc-hs is built with the
16073 embed_data_files flag.
16075 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
16077 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
16078 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
16080 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
16083 * Added webm to mime types. Closes #543.
16085 * Added some missing exports and tests to the cabal file
16086 (Alexander V Vershilov).
16088 * Compile with `-rtsopts` and `-threaded` by default.
16090## pandoc 1.9.4.1 (2012-06-08)
16092 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
16094 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
16095 variables. Make TOC links black.
16097 * LaTeX template improvements.
16099 + Don't print date unless one is given explicitly in the document.
16100 + Simplified templates.
16101 + Use fontenc [T1] by default, and lmodern.
16102 + Use microtype if available.
16106 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
16107 Motivation: `@item1 [50]` should be as close as possible to
16109 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
16110 beginning with a citation to be empty. Closes #531.
16112 * Fixed documentation on mixed lists. Closes #533.
16114## pandoc 1.9.4 (2012-06-03)
16116 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
16117 footnotes and captions. We now handle note citations by inserting
16118 footnotes during initial citation processing, and doing a separate
16119 pass later to remove notes inside notes.
16121 * Added 'zenburn' highlight style from highlighting-kate.
16123 * Added Slideous writer. Slideous is an HTML + javascript slide show
16124 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
16128 + Ensure we don't have extra blank lines at ends of cells.
16129 This can cause LaTeX errors, as they are interpreted as new paragraphs.
16130 + More consistent interblock spacing.
16131 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
16132 code in LaTeX. Closes #527.
16133 + Ensure that a Verbatim at the end of a footnote is followed by
16134 a newline. (Fixes a regression in the previous version.)
16135 + In default template, use black for internal links and TOC.
16136 Added commented-out code to use footnotes for links, as would
16137 be suitable in print output.
16139 * Beamer writer: When `--incremental` is used, lists inside
16140 a block quote should appear all at once. (This makes Beamer
16141 output consistent with the HTML slide show formats.)
16145 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
16146 to avoid gobbling spaces after the `%` sign.
16147 + Ensure space after `\stopformula`.
16151 + Use `:` form instead of `~` in definition lists, for better
16152 compatibility with other markdown implementations.
16153 + Don't wrap the term, because it breaks definition lists.
16154 + Use a nonzero space to prevent false recognition
16155 of list marker in ordered lists. Closes #516.
16157 * Org writer: Add space before language name. Closes #523.
16159 * Docx writer: Simplified bullet characters so they work properly
16160 with Word 2007. Closes #520.
16162 * LaTeX reader: Support `\centerline`.
16164 * RST reader: handle figures. Closes #522.
16166 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
16169## pandoc 1.9.3 (2012-05-12)
16171 * Added docbook reader (with contributions from Mauro Bieg).
16173 * Fixed bug in `fromEntities`. The previous version would turn
16174 `hi & low you know;` into `hi &`.
16178 + Don't skip nonbreaking spaces.
16179 Previously a paragraph containing just ` ` would be rendered
16180 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
16181 + Support `<col>` and `<caption>` in tables. Closes #486.
16185 + Don't recognize references inside delimited code blocks.
16186 + Allow list items to begin with lists.
16190 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
16191 + Control sequences can't be followed by a letter.
16192 This fixes a bug where `\begingroup` was parsed as `\begin`
16193 followed by `group`.
16194 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
16195 + Make `\label` and `\ref` sensitive to `--parse-raw`.
16196 If `--parse-raw` is selected, these will be parsed as raw latex
16197 inlines, rather than bracketed text.
16198 + Don't crash on unknown block commands (like `\vspace{10pt}`)
16199 inside `\author`; just skip them. Closes #505.
16203 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
16204 + Added support for LaTeX blocks and inlines (Paul Rivier).
16205 + Better conformance to RedCloth inline parsing (Paul Rivier).
16206 + Parse '+text+' as emphasized (should be underlined, but this
16207 is better than leaving literal plus characters in the output.
16209 * Docx writer: Fixed multi-paragraph list items. Previously they each
16210 got a list marker. Closes #457.
16214 + Added `--no-tex-ligatures` option to avoid replacing
16215 quotation marks and dashes with TeX ligatures.
16216 + Use `fixltx2e` package to provide `\textsubscript`.
16217 + Improve spacing around LaTeX block environments:
16218 quote, verbatim, itemize, description, enumerate.
16220 + Use blue instead of pink for URL links in latex/pdf output.
16222 * ConTeXt writer: Fixed escaping of `%`.
16223 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
16224 Inside URLs, `%` needs to be escaped as `\%`
16225 Thanks to jmarca and adityam for the fix. Closes #492.
16227 * Texinfo writer: Escape special characters in node titles.
16228 This fixes a problem pointed out by Joost Kremers. Pandoc used
16229 to escape an '@' in a chapter title, but not in the corresponding
16230 node title, leading to invalid texinfo.
16232 * Fixed document encoding in texinfo template.
16233 Resolves Debian Bug #667816.
16237 + Don't force delimited code blocks to be flush left.
16238 Fixes bug with delimited code blocks inside lists etc.
16239 + Escape `<` and `$`.
16241 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
16242 Previously we used `\href{\#ident}{text}`, which didn't work on
16243 all systems. Thanks to Dirk Laurie.
16245 * RST writer: Don't wrap link references. Closes #487.
16247 * Updated to use latest versions of blaze-html, mtl.
16250## pandoc 1.9.2 (2012-04-05)
16254 + Made `lstlisting` work as a proper verbatim environment.
16255 + Fixed bug parsing LaTeX tables with one column.
16259 + Use `{}` around `ctable` caption, so that formatting can be used.
16260 + Don't require eurosym package unless document has a €.
16262 * LaTeX template: Added variables for `geometry`, `romanfont`,
16263 `sansfont`, `mathfont`, `mainfont` so users can more easily
16268 + Run latex engine at least two times, to ensure
16269 that PDFs will have hyperlinked bookmarks.
16270 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
16272 * Texinfo writer: retain directories in image paths. (Peter Wang)
16274 * RST writer: Better handling of inline formatting, in accord
16275 with docutils' "inline markup recognition rules" (though we don't
16276 implement the unicode rules fully). Now `hi*there*hi` gets
16277 rendered properly as `hi\ *there*\ hi`, and unnecessary
16278 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
16282 + Parse `\ ` as null, not escaped space.
16283 + Allow `` :math:`...` `` even when not followed by blank
16284 or `\`. This does not implement the complex rule docutils follows,
16285 but it should be good enough for most purposes.
16286 + Add support for the rST default-role directive. (Greg Maslov)
16288 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
16291 * Markdown reader: Properly handle citations nested in other inline
16294 * Markdown writer: don't replace empty alt in image with "image".
16296 * DZSlides: Updated template.html and styles in default template.
16297 Removed bizarre CSS for `q` in dzslides template.
16299 * Avoid repeated `id` attribute in section and header in HTML slides.
16301 * README improvements: new instructions on internal links,
16302 removed misleading note on reST math.
16306 + Fixed Windows installer so that dzslides works.
16307 + Removed stripansi.sh.
16308 + Added .travis.yml for Travis continuous integration support..
16309 + Fixed upper bound for zlib (Sergei Trofimovich).
16310 + Fixed upper bound for test-framework.
16311 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
16314## pandoc 1.9.1.2 (2012-03-09)
16316 * Added `beamer+lhs` as output format.
16318 * Don't escape `<` in `<style>` tags with `--self-contained`.
16319 This fixes a bug which prevented highlighting from working
16320 when using `--self-contained`.
16322 * PDF: run latex engine three times if `--toc` specified.
16323 This fixes page numbers in the table of contents.
16325 * Docx writer: Added TableNormal style to tables.
16327 * LaTeX math environment fixes. `aligned` is now used instead of
16328 the nonexistent `aligned*`. `multline` instead of the nonexistent
16331 * LaTeX writer: Use `\textasciitilde` for literal `~`.
16333 * HTML writer: Don't escape contents of EQ tags with --gladtex.
16334 This fixes a regression from 1.8.
16336 * Use `<q>` tags for Quoted items for HTML5 output.
16337 The quote style can be changed by modifying the template
16338 or including a css file. A default quote style is included.
16340 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
16341 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
16343 * Updated LaTeX template for better language support.
16344 Use `polyglossia` instead of `babel` with xetex.
16345 Set `lang` as documentclass option.
16346 `\setmainlanguage` will use the last of a comma-separated
16347 list of languages. Thanks to François Gannaz.
16349 * Fixed default LaTeX template so `\euro` and `€` work. The
16350 `eurosym` package is needed if you are using pdflatex.
16352 * Fixed escaping of period in man writer (thanks to Michael Thompson).
16354 * Fixed list label positions in beamer.
16356 * Set `mainlang` variable in context writer.
16357 This parallels behavior of latex writer. `mainlang` is the last
16358 of a comma-separated list of languages in lang.
16360 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
16362 * Changed `-V` so that you can specify a key without a value.
16363 Such keys get the value `true`.
16365 * Fixed permissions on installed man pages - thanks Magnus Therning.
16367 * Windows installer: require XP or higher. The installer is
16368 now compiled on a Windows 7 machine, which fixes a problem
16369 using citation functions on Windows 7.
16371 * OSX package: Check for 64-bit Intel CPU before installing.
16374## pandoc 1.9.1.1 (2012-02-11)
16376 * Better handling of raw latex environments in markdown. Now
16382 turns into a raw latex block as expected.
16384 * Improvements to LaTeX reader:
16386 + Skip options after block commands.
16387 + Correctly handle `{\\}` in braced.
16388 + Added a needed 'try'.
16389 + Citations: add `, ` to suffix if it doesn't start with space or
16390 punctuation. Otherwise we get no space between the year and the
16391 suffix in author-date styles.
16393 * Added two needed data files for S5. This fixes a problem with
16394 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
16395 which was no longer being used.
16397 * Fixed some minor problems in `reference.docx`:
16398 name on "Date" style, `xCs` instead of `xIs`.
16400 * Fixed a problem creating docx files using a reference docx
16401 modified using Word. The problem seems to be that Word
16402 modifies `_rels/.rels`, changing the Type of the Relationship to
16403 `docProps/core.xml`. Pandoc now changes this back to the correct
16404 value if it has been altered, fixing the problem.
16406 * Fixed html5 template so it works properly with highlighting.
16408## pandoc 1.9.1 (2012-02-09)
16412 + Fixed regression in 1.9; properly handle escaped $ in latex math.
16413 + Put LaTeX verse environments in blockquotes.
16417 + Limit nesting of strong/emph. This avoids exponential lookahead
16418 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
16419 + Improved attributes syntax (in code blocks/spans): (1)
16420 Attributes can contain line breaks. (2) Values in key-value
16421 attributes can be surrounded by either double or single quotes, or
16422 left unquoted if they contain no spaces.
16424 * Headers no longer wrap in markdown or RST writers.
16426 * Added `stateMaxNestingLevel` to `ParserState`.
16427 We set this to 6, so you can still have `Emph` inside `Emph`,
16428 just not indefinitely.
16430 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
16432 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
16435 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
16437## pandoc 1.9.0.5 (2012-02-06)
16439 * Changed cabal file so that build-depends for the test program
16440 are not required unless the tests flag is used.
16442 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
16443 form ligatures (dashes) in code spans.
16445## pandoc 1.9.0.4 (2012-02-06)
16447 * Raised version bound on test-framework to avoid problems
16448 compiling tests on GHC 7.4.1.
16450 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
16451 so citations don't just disappear unless you process with
16452 citeproc. Ignore `\bibliographystyle`, `\nocite`.
16454 * Simplified tex2pdf; it will always run latex twice to
16455 resolve table of contents and hyperrefs.
16457## pandoc 1.9.0.3 (2012-02-06)
16459 * Require Cabal >= 1.10.
16461 * Tweaked cabal file to meet Cabal 1.10 requirements.
16463## pandoc 1.9.0.2 (2012-02-05)
16465 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
16468## pandoc 1.9 (2012-02-05)
16472 * Added a Microsoft Word `docx` writer. The writer includes support
16473 for highlighted code and for math (which is converted from TeX to OMML,
16474 Office's native math markup language, using texmath's new OMML module).
16475 A new option `--reference-docx` allows the user to customize the
16478 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
16480 * Better support for slide shows:
16482 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
16483 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
16485 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
16486 slide presentations.
16488 + New, flexible rules for dividing documents into sections and slides
16489 (see the "Structuring the slide show" in the User's Guide). These
16490 are backward-compatible with the old rules, but they allow slide
16491 shows to be organized into sections and subsections containing
16494 + A new `--slide-level` option allows users to override defaults
16495 and select a slide level below the first header level with content.
16497 * A new `--self-contained` option produces HTML output that does not
16498 depend on an internet connection or the presence of any external
16499 files. Linked images, CSS, and javascript is downloaded (or fetched
16500 locally) and encoded in `data:` URIs. This is useful for making portable
16501 `HTML slide shows. The --offline` option has been deprecated and is now
16502 `treated as a synonym or --self-contained`.
16504 * Support for PDF output:
16506 + Removed the old `markdown2pdf`.
16507 + `pandoc` can now create PDFs (assuming you have latex and a set of
16508 appropriate packages installed): just specify an output file with the
16510 + A new option `--latex-engine` allows you to specify `pdflatex`,
16511 `xelatex`, or `lualatex` as the processor.
16513 * Highlighting changes:
16515 + Syntax highlighting is now a standard feature; the `highlighting`
16516 flag is no longer needed when compiling.
16517 + A new `--no-highlight` option allows highlighting to be disabled.
16518 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
16519 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
16520 + A new `--highlight-style` option selects between various highlighting
16523 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
16525 * LaTeX `\include` and `\usepackage` commands are now processed,
16526 provided the files are in the working directory.
16528 * EPUB improvements:
16530 + Internal and external links now work in EPUB.
16531 + Raw HTML is allowed.
16532 + New `--epub-embed-font` option.
16533 + Customizable templates for EPUB pages offer more control over
16534 formatting: `epub-page.html`, `epub-coverimage.html`,
16535 `epub-titlepage.html`.
16537 * `--mathml` now works with DocBook.
16539 * Added support for math in RST reader and writer. Inline math uses the
16540 `` :math:`...` `` construct. Display math uses
16544 or if the math is multiline,
16550 These constructions are now supported now by `rst2latex.py`.
16552 * Github syntax for fenced code blocks is supported in pandoc's
16553 markdown. You can now write
16565 * Easier scripting: a new `toJsonFilter` function makes it easier to
16566 write Haskell scripts to manipulate the Pandoc AST.
16567 See [Scripting with pandoc](scripting.html#pandoc-1.9-changes).
16569### Behavior changes
16571 * Fixed parsing of consecutive lists in markdown.
16572 Pandoc previously behaved like Markdown.pl for consecutive
16573 lists of different styles. Thus, the following would be parsed
16574 as a single ordered list, rather than an ordered list followed
16575 by an unordered list:
16583 This change makes pandoc behave more sensibly, parsing this as
16584 two lists. Any change in list type (ordered/unordered) or in
16585 list number style will trigger a new list. Thus, the following
16586 will also be parsed as two lists:
16594 Since we regard this as a bug in Markdown.pl, and not something
16595 anyone would ever rely on, we do not preserve the old behavior
16596 even when `--strict` is selected.
16598 * Dashes work differently with `--smart`: `---` is always em-dash,
16599 and `--` is always en-dash. Pandoc no longer tries to guess when
16600 `-` should be en-dash. *Note:* This may change how existing documents
16601 look when processed with pandoc. A new option, `--old-dashes`,
16602 is provided for legacy documents.
16604 * The markdown writer now uses setext headers for levels 1-2.
16605 The old behavior (ATX headers for all levels) can be restored
16606 using the new `--atx-headers` option.
16608 * Links are now allowed in markdown image captions. They are also
16609 allowed in links, but will appear there as regular text. So,
16611 [link with [link](/url)](/url)
16615 <p><a href="/url">link with link</a></p>
16617 * Improved handling of citations using `citeproc-hs-0.3.4`.
16618 Added `--citation-abbreviations` option.
16620 * Citation keys can no longer end with a punctuation character.
16621 This means that `@item1.` will be parsed as a citation with key
16622 'item1', followed by a period, instead of a citation with key
16623 'item1.', as was the case previously.
16625 * In HTML output, citations are now put in a span with class `citation`.
16627 * The markdown reader now recognizes DocBook block and inline tags.
16628 It was always possible to include raw DocBook tags in a markdown
16629 document, but now pandoc will be able to distinguish block from
16630 inline tags and behave accordingly. Thus, for example,
16636 will not be wrapped in `<para>` tags.
16638 * The LaTeX parser has been completely rewritten; it is now much more
16639 accurate, robust, and extensible. However, there are two important
16640 changes in how it treats unknown LaTeX. (1) Previously, unknown
16641 environments became BlockQuote elements; now, they are treated
16642 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
16643 same as `xyz`. (2) Previously, arguments of unknown commands
16644 were passed through with their braces; now the braces are stripped
16647 * `--smart` is no longer selected automatically with `man` output.
16649 * The deprecated `--xetex` option has been removed.
16651 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
16652 instead. `html5` and `html5+lhs` are now separate output formats.
16654 * Single quotes are no longer escaped in HTML output. They do not
16655 need to be escaped outside of attributes.
16657 * Pandoc will no longer transform leading newlines in code
16658 blocks to `<br/>` tags.
16660 * The ODT writer now sizes images appropriately, using the image
16661 size and DPI information embedded in the image.
16663 * `--standalone` is once again implicitly for a non-text output format
16664 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
16665 and get a standalone ODT file.
16667 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
16670 * The HTML writer now uses `<del>` for strikeout.
16672 * In HTML output with `--section-divs`, the classes `section` and
16673 `level[1,2,..6]` are put on the `div` tags so they can be styled.
16674 In HTML 5 output with `--section-divs`, the classes
16675 `level[1,2,...6]` are put on `section` tags.
16677 * EPUB writer changes:
16679 + The `lang` variable now sets the language
16680 in the metadata (if it is not set, we default to the locale).
16681 + EPUB: UTF-8 is used rather than decimal entities.
16683 * Added `titleslide` class to title slide in S5 template.
16685 * In HTML, EPUB, and docx metadata, the date is normalized into
16686 YYYY-MM-DD format if possible. (This is required for validation.)
16688 * Attributes in highlighted code blocks are now preserved in HTML.
16689 The container element will have the classes, id, and key-value attributes
16690 you specified in the delimited code block. Previously these were stripped
16693 * The reference backlink in the HTML writer no longer has a special
16694 `footnoteBacklink` class.
16696 * The HTML template has been split into `html` and `html5` templates.
16698 * Author and date are treated more consistently in HTML templates.
16699 Authors are now `<h2>`, date `<h3>`.
16701 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
16703 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
16707 * Better support for combining characters and East Asian wide characters
16708 in markdown and reST.
16710 * Better handling of single quotes with `--smart`.
16711 Previously `D'oh l'*aide*` would be parsed with left and right single
16712 quotes instead of apostrophes. This kind of error is now fixed.
16714 * Highlighting: Use `reads` instead of `read` for better error handling.
16715 Fixes crash on `startNum="abc"`.
16717 * Added blank comment after directives in rst template.
16719 * Unescape entities in citation `refId`. The `refId`s coming
16720 from citeproc contain XML numeric entities, and these don't match with the
16721 citation keys parsed by pandoc. Solution is to unescape them.
16723 * HTML reader: Fixed bug parsing tables with both thead and tbody.
16727 + Better handling of escapes in link URLs and titles.
16728 + Fixed backslash escapes in reference links.
16729 + Fixed bug in table/hrule parsing, by checking that the top
16730 line of a table is not followed by a blank line. This bug caused
16731 slowdowns on some files with hrules and tables, as pandoc tried to
16732 interpret the hrules as the tops of multiline tables.
16733 + Fixed bug in code block attribute parser. Previously the ID attribute
16734 got lost if it didn't come first. Now attributes can come in any order.
16736 * RST reader: allow footnotes followed by newline without space characters.
16740 + Ignore empty groups {}, { }.
16741 + LaTeX reader: Handle `\@`.
16742 + LaTeX reader: Don't crash on commands like `\itemsep`.
16743 + LaTeX reader: Better handling of letter environments.
16745 * RST writer: Fixed bug involving empty table cells. isSimple was being
16746 calculated in a way that assumed there were no non-empty cells.
16750 + Made `--toc` work even without `--number-sections`.
16751 + Escape # in link URLs.
16752 + Use buffering for footnotes containing code blocks.
16753 + Changed 'descr' to 'description', fixed alignment.
16757 + Escape euro character.
16758 + Don't escape `~` inside `\href{...}`.
16759 + Escape `#` in href URLs.
16760 + Improved detection of book classes. We now check the
16761 `documentclass` variable, and if that is not set, we look through
16762 the template itself. Also, we have added the KOMA classes scrreprt
16763 and scrbook. You can now make a book using
16764 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
16765 + LHS files now set the "listings" variable, so that the definition
16766 of the `code` environment will be included in the template.
16767 + Links are colored blue by default (this can be changed by
16768 modifying `hyperref` settings in the template).
16769 + Added `lang` variable to LaTeX template.
16773 + Fixed bug in HTML template with html5 and mathml.
16774 + Don't use self-closing img, br, hr tags for HTML5.
16775 + Use `<section>` for footnotes if HTML5.
16776 + Update HTML templates to use Content-Style-Type meta tag.
16777 + Use separate variables for meta-date, meta-author.
16778 This makes footnotes work in author and date fields.
16779 + Use 'vertical-align:middle' in WebTeX math for better alignment.
16781 * S5/slidy writer: Make footnotes appear on separate slide at end.
16783 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
16784 META-INF/manifest.xml for ODT files will have everything it needs, so
16785 that ODT files modified by LibreOffice can be used as `--reference-odt`.
16787 * `Text.Pandoc.Templates`: Return empty string for json template.
16789 * `Text.Pandoc.Biblio`:
16791 + Expand citations recursively inside nested inlines.
16792 + Treat `\160` as space when parsing locator and suffix.
16793 This fixes a bug with "p. 33" when `--smart` is used. Previously
16794 the whole "p. 33" would be included in the suffix, with no locator.
16795 + Put whole author-in-text citation in a Cite. Previously just the
16796 date and other info went in the Cite.
16797 + Don't add comma+space to prefix if it ends in punctuation.
16799 * Updated chicago-author-date.csl. The old version did not work
16800 properly for edited volumes with no author.
16804 + Add date to EPUB titlepage and metadata.
16805 + Added TOC identifier in EPUB page template.
16806 + Don't generate superfluous file `cover-image.jpg`.
16808### Under the hood improvements
16810 * Modified `make_osx_package.sh` to use cabal-dev.
16811 Items are no longer installed as root.
16812 Man pages are zipped and given proper permissions.
16814 * Modified windows installer generator to use cabal-dev.
16816 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
16817 Setup.hs we now invoke 'runghc' in a way that points it to the correct
16818 package databases, instead of always falling back to the default user
16821 * Updated to work with GHC 7.4.1.
16823 * Removed dependency on old-time.
16825 * Removed dependency on dlist.
16827 * New slidy directory for "self-contained."
16829 * TeXMath writer: Use unicode thin spaces for thin spaces.
16831 * Markdown citations: don't strip off initial space in locator.
16835 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
16836 from the native `Inline` type in pandoc-types. Now we use `Str`
16837 elements with unicode.
16839 * Improvements to `Text.Pandoc.Builder`:
16841 + `Inlines` and `Blocks` are now newtypes (not synonyms for
16843 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
16844 and a new `Listable` class, which allows these to be manipulated
16845 to some extent like lists. Monoid append includes automatic
16847 + `+++` has been replaced by `<>` (mappend).
16849 * Use blaze-html instead of xhtml for HTML generation.
16850 This changes the type of `writeHtml`.
16852 * `Text.Pandoc.Shared`:
16854 + Added `warn` and `err`.
16855 + Removed `unescapeURI`, modified `escapeURI`.
16856 (See under [behavior changes], above.)
16858 * Changes in URI escaping: Previously the readers escaped URIs by
16859 converting unicode characters to octets and then percent encoding.
16860 Now unicode characters are left as they are, and `escapeURI` only
16861 percent-encodes space characters. This gives more readable
16862 URIs, and works well with modern user agents. URIs are no longer unescaped
16863 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
16865 * New module `Text.Pandoc.SelfContained`.
16867 * New module `Text.Pandoc.Docx`.
16869 * New module `Text.Pandoc.PDF`.
16871 * Added `writerBeamer` to `WriterOptions`.
16873 * Added `normalizeDate` to `Text.Pandoc.Shared`.
16875 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
16876 This is like `splitWithIndices`, but it is sensitive to distinctions
16877 between wide, combining, and regular characters.
16879 * `Text.Pandoc.Pretty`:
16881 + Added `chomp` combinator.
16882 + Added `beforeNonBreak` combinator. This allows you to include
16883 something conditionally on it being before a nonblank.
16884 Used for RST inline math.
16885 + Added `charWidth` function. All characters marked W or F in the unicode
16886 spec EastAsianWidth.txt get width 2.
16887 + Added `realLength`, based on `charWidth`. `realLength` is now
16888 used in calculating offsets.
16890 * New module `Text.Pandoc.Slides`, for common functions for breaking
16891 a document into slides.
16893 * Removed `Text.Pandoc.S5`, which is no longer needed.
16895 * Removed `Text.Pandoc.CharacterReferences`. Moved
16896 `characterReference` to `Text.Pandoc.Parsing`.
16897 `decodeCharacterReferences` is replaced by `fromEntities`
16898 in `Text.Pandoc.XML`.
16900 * Added `Text.Pandoc.ImageSize`. This is intened for use
16901 in `docx` and `odt` writers, so the size and dpi of images
16904 * Removed `writerAscii` in `WriterOptions`.
16906 * Added `writerHighlight` to `WriterOptions`.
16908 * Added `DZSlides` to `HTMLSlideVariant`.
16910 * `writeEPUB` has a new argument for font files to embed.
16912 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
16913 of whether we're parsing the position immediately after a regular
16914 (non-space, non-symbol) string, which is useful for distinguishing
16915 apostrophes from single quote starts.
16917 * `Text.Pandoc.Parsing`:
16919 + `escaped` now returns a `Char`.
16920 + Removed `charsInBalanced'`, added a character parser as
16921 a parameter of `charsInBalanced`. This is needed for
16922 proper handling of escapes, etc.
16925 * Added `toEntities` to `Text.Pandoc.XML`.
16927 * `Text.Pandoc.Readers.LaTeX`:
16929 + Export `handleIncludes`.
16930 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
16932 * Added `ToJsonFilter` class and `toJsonFilter` function to
16933 `Text.Pandoc`, deprecating the old `jsonFilter` function.
16935 * `Text.Pandoc.Highlighting`:
16937 + Removed `highlightHtml`, `defaultHighlightingCss`.
16938 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
16939 key functions from highlighting-kate.
16940 + Changed types of highlighting function. `highlight` returns a
16941 `Maybe`, not an `Either`.
16944## pandoc 1.8.2.1 (2011-08-01)
16946 * Adjusted Arbitrary instance to help avoid timeouts in tests.
16948 * Added `Tests.Writers.Markdown` to cabal file.
16950 * Relaxed version bounds on pandoc-types, test-framework.
16952## pandoc 1.8.2 (2011-07-30)
16954 * Added script to produce OS X package.
16956 * Made `templates` directory a git submodule. This should make it
16957 easier for people to revise their custom templates when the default
16960 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
16961 **Note:** If you have existing templates in `~/.pandoc/templates`, you
16962 must rename them to conform to the new scheme!
16964 * Default template improvements:
16966 + HTML: Display author and date after title.
16967 + HTML: Made table of contents more customizable. The container
16968 for the TOC is now in the template, so users can insert a header
16969 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
16970 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
16971 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
16972 hard-coding. If you want to put your slidy files in the slidy
16973 subdirectory, for example, you can do
16974 `pandoc -t slidy -V slidy-url=slidy -s`.
16975 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
16976 & writer). Closes #279.
16977 + LaTeX: Set `\emergencystretch` to prevent overfull lines.
16978 + LaTeX: Use different `hyperref` options for `xetex`, fixing
16979 problems with unicode bookmarks (thanks to CircleCode).
16980 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
16981 with `inputenc`. This covers fewer characters but is more
16982 robust with other packages, and `ucs` is unmaintained. Users
16983 who need better unicode support should use xelatex or lualatex.
16985 * If a template specified with `--template` is not found, look for it
16986 in `datadir`. Also, if no extension is provided, supply one based
16987 on the writer. So now you can put your `special.latex` template in
16988 `~/.pandoc/templates`, and use it from any directory via
16989 `pandoc -t latex --template special`.
16991 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
16993 * Fixed smart quotes bug, now handling `'...hi'` properly.
16997 + Partial support for labeled footnotes.
16998 + Improved accuracy of `simpleReferenceName` parser.
17002 + Substitute correct unicode characters for
17003 characters in the 128..159 range, which are often found even in
17004 HTML that purports to be UTF-8.
17006 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
17007 to the title, after a colon and linebreak). Closes #280.
17009 * Leaner `reference.odt`.
17011 * Added unexported module `Text.Pandoc.MIME` for use in
17014 * ODT writer: Construct `manifest.xml` based on archive contents.
17015 This fixes a bug in ODTs containing images. Recent versions of
17016 LibreOffice would reject these as corrupt, because `manifest.xml`
17017 did not contain a reference to the image files.
17021 + Make verbatim environments flush to avoid spurious
17022 blank lines. Closes #277.
17023 + Use `\texttt` and escapes insntead of `\verb!...!`, which
17024 is too fragile (doesn't work in command arguments).
17025 + Use `\enquote{}` for quotes if the template includes
17026 the `csquotes` package. This provides better support for
17027 local quoting styles. (Thanks to Andreas Wagner for the idea.)
17029 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
17030 margin, preventing spurious blank lines.
17034 + Use non-minimized version of `slidy.css` with `--offline`
17035 option, so users can more easily edit it.
17036 + Also fixed a bug in the CSS that prevented proper centering
17037 of title (now reported and fixed upstream).
17041 + Replaced `s5/default/slides.js.{comment,packed}` with
17042 new compressed `s5/default/slides.min.js`.
17043 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
17044 when `--offline` is specified. Using inline CSS didn't
17045 work with Chrome or Safari. This fixes offline
17046 S5 on those browsers.
17048 * HTML writer: Removed English title on footnote backlinks.
17049 This is incongrous in non-English documents.
17053 + Use CALS tables. (Some older docbook software does not work
17054 well with XHTML tables.) Closes #77.
17055 + Use `programlisting` tags (instead of `screen`) for code blocks.
17059 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
17060 of `-interaction=batchmode`, which essentially just ignored errors,
17061 leading to bad results. Better to know when something is wrong.
17062 + Fixed issues with non-UTF-8 output of `pdflatex`.
17063 + Better error reporting.
17065 * `--mathjax` now takes an optional URL argument. If it is not
17066 provided, pandoc links directly to the (secure) mathjax CDN,
17067 as now recommended (thanks to dsanson).
17069 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
17070 since the LaTeX writer now produces a file that can be processed by
17071 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
17073 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
17074 to be used to create the PDF.
17077## pandoc 1.8.1.2 (2011-07-16)
17079 * Added `--epub-cover-image` option.
17081 * Documented `--biblatex` and `--natbib` options.
17083 * Allow `--section-divs` with slidy output. Resolves Issue #296.
17085 * Disallow notes within notes in reST and markdown.
17086 These previously caused infinite looping and stack overflows.
17093 Note references are allowed in reST notes, so this isn't a full
17094 implementation of reST. That can come later. For now we need to
17095 prevent the stack overflows. Partially resolves Issue #297.
17097 * EPUB writer: Allow non-plain math methods.
17099 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
17100 `(@item1; @item2)` because the final paren was being parsed as part of
17103 * Changed URI parser so it doesn't include trailing punctuation.
17104 So, in RST, `http://google.com.` should be parsed as a link followed by a
17105 period. The parser is smart enough to recognize balanced parentheses, as
17106 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
17108 * Markdown+lhs reader: Require space after inverse bird tracks, so that
17109 HTML tags can be used freely at the left margin of a markdown+lhs document.
17110 Thanks to Conal Elliot for the suggestion.
17112 * Markdown reader: Fixed bug in footnote order (reported by CircleCode).
17115 + Fixed bug in in field lists with multi-line items at the
17117 + Added parentheses to RST `specialChars`, so
17118 `(http://google.com)` will be parsed as a link in parens.
17119 Resolves Issue #291.
17120 + Allow `|` followed by newline in RST line block.
17124 + Gobble option & space after linebreak `\\[10pt]`.
17127 + Make it possible to have colons after links. (qerub)
17128 + Make it possible to have colons after links. (Christoffer Sawicki)
17131 + Skip spaces after `<b>`, `<emph>`, etc.
17132 + Handle tbody, thead in simple tables. Closes #274.
17133 + Implicit `Para`s instead of `Plains` in some contexts.
17135 * OpenDocument writer: Use special `First paragraph` style for
17136 first paragraph after most non-paragraph blocks. This allows users to
17137 specify e.g. that only paragraphs after the first paragraph of a block are
17138 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
17140 * LaTeX writer: use `deVerb` on table and picture captions.
17141 Otherwise LaTeX complains about `\verb` inside command argument.
17142 Thanks to bbanier for reporting the bug.
17144 * Markdown writer: Insert HTML comment btw list and indented code block.
17145 This prevents the code block from being interpreted as part of the list.
17147 * EPUB writer: Add a meta element specify the cover.
17148 Some EPUB e-readers, such as the Nook, require a meta element inside the
17149 OPF metadata block to ensure the cover image is properly displayed.
17152 * HTML writer: Use embed tag for images with non-image extensions.
17153 (e.g. PDFs). Closes #264.
17155 * LaTeX writer: Improved tables.
17157 + More space between lines, top-align cells.
17158 + Use ctable package, which allows footnotes and
17159 provides additional options.
17160 + Made cell alignments work in multiline tables.
17161 + Closes #271, #272.
17163 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
17164 Also do this when copying image files into EPUBs and ODTs.
17167 * Changed to github issue tracker.
17169 * Added failing emph/strong markdown test case due to Perry Wagle.
17171 * Slidy improvements:
17172 + Updated to use Slidy2.
17173 + Fixed bug, unclosed div tag.
17174 + Added `duration` variable in template.
17175 Setting this activates the timer.
17176 + Use 'titlepage' instead of 'cover' for title div.
17179## pandoc 1.8.1.1 (2011-02-13)
17181 * `markdown2pdf`: Removed some debugging lines accidentally included
17182 in the 1.8.1 release. With those lines, the temp directory is created
17183 in the working directory, and it is not deleted. This fix restores
17184 the original behavior.
17186## pandoc 1.8.1 (2011-02-13)
17188 * Added `--ascii` option. Currently supported only in HTML writer,
17189 which it causes to use numerical entities instead of UTF-8.
17191 * EPUB writer: `--toc` now works to provide a table of contents
17192 at the beginning of each chapter.
17194 * LaTeX writer: Change figure defaults to `htbp`.
17195 This prevents "too many unprocessed floats." Resolves
17198 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
17201 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
17202 Tanimoto. Resolves Issue #286.
17204 * HTML writer: Put line breaks in section divs.
17206 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
17208## pandoc 1.8.0.3 (2011-02-05)
17210 * Fixed Source-repository stanza in cabal file.
17212## pandoc 1.8.0.2 (2011-02-05)
17216 + Stringify alt text instead of converting to HTML.
17217 + Break lines after block elements, not inside tags.
17218 HTML output now closely resembles that of tidy. Resolves Issue #134.
17220 * Markdown reader: Fixed bug in footnote block parser (pointed out
17221 by Jesse Rosenthal). The problem arose when the blank line
17222 at the end of a footnote block contained indenting spaces.
17224 * Shared: Improved 'normalize' function so it normalizes Spaces too.
17225 In normal form, Space elements only occur to separate two non-Space
17226 elements. So, we never have [Space], or [, ..., Space].
17230 + Improved Arbitrary instance.
17231 + Added timeout for test instances.
17235 + Added section on four-space rule for lists. Resolves Issue #283.
17236 + Clarified optional arguments on math options.
17238 * markdown2pdf: Fixed bug with output file extensions.
17239 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
17240 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
17242## pandoc 1.8.0.1 (2011-01-31)
17244 * Revised Interact.hs so that it works with the CPP macros
17245 in the UTF8 module.
17247 * Revised Setup.hs so that we don't call MakeManPage.hs unless
17248 the man pages are out of date.
17250## pandoc 1.8 (2011-01-30)
17254 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
17255 You can now write, for example,
17257 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
17259 and, when you process your document using `pandoc`, specifying
17260 a citation style using `--csl` and a bibliography using `--bibliography`,
17261 the citation will be replaced by an appropriately formatted
17262 citation, and a list of works cited will be added to the end
17265 This means that you can switch effortlessly between different citation
17266 and bibliography styles, including footnote, numerical, and author-date
17267 formats. The bibliography can be in any of the following formats: MODS,
17268 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
17269 See the README for further details.
17271 Citations are supported in the markdown reader, using a special
17272 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
17273 (Thanks to Nathan Gass for the natbib and biblatex support.)
17275 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
17276 the `textile` reader, an almost complete implementation of the textile
17277 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
17278 Resolves Issue #51.
17280 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
17282 * New `json` reader and writer, for reading and writing a JSON
17283 representation of the native Pandoc AST. These are much faster
17284 than the `native` reader and writer, and should be used for
17285 serializing Pandoc to text. To convert between the JSON representation
17286 and native Pandoc, use `encodeJSON` and `decodeJSON` from
17287 `Text.JSON.Generic`.
17289 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
17290 to write scripts that transform a JSON-encoded pandoc document.
17293 -- removelinks.hs - removes links from document
17295 main = interact $ jsonFilter $ bottomUp removeLink
17296 where removeLink (Link xs _) = Emph xs
17299 To use this to remove links while translating markdown to LaTeX:
17301 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
17303 * Attributes are now allowed in inline `Code` elements, for example:
17305 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
17307 The attribute syntax is the same as for delimited code blocks.
17308 `Code` inline has an extra argument place for attributes, just like
17309 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
17310 is compiled with highlighting support. Resolves Issue #119.
17312 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
17313 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
17314 scripts to transform Pandoc documents. Scripts can now change
17315 how each element is rendered in each output format.
17317 * You can now define LaTeX macros in markdown documents, and pandoc
17318 will apply them to TeX math. For example,
17320 \newcommand{\plus}[2]{#1 + #2}
17323 yields `3+4`. Since the macros are applied in the reader, they
17324 will work in every output format, not just LaTeX.
17326 * LaTeX macros can also be used in LaTeX documents (both in math
17327 and in non-math contexts).
17329 * A new `--mathjax` option has been added for displaying
17330 math in HTML using MathJax. Resolves issue #259.
17332 * Footnotes are now supported in the RST reader. (Note, however,
17333 that unlike docutils, pandoc ignores the numeral or symbol used in
17334 the note; footnotes are put in an auto-numbered ordered list.)
17335 Resolves Issue #258.
17337 * A new `--normalize` option causes pandoc to normalize the AST
17338 before writing the document. This means that, for example,
17339 `*hi**there*` will be rendered as `<em>hithere</em>`
17340 instead of `<em>hi</em><em>there</em>`. This is not the default,
17341 because there is a significant performance penalty.
17343 * A new `--chapters` command-line option causes headers
17344 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
17345 Resolves Issue #265.
17347 * In DocBook output, `<chapter>` is now used for top-level
17348 headers if the template contains `<book>`. Resolves Issue #265.
17350 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
17351 the LaTeX writer to use the listings package for code blocks.
17352 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
17353 Millon for the markdown2pdf patch.)
17355 * `markdown2pdf` now supports `--data-dir`.
17357 * URLs in autolinks now have class "url" so they can be styled.
17359 * Improved prettyprinting in most formats. Lines will be wrapped
17360 more evenly and duplicate blank lines avoided.
17362 * New `--columns` command-line option sets the column width for
17363 line wrapping and relative width calculations for tables.
17365 * Made `--smart` work in HTML, RST, and Textile readers, as well
17368 * Added `--html5` option for HTML5 output.
17370 * Added support for listings package in LaTeX reader
17371 (Puneeth Chaganti).
17373 * Added support for simple tables in the LaTeX reader.
17375 * Added support for simple tables in the HTML reader.
17377 * Significant performance improvements in many readers and writers.
17379### API and program changes
17381 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
17382 auxiliary package, `pandoc-types`. This will make it possible for other
17383 programs to supply output in Pandoc format, without depending on the whole
17386 * Added `Attr` field to `Code`.
17388 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
17389 `RawBlock` and `RawInline`.
17391 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
17392 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
17393 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
17395 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
17397 * `Text.Pandoc` now exports association lists `readers` and `writers`.
17399 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
17400 `readNative` can now read full pandoc documents, block lists, blocks,
17401 inline lists, or inlines. It will interpret `Str "hi"`
17402 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
17403 This should make testing easier.
17405 * Removed deprecated `-C/--custom-header` option.
17406 Use `--template` instead.
17408 * `--biblio-file` has been replaced by `--bibliography`.
17409 `--biblio-format` has been removed; pandoc now guesses the format
17410 from the file extension (see README).
17412 * pandoc will treat an argument as a URI only if it has an
17413 `http(s)` scheme. Previously pandoc would treat some
17414 Windows pathnames beginning with `C:/` as URIs.
17416 * The `--sanitize-html` option and the `stateSanitize` field in
17417 `ParserState` have been removed. Sanitization is better done in the
17418 resulting HTML using `xss-sanitize`, which is based on pandoc's
17419 sanitization, but improved.
17421 * pandoc now adds a newline to the end of its output in fragment
17422 mode (= not `--standalone`).
17424 * Added support for `lang` in `html` tag in the HTML template,
17425 so you can do `pandoc -s -V lang=es`, for example.
17427 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
17428 a boolean argument that selects between "inline" and
17431 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
17432 Images are embedded in RTF output when possible (png, jpeg).
17433 Resolves Issue #275.
17435 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
17436 `pretty` package. Changed all writers that used
17437 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
17439 * Rewrote `writeNative` using the new prettyprinting module. It is
17440 now much faster. The output has been made more consistent and compressed.
17441 `writeNative` is also now sensitive to writerStandalone`, and will simply
17442 `print a block list if writerStandalone` is False.
17444 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
17445 blocks and concatenate them, so a separate module is no longer needed.
17447 * `Text.Pandoc.Shared`:
17449 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
17451 + Added `normalize`.
17452 + Removed unneeded prettyprinting functions:
17453 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
17454 `BlockWrapper`, `wrappedBlocksToDoc`.
17455 + Made `splitBy` take a test instead of an element.
17456 + Added `findDataFile`, refactored `readDataFile`.
17457 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
17458 + Fixed `inlineListToIdentifier` to treat `\160` as ' '.
17460 * `Text.Pandoc.Readers.HTML`:
17462 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
17463 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
17464 `htmlBlockElement`, `htmlComment`
17465 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
17468 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
17469 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
17472 * Ellipses are no longer allowed to contain spaces.
17473 Previously we allowed '. . .', ' . . . ', etc. This caused
17474 too many complications, and removed author's flexibility in
17475 combining ellipses with spaces and periods.
17477 * Allow linebreaks in URLs (treat as spaces). Also, a string of
17478 consecutive spaces or tabs is now parsed as a single space. If you have
17479 multiple spaces in your URL, use `%20%20`.
17481 * `Text.Pandoc.Parsing`:
17483 + Removed `refsMatch`.
17484 + Hid `Key` constructor.
17485 + Removed custom `Ord` and `Eq` instances for `Key`.
17486 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
17487 + Generalized type on `readWith`.
17489 * Small change in calculation of relative widths of table columns.
17490 If the size of the header > the specified column width, use
17491 the header size as 100% for purposes of calculating
17492 relative widths of columns.
17494 * Markdown writer now uses some pandoc-specific features when `--strict`
17495 is not specified: `\` newline is used for a hard linebreak instead of
17496 two spaces then a newline. And delimited code blocks are used when
17497 there are attributes.
17499 * HTML writer: improved gladTeX output by setting ENV appropriately
17500 for display or inline math (Jonathan Daugherty).
17502 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
17506 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
17507 + `\index{}` commands are skipped.
17509 * Added `fontsize` variable to default LaTeX template.
17510 This makes it easy to set the font size using `markdown2pdf`:
17511 `markdown2pdf -V fontsize=12pt input.txt`.
17513 * Fixed problem with strikeout in LaTeX headers when using
17514 hyperref, by adding a command to the default LaTeX template
17515 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
17518 * The `COLUMNS` environment variable no longer has any effect.
17520### Under-the-hood improvements
17522 * Pandoc now compiles with GHC 7. (This alone leads to a
17523 significant performance improvement, 15-20%.)
17525 * Completely rewrote HTML reader using tagsoup as a lexer. The
17526 new reader is faster and more accurate. Unlike the
17527 old reader, it does not get bogged down on some input
17528 (Issues #277, 255). And it handles namespaces in tags
17531 * Replaced `escapeStringAsXML` with a faster version.
17533 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
17534 for a significant performance boost.
17536 * Improved performance of all readers by rewriting parsers.
17538 * Simplified Text.Pandoc.CharacterReferences by using
17539 entity lookup functions from TagSoup.
17541 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
17542 from `System.IO` if base >= 4.2. This gives support for
17543 windows line endings on windows.
17545 * Remove duplications in documentation by generating the
17546 pandoc man page from README, using `MakeManPage.hs`.
17548 * README now includes a full description of markdown syntax,
17549 including non-pandoc-specific parts. A new `pandoc_markdown`
17550 man page is extracted from this, so you can look up markdown
17551 syntax by doing `man pandoc_markdown`.
17553 * Completely revised test framework (with help from Nathan Gass).
17554 The new test framework is built when the `tests` Cabal flag is set. It
17555 includes the old integration tests, but also some new unit and quickcheck
17556 tests. Test output has been much improved, and you can now specify a glob
17557 pattern after `cabal test` to indicate which tests should be run;
17558 for example `cabal test citations` will run all the citation tests.
17560 * Added a shell script, `stripansi.sh`, for filtering ANSI control
17561 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
17563 * Added `Interact.hs` to make it easier to use ghci while developing.
17564 `Interact.hs` loads `ghci` from the `src` directory, specifying
17565 all the options needed to load pandoc modules (including
17566 specific package dependencies, which it gets by parsing
17567 dist/setup-config).
17569 * Added `Benchmark.hs`, testing all readers + writers using criterion.
17571 * Added `stats.sh`, to make it easier to collect and archive
17572 benchmark and lines-of-code stats.
17574 * Added upper bounds to all cabal dependencies.
17576 * Include man pages in extra-source-files. This allows users to
17577 install pandoc from the tarball without needing to build the man
17582 * Filenames are encoded as UTF8. Resolves Issue #252.
17584 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
17585 were just parsed literally, leading to problems in some output formats.
17586 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
17587 Resolves Issue #270.
17589 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
17590 Spaces at end of line were not being stripped properly,
17591 resulting in unintended LineBreaks.
17595 + Allow HTML comments as inline elements in markdown.
17596 So, `aaa <!-- comment --> bbb` can be a single paragraph.
17597 + Fixed superscripts with links: `^[link](/foo)^` gets
17598 recognized as a superscripted link, not an inline note followed by
17600 + Fixed regression, making markdown reference keys case-insensitive again.
17601 Resolves Issue #272.
17602 + Properly handle abbreviations (like `Mr.`) at the end of a line.
17603 + Better handling of intraword underscores, avoiding exponential
17604 slowdowns in some cases. Resolves Issue #182.
17605 + Fixed bug in alignments in tables with blank rows in the header.
17609 + Field lists now allow spaces in field names, and
17610 block content in field values. (Thanks to Lachlan Musicman
17611 for pointing out the bug.)
17612 + Definition list items are now always `Para` instead of
17613 `Plain`, matching behavior of `rst2xml.py`.
17614 + In image blocks, the description is parsed properly and
17615 used for the alt attribute, not also the title.
17616 + Skip blank lines at beginning of file. Resolves
17621 + Improved parsing of preamble.
17622 Previously you'd get unexpected behavior on a document that
17623 contained `\begin{document}` in, say, a verbatim block.
17624 + Allow spaces between `\begin` or `\end` and `{`.
17625 + Support `\L` and `\l`.
17626 + Skip comments inside paragraphs.
17630 + Escape strings in `\href{..}`.
17631 + In nonsimple tables, put cells in `\parbox`.
17633 * OpenDocument writer: don't print raw TeX.
17637 + Fixed bug in `Image`. URI was getting unescaped twice!
17638 + Avoid printing extra blank lines at the end if there are
17639 no notes or references.
17641 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
17642 This avoids unwanted interpretation as an optional argument.
17644 * ConTeXt writer: Fixed problem with inline code. Previously
17645 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
17646 If it contains neither, use `\type{}`; otherwise use `\mono{}`
17647 with an escaped version of the string.
17649 * `:` now allowed in HTML tags. Resolves Issue #274.
17653## pandoc 1.6 (2010-07-24)
17655+ New EPUB and HTML Slidy writers. (Issue #122)
17657 - [EPUB] is a standard ebook format, used in Apple's iBooks for
17658 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
17659 reader, and many other devices, and by online ebook readers like
17660 [bookworm]. (Amazon's Kindle uses a different format, MobiPocket,
17661 but EPUB books can easily be converted to Kindle format.) Now you
17662 can write your book in markdown and produce an ebook with a single
17663 command! I've put up a short [tutorial here].
17664 - [Slidy], like S5, is a system for producing HTML+javascript slide shows.
17666+ All input is assumed to be UTF-8, no matter what the locale and ghc
17667 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
17668 Also, a BOM, if present, is stripped from the input.
17670+ Markdown now supports grid tables, whose cells can contain
17671 arbitrary block elements. (Issue #43)
17673+ Sequentially numbered example lists in markdown with `@` marker.
17675+ Markdown table captions can begin with a bare colon and no longer need
17676 to include the English word "table." Also, a caption can now occur
17677 either before or after the table. (Issue #227)
17679+ New command-line options:
17681 - `--epub-stylesheet` allows you to specify a CSS file that will
17682 be used to style your ebook.
17683 - `--epub-metadata` allows you to specify metadata for the ebook.
17684 - `--offline` causes the generated HTML slideshow to include all
17685 needed scripts and stylesheets.
17686 - `--webtex` causes TeX math to be converted to images using the
17687 Google Charts API (unless a different URL is specified).
17688 - `--section-divs` causes div tags to be added around each section
17689 in an HTML document. (Issue #230, 239)
17691+ Default behavior of S5 writer in standalone mode has changed:
17692 previously, it would include all needed scripts and stylesheets
17693 in the generated HTML; now, only links are included unless
17694 the `--offline` option is used.
17696+ Default behavior of HTML writer has changed. Between 1.2 and 1.5,
17697 pandoc would enclose sections in div tags with identifiers on the
17698 div tags, so that the sections can be manipulated in javascript.
17699 This caused undesirable interactions with raw HTML div tags. So,
17700 starting with 1.6, the default is to put the identifiers directly
17701 on the header tags, and not to include the divs. The `--section-divs`
17702 option selects the 1.2-1.5 behavior.
17706 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
17707 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
17708 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
17709 `writerIncludeAfter`.
17710 - Added `headerShift` to `Text.Pandoc.Shared`.
17711 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
17712 to a new module, `Text.Pandoc.Parsing`.
17713 - Added `stateHasChapters` to `ParserState`.
17714 - Added `HTMLSlideVariant`.
17715 - Made `KeyTable` a map instead of an association list.
17716 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`, `docDate`).
17717 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord` instances.
17718 - Reference keys now have a type of their own (`Key`), with its
17719 own `Ord` instance for case-insensitive comparison.
17720 - Added `Text.Pandoc.Writers.EPUB`.
17721 - Added `Text.Pandoc.UUID`.
17722 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
17723 Removed `saveOpenDocumentAsODT`, added `writeODT`.
17724 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
17725 Removed `prettyPandoc`.
17726 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
17727 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
17728 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
17729 To write S5, you now use `writeHtml` with `writerSlideVariant`
17730 set to `S5Slides` or `SlidySlides`.
17732+ Template changes. If you use custom templates, please update them,
17733 particularly if you use syntax highlighting with pandoc. The old HTML
17734 templates hardcoded highlighting CSS that will no longer work with
17735 the most recent version of highlighting-kate.
17737 - HTML template: avoid empty meta tag if no date.
17738 - HTML template: Use default highlighting CSS from highlighting-kate
17739 instead of hard-coding the CSS into the template.
17740 - HTML template: insert-before text goes before the title, and
17741 immediately after the `<body>` tag, as documented. (Issue #241)
17742 - Added slidy and s5 templates.
17743 - Added amssymb to preamble of latex template. (github Issue 1)
17745+ Removed excess newlines at the end of output. Note: because output
17746 will not contain an extra newline, you may need to make adjustments
17747 if you are inserting pandoc's output into a template.
17749+ In S5 and slidy, horizontal rules now cause a new slide, so you
17750 are no longer limited to one slide per section.
17752+ Improved handling of code in man writer. Inline code is now monospace,
17753 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
17755+ HTML reader parses `<tt>` as Code. (Issue #247)
17757+ html+lhs output now contains bird tracks, even when compiled without
17758 highlighting support. (Issue #242)
17760+ Colons are now no longer allowed in autogenerated XML/HTML identifiers,
17761 since they have a special meaning in XML.
17763+ Code improvements in ODT writer. Remote images are now replaced with
17764 their alt text rather than a broken link.
17766+ LaTeX reader improvements:
17768 - Made latex `\section`, `\chapter` parsers more forgiving of whitespace.
17769 - Parse `\chapter{}` in latex.
17770 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
17771 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
17772 for use in markdown reader.
17773 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
17774 in markdown document.
17776+ LaTeX writer: images are automatically shrunk if they would extend
17777 beyond the page margin.
17779+ Plain, markdown, RST writers now use unicode for smart punctuation.
17781+ Man writer converts math to unicode when possible, as in other writers.
17783+ `markdown2pdf` can now recognize citeproc options.
17785+ Command-line arguments are converted to UTF-8. (Issue #234)
17787+ `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
17788 This allows it to handle a wider range of formulas. Also, if a formula
17789 cannot be converted, it is left in raw TeX; formulas are no longer
17790 partially converted.
17792+ Unicode curly quotes are left alone when parsing smart quotes. (Issue #143)
17794+ Cabal file changes:
17796 - Removed parsec < 3 restriction.
17797 - Added 'threaded' flag for architectures where GHC lacks a threaded
17799 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
17800 - Require highlighting-kate 0.2.7.
17802+ Use explicit imports from `Data.Generics`. Otherwise we have a
17803 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
17805+ New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
17807[EPUB]: http://en.wikipedia.org/wiki/EPUB
17808[Slidy]: http://www.w3.org/Talks/Tools/Slidy
17809[bookworm]: http://bookworm.oreilly.com/
17810[tutorial here]: http://johnmacfarlane.net/pandoc/epub.html
17812## pandoc 1.5.1.1 (2010-03-29)
17814+ Fixed header identifiers (uniqueIdent in Shared) so they
17815 work as advertized in README and are guaranteed to be
17816 valid XHTML names. Thanks to Xyne for reporting the bug.
17818## pandoc 1.5.1 (2010-03-23)
17820+ Fixed treatment of unicode characters in URIs.
17821+ Revised Setup.hs so it works with debian's build process.
17822+ Fixed bug in OpenDocument writer that led to invalid
17823 XML for some input.
17825## pandoc 1.5.0.1 (2010-03-21)
17827+ HTML writer: Fixed error in math writer (with MathML option)
17828 that caused an infinite loop for unparsable MathML.
17830## pandoc 1.5 (2010-03-20)
17832+ Moved repository to [github](http://github.com/jgm/pandoc).
17833+ New `--mathml` option, for display of TeX math as MathML.
17834+ New `--data-dir` option, allowing users to specify a data
17835 directory other than `~/.pandoc`. Files placed in this directory
17836 will be used instead of system defaults.
17837+ New `--base-header-level` option. For example, `--base-header-level=2`
17838 changes level 1 headers to level 2, level 2 to level 3, etc.
17839+ New 'plain' output format: plain text without pictures, hyperlinks,
17840 inline formatting, or anything else that looks even vaguely
17842+ Titles and authors in title blocks can now span multiple lines,
17843 as long as the continuation lines begin with a space character.
17844+ When given an absolute URI as a parameter, pandoc will fetch
17845 the content via HTTP.
17846+ The HTML reader has been made much more forgiving. It no
17847 longer requires well-formed xhtml as input.
17848+ `html2markdown` has been removed; it is no longer necessary, given
17849 the last two changes. `pandoc` can be used by itself to convert
17850 web pages to markdown or other formats.
17851+ `hsmarkdown` has also been removed. Use `pandoc --strict` instead.
17852 Or symlink pandoc's executable to `hsmarkdown`; `pandoc` will then
17853 behave like `hsmarkdown` used to.
17854+ An image in a paragraph by itself is now rendered as a figure
17855 in most writers, with the alt text as the caption.
17856+ Incomplete support for reST tables (simple and grid). Thanks to
17857 Eric Kow. Colspans and rowspans not yet supported.
17858+ In mediawiki, links with relative URLs are now formatted as wikilinks.
17859 Also, headers have been promoted: `= head =` is now level 1 instead of
17861+ The markdown reader now handles "inverse bird tracks" when parsing
17862 literate haskell. These are used for haskell example code that
17863 is not part of the literate program.
17864+ The `-B` and `-A` options now imply `-s` and no longer work in
17866+ Headerless tables are now printed properly in all writers.
17867 In addition, tbody, thead, and cols are used in HTML and Docbook
17869+ Improved build system; removed obsolete Makefile.
17870+ In LaTeX writer, `\chapter` is now used instead of `\section`.
17871 when the documentclass is book, report, or memoir.
17872+ Many small bug fixes. See [changelog] for details.
17874## pandoc 1.4 (2010-01-02)
17876+ New template system replaces old headers, giving users much
17877 more control over pandoc's output in `--standalone` mode.
17878 Added `--template` and `--variable` options. The `--print-default-header`
17879 option is now `--print-default-template`. See README under
17880 "Templates" for details.
17881+ The old `--custom-header` option should still work, but it has
17883+ New `--reference-odt` option allows users to customize styles
17885+ Users may now put custom templates, s5 styles, and a reference
17886 ODT in the `~/.pandoc` directory, where they will override system
17887 defaults. See README for details.
17888+ Unicode is now used whenever possible in HTML and XML output. Entities
17889 are used only where necessary (`>`, `<`, `"`, `&`).
17890+ Authors and dates may now include formatting and notes.
17891+ Added `--xetex` option for `pandoc` and `markdown2pdf`.
17892+ Windows installer now includes highlighting support and
17893 `markdown2pdf` and `hsmarkdown` wrappers.
17894+ Pandoc no longer requires Template Haskell, which should make
17896+ Pandoc can now be built on GHC 6.12, as well as earlier versions.
17897+ See README for other small improvements and bug fixes.
17899## pandoc 1.3 (2009-12-10)
17901+ Added `--id-prefix` option to help prevent duplicate
17902 identifiers when you're generating HTML fragments.
17903+ Added `--indented-code-classes` option, which specifies
17904 default highlighting syntax for indented code blocks.
17905+ `--number-sections` now affects HTML output.
17906+ Improved syntax for markdown definition lists.
17907+ Better looking simple tables.
17908+ Markdown tables without headers are now possible.
17909+ New hard line break syntax: backslash followed by newline.
17910+ Improved performance of markdown reader by ~10% by eliminating the
17911 need for a separate parsing pass for notes.
17912+ Improved syntax highlighting for literate Haskell.
17913+ Support for "..code-block" directive in RST reader.
17914+ Windows binary now includes highlighting support.
17915+ Many bug fixes and small improvements. See [changelog]
17918## pandoc 1.2.1 (2009-07-18)
17920+ Improved the efficiency of the markdown reader's
17921 abbreviation parsing (should give a big performance
17922 boost with `--smart`).
17923+ HTML writer now wraps sections in divs with unique
17924 identifiers, for easier manipulation.
17925+ Improved LaTeX reader's coverage of math modes.
17926+ Added a portable Haskell version of markdown2pdf (thanks
17927 to Paolo Tanimoto).
17928+ Made `--strict` compatible with `--standalone` and `--toc.`
17929+ Many other small improvements and bug fixes.
17930 See [changelog] for details.
17932## pandoc 1.2 (2009-03-01)
17934+ Added support for literate Haskell. lhs support is triggered by
17935 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
17936 Haskell LaTeX. '.lhs' files are treated by default as literate
17938+ Added `--email-obfuscation` option.
17939+ Brought citeproc support up to date for citeproc-hs-0.2.
17940+ Many bugs fixed. See [changelog] for details.
17942## pandoc 1.1 (2008-11-06)
17944+ New `--jsmath` option supporting use of pandoc with [jsMath].
17945+ Classes on HTML table output for better CSS styling.
17946+ Windows installer no longer requires admin privileges.
17947+ Many bugs fixed. See [changelog] for details.
17949## pandoc 1.0 (2008-09-13)
17951+ New writers for MediaWiki, GNU Texinfo (thanks to Peter Wang),
17952 OpenDocument XML (thanks to Andrea Rossato), and ODT (OpenOffice
17954+ New [delimited code blocks](README.html#delimited-code-blocks),
17955 with optional syntax highlighting.
17956+ Reorganized build system: pandoc can now be built using standard
17957 Cabal tools. It can be compiled on Windows without Cygwin.
17958 The tests can also be run without perl or unix tools.
17959+ LaTeXMathML replaces ASCIIMathML for rendering math in HTML.
17960+ Support for "displayed" math.
17961+ Common abbreviations are now handled more intelligently, with
17962 a non-breaking space (and not a sentence-ending space) after
17964+ Code is -Wall clean.
17965+ Many bug fixes and small improvements. See [changelog] for
17968## pandoc 0.46 (2008-01-08)
17970+ Added a `--sanitize-html` option (and a corresponding parameter
17971 in `ParserState` for those using the pandoc libraries in programs).
17972 This option causes pandoc to sanitize HTML (in HTML or Markdown
17973 input) using a whitelist method. Possibly harmful HTML elements
17974 are replaced with HTML comments. This should be useful in the
17975 context of web applications, where pandoc may be used to convert
17976 user input into HTML.
17977+ Made -H, -A, and -B options cumulative: if they are specified
17978 multiple times, multiple files will be included.
17979+ Many bug fixes and small improvements. See [changelog] for full
17982## pandoc 0.45 (2007-12-09)
17984+ Many bug fixes and structural improvements. See [changelog] for
17986+ Improved treatment of math. Math is now rendered using unicode
17987 by default in HTML, RTF, and DocBook output. For more accurate
17988 display of math in HTML, `--gladtex`, `--mimetex`, and `--asciimathml`
17989 options are provided. See the [User's Guide](README.html#math) for
17991+ Removed support for box-style block quotes in markdown.
17992+ More idiomatic ConTeXt output.
17993+ Text wrapping in ConTeXt and LaTeX output.
17994+ Pandoc now correctly handles all standard line endings
17996+ New `--no-wrap` option that disables line wrapping and minimizes
17997 whitespace in HTML output.
17998+ Build process is now compatible with both GHC 6.8 and GHC 6.6.
17999 GHC and GHC_PKG environment variables may be used to specify
18000 which version of the compiler to use, when multiple versions are
18003## pandoc 0.44 (2007-09-03)
18005 [ John MacFarlane ]
18007 * Fixed bug in HTML writer: when --toc was used, anchors were put around
18008 headers, which is invalid XHTML (block content within inline element).
18009 Now the anchors are put inside the header tags. Resolves Issue #23.
18011 * Added xmlns attribute to html element in html writer tests.
18012 This attribute is added by more recent versions of the
18013 xhtml library (>= 3000), and is required for valid XHTML.
18017 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
18018 command instead of 'runhaskell', which, on some platforms (such as s390,
18019 alpha, m68k), throws the following error:
18021 runhaskell Setup.hs configure --prefix=/usr
18022 ghc-6.6.1: not built for interactive use
18024 This causes a serious FTBFS bug. Closes: #440668.
18026## pandoc 0.43 (2007-09-02)
18028 [ John MacFarlane ]
18030 * The focus of this release is performance. The markdown parser
18031 is about five times faster than in 0.42, based on benchmarks
18032 with the TextMate manual.
18034 * Main.hs: Replaced CRFilter and tabFilter with single function
18035 tabFilter, which operates on the whole string rather than breaking
18036 it into lines, and handles dos-style line-endings as well as tabs.
18038 * Added separate LaTeX reader and native reader tests; removed
18041 * Text.Pandoc.Shared:
18043 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
18044 + General code cleanup (to elimante warnings when compiling with -Wall.)
18045 + Added 'wrapped' function, which helps wrap text into paragraphs,
18046 using the prettyprinting library.
18047 + Rewrote charsInBalanced and charsInBalanced'.
18048 - Documented restriction: open and close must be distinct characters.
18049 - Rearranged options for greater efficiency.
18050 - Bug fix: Changed inner call to charsInBalanced inside
18051 charsInBalanced' to charsInBalanced'.
18052 + anyLine now requires that the line end with a newline (not eof).
18053 This is a harmless assumption, since we always add newlines to the
18054 end of a block before parsing with anyLine, and it yields a 10% speed
18056 + Removed unnecessary 'try' in anyLine.
18057 + Removed unneeded 'try' from romanNumeral parser.
18058 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
18059 + Removed unneeded 'try' in parseFromString.
18060 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
18062 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
18063 'try' is not automatically applied to the 'end' parser. Added
18064 'try' in calls to 'enclosed' where needed. Slight speed increase.
18068 + Replaced individual wrapping routines in RST, Man, and Markdown
18069 writers with 'wrapped' from Text.Pandoc.Shared.
18070 + Rewrote LaTeX writer to use the prettyprinting library,
18071 so we get word wrapping, etc.
18072 + Modified latex writer tests for new latex writer using prettyprinter.
18073 + Fixed bug in LaTeX writer: autolinks would not cause
18074 `\usepackage{url}` to be put in the document header. Also, changes
18075 to state in enumerated list items would be overwritten.
18076 + In Markdown writer, escape paragraphs that begin with ordered list
18077 markers, so they don't get interpreted as ordered lists.
18079 * Text.Pandoc.Reades.LaTeX:
18081 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
18082 numeral after "enum" in "setcounter" would consist entirely of
18083 "i"s. 'enumiv' is legitimate.
18084 + LaTeX command and environment names can't contain numbers.
18085 + Rearranged order of parsers in inline for slight speed improvement.
18086 + Added '`' to special characters and 'unescapedChar'.
18088 * Text.Pandoc.Readers.RST:
18090 + Removed unneeded try's in RST reader; also minor code cleanup.
18092 + Rearranged parsers in inline (doubled speed).
18094 * Text.Pandoc.Readers.Markdown:
18096 + Skip notes parsing if running in strict mode. (This yields a nice
18097 speed improvement in strict mode.)
18098 + Simplify autolink parsing code, using Network.URI to test for
18099 URIs. Added dependency on network library to debian/control and
18101 + More perspicuous definition of nonindentSpaces.
18102 + Removed unneeded 'try' in 'rawLine'.
18103 + Combined linebreak and whitespace into a new whitespace parser, to
18104 avoid unnecessary reparsing of space characters.
18105 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
18106 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
18107 + Use lookAhead in parsers for setext headers and definition lists
18108 to see if the next line begins appropriately; if not, don't waste
18109 any more time parsing.
18110 + Don't require blank lines after code block. (It's sufficient to
18111 end code block with a nonindented line.)
18112 + Changed definition of 'emph': italics with '_' must not
18113 be followed by an alphanumeric character. This is to help
18114 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
18115 `[LC<em>TYPE]:my</em>type`.
18116 + Improved Markdown.pl-compatibility in referenceLink: the two parts
18117 of a reference-style link may be separated by one space, but not
18118 more... [a] [link], [not] [a link].
18119 + Fixed markdown inline code parsing so it better accords with
18120 Markdown.pl: the marker for the end of the code section is a clump
18121 of the same number of `'s with which the section began, followed
18122 by a non-` character. So, for example,
18123 ` h ``` i ` -> `<code>h ``` i</code>`.
18124 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
18125 rules are slightly different.
18126 + Rewrote 'para' for greater efficiency.
18127 + Rewrote link parsers for greater efficiency.
18128 + Removed redundant 'referenceLink' in definition of inline (it's
18129 already in 'link').
18130 + Refactored escapeChar so it doesn't need 'try'.
18131 + Refactored hrule for performance in Markdown reader.
18132 + More intelligent rearranging of 'inline' so that most frequently
18133 used parsers are tried first.
18134 + Removed tabchar parser, as whitespace handles tabs anyway.
18136 * Text.Pandoc.CharacterReferences:
18139 + Removed unnecessary 'try's for a speed improvement.
18140 + Removed unnecessary '&' and ';' from the entity table.
18144 + Makefile: Get VERSION from cabal file, not Main.hs.
18145 + Modified MacPorts Portfile:
18146 - Depend on haddock
18147 - Build and install libraries and library documentation in
18148 addition to pandoc executable
18149 - Added template item for md5 sum in Portfile.in.
18150 - Incorporated changes from MacPorts repository (r28278).
18151 + FreeBSD port: Don't try to generate distinfo in Makefile.
18152 It can be made using 'make makesum' in FreeBSD.
18153 + Make both freebsd and macports targets depend on tarball.
18155 * Website and documentation:
18157 + Updated INSTALL instructions.
18158 + Added pandocwiki demo to website.
18159 + Removed local references to Portfile, since pandoc is now in the
18160 MacPorts repository.
18162## pandoc 0.42 (2007-08-26)
18164 [ John MacFarlane ]
18166 * Main.hs: Use utf8 conversion on the extra files loaded with
18167 the -H, -C, -B, and -A options. This fixes problems with unicode
18168 characters in these files.
18170 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
18171 Text.Pandoc.Readers.HTML and without it we get a linking error when
18176 + Added new rule for enhanced markdown ordered lists: if the list
18177 marker is a capital letter followed by a period (including a
18178 single-letter capital roman numeral), then it must be followed by
18179 at least two spaces. The point of this is to avoid accidentally
18180 treating people's initials as list markers: a paragraph might begin,
18181 "B. Russell was an English philosopher," and this shouldn't be
18182 treated as a list. Documented change in README.
18183 + Blocks that start with "p. " and a digit are no longer treated
18184 as ordered lists (it's a page number).
18185 + Added a needed 'try' to listItem.
18186 + Removed check for a following setext header in endline.
18187 A full test is too inefficient (doubles benchmark time), and the
18188 substitute we had before is not 100% accurate.
18189 + Don't use Code elements for autolinks if --strict specified.
18191 * LaTeX writer: When a footnote ends with a Verbatim environment, the
18192 close } of the footnote cannot occur on the same line or an error occurs.
18193 Fixed this by adding a newline before the closing } of every footnote.
18196 + Removed incorrect "{}" around style information in HTML tables.
18197 Column widths now work properly in HTML.
18198 + If --strict option is specified (and --toc is not), don't include
18199 identifiers in headers, for better Markdown compatibility.
18203 + Separated $(web_dest) and website targets.
18204 + In website, index.txt is now constructed from template index.txt.in.
18205 + Added freebsd target to Markefile. This creates the freebsd Makefile
18206 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
18207 from the repository.
18208 + Added macport target to Makefile. Portfile is built from template
18210 + Removed OSX package targets. (Too many difficulties involving
18211 dependencies on dynamic libraries.)
18212 + More complete INSTALL instructions for all architectures.
18215 + Added a programming demo, pandocwiki.
18219 * Do not forget to close pandoc's ITP. Closes: #391666
18221## pandoc 0.41 (2007-08-19)
18223 [ John MacFarlane ]
18225 * Fixed bugs in HTML reader:
18226 + Skip material at end *only if* `</html>` is present (previously,
18227 only part of the document would be parsed if an error was
18228 found; now a proper error message is given).
18229 + Added new constant eitherBlockOrInline with elements that may
18230 count either as block-level or as inline. Modified isInline and
18231 isBlock to take this into account.
18232 + Modified rawHtmlBlock to accept any tag (even an inline tag):
18233 this is innocuous, because rawHtmlBlock is tried only if a regular
18234 inline element can't be parsed.
18235 + Added a necessary 'try' in definition of 'para'.
18237 * Fixed bug in markdown ordered list parsing. The problem was that
18238 anyOrderedListStart did not check for a space following the
18239 ordered list marker. So in 'A.B. 2007' the parser would be
18240 expecting a list item, but would not find one, causing an error.
18241 Fixed a similar bug in the RST reader. Resolves Issue #22.
18243 * Refactored RST and Markdown readers using parseFromString.
18245 * LaTeX reader will now skip anything after \end{document}.
18247 * Fixed blockquote output in markdown writer: previously, block
18248 quotes in indented contexts would be indented only in the first
18251 * Added note to INSTALL about variations in versions of the xhtml
18252 library that can lead to failed tests (thanks to Leif LeBaron).
18254## pandoc 0.4 (2007-01-16)
18256 [ John MacFarlane ]
18258 * Added two new output formats: groff man pages and ConTeXt. By
18259 default, output files with extensions ".ctx" and ".context" are
18260 assumed to be ConTeXt, and output files with single-digit extensions
18261 are assumed to be man pages.
18263 * Enhanced ordered lists (documented in README, under Lists):
18264 + The OrderedList block element now stores information about
18265 list number style, list number delimiter, and starting number.
18266 + The readers parse this information when possible.
18267 + The writers use this information to style ordered lists.
18268 + The enhancement can be disabled using the --strict option.
18270 * Added support for tables (with a new Table block element). Two kinds
18271 of tables are supported: a simple table with one-line rows, and a
18272 more complex variety with multiline rows. All output formats are
18273 supported, but only markdown tables are parsed at the moment. The
18274 syntax is documented in README.
18276 * Added support for definition lists (with a new DefinitionList block
18277 element). All output and input formats are supported. The syntax is
18278 documented in README.
18280 * Added support for superscripts and subscripts (with new Superscript
18281 and Subscript inline elements). All input and output
18282 formats. The syntax is documented in README.
18284 * Added support for strikeout (with a new Strikeout inline element).
18285 All input and output formats are supported. Thanks to Bradley Kuhn,
18286 who contributed a patch. The syntax is documented in README. Resolves
18289 * Added a --toc|--table-of-contents option. This causes an automatically
18290 generated table of contents (or an instruction that creates one) to
18291 be inserted at the beginning of the document. Not supported in S5,
18292 DocBook, or man page writers.
18294 * Modified the -m|--asciimathml option:
18296 + If an optional URL argument is provided, a link is inserted
18297 instead of the contents of the ASCIIMathML.js script.
18298 + Nothing is inserted unless the document actually contains
18301 * Removed Blank block element as unnecessary.
18303 * Removed Key and Note blocks from the Pandoc data structure. All
18304 links are now stored as explicit links, and note contents are
18305 stored with the (inline) notes.
18307 + All link Targets are now explicit (URL, title) pairs; there
18308 is no longer a 'Ref' target.
18309 + Markdown and RST parsers now need to extract data from key and
18310 note blocks and insert them into the relevant inline elements.
18311 Other parsers have been simplified, since there is no longer any need
18312 to construct separate key and note blocks.
18313 + Markdown, RST, and HTML writers need to construct lists of
18314 notes; Markdown and RST writers need to construct lists of link
18315 references (when the --reference-links option is specified); and
18316 the RST writer needs to construct a list of image substitution
18317 references. All writers have been rewritten to use the State monad
18318 when state is required.
18319 + Several functions (generateReference, keyTable,
18320 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
18321 used by them) have been removed from Text.Pandoc.Shared, since
18322 they are no longer needed. New functions and data structures
18323 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
18324 added. The functions inTags, selfClosingTag, inTagsSimple, and
18325 inTagsIndented have been moved to the DocBook writer, since that
18326 is now the only module that uses them. NoteTable is now exported
18327 in Text.Pandoc.Shared.
18328 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
18329 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
18330 + Added writerNotes and writerReferenceLinks to WriterOptions.
18332 * Added Text.Pandoc module that exports basic readers, writers,
18333 definitions, and utility functions. This should export everything
18334 needed for most uses of Pandoc libraries. The haddock documentation
18335 includes a short example program.
18337 * Text.Pandoc.ASCIIMathML is no longer an exported module.
18339 * Added Text.Pandoc.Blocks module to help in printing markdown
18340 and RST tables. This module provides functions for working with
18341 fixed-width blocks of text--e.g., placing them side by side, as
18344 * Refactored to avoid reliance on Haskell's Text.Regex library, which
18345 (a) is slow, and (b) does not properly handle unicode. This fixed
18346 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
18348 + Replaced 'gsub' with a general list function 'substitute'
18349 that does not rely on Text.Regex.
18350 + Rewrote extractTagType in HTML reader so that it doesn't use
18352 + In Markdown reader, replaced email regex test with a custom email
18353 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
18354 with a custom function isSelfClosingTag.
18355 + Modified Docbook writer so that it doesn't rely on Text.Regex for
18356 detecting 'mailto' links.
18357 + Removed escapePreservingRegex and reamped entity-handling
18358 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
18359 avoid reliance on Text.Regex (see below on character reference
18362 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
18364 * Changed handling of XML entities. Entities are now parsed (and unicode
18365 characters returned) in the Markdown and HTML readers, rather than being
18366 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
18367 instead of entities for characters above 128. This makes the HTML and
18368 DocBook output much more readable and more easily editable.
18370 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
18371 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
18372 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
18373 Moved both functions to Text.Pandoc.Writers.Docbook.
18374 + Added characterReference parser to Text.Pandoc.CharacterReferences.
18375 This parses a string and return a unicode character.
18376 + Rewrote decodeCharacterReferences to use the new parser instead of
18378 + Added new charRef parser for Markdown and HTML, which replaces the
18379 old 'entity' parser. Added '&' as a special character in Markdown reader.
18380 + Modified HTML and Markdown readers to call decodeEntities on all raw
18381 strings (e.g. authors, dates, link titles), to ensure that no
18382 unprocessed entities are included in the native representation of
18383 the document. (In the HTML reader, most of this work is done by a
18384 change in extractAttributeName.)
18385 + In XML and Markdown output, escape unicode nonbreaking space as ' ',
18386 since a unicode non-breaking space is impossible to distinguish visually
18387 from a regular space. (Resolves Issue #3.)
18388 + Removed encodeEntitiesNumerical.
18389 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
18390 slight performance boost over the old association list.
18391 + Removed unneeded decodeEntities from 'str' parser in HTML and
18394 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
18395 fromUTF8, for clarity.
18397 * Replaced old haskell98 module names replaced by hierarchical module
18398 names, e.g. List by Data.List. Removed haskell98 from dependencies
18399 in pandoc.cabal, and added mtl (needed for state monad). Substituted
18402 * Refactored and cleaned up character escaping in writers, using
18403 backslashEscapes and escapeStringUsing functions.
18405 * Instead of adding `\n\n` to the end of an input string in Main.hs,
18406 this is now done in the readers. This makes the libraries behave
18407 the way you'd expect from the pandoc program. Resolves Issue #10.
18409 * URLs and email addresses in autolinks are now typeset as Code.
18411 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
18412 doesn't display the whole output unless there's a line ending.
18414 * Major code cleanup in all modules, for greater consistency, concision,
18419 + Fixed several bugs (extractTagType, attribute parsing).
18420 + Remove Null blocks in lists of blocks when possible.
18421 + Allow HTML comments as raw HTML inline.
18425 + Ordered list items may no longer begin with uppercase letters, or
18426 letters greater than 'n'. (This prevents first initials and page
18427 reference, e.g. 'p. 400', from being parsed as beginning lists.)
18428 Also, numbers beginning list items may no longer end with ')',
18429 which is now allowed only after letters. Note: These changes
18430 may cause documents to be parsed differently. Users should take
18432 + Changed autoLink parsing to conform better to Markdown.pl's
18433 behavior. `<google.com>` is not treated as a link, but
18434 `<http://google.com>`, `<ftp://google.com>`, and
18435 `<mailto:google@google.com>` are.
18436 + Cleaned up handling of embedded quotes in link titles. Now these are
18437 stored as a '"' character, not as '"'.
18438 + Use lookAhead parser for the 'first pass' (looking for reference keys),
18439 instead of parsing normally, then using setInput to reset input. This
18440 yields a slight performance boost.
18441 + Fixed several bugs in smart quote recognition.
18442 + Fixed bug in indentSpaces (which didn't properly handle
18443 cases with mixed spaces and tabs).
18444 + Consolidated 'text', 'special', and 'inline' into 'inline'.
18445 + Fixed bug which allowed URL and title to be separated by multiple blank
18446 lines in links and reference keys. They can be on separate lines but
18447 can't have blank lines between them.
18448 + Correctly handle bracketed text inside inline footnotes and links,using
18449 new function inlinesInBalanced. Resolves Issue #14.
18450 + Fixed bug in footnotes: links in footnotes were not being
18451 processed. Solution: three-stage parse. First, get all the
18452 reference keys and add information to state. Next, get all the
18453 notes and add information to state. (Reference keys may be needed
18454 at this stage.) Finally, parse everything else.
18455 + Replaced named constants like 'emphStart' with literals.
18456 + Removed an extra occurrence of escapedChar in definition of inline.
18460 + Allow the URI in a RST hyperlink target to start on the line
18461 after the reference key.
18462 + Added 'try' in front of 'string', where needed, or used a different
18463 parser. This fixes a bug where ````` would not be correctly parsed as
18465 + Fixed slow performance in parsing inline literals in RST reader. The
18466 problem was that ``#`` was seen by 'inline' as a potential link or image.
18467 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
18469 + Use lookAhead instead of getInput/setInput in RST reader. Removed
18470 unneeded getState call, since lookAhead automatically saves and
18471 restores the parser state.
18472 + Allow hyperlink target URIs to be split over multiple lines, and
18473 to start on the line after the reference. Resolves Issue #7.
18474 + Fixed handling of autolinks.
18478 + Replaced `choice [(try (string ...), ...]` idiom with `oneOfStrings`,
18480 + Added clauses for tilde and caret. Tilde is `\ensuremath{\sim}`, and
18481 caret is `\^{}`, not `\^` as before.
18482 + Added parsing for `\url`.
18483 + Parse `\texttt{}` as code, provided there's nothing fancy inside.
18487 + Modified HTML writer to use the Text.XHtml library. This results
18488 in cleaner, faster code, and it makes it easier to use Pandoc in
18489 other projects, like wikis, which use Text.XHtml. Two functions are
18490 now provided, writeHtml and writeHtmlString: the former outputs an
18491 Html structure, the latter a rendered string. The S5 writer is also
18492 changed, in parallel ways (writeS5, writeS5String).
18493 + The Html header is now written programmatically, so it has been
18494 removed from the 'headers' directory. The S5 header is still
18495 needed, but the doctype and some of the meta declarations have
18496 been removed, since they are written programmatically. This change
18497 introduces a new dependency on the xhtml package.
18498 + Fixed two bugs in email obfuscation involving improper escaping
18499 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
18501 + Fixed another bug in email obfuscation: If the text to be obfuscated
18502 contains an entity, this needs to be decoded before obfuscation.
18503 Thanks to thsutton for the patch. Resolves Issue #15.
18504 + Changed the way the backlink is displayed in HTML footnotes.
18505 Instead of appearing on a line by itself, it now generally
18506 appears on the last line of the note. (Exception: when the
18507 note does not end with a Plain or Para block.) This saves space
18509 + Added automatic unique identifiers to headers:
18510 - The identifier is derived from the header via a scheme
18511 documented in README.
18512 - WriterState now includes a list of header identifiers and a table
18513 of contents in addition to notes.
18514 - The function uniqueIdentifiers creates a list of unique identifiers
18515 from a list of inline lists (e.g. headers).
18516 - This list is part of WriterState and gets consumed by blockToHtml
18517 each time a header is encountered.
18518 + Include CSS for .strikethrough class in header only if strikethrough
18519 text appears in the document.
18520 + If the 'strict' option is specified, elements that do not appear in
18521 standard markdown (like definition lists) are passed through as
18523 + Simplified treatment of autolinks, using pattern matching instead of
18528 + Links in markdown output are now printed as inline links by default,
18529 rather than reference links. A --reference-links option has been added
18530 that forces links to be printed as reference links. Resolves Issue #4.
18531 + Use autolinks when possible. Instead of `[site.com](site.com)`,
18536 + Rewrote to use the State monad. The preamble now includes only those
18537 packages that are actually required, given the document's content.
18538 Thus, for example, if strikeout is not used, ulem is not required.
18539 Modified LaTeXHeader accordingly.
18540 + Modified LaTeX writer to insert `\,` between consecutive quotes.
18541 + Removed unused function tableRowColumnWidths.
18542 + Simplified code for escaping special characters.
18543 + Leave extra blank line after `\maketitle`.
18544 + Include empty `\author{}` when no author specified to avoid LaTeX
18546 + Include fancyvrb code in header only if needed -- that is, only
18547 if there is actually code in a footnote.
18548 + Use `\url{}` for autolinks.
18549 + Include [mathletters] option in ucs package, so that basic unicode
18550 Greek letters will work correctly.
18552 * RST writer: Force blank line before lists, so that sublists will
18553 be handled correctly.
18555 * Docbook writer: Fixed a bug: email links with text, like
18556 [foo](me@bar.baz), were being incorrectly treated as autolinks.
18558 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
18559 Text.Pandoc.Shared.
18561 * Text.Pandoc.Shared:
18563 + Added defaultWriterOptions.
18564 + Added writerTableOfContents to WriterOptions.
18565 + Added writerIgnoreNotes option to WriterOptions. This is needed
18566 for processing header blocks for a table of contents, since notes on
18567 headers should not appear in the TOC.
18568 + Added prettyprinting for native Table format.
18569 + Removed some unneeded imports.
18570 + Moved escape and nullBlock parsers from
18571 Text.ParserCombinators.Pandoc, since the latter is for
18572 general-purpose parsers that don't depend on Text.Pandoc.Definition.
18573 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
18574 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
18575 writer, because HTML writer now uses these in constructing a table
18577 + Added clauses for new inline elements (Strikeout, Superscript,
18578 Subscript) to refsMatch.
18579 + Removed backslashEscape; added new functions escapeStringUsing and
18581 + Moved failIfStrict from markdown reader, since it is now used also
18582 by the HTML reader.
18583 + Added a 'try' to the definition of indentSpaces.
18584 + In definition of 'reference', added check to make sure it's not a note
18586 + Added functions: camelCaseToHyphenated, toRomanNumeral,
18587 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
18588 charsInBalanced', withHorizDisplacement, romanNumeral
18589 + Fixed a bug in the anyLine parser. Previously it would parse an empty
18590 string "", but it should fail on an empty string, or we get an error
18591 when it is used inside "many" combinators.
18592 + Removed followedBy' parser, replacing it with the lookAhead parser from
18594 + Added some needed 'try's before multicharacter parsers, especially in
18596 + Removed the 'try' from the 'end' parser in 'enclosed', so that
18597 'enclosed' behaves like 'option', 'manyTill', etc.
18598 + Added lineClump parser, which parses a raw line block up to and
18599 including any following blank lines.
18600 + Renamed parseFromStr to parseFromString.
18601 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
18602 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
18604 + Removed unneeded 'try' in blanklines.
18605 + Removed endsWith function and rewrote calling functions to use
18606 isSuffixOf instead.
18607 + Added >>~ combinator.
18608 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
18611 * Refactored runtests.pl; added separate tests for tables.
18615 + Added -asxhtml flag to tidy in html2markdown. This will
18616 perhaps help the parser, which expects closing tags.
18617 + Modified markdown2pdf to run pdflatex a second time if --toc or
18618 --table-of-contents was specified; otherwise the table of
18619 contents won't appear.
18620 + Modified markdown2pdf to print a helpful message if the 'ulem'
18621 LaTeX package is required and not found.
18623 * Changes to build process:
18625 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
18627 + Removed cabalize and Pandoc.cabal.in. The repository now contains
18628 pandoc.cabal itself.
18629 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
18630 likes the cabal file to have the same name as the tarball.
18631 + Expanded and revised the package description in pandoc.cabal.
18632 Revised the package synopsis.
18633 + The tarball built by 'make tarball' now contains files built from
18634 templates (including man pages and shell scripts), so pandoc can
18635 be built directly using Cabal tools, without preprocessing.
18636 + Executable binaries are now stripped before installing.
18637 + Man pages are now generated from markdown sources, using pandoc's
18639 + Use HTML version of README (instead of RTF) in Mac OS X installer.
18640 + Instead of testing for the existence of a pandoc symlink in build-exec,
18645 + Updated README and man pages with information on new features.
18646 + Updated INSTALL instructions with some useful clarifications and
18648 + Updated web content.
18650 * Added FreeBSD port.
18656 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
18657 libghc6-xhtml-dev. Removed libghc6-html-dev.
18658 + Suggest texlive-latex-recommended | tetex-extra instead of
18659 tetex-bin. This brings in fancyvrb and unicode support.
18662## pandoc 0.3 (2007-01-05)
18664 [ John MacFarlane ]
18666 * Changes in pandoc options:
18668 + Allow options to follow or precede arguments.
18669 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
18670 + Added '--strict' option.
18671 + Added '-o/--output' option.
18672 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
18673 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
18674 error conditions. This is helpful for writing wrappers.
18675 + Added copyright message to '-v' output, modeled after FSF messages.
18676 + Reformatted usage message so that it doesn't wrap illegibly.
18677 + Removed extra blanks after '-h' and '-D' output.
18679 * Added docbook writer.
18681 * Added implicit setting of default input and output format based
18682 on input and output filename extensions. These defaults are
18683 overridden if explicit input and output formats are specified using
18684 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
18687 * Allow ordered list items to begin with (single) letters, as well
18688 as numbers. The list item marker may now be terminated either by
18689 '.' or by ')'. This extension to standard markdown is documented
18692 * Revised footnote syntax. (See README for full details.) The
18693 '[^1]' format now standard in markdown extensions is supported,
18694 as are inline footnotes with this syntax: `^[My note.]`.
18695 The earlier footnote syntax `^(1)` is no longer supported.
18697 * Improved HTML representation of footnotes. All footnotes
18698 are now auto-numbered and appear in an ordered list at the
18699 end of the HTML document. Since the default appearance is now
18700 acceptable, the old footnote styles have been removed from the
18705 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
18706 These readers ran 'runParser' on processed chunks of text to handle
18707 embedded block lists in lists and quotation blocks. But then
18708 any changes made to the parser state in these chunks was lost,
18709 as the state is local to the parser. So, for example, footnotes
18710 didn't work in quotes or list items. The fix: instead of calling
18711 runParser on some raw text, use setInput to make it the input, then
18712 parse it, then use setInput to restore the input to what it was
18713 before. This is shorter and more elegant, and it fixes the problem.
18714 + Fixed bug in notFollowedBy' combinator (adding 'try' before
18715 'parser'). Adjusted code that uses this combinator accordingly.
18716 + Fixed bug in RTF writer that caused improper indentation on
18717 footnotes occurring in indented blocks like lists.
18718 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
18719 and date are parsed correctly. Everything else in the preamble
18721 + Modified escapedChar in LaTeX reader to allow a `\` at the end of a
18722 line to count as escaped whitespace.
18723 + Modified LaTeX reader to produce inline links rather than reference
18724 links. Otherwise, links in footnotes aren't handled properly.
18725 + Fixed handling of titles in links in Markdown reader, so that
18726 embedded quotation marks are now handled properly.
18727 + Fixed Markdown reader's handling of embedded brackets in links.
18728 + Fixed Markdown reader so that it only parses bracketed material
18729 as a reference link if there is actually a corresponding key.
18730 + Revised inline code parsing in Markdown reader to conform to
18731 markdown standard. Now any number of `s can begin inline code,
18732 which will end with the same number of `s. For example, to
18733 have two backticks as code, write ``` `` ```. Modified Markdown
18734 writer accordingly.
18735 + Fixed bug in text-wrapping routine in Markdown and RST writers.
18736 Now LineBreaks no longer cause wrapping problems.
18737 + Supported hexadecimal numerical entity references as well as
18739 + Fixed bug in Markdown reader's handling of underscores and other
18740 inline formatting markers inside reference labels: for example,
18741 in '[A_B]: /url/a_b', the material between underscores was being
18742 parsed as emphasized inlines.
18743 + Changed Markdown reader's handling of backslash escapes so that
18744 only non-alphanumeric characters can be escaped. Strict mode
18745 follows Markdown.pl in only allowing a select group of punctuation
18746 characters to be escaped.
18747 + Modified HTML reader to skip a newline following a `<br>` tag.
18748 Otherwise the newline will be treated as a space at the beginning
18751 * Made handling of code blocks more consistent. Previously, some
18752 readers allowed trailing newlines, while others stripped them.
18753 Now, all readers strip trailing newlines in code blocks. Writers
18754 insert a newline at the end of code blocks as needed.
18756 * Modified readers to make spacing at the end of output more consistent.
18758 * Minor improvements to LaTeX reader:
18760 + `\thanks` now treated like a footnote.
18761 + Simplified parsing of LaTeX command arguments and options.
18762 commandArgs now returns a list of arguments OR options (in
18763 whatever order they appear). The brackets are included, and
18764 a new stripFirstAndLast function is provided to strip them off
18765 when needed. This fixes a problem in dealing with \newcommand
18766 and \newenvironment.
18768 * Revised RTF writer:
18770 + Default font is now Helvetica.
18771 + An `\f0` is added to each `\pard`, so that font resizing works
18774 * Moved handling of "smart typography" from the writers to the Markdown
18775 and LaTeX readers. This allows great simplification of the writers
18776 and more accurate smart quotes, dashes, and ellipses. DocBook can
18777 now use `<quote>`. The '--smart' option now toggles an option in
18778 the parser state rather than a writer option. Several new kinds
18779 of inline elements have been added: Quoted, Ellipses, Apostrophe,
18782 * Changes in HTML writer:
18784 + Include title block in header even when title is null.
18785 + Made javascript obfuscation of emails even more obfuscatory,
18786 by combining it with entity obfuscation.
18788 * Changed default ASCIIMathML text color to black.
18792 + Added --strip-trailing-cr option to diff in runtests.pl, for
18793 compatibility with Windows.
18794 + Added regression tests with footnotes in quote blocks and lists.
18796 * Makefile changes:
18798 + osx-pkg target creates a Mac OS X package (directory). New osx
18799 directory contains files needed for construction of the package.
18800 + osx-dmg target creates a compressed disk image containing the package.
18801 + win-pkg target creates Windows binary package.
18802 + tarball target creates distribution source tarball.
18803 + website target generates pandoc's website automatically, including
18804 demos. New 'web' directory contains files needed for construction
18805 of the website (which will be created as the 'pandoc' subdirectory
18807 + Makefile checks to see if we're running Windows/Cygwin; if so,
18808 a '.exe' extension is added to each executable in EXECS.
18810 * Removed all wrappers except markdown2pdf and html2markdown.
18812 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
18813 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
18814 option and disables other options.
18816 * Added code to html2markdown that tries to determine the character
18817 encoding of an HTML file, by parsing the "Content-type" meta tag.
18819 + If the encoding can't be determined, then if the content is local,
18820 the local encoding is used; if it comes from a URL, UTF-8 is used
18822 + If input is from STDIN, don't try to determine character encoding.
18823 + Encoding can be specified explicitly using '-e' option.
18825 * Improved warning messages in wrappers:
18827 + Print warning if iconv not available
18828 + More user-friendly error messages in markdown2pdf, when
18833 + Renamed 'Text/Pandoc/HtmlEntities' module to
18834 'Text/Pandoc/Entities'. Also changed function names so as
18835 not to be HTML-specific.
18836 + Refactored SGML string escaping functions from HTML and Docbook
18837 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
18838 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
18840 + Removed splitBySpace and replaced it with a general, polymorphic
18842 + Refactored LaTeX reader for clarity (added isArg function).
18843 + Converted some CR's to LF's in src/ui/default/print.css.
18844 + Added license text to top of source files.
18845 + Added module data for haddock to source files.
18846 + Reformatted code for consistency.
18848 * Rewrote documentation and man pages. Split README into INSTALL
18851 * Split LICENSE into COPYING and COPYRIGHT.
18853 * Removed TODO, since we now maintain ToDo on the wiki.
18855 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
18860 * Revamped build process to conform to debian standards and created
18861 a proper debian package. Closes: #391666.
18863 * Modified build process to support GHC 6.6.
18865 + The package can still be compiled using GHC 6.4.2, though because
18866 of dependencies the "make deb" target works only with GHC 6.6+.
18867 + The script 'cabalize' is used to create an appropriate
18868 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
18871 * Refactored template processing (fillTemplates.pl).
18873 * Modified wrapper scripts to make them more robust and portable.
18874 To avoid code duplication and ensure consistency, wrappers are
18875 generated via a templating system from templates in src/wrappers.
18877 + Wrappers now accept multiple filenames, when appropriate.
18878 + Spaces and tabs allowed in filenames.
18879 + getopts shell builtin is used for portable option parsing.
18880 + Improved html2markdown's web grabber code, making it more robust,
18881 configurable and verbose. Added '-e', '-g' options.
18884## pandoc 0.2 (2006-08-14)
18886 * Fixed unicode/utf-8 translation
18888## pandoc 0.1 (2006-08-14)
18890 * Initial creation of debian package
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list