1# Revision history for pandoc
3## pandoc 2.11.1.1 (2020-11-07)
5 * Citeproc: improve punctuation in in-text note citations (#6813).
6 Previously in-text note citations inside a footnote would sometimes have
7 the final period stripped, even if it was needed (e.g. on the end of
10 * Use citeproc 0.1.1.1. This improves the decision about when
11 to use `ibid` in cases where citations are used inside
14 * Support `nocase` spans for `csljson` output.
16 * Require latest commonmark, commonmark-extensions.
17 This fixes a bug with `autolink_bare_uris` and commonmark.
19 * LaTeX reader: better handling of `\\` inside math in table cells (#6811).
21 * DokuWiki writer: translate language names for code elements
22 and improve whitespace (#6807).
24 * MediaWiki writer: use `syntaxhighlight` tag instead of deprecated
25 `source` for highlighted code (#6810). Also support `startFrom`
26 attribute and `numberLines`.
28 * Lint code in PRs and when committing to master (#6790,
31 * doc/filters.md: describe technical details of filter invocations (#6815,
35## pandoc 2.11.1 (2020-11-03)
37 * DocBook Reader: fix duplicate bibliography bug (#6773, Nils Carlson).
41 + Parse contents of iframes (#6770).
42 + Parse inline svg as image unless `raw_html` is set in the reader (in
43 which case the svg is passed through as raw HTML) (#6770).
47 + Fix bug parsing macro arguments (#6796). If `\cL` is
48 defined as `\mathcal{L}`, and `\til` as `\tilde{#1}`, then
49 `\til\cL` should expand to `\tilde{\mathcal{L}}`, but
50 pandoc was expanding it to `\tilde\mathcal{L}`. This is
51 fixed by parsing the arguments in "verbatim mode" when the
52 macro expands arguments at the point of use.
53 + Properly support optional (cite) argument for
54 `\blockquote` from `csquotes` (#6802).
56 * LaTeX writer: Improved calculation of table column widths.
57 We now have LaTeX do the calculation, using `\tabcolsep`.
58 So we should now have accurate relative column widths no
59 matter what the text width. The default template has been modified to load
60 the calc package if tables are used.
62 * HTML writer: Fix duplicate "class" attribute for table
65 * Text.Pandoc.Filter: allow shorter YAML representation of Citeproc
66 (Albert Krewinkel). The map-based YAML representation of filters expects
67 `type` and `path` fields. The path field had to be present for all filter
68 types, but is not used for citeproc filters. The field can now be omitted
69 when type is "citeproc", as described in the MANUAL.
71 * Text.Pandoc.Error: Add `PandocBibliographyError` constructor
72 for `PandocError` [API change]. This ensures that bibliography parsing
73 errors generate messages that include the bibliography file name --
74 otherwise it can be quite mysterious where it is coming from.
76 * Citeproc: properly handle `csl` field with `data:` URI (#6783).
77 This is used with the JATS writer, so this fixes a regression
78 in pandoc 2.11 with JATS output and citeproc.
80 * Allow `citation-abbreviations` in defaults file.
82 * JATS templates: ensure `jats_publishing` output is valid
85 * LaTeX template: Fix `CSLRightInline`, so that it does not
86 run over the right margin.
88 * HTML template: default CSS tweaks (Mauro Bieg and John
91 - Fix margin before codeblock
92 - Add `monobackgroundcolor` variable, making the background color
93 and padding of code optional.
94 - Ensure that backgrounds from highlighting styles take precedence over
96 - Remove list markers from TOC
97 - Add margin-bottom where needed
98 - Remove italics from blockquote styling
99 - Change borders and spacing in tables to be more consistent with other
102 - Set font-size for print media to 12pt.
103 - Reduce interline space.
104 - Reduce interparagraph space.
106 - Remove the special `line-height: 1` for table cells.
107 - Remove the special line-height for pre.
108 - Ensure that there is a bit more space before a heading
110 - Slightly reduced space after title header.
111 - Add CSS example to MANUAL
113 * man template: Change comment that triggers `tbl` from
114 `.\"t` to `'\" t`, as specified in groff_man(7) (#6803).
116 * Use latest commonmark, commonmark-extensions.
117 This fixes a bug with nested blocks in footnotes with the
118 `footnote` extension to `commonmark`. See jgm/commonmark-hs#63.
120 * Citeproc: use comma for in-text citations inside footnotes.
121 When an author-in-text citation like `@foo` occurs in a footnote,
122 we now render it with: `AUTHOR NAME + COMMA + SPACE + REST`.
123 Previously we rendered: `AUTHOR NAME + SPACE + "(" + REST + ")"`.
124 This gives better results. Note that normal citations are still
125 rendered in parentheses.
127 * Use latest citeproc:
129 + citeproc no longer capitalizes notes, so we do it
130 in pandoc when appropriate.
133 * Clarify manual on `--track-changes` (#6801).
135 * Add `doc/jats.md` to document pandoc's handling of JATS
136 (#6794, Albert Krewinkel).
138 * Fix code example in lua-filters.md (#6795).
140## pandoc 2.11.0.4 (2020-10-21)
142 * Commonmark writer: fix regression with fenced divs (#6768).
143 Starting with 2.10.1, fenced divs no longer render with
144 HTML div tags in commonmark output. This is a regression
145 due to our transition from cmark-gfm. This commit fixes it.
147 * Use released version of citeproc. (This fixes a mis-step
148 in the 2.11.0.3 release, which is now deprecated.)
150 * Use latest sylighting, with support for `groovy`.
152 * Document that --html-q-tags requires the smart extension on the reader
155## pandoc 2.11.0.3 (2020-10-20)
157 * Use latest citeproc (closes #6765). This fixes a problem with
158 author-in-text citations for references including both an author
159 and an editor. Previously, both were included in the text, but only
160 the author should be.
162 * With `--citeproc`, ensure that the final period is removed when
163 citations that occur in notes in note-based styles get put in
164 parentheses. See jgm/citeproc#20.
166 * Normalize rewritten image paths with `--extract-media` (#6761).
167 This change will avoid mixed paths like this one when
168 `--extract-media` is used with a Word file:
169 ``. Instead we'll get
170 ``.
172 * Modify `--version` output. Use space more efficiently and report the
173 citeproc and ipynb versions, along with skylighting, texmath, and
174 pandoc-types. Drop the word "default" before "user data directory."
176 * DocBook reader: bibliomisc and anchor support (#6754, Nils Carlson).
177 Also ensure that bibliodiv without a title no longer results in
180 * ConTeXt template: adds `\setupinterlinespace` to fonts larger
181 than normal (#6763, Denis Maier).
183 * LaTeX template: Do not load amssymb if not needed (#6469, Angelo Peronio).
184 See <https://tex.stackexchange.com/a/549938>.
186 * Relax upper bound on hslua, allow hslua-1.3.* (Albert Krewinkel).
190 + Improve explanation of "indent" variable (#6767, Cyrus Yip).
191 + Remove org from list of input formats supporting raw_tex (#6753,
195## pandoc 2.11.0.2 (2020-10-15)
197 * Fix handling of `xdata` in bibtex/biblatex bibliographies (#6752).
199 * Fix some small typos in the API documentation (#6751, Michael Hoffmann).
201 * Require citeproc 0.1.0.2. This fixes a regression from pandoc-citeproc
202 involving spacing between components of a reference in certain styles
205 * Fix typos in comments, doc strings, error messages, and tests
206 (Albert Krewinkel, #6738).
208## pandoc 2.11.0.1 (2020-10-13)
210 * LaTeX reader: support more acronym commands (#6746):
211 `\acl`, `\aclp`, and capitalized versions of already
214 * Commonmark reader: add `pipe_table` extension *after* defaults (#6739).
215 Otherwise we get bad results for non-table, non-paragraph
216 lines containing pipe characters.
218 * Markdown writer: Fix autolinks rendering for gfm (#6740).
219 Previously, autolinks rendered as raw HTML, due to the
220 `class="uri"` added by pandoc's markdown reader.
224 + Escape option values in lstlistings environment (#6742).
225 + Fix handling of `lang` `pt-BR` (#2953). For polyglossia we now
226 use `\setmainlanguage[variant=brazilian]{portuguese}` and for babel
227 `\usepackage[shorthands=off,main=brazilian]{babel}`.
229 * Depend on latest citeproc (0.1.0.1).
231 + This fixes the citation number issue with ieee.csl and other
232 styles that do not explicitly sort bibliographies (#6741). (Pandoc
233 was numbering them by their order in the bibliography file,
234 rather than the order cited, as required by the CSL spec.)
235 + Fixes groupin/collapsing with citation items with prefixes.
237 * default.latex: fix `CSLReference` macro definition.
239 * Fix MANUAL.txt CSL JSON conversion examples.
241 * Fix spelling errors in changelog, MANUAL.txt, `doc/org.md` (#6738).
244## pandoc 2.11 (2020-10-11)
246 * Add `--citeproc` (`-C`) option to trigger built-in citation processing.
247 It is no longer necessary to use the external `pandoc-citeproc`
248 filter. `--citeproc` behaves like a filter and can be positioned
249 relative to other filters as they appear on the command line.
251 The new built-in citation processing uses the citeproc library,
252 a reimplementation of CSL citation processing that fixes many
253 of the shortcomings of pandoc-citeproc. In general, citation
254 processing should work much the same as it did with pandoc-citeproc,
255 but with greater fidelity to CSL styles and better performance.
256 (The tests from the pandoc-citeproc package have been carried
257 over to pandoc.) The following differences should be noted:
259 - At this point, only some of the writers (HTML, ms, LaTeX) properly
260 interpret CSL display styles. You should get decent output in
261 all formats (at least as good as with pandoc-citeproc), but
262 indentation and block-alignment may not be right.
264 - pandoc-citeproc searches the `~/.csl` directory for `.csl`
265 styles. Pandoc instead searches the `csl` subdirectory of
266 the pandoc user data directory (e.g., `~/.pandoc/csl` or
267 `~/.local/share/pandoc/csl`). Users who already keep
268 CSL styles in `~/.csl` may find it convenient to add a
271 - Some of the bibliography formats supported by pandoc-citeproc (via
272 hs-bibutils) are no longer supported: Copac, EndNote,
273 ISI, MEDLINE, MODS, and RIS. If you use one of these formats,
274 you may use the `bibutils` utility to convert to BibLaTeX.
275 We now support only BibTeX, BibLaTeX, CSL JSON,
276 and pandoc's YAML/Markdown analogue of CSL JSON.
278 - pandoc-citeproc would always retrieve the independent parent
279 of a dependent style by doing an HTTP request. pandoc will
280 now first seek the independent parent locally (in the resource
281 path or in the `csl` subdirectory of the pandoc user data
282 directory) before resorting to HTTP. In addition, you may
283 omit the `.csl` extension, e.g. `--csl zoology`.
285 - Using the `--bibliography` option (or including
286 `bibliography` in YAML metadata) no longer triggers
287 citation processing implicitly: one must always use the
288 `--citeproc` option if citation processing is wanted.
290 * Add `csljson` as and input and output format. This allows pandoc
291 to convert between `csljson` and other bibliography formats
292 (e.g. `-f csljson -t markdown -s` or `-f bibtex -t csljson`),
293 and to generate formatted versions of CSL JSON bibliographies
294 (e.g., `pandoc -f csljson --citeproc pl.json -o pl.pdf`).
296 * Added `bibtex`, `biblatex` as input formats. This allows pandoc
297 to convert between BibLaTeX and BibTeX and other bibliography formats,
298 and to generated formatted versions of BibTeX/BibLaTeX bibliographies
299 (e.g., `pandoc -f biblatex --citeproc pl.bib -o pl.pdf`).
301 * Raise informative errors when YAML metadata parsing fails (#6730).
302 Previously the command would succeed, returning empty metadata,
303 with no errors or warnings.
305 * Sort languages in `--list-highlight-languages` output (#6718,
306 Albert Krewinkel). Languages were previously sorted by their
307 long name, which leads to unexpected results).
309 * Add CSS to default HTML template (#6601, Mauro Bieg). This
310 greatly improves the default typography in pandoc's HTML
311 output. The CSS is sensitive to a number of variables
312 (e.g. `mainfont`, `fontsize`, `linestretch`): see the manual for
313 details. To restore the earlier, more spartan output, you can
314 disable this with `-M document-css=false`.
316 * Support `--toc-depth` option for ODT writer (#6696, niszet).
318 * Fix issues with Windows UNC paths with some options (#5127).
320 * Remove `fenced_code_blocks` and `backtick_code_blocks` from allowed
321 `commonmark` and `gfm` extensions. These shouldn't really be counted
322 as extensions, because they can't be disabled in commonmark.
323 Adjust markdown writer to check for the commonmark variant in addition
326 * Add these extensions to `gfm` and `commonmark`:
327 `fenced_code_blocks`, `backtick_code_blocks`, `fenced_code_attributes`.
328 These can't really be disabled in the reader, but they need to be enabled
329 in the writer or we just get indented code.
331 * Make sure proper set of extensions is recognized for `commonmark_x`.
333 * Allow `gfm_auto_identifiers`, `ascii_identifiers` extensions for `docx`.
337 + Add `Maybe FilePath` parameter to `yamlToMeta` [API change].
338 + Export `yamlToRefs` [API change], a version of `yamlToMeta`
339 specialized to references.
340 + Set `citationNoteNum` accurately in citations.
341 + Revise abbreviation support. Don't insert a nonbreaking space after a
342 potential abbreviation if it comes right before a note or citation.
343 This causes problems for citeproc's moving of note citations.
347 + Support missing siunitx commands (#6658).
348 + Support `squared`, `cubed`, `tothe` in siunitx (#6657).
349 + Improved uncertainty handling in slunitx.
350 + Factored out siunitx stuff into separate unexposed module.
351 + Fix improper empty cell filtering (#6689, Christian Despres).
352 + Fix parsing of "show name" in `\newtheorem` (#6734).
353 Previously we were just treating it as a string and
354 ignoring accents and formatting.
355 + Prevent wrong nesting of `\multirow` and `\multicolumn` table
356 cells (#6603, Laurent P. René de Cotret).
357 + Table cell parser not consuming spaces correctly (#6596,
358 Laurent P. René de Cotret).
359 + Change `SIRange` to `SIrange` (#6617, Emerson Harkin).
360 + Allow blank lines inside `\author` (#6324).
364 + Don't squelch space at end of emphasis and other inline elements;
365 instead, move it outside the element (#6719).
366 + Implement table cell alignment (#6698, Nils Carlson).
367 + Implement column span support for tables (#6492, Nils Carlson).
368 + Update list of block level tags (#6610).
373 + Don't squelch space at end of emphasis and other inline elements;
374 instead, move it outside the element (#6719).
378 + Apply `.. class::` directly to following Header rather than creating
379 a surrounding Div (#6699).
383 + Allow empty dates in comments and tracked changes (#6726, Diego
388 + Be less aggressive about using quotes for YAML values,
389 allowing e.g. a quotation mark or bracket as long as it's not at the
390 beginning of the line.
391 + Use double quotes for YAML metadata (#6727).
392 + Sort YAML metadata keys in Markdown output case-insensitive.
397 + Support asciidoctor's block figures (#6538, argent0).
401 + Fix spacing issue with list in definition list.
402 When a list occurs at the beginning of a definition list definition,
403 it can start on the same line as the label, which looks bad.
404 Fix that by starting such lists with an `\item[]`.
408 + Support intermediate table headers (#5314, Albert Krewinkel).
409 + Support attributes on all table elements (Albert Krewinkel).
410 + Render table footers if present (#6314, Albert Krewinkel).
411 + Fix addition of `doc-biblioentry` role.
412 + Support colspans and rowspans in HTML tables (#6312, Albert Krewinkel).
416 + Support internal document links (#5541, Leonard Rosenthol).
417 + Changed default link state to invisible (#6676, Leonard Rosenthol).
421 + Better handle list items whose contents are lists (#5948, Michael
422 Hoffmann). If the first element of a bulleted or ordered list is
423 another list, then that first item would previously disappear if the
424 target format is docx.
425 + Separate adjacent tables (#4315). Word combines adjacent tables,
426 so to prevent this we insert an empty paragraph between two
431 + Don't force blank line after headings (#6554).
433 * OpenDocument writer:
435 + Implement table cell alignment (#6700 Nils Carson, Mauro Bieg).
436 + New table cell support with row and column spans (#6682, Nils Carson).
437 + Syntax highlighting for inline code (#6711, niszet).
439 * Add Text.Pandoc.Citeproc module, exporting `processCitations`
440 [API change]. This depends on several other, unexported
441 modules under Text.Pandoc.Citeproc.
443 * Add module Text.Pandoc.Writers.CslJson, exporting `writeCslJson`.
446 * Add module Text.Pandoc.Readers.CslJson, exporting `readCslJson`.
449 * Add module Text.Pandoc.Readers.BibTeX, exporting `readBibTeX` and
450 `readBibLaTeX`. [API change]
452 * Text.Pandoc.Filter: Add `CiteprocFilter` constructor to Filter.
453 [API change] This runs the processCitations transformation.
454 We need to treat it like a filter so it can be placed
455 in the sequence of filter runs (after some, before others).
456 In FromYAML, this is parsed from `citeproc` or `{type: citeproc}`,
457 so this special filter may be specified either way in a defaults file
458 (or by `citeproc: true`, though this gives no control of positioning
459 relative to other filters).
461 * Add new exported module Text.Pandoc.Writers.AnnotatedTable [API change]
462 (#6655, Christian Despres). This module (which should generally
463 be imported qualified to avoid name conflicts) provides a
464 `Table` type that mirrors the structure of a pandoc `Table`,
465 but with added inferred information so that the writers do not have to
466 lay out tables themselves. The `toTable` and `fromTable` functions convert
467 between an annotated `Table` and a regular pandoc `Table`. In addition to
468 producing a `Table` with coherent and well-formed annotations, the
469 `toTable` function also normalizes its input table like the table
470 builder does. Tests ensure that `toTable` normalizes tables exactly
471 like the table builder, and that its annotations are coherent.
473 * Text.Pandoc.Logging:
475 + Remove unused `CouldNotParseYamlMetadata` constructor for `LogMessage`
477 + Add `CiteprocWarning` constructor to `LogMessage` [API change].
479 * Text.Pandoc.Readers.Metadata: export `yamlBsToRefs` [API change].
480 These allow specifying an id filter so we parse only references
481 that are used in the document.
483 * Text.Pandoc.Parsing:
485 + Export ParseError [API change].
486 + Add `stateInNote` and `stateNoteNumber` to `ParserState`
487 [API change]. These are used to populate note numbers for citation
490 * Fix apparent typos in sample.lua (#6729, William Lupton).
491 Also make the writer less aggressive in escaping quotes.
493 * Text.Pandoc.Options:
495 + `defaultMathJaxURL`: use `tex-chtml-full` instead of `tex-mml-chtml`
496 (#6599, Kolen Cheung). This drops the MathML support (which we
497 don't need for HTML math rendering) and includes the full JavaScript,
498 which makes it possible to use `--self-contained` (though there may
499 still be issues if the required math fonts aren't available). This
500 change should also reduce latency in pages with lots of formulas.
501 + Add `/tex-chtml-full.js` to `defaultMathJaxURL` (#6593) Previously we
502 added this in processing command line options, but not in processing
503 defaults files, which was inconsistent.
505 * epub.css: Fix cover page selectors and add note explaining their use
508 * Add data files needed for Text.Pandoc.Citeproc: these include
509 `default.csl` in the data directory and a `citeproc` directory that
510 is only used at compile-time for biblatex localizations. Note that we've
511 added `file-embed` as a mandatory rather than a conditional
512 dependency, because of the biblatex localization files.
516 + Add SimpleTable for backwards compatibility (#6575, Albert Krewinkel).
517 A new type `SimpleTable` is made available to Lua filters. It is
518 similar to the `Table` type in pandoc versions before 2.10;
519 conversion functions from and to the new Table type are provided.
520 Old filters using tables now require minimal changes and can use, e.g.,
522 if PANDOC_VERSION > {2,10,1} then
523 pandoc.Table = pandoc.SimpleTable
529 tbl = pandoc.utils.to_simple_table(tbl)
531 return pandoc.utils.from_simple_table(tbl)
534 to work with the current pandoc version.
536 + Make `attr` argument optional in `Table` constructor (Albert Krewinkel).
537 This changes the Lua API. It is highly unlikely for this change to affect
538 existing filters, since the documentation for the new Table constructor
539 (and type) was incomplete and partly wrong before. The Lua API is now
540 more consistent, as all constructors for elements with attributes now
541 take attributes as the last parameter.
545 * Add a dedicated Citations section which consolidates the information
546 the manual used to contain about citation processing, and incorporates
547 some information formerly found in the pandoc-citeproc man page.
548 + Add note about lualatex using `selnolig`.
549 + Remove duplicate `seriespage` (#6568, Blake Eryx).
550 + Remove lists of support extensions for markdown variants (#6604).
551 Instead, offer the advice to use `--list-extensions=FORMAT`.
552 + Fix position of attributes in header (Albert Krewinkel).
553 + Delete obsolete section on compact and loose lists (#6684).
556 * doc/lua-filters.md:
558 + Add info on how to debug Lua filters (#6732, Ian Max Andolina).
559 + Document Underline type and constructor (Albert Krewinkel).
560 + Document `body` field (Albert Krewinkel).
561 + Add missing header attribute
562 + Add missing Link.title field (Albert Krewinkel).
563 + Make the setting-the-date example conditional (the-solipsist).
564 This makes the example a bit more realistic.
565 + Remove outdated link table example.
569 + Add section on tables (Albert Krewinkel).
570 + Add section on handling of unknown directives (Albert Krewinkel).
572 * CONTRIBUTING.md: fix typo (#6584, Dmitry Volodin).
574 * Use golden test framework for command tests. This means that
575 `--accept` can be used to update expected output.
577 * Use the `smart` extension when generating pandoc's man page (#6613).
579 * Release-candidate: don't build windows i386.
580 So far we haven't been able to figure out how to get
581 stack to use a 32-bit ghc.
583 * Use `null` instead of deprecated `Builder.isNull`.
587 + Fix macospkg target to fetch target from S3 artifacts.
588 + Fix pandoc-templates target to include all partials.
590 * Remove duplicated dependency in pandoc.cabal (#6591, Felix Yan).
592 * Sort build depends in pandoc.cabal alphabetically (#6691,
595 * Add .travis.yml for macos release candidate build (#6622).
596 We need to build the release candidate on Travis rather
597 than GitHub actions, because GH has macos 10.15, and
598 binaries compiled on that OS will not work with 10.13.
599 This build is only triggered on `rc/*` branches.
601 * Remove instructions for building pandoc-citeproc from CI and
602 release binary build instructions. We will no longer distribute
605 * Fix math rendering in trypandoc (this broke after
606 commit d8ad766d17603784b86fc5c2e1b22864125d04d1).
608 * Use latest versions of skylighting, commonmark (#6589),
609 comonmark-extensions, commonmark-pandoc, texmath.
611 * Relax version bounds for hslua, hslua-module-text, bytestring.
613 * Use released pandoc-types 1.22. This changes the JSON
614 encoding slightly for the new table types introduced
615 in 1.21, so they're more consistent with the rest.
616 Developers of libraries for pandoc filters will want
619 * Fix hlint suggestions, update hlint.yaml (#6680, Christian Despres).
621 * Code cleanup (#6678, Joseph C. Sible).
623 * Add haddocks to functions in Text.Pandoc.Writers.Shared (Albert
626 * Remove duplicate `tshow` definition.
628 * Linux release candidate build: use ghc-musl container. This simplifies
629 our build process (over using a customized alpine container).
632## pandoc 2.10.1 (2020-07-23)
634 * Add `commonmark_x` output format. This is `commonmark` with a number
635 of useful pandoc extensions enabled.
637 * Many more extensions now work with `commonmark` and `gfm`.
639 * Add generic `attributes` extension. This allows attributes to
640 be added to any block or inline element in a uniform way. Since
641 the Pandoc AST doesn't include attributes on each element type,
642 the attributes will sometimes be added by creating a surrounding
643 Div or Span container. Currently this extension is only
644 compatible with the `commonmark` and `gfm` readers.
646 To add an attribute to a block-level element, e.g. a paragraph,
647 put it before the block:
652 Multiple attributes may be used and will be combined:
655 {.blue .warning key="val"}
658 To add an attribute to an inline-level element, put it
659 immediately after the element:
661 *emphasized text*{.special}
664 * Support `--number-sections` for docx output (#1413).
668 + Support `\SIRange` reader (#6418, Emerson Harkin).
669 + Support table col-span and row-span (#6311, Laurent P. René de Cotret).
670 Supports `\multirow` and `\multicolumn`.
671 + Support amsthm: `\newtheorem`, `\theoremstyle`, and theorem and
672 proof environments, including labels and references. The only thing
673 that is unsupported is the second optional argument, which causes
674 numbering to be reset after the specified series is incremented.
675 + Moved some code to T.P.LaTeX.Parsing. We need to reduce the size
676 of the LaTeX reader to ease compilation on resource-limited systems.
680 + Fix csv tables with multiline cells (#6549).
681 + Fix spurious newlines in some attributes from directives.
682 + Avoid extra newline in included code blocks.
686 + Switch from cmark-gfm to commonmark-hs for commonmark and gfm
687 parsing. This avoids depending on a C library
688 and allows us to support more pandoc extensions for
689 `commonmark` and `gfm`.
693 + Parse releaseinfo as metadata (#6542).
697 + Only use `bCs/iCs` on runs with `rtl` or `cs` property (#6514, Nikolay
699 + Code cleanup/refactoring (Nikolay Yakimov).
701 * Org reader (Albert Krewinkel):
703 + Respect export setting which disables entities
704 MathML-like entities, e.g., `\alpha`, can be disabled with the
705 `#+OPTION: e:nil` export setting (Albert Krewinkel).
706 + Respect export setting disabling footnotes. Footnotes can be removed
707 from the final document with the `#+OPTION: f:nil` export setting.
708 + Respect tables-excluding export setting. Tables can be removed from
709 the final document with the `#+OPTION: |:nil` export setting.
713 + Move `asciify` out of `escapeString`. Otherwise `unsmartify`
714 doesn't catch quotes that have already been turned to entities.
715 + Add `writeCommonmark` (new exported function, API change).
716 + Use unicode super/subscript characters when possible if the
717 `superscript` or `subscript` extension or `raw_html` aren't available.
718 + Render caption as following paragraph when `table_caption` extension
720 + Use numerical labels for reference links that are longer
721 than 999 characters or contain square brackets, for conformity
722 with commonmark (#6560).
726 + Instead of using cmark-gfm, use `writeCommonmark` from the
727 Markdown writer. This function calls the markdown writer
728 with appropriate extensions and a few small modifications
729 (e.g. not requiring backslashes before spaces inside
730 super/subscripts). With this change `comonmark` and
731 `gfm` output can be used with a wider selection of
734 * Jira writer: keep image caption as alt attribute (#6529, Albert
739 + Improve alt-text/caption handling for HTML5 (#6491, Albert Krewinkel).
740 Screen readers read an image's `alt` attribute and the figure caption,
741 both of which come from the same source in pandoc. The figure caption is
742 hidden from screen readers with the `aria-hidden` attribute. This
743 improves accessibility. For HTML4, where `aria-hidden` is not allowed,
744 pandoc still uses an empty `alt` attribute to avoid duplicate contents.
748 + Fix code highlighting with blank lines. Previously blank lines
749 were simply omitted from highlighted code.
750 + Escape starting periods in ms writer code blocks (#6505, Michael
751 Hoffmann). If a line of ms code block output starts with a period (.),
752 it should be prepended by `\&` so that it is not interpreted as a roff
755 * Text.Pandoc.Extensions:
757 + Add `raw_markdown` extension (which only affects `ipynb`
759 + Trim down `githubMarkdownExtensions`.
760 Previously it included all of the following, which make
761 sense for the legacy `markdown_github` but not for `gfm`,
762 since they are part of base commonmark and thus
763 can't be turned off in `gfm`:
765 - `Ext_all_symbols_escapable`
766 - `Ext_backtick_code_blocks`
767 - `Ext_fenced_code_blocks`
768 - `Ext_space_in_atx_header`
769 - `Ext_intraword_underscores`
770 - `Ext_lists_without_preceding_blankline`
771 - `Ext_shortcut_reference_links`
773 These have been removed from `githubMarkdownExtensions`, though
774 they're still turned on for legacy `markdown_github`.
775 + Add `Ext_attributes` constructor for `Extension` [API change].
777 * LaTeX template: use selnolig to selectively suppress ligatures with
780 * Benchmark bytestring readers (Nikolay Yakimov).
784 + Update using-the-pandoc-api.md (favonia).
785 + Fix Typos in lua-filters.md (tajmone).
786 + Rewrite Raw HTML/TeX section in MANUAL.txt to avoid duplicate
787 headings for the extensions.
788 + Fix typo in MANUAL.txt (Benjamin Wuethrich).
789 + Remove duplicate 'titlepage' in MANUAL.txt (Blake Eryx).
790 + CONTRIBUTING.md: Advertise the official nightlies in GitHub actions.
791 Replaces #6500, thanks to @ickc.
795## pandoc 2.10 (2020-06-29)
797 * Use pandoc-types 1.21. This adds two things:
799 + A native Underline constructor for Inline (#6277, Vaibhav Sagar).
800 + More expressive types for tables (#1024, Christian Despres).
801 Tables can now take attributes; and rowspans and colspans,
802 column headers, multiple row headers, table head and foot
803 can all be represented. (Note, however, that reader and
804 writer support for these features is still lacking, so
805 most users won't see any differences in table conversion
806 yet. These changes just lay the foundation for further
809 * Support new Underline element in readers and writers (#6277,
812 * Support new Table type (Christian Despres).
813 The Builder.simpleTable now only adds a row to the TableHead
814 when the given header row is not null. This uncovered an
815 inconsistency in the readers: some would unconditionally
816 emit a header filled with empty cells, even if the header
817 was not present. Now every reader has the conditional
818 behaviour. Only the XWiki writer depended on the header row
819 being always present; it now pads its head as necessary.
821 * Add an option to disable certificate validation (#6156, Cédric Couralet,
822 Cécile Chemin, Juliette Fourcot). This commit adds the option
823 `--no-check-certificate`, which disables certificate checking when
824 resources are fetched by HTTP.
826 * Unify defaults and markdown metadata parsers (#6328, Nikolay
827 Yakimov). Clean up code in Text.Pandoc.Readers.Metadata and
828 properly handle errors in `yamlToMeta`. This fixes parsing
829 of Boolean fields in metadata withinin defaults files and reduces
834 + Implement `<procedure>` (#6442, Mathieu Boespflug).
835 + Implement `<phrase>` (#6438, Mathieu Boespflug).
836 + Treat envar and systemitem like code (#6435, Mathieu Boespflug).
837 + Implement `<replaceable>` (#6437, Mathieu Boespflug)
838 + Map `<simplesect>` to unnumbered section (#6436, Mathieu Boespflug).
842 + Handle "label" element in section title (#6288).
843 + Parse abstract element into metadata field of same name
844 (#6480, Albert Krewinkel).
846 * Jira reader (Albert Krewinkel):
848 + Resolve multiple parsing problems, including issues with empty
849 table cells, faulty recognition of closing emphasis characters, and
850 parsing of image attributes (#6212, #6219, #6220).
851 + Two consecutive markup chars are now parsed verbatim (#6343);
852 styled text must not be empty.
853 + Newlines are no longer allowed within styled text (#6325).
854 + Links to anchors are now parsed as links (#6407).
855 + Retain image attributes (#6234). Jira images attributes as in
856 `!image.jpg|align=right!` are retained as key-value pairs. Thumbnail
857 images, such as `!example.gif|thumbnail!`, are marked by a
858 `thumbnail` class in their attributes.
859 + Use Underline for inserted text (#6237). Previously, the span was
860 marked with the non-standard class `inserted`.
861 + Improve icon conversion for `(/)`, `(x)`, `(!)`, `(?)`
862 `(+)`, `(-)`, `(off)`, `(*)`. (#6236, #6264).
863 + Support citations, attachment links, and user links (#6231, #6238,
865 + Resolve parsing issues of blockquote, color (#6233, #6235).
869 + Parse attributes into table attributes.
870 + Support `<bdo>` (#5794, Tristan de Cacqueray).
871 + Add `summary` to list of block-level HTML tags (#6385).
872 This improves support for summary/details inside Markdown.
873 NOTE: you need to include a blank line before the closing
874 `</details>`, if you want the last part of the content to
875 be parsed as a paragraph.
876 + Fix parsing unclosed th elements in a table (#6247).
878 * Commonmark reader: Implement `implicit_figures` extension (#6350).
882 + Fix inline code in lists (#6284, Nikolay Yakimov).
883 Previously inline code containing list markers was sometimes
885 + Don't require blank line after grid table (#6481).
886 This allows grid tables to be enclosed in fenced divs with no
887 intervening blank lines.
891 + Don't parse beyond `\end{document}` (#6380).
892 This required some internal changes to `\subfile` handling.
893 + Better handling of `\lettrine`. SmallCaps instead of Span
894 for the part after the initial capital. Ensure that both
895 arguments are parsed, so that in Markdown both
896 are treated as raw LateX. (Closes #6258.)
898 * Org reader (Albert Krewinkel):
900 + Recognize images with uppercase extensions (#6472).
901 + Keep unknown keyword lines as raw org. The lines of unknown
902 keywords, like `#+SOMEWORD: value` are no longer read as metadata,
903 but kept as raw `org` blocks. This ensures that more information
904 is retained when round-tripping org-mode files; additionally,
905 this change makes it possible to support non-standard org
906 extensions via filters.
907 + Unify keyword handling. Handling of export settings and other
908 keywords (like `#+LINK`) has been combined and unified.
909 + Support `LATEX_HEADER_EXTRA` and `HTML_HEAD_EXTRA`
910 settings. These export settings are treated like their non-extra
911 counterparts, i.e., the values are added to the `header-includes`
913 + Allow multiple `#+SUBTITLE` export settings. The values of all
914 lines are read as inlines and collected in the `subtitle`
916 + Read `#+INSTITUTE` values as text with markup. The value is
917 stored in the `institute` metadata field and used in the
918 default beamer presentation template.
919 + The behavior of the `#+AUTHOR` and `#+KEYWORD` export
920 settings has changed: Org now allows multiple such lines
921 and adds a space between the contents of each line. Pandoc
922 now always parses these settings as meta inlines; setting
923 values are no longer treated as comma-separated lists.
924 Note that a Lua filter can be used to restore the previous
926 + Read description lines as inlines (#6485). `#+DESCRIPTION` lines
927 are now treated as text with markup. If multiple such
928 lines are given, then all lines are read and separated by soft
930 + Honor tex export option (#4070). The `tex` export option can be set
931 with `#+OPTION: tex:nil` and allows three settings:
932 `t` (the default) causes LaTeX fragments to be parsed as TeX or added
933 as raw TeX. `nil` removes all LaTeX fragments from the document.
934 `verbatim` treats LaTeX as text.
939 + Pass arbitrary attributes through in code blocks (#6465).
940 Exceptions: name (which becomes the id), class (which becomes the
941 classes), and number-lines (which is treated specially to fit
942 with pandoc highlighting).
943 + Handle `date::` directive (#6276).
945 * Textile reader: support `pre.` for code blocks (#6454).
949 + Implement `raw_markdown` extension (#5408). Specifying
950 `-f ipynb+raw_markdown` will cause Markdown cells
951 to be represented as raw Markdown blocks, instead of being
952 parsed. This is not what you want when going from `ipynb`
953 to other formats, but it may be useful when going from `ipynb`
954 to Markdown or to `ipynb`, to avoid semantically insignificant
955 changes in the contents of the Markdown cells that might
956 otherwise be introduced.
957 + Handle application/pdf output as image (#6430).
958 + Properly handle image/svg+xml as an image (#6430).
962 + Distinguish between docx parsing and docx container unpacking errors.
966 + Fix `gfm_auto_identifiers` so that `-` is not replaced by `_` (#6335).
970 + Add nested syntax highlighting (#6256, Vlad Hanciuta).
971 Nested syntaxes are specified like this:
977 The preformatted code block parser has been extended to check if the
978 first attribute of the block is not a `key=value` pair, and in that
979 case it will be considered as a class.
982 * Jira writer (Albert Krewinkel):
984 + Always escape braces (#6478). Braces are now always escaped, even
985 within words or when surrounded by whitespace. Jira and
986 Confluence treat braces specially.
987 + Convert Underline to inserted text (`+inserted+`).
988 + Add image attributes (#6234). Image attributes are added
989 to the output as image parameters. If the image has a
990 class "thumbnail", then a thumbnail image is generated;
991 all other attributes are discarded in this case.
995 + Ensure that `-M csquotes` works even in fragment mode (#6265).
996 + Escape `^` specially for listings (#6460).
997 + Create hypertarget for links with identifier (#6360).
998 + Distinguish between single and double quotes when using enquote
999 package (#6457, dbecher-ito).
1000 + Add support for customizable alignment of columns in beamer (#6331,
1002 + Add support for customizable alignment of columns in beamer
1003 (#4805, #4150, andrebauer).
1007 + Use CSS in favor of `<br>` for display math (#6372)
1008 Some CSS to ensure that display math is
1009 displayed centered and on a new line is now included
1010 in the default HTML-based templates; this may be
1011 overridden if the user wants a different behavior.
1015 + Clean-up Div handling (Albert Krewinkel).
1019 + Enable column and row bands for tables (#6371).
1020 This change will not have any effect with the default style.
1021 However, it enables users to use a style (via a reference.docx)
1022 that turns on row and/or column bands.
1024 * OpenDocument (and ODT) writer:
1026 + Add custom-style "Abstract" in metadata abstract.
1027 This ensures that the abstract is rendered with style Abstract.
1028 + Enable custom-style attribute on a Div.
1029 This allows you to apply a custom style to contained paragraphs.
1033 + Add id of figure to enclosed image.
1034 + Add personname element to docbook author (#6244).
1038 + Properly handle cover-image containing spaces (#6391).
1042 + Ensure consistent padding for pipe tables (#6240).
1043 + Avoid unnecessary escapes before intraword `_` when
1044 `intraword_underscores` extension is enabled (#6296).
1048 + Properly handle images with same alt text (#6194).
1049 Previously we created duplicate references for these in rendering RST.
1053 + Add blank line after Div (#6308).
1057 + Support Haddock tables (Joe Hermaszewski).
1058 See this PR on Haddock for details on the table format:
1059 <https://github.com/haskell/haddock/pull/718>.
1061 * PowerPoint writer (Jesse Rosenthal):
1063 + Write math input verbatim in speaker notes (#6301).
1064 OMML in speaker notes would lead to corrupt PowerPoint output. We now
1065 output the OMML verbatim as LaTeX in the speaker notes.
1067 * LaTeX template: Make polyglossia package options list-aware
1068 (#6444, Frederik Elwert).
1070 * Reveal.js template:
1072 + Update template for reveal.js 4.0.0 (#6390, Salim B).
1073 + Update template with newly available options (#6347, Jake Zimmerman).
1074 + Use CDN version of revealjs v4 by default (#6408).
1076 * opendocument template: Add abstract and subtitle to opendocument
1079 * reference.odt: clean up styles. Add Abstract.
1080 Change Author, Date to centered paragraphs with no character
1083 * epub.css: wrap overlong lines in highlighted code blocks (#6242).
1084 This fixes a problem in iBooks v2.4 with our earlier
1085 horizontally scrolling code blocks. The problem seems to
1086 be a bug in iBooks, not pandoc, but since iBooks is a major
1087 target we're changing pandoc's default behavior so that
1088 pandoc-produced epubs work on that platform.
1092 + Use `--enable-local-file-access` in invoking `wkhtmltopdf` (#6474).
1093 `wkhtmltopdf` changed in recent versions to require this for
1094 access to local files. This fixes PDF via HTML5 with `--css`.
1095 + Send verbose output to stderr, not stdout (#6483).
1097 * Text.Pandoc.MIME: Fix MIME type for TrueType fonts in EPUBs
1098 (#6464, Michael Reed).
1100 * Text.Pandoc.Shared:
1102 + `makeSections`: omit number attribute when unnumbered class
1103 is present (#6339). Previously the attribute was included but given
1104 an empty value, and this caused the table of contents creation
1105 functions in Text.Pandoc.Writers.Shared to think these items had
1106 numbers, which meant that they were included in the TOC even if the
1107 `unlisted` class was used.
1108 + Deprecate `underlineSpan` in Shared in favor of
1109 `Text.Pandoc.Builder.underline` (Vaibhav Sagar).
1110 + `renderTags'`: use self-closing tag for col element (#6295).
1112 * Text.Pandoc.UUID: Fix `getRandomUUID`, which previously would
1113 return the same value twice in a row. Make `getRandomUUID`
1114 polymorphic in PandocMonad. Remove `getUUID` (#6228, Joseph C. Sible).
1116 * Text.Pandoc.Class: Generalize `PandocIO` functions to `MonadIO`.
1118 * Fixed Katex standalone script (#6399, Lucas Escot).
1119 Global macros are now persistent when using the HTML Writer with the
1122 * Lua subsystem (Albert Krewinkel):
1124 + Use new type PandocLua for all pandoc Lua operations (API change).
1125 The new type `PandocLua` is an instance of the `PandocMonad` typeclass
1126 and can thus be used in a way similar to `PandocIO`.
1127 + Use PandocError for exceptions in Lua subsystem (API change).
1128 The PandocError type is used throughout the Lua subsystem. All Lua
1129 functions throw an exception of this type if an error occurs. The
1130 `LuaException` type is removed and no longer exported from
1131 `Text.Pandoc.Lua`. In its place, a new constructor `PandocLuaError`
1132 is added to PandocError.
1134 * Lua filters: improve error messages for failing filters (#6332,
1135 Albert Krewinkel). Print the Lua error properly instead of
1136 displaying their `show` string.
1138 * Use latest skylighting. This fixes a bug with lua multiline
1139 comments (and may improve handling of other syntaxes as well).
1140 IT also adds `aria-hidden="true"` to the empty a elements, which
1141 helps people who use screen readers.
1143 * Use latest texmath.
1145 * Require latest doctemplates 0.8.2.
1146 This adds support for template pipes `first`, `rest`,
1147 `last`, `allbutlast`.
1149 * Revert 0e48a02 and dependency on base-noprelude, which hasn't
1150 been updated for ghc 8.10 (see #6187).
1152 * Dependency adjustments:
1154 + Allow haddock-library 1.9.x.
1155 + Allow hslua 1.1 (#6243, Felix Yan).
1156 + Allow base64-bytestring 1.1.
1157 + Use latest jira-wiki-markup.
1158 + Allow http-client 0.7.
1159 + Allow tasty 1.3.x.
1160 + Allow aeson 1.5 (#6400, Felix Yan).
1161 + Remove unused dependency `vector` (#6462, Laurent P. René de Cotret).
1162 + Bump QuickCheck upper bound.
1164 * Significant code cleanup and simplification (Joseph C. Sible, #6223,
1165 #6209, #6225, #6229, #6226, #6340).
1167 * Remove unnecessary hlint ignores (#6341, Joseph C. Sible).
1169 * Remove obsolete RelaxedPolyRec extension (#6487, Nikolay Yakimov).
1171 * trypandoc improvements (Mike Tzou):
1173 + Add standalone option to the command text (#6210).
1174 + Update third party libraries.
1178 + Clarify template partial naming (#6476, Mauro Bieg).
1179 + Describe `jira` as "Jira/Confluence wiki markup" (#6351, Albert
1180 Krewinkel). In the past, Jira's wiki markup was also used by -- and
1181 could be imported into -- Atlassian Confluence.
1182 + Add link to print-css.rocks (#6272, Mauro Bieg).
1183 + Clarify pipe table column width adjustment (#6254).
1184 + Fix ATX header syntax.
1185 + Fix misleading note about image size conversions (#6353).
1186 + Update links to reveal.js documentation (#6386, Salim B).
1187 + Separate adjacent verbatim code blocks (#6307, tom-audm).
1191 + Document behavior of `smart` extension (#4387, Albert Krewinkel).
1192 + Describe all supported export options in detail.
1196 + Fix description of BulletList Lua type (Levi Gruspe).
1197 + Use pandoc.system module in TikZ example (Albert
1198 Krewinkel). Showcase temporary directory handling with
1199 `with_temporary_directory` and `with_working_directory`.
1201 * INSTALL.md: fix FreeBSD port link (#6422, Mo).
1202 The FreeBSD port was renamed from pandoc to hs-pandoc in 2010.
1203 The old pandoc port is still at version 1.5.1.1
1205 * Propagate `(DY)LD_LIBRARY_PATH` in tests (#6376, Lila).
1207 * Bump `cabal-version` to 2.2 (#6377).
1209 * Make it possible to compile using Stack on NixOS (#6439, Mathieu
1212 * CI action to check for commit message length (Nikolay Yakimov, #6398).
1215## pandoc 2.9.2.1 (2020-03-23)
1217 * Markdown reader: Fix table alignment when heading begins with t (#6153).
1218 Due to a typo (`t` instead of `\t`) we were center aligning column
1219 headings that begin with a lowercase `t`!
1221 * Text.Pandoc.Readers.Roff:
1223 + Fix parsing of `\.` in man/ms readers (#6175).
1224 Previously due to a typo it was being parsed as `` ` ``.
1225 + Fix parsing of `\'` in man/ms readers (#6175). It was being parsed
1228 * Jira reader (Albert Krewinkel):
1230 + Fix parsing of tables without preceding blankline (#6198).
1231 A bug was fixed which caused faulty parsing if a table was not
1232 preceded by a newline and the first table cell had no space
1233 after the initial `|` characters.
1234 + Fix parsing of strikeout, emphasis (#6196). A bug was fixed which
1235 caused non-emphasized text containing digits and/or non-special
1236 symbols (like dots) to sometimes be parsed incorrectly.
1237 + Support colored inline text, indented lists (#6183, #6184).
1241 + Fix definition lists so indent even when paragraph indent is
1242 set to 0 (as is the default). Also ensure indent for display math
1243 that falls back to TeX.
1244 + Use `.QS/.QE` instead of `.RS/.RE` for block quotes.
1246 * EPUB writer: fix regression on detection of front/back/bodymatter
1247 (#6170). This bug caused sections with epub:type `dedication` to be
1248 misplaced in bodymatter instead of frontmatter as specified
1249 in the manual. The same problem would affect other epub:types.
1250 The pattern matching needed to be changed with the use of
1253 * AsciiDoc writer: remove redundant `otherwise` guard in
1254 `inlineToAsciiDoc` (#6146, Ryan Scott).
1256 * Text.Pandoc.Class:
1258 + Fix missing import when data files are not embedded (Albert Krewinkel).
1259 + Subdivide Text.Pandoc.Class into small unexported modules
1260 and ensure that all functions have Haddock documentation (#6106,
1262 + Finer grained imports of Text.Pandoc.Class submodules (#6203, Albert
1265 * Text.Pandoc.XML: Add to list of HTML5 attributes:
1266 `allow`, `autocapitalize`, `decoding`, `enterkeyhint`,
1267 `imagesizes`, `imagesrcset`, `loading`.
1269 * Use implicit Prelude (#6187, Albert Krewinkel).
1270 The previous behavior was introduced as a fix for #4464. It seems that
1271 this change alone did not fix the issue, and `stack ghci` and `cabal
1272 repl` only work with GHC 8.4.1 or newer, as no custom Prelude is loaded
1273 for these versions. Given this, it seems cleaner to revert to the
1276 * Always use custom prelude (#6187, Albert Krewinkel).
1277 Previously, the custom prelude was used only with older GHC versions, as
1278 a workaround for problems with ghci. The ghci problems are resolved by
1279 replacing package `base` with `base-noprelude`, allowing for consistent
1280 use of the custom prelude across all GHC versions.
1282 * Remove outdated checks for no longer supported base versions
1285 * PDF via wkhtmltopdf: put user-specified options last (#6171).
1286 Certain options (e.g. `cover`) need to come after flags on
1289 * Text.Pandoc.App: set resource path at the beginning so it can affect
1290 things like include-in-header (#5982).
1292 * Change macOS release candidate CI process so that notarized
1293 packages can be produced (#6169).
1295 * Make MANUAL more explicit about nonbreaking space handling by
1296 `all_symbols_escapable` (#6154, Fabien Schurter).
1298 * trypandoc (Mike Tzou):
1300 + Add checkbox for standalone option (#6189).
1301 + Use strict mode for JavaScript code (#6188).
1302 + Fetch resources over https (#6188).
1303 + Remove unnecessary attributes on style, script elements (#6188).
1305 * Use details tag to make GitHub releases changelog collapsible.
1307 * Update filter code in doc/filters.md so it works with latest pandoc
1310 * linux/Dockerfile: upgrade to alpine 3.11 (#6180, Albert Krewinkel).
1311 This is used to build the static linux binaries.
1314## pandoc 2.9.2 (2020-02-15)
1316 * Add `csv` as an input format (#6100). The CSV table is converted into a
1317 pandoc simple table. A new module Text.Pandoc.Readers.CSV
1318 exports `readCSV` [API change].
1320 * Introduce new format variants for JATS writer (#6014, Albert Krewinkel):
1322 - `jats_archiving` for the "Archiving and Interchange Tag Set",
1323 - `jats_publishing` for the "Journal Publishing Tag Set", and
1324 - `jats_articleauthoring` for the "Article Authoring Tag Set."
1326 The `jats` output format is now an alias for `jats_archiving`.
1327 The module Text.Pandoc.Writers.JATS now exports
1328 `writeJatsArchiving`, `writeJatsPublishing`, and
1329 `writeJatsArticleAuthoring`, as well as the legacy
1330 `writeJATS` [API change].
1332 * `--defaults`: Support `bibliography` and `csl` fields.
1333 Move `addMeta` from Text.Pandoc.App.CommandLineOptions to
1334 Text.Pandoc.App.Opt (internal change).
1336 * Add timing info for filters in `--verbose` mode (#6112).
1337 When verbose mode is specified (verbosity == INFO), print a
1338 notice when running a filter and when a filter completes (including
1343 + Allow `&` in LaTeX citation keys (#6110).
1344 + Improve caption and label parsing.
1345 + Don't emit empty Span elements for labels.
1346 + Put tables with labels in a surrounding Div.
1347 + Resolve `\ref` to table numbers (#6137).
1348 + Skip comments in more places where this is needed (#6114).
1349 + Allow beamer overlays for all commands in all raw tex (#6043).
1350 This affects parsing of raw tex in LaTeX and in Markdown and
1352 + Improve parsing of raw environments (#6034). If parsing fails
1353 in a raw environment (e.g. due to special characters like unescaped
1354 `_`), try again as a verbatim environment, which is less sensitive to
1355 special characters. This allows us to capture special environments
1356 that change catcodes as raw tex when `-f latex+raw_tex` is used.
1360 + Add highlight directive (#6140, Lucas Escot).
1364 + Prevent triple `[[[` which confuses MediaWiki (#6119).
1368 + Don't parse `data-id` as `id` attribute. And similarly don't
1369 parse any `data-X` as `X` when `X` is a valid HTML attribute.
1373 + Simplify parsing of sub- and superscripts (#6127, Albert Krewinkel).
1374 Speeds up parsing of single-word, markup-less sub- and superscripts.
1378 + Group biblatex citations even with prefix and suffix (#5849, Ethan
1379 Riley). Previously biblatex citations were only grouped if there
1380 was no prefix. This patch allows them to be grouped in subgroups split
1381 by prefixes and suffixes, which allows better citation sorting.
1382 + Fix regression in handling of columns in beamer slides (#6033).
1383 Columns in title slides were causing problems with
1385 + Fix duplicate frame classes in LaTeX/Beamer output (#6107).
1389 + Fix duplicate attributes on headings (#6062), regression from 2.7.x.
1390 + Fix `--number-offset` with HTML TOC. Eventually it would be worth
1391 adding a parameter to `makeSections` so this could be done at that
1392 level; then it would also affect other writers that construct
1394 + reveal.js: restore old behavior for 2D nesting (#6032).
1395 The fix to #6030 actually changed behavior, so that the
1396 2D nesting occurred at slide level N-1 and N, instead of
1397 at the top-level section. This commit restores the v2.7.3 behavior.
1398 If there are more than 2 levels, the top level is horizontal
1399 and the rest are collapsed to vertical.
1400 + reveal.js: ensure that pauses work even in title slides (#5819).
1404 + Fix regression: spurious dots in markdown_mmd metadata output (#6133).
1408 + Fix regression with Compact style on tight lists (#6072).
1409 Starting in 2.8, the docx writer no longer distinguishes between tight
1410 and loose lists, since the Compact style is omitted. This is a
1411 side-effect of the fix to #5670, as explained in the changelog. This
1412 patch fixes the problem by extending the exception currently offered to
1413 Plain blocks inside tables to Plain blocks inside list items.
1417 + Fix output of table headers (Albert Krewinkel, #6035).
1419 * Add Text.Pandoc.Image with unexported svgToPng.
1421 * Text.Pandoc.XML: Export `html5Attributes`, `html4Attributes`,
1422 `rdfaAttributes` (formerly unexported in Text.Pandoc.Writers.HTML).
1425 * Text.Pandoc.Shared: Export a new function `findM` (#6125,
1428 * Text.Pandoc.Logging: Add `RunningFilter`, `FilterCompleted`
1429 constructors to LogMessage [API change].
1431 * Text.Pandoc.CSV: fix bug in CSV parser; previously an extra blank record
1432 would sometimes be inserted at the end.
1434 * LaTeX template: add space option to xeCJK with PassOptionsToPackage
1435 (#6002). Otherwise we can get a clash with documentclasses that
1436 already load the package.
1440 + Allow filtering of element lists (#6038, Albert Krewinkel). Lists of
1441 Inline and Block elements can now be filtered via `Inlines` and
1442 `Blocks` functions, respectively. This is helpful if a filter
1443 conversion depends on the order of elements rather than a single
1444 element. For example, the following filter can be used to remove all
1445 spaces before a citation:
1447 function isSpaceBeforeCite (spc, cite)
1448 return spc and spc.t == 'Space'
1449 and cite and cite.t == 'Cite'
1452 function Inlines (inlines)
1453 for i = #inlines-1,1,-1 do
1454 if isSpaceBeforeCite(inlines[i], inlines[i+1]) then
1461 + Add methods `insert`, `remove`, and `sort` to pandoc.List
1462 (Albert Krewinkel). Example of use:
1464 local numbers = pandoc.List {2, 3, 1}
1465 numbers:sort() -- numbers is now {1, 2, 3}
1466 + Make `pandoc.List` a callable constructor (Albert Krewinkel).
1467 It is now possible to construct a new List via
1468 `pandoc.List()` instead of `pandoc.List:new()`.
1469 + Add tests for pandoc.List module (Albert Krewinkel).
1471 * Text.Pandoc.App.CommandLineOptions: Change `setVariable` to use `Text`
1472 instead of `String`. This avoids some unnecessary unpacking.
1474 * Use versioned directory for windows release zipfile.
1475 Also remove old `make-windows-installer.bat`, superseded by GitHub
1476 actions workflow, and modify `pandoc.wxs` for new paths.
1478 * Extensive code cleanup (#6141, #6128, #6129, #6130, #6123,
1479 #6105, 6102, #6117, #6124, #6115, #6116, #6111, Joseph C. Sible).
1481 * Fix hlint warnings (Albert Krewinkel).
1483 * Use latest doclayout, doctemplates (#6031). The new version of
1484 doclayout fixes a memory leak that affected `--include-in-header` with
1485 large files (and possibly other cases involving extremely long lines).
1487 * Use latest texmath.
1489 * Use latest skylighting and fix test suite (#6086).
1491 * sample.lua: Fix typo in descriptive comments (#6136, Caleb Maclennan).
1492 Fix typo in error message (#6135).
1494 * Add Docker and GH Actions instructions/links to INSTALL.md.
1496 * Update filter documentation (#6065). Improve cabal v2 instructions.
1497 Remove example using pandoc API directly (we have other
1498 docs for that and it was outdated).
1502 + Cross-link constructors and types (Albert Krewinkel).
1503 Thanks to @bpj for the idea.
1504 + Sort pandoc.List methods alphabetically (Albert Krewinkel).
1505 + Unify, fix anchors and internal links (#6061, Albert Krewinkel).
1506 Links and anchors now follow consistent conventions, like
1507 lowercase-only anchor names. This breaks some links to specific
1508 sections in the document, but will make it much easier to link
1509 documentation in the future.
1510 + Clarify filter function execution order (#6059, Albert Krewinkel).
1512 * In docs, update URLs and use `https:` wherever possible (#6090,
1515## pandoc 2.9.1.1 (2020-01-05)
1519 + Fix parsing bug affected indented code after raw HTML (#6009, #5360).
1523 + Fix regression in beamer slide structure with certain slide levels
1525 + Allow framebreaks for beamer's TOC (Heiko Schlittermann, #6012)
1526 + Properly handle unnumbered headings level 4+ (#6018).
1527 Previously the `\paragraph` command was used instead of
1528 `\paragraph*` for unnumbered level 4 headings.
1532 + Fix revealjs slide structure regression with certain slide levels
1534 + Add newlines to make slide show output more readable.
1538 + Remove extra spaces from table cells (Albert Krewinkel, #6024).
1540 * JATS template: Update JATS dtd (Arfon Smith, #6020). Use the archiving
1541 and interchange DTD rather than the more restrictive journal publishing
1542 DTD (which doesn't permit ext-link as a valid child).
1544 * Text.Pandoc.PDF: Fix `runTeXProgram` so that the input source is always
1545 overwritten (#6027). Previously it wasn't overridden if the file already
1546 existed, which led to bad results on subsequent runs when
1547 `pdf-engine-opt=-output-directory=` was used to specify an explicit temp
1550 * Text.Pandoc.BCP47: Change `getLang` to handle block-level contents
1551 (#6008). Some readers (e.g. RST) will populate the `lang` metadata field
1552 with block-level content. `getLang` has been modified to handle this.
1553 Previously in these cases the LaTeX writer would not properly set the
1554 "main language" of the document.
1556 * Fix `test/tables.org` (Albert Krewinkel).
1558 * Use HTTPS in copyright message (Felix Yan, #6010)
1561## pandoc 2.9.1 (2019-12-23)
1563 * Add Jira reader (Albert Krewinkel, #5556).
1565 * Jira writer: use jira-wiki-markup renderer (Albert Krewinkel,
1566 #5926). The following improvements are included in this change:
1568 + non-jira raw blocks are fully discarded instead of showing
1570 + table cells can contain multiple blocks;
1571 + unnecessary blank lines are removed from the output;
1572 + markup chars within words are properly surrounded by
1574 + preserving soft linebreaks via `--wrap=preserve` is
1577 Note that backslashes are rendered as HTML entities, as there
1578 appears no alternative to produce a plain backslash if it is
1579 followed by markup. This may cause problems when used with
1580 confluence, where rendering seems to fail in this case.
1582 * Fix regression with `--number-sections`. Starting with 2.8,
1583 `--number-sections` also had the effect of `--section-divs`,
1584 even if `--section-divs` was not specified.
1586 * Improved table of contents generation in markdown, RTF,
1587 commonmark, better handling cases where section headings are
1590 * Ensure that later default file values for `variable` replace
1591 earlier ones (5988).
1593 * HTML reader: Add `nav` to list of block-level tags.
1595 * Org reader (Albert Krewinkel):
1597 + Wrap named table in Div, using name as id (#5984).
1598 Tables which are given a name via `#+NAME:` or `#+LABEL:`
1599 are wrapped in an additional Div, with the name set as the
1601 + Report parsing errors properly.
1602 + Fix parsing problem for colons in headline (#5993).
1604 * Text.Pandoc.PDF: Ensure UTF8 when printing source in
1605 `--verbose` mode, avoiding an error on platforms that
1606 default to something other than UTF-8 (#5997).
1608 * Text.Pandoc.Templates: Strip directory before trying to find
1609 partial in data files (#5987).
1611 * Text.Pandoc.Shared: Improve `makeSections` so we don't get
1612 doubled "number" attributes in EPUB output (or anywhere
1615 * Added tests for `--toc` and `--section-divs`.
1617 * Text.Pandoc.MIME: Added glsl MIME type for WebGL maps (#6000,
1620 * MANUAL: A bit clearer explanation for `--base-header-level`.
1621 We now say exactly how to translate between the deprecated
1622 `--base-header-level` and `--shift-heading-level-by`.
1626 + Remove spurious dot in title (#5996, Mauro Bieg).
1627 + Replace metadata example with image centering (#6004,
1628 Albert Krewinkel). Thanks to @efx for proposing this filter.
1631## pandoc 2.9 (2019-12-11)
1633 * Text.Pandoc.Templates [API change]
1635 + Add Monad wrappers `WithDefaultPartials` and `WithPartials`.
1636 Wrapping these around an instance of `PandocMonad` gives
1637 us different instances of `TemplateMonad`, with different
1638 search behavior in retrieving partials.
1639 To compile a template and limit partial search to pandoc's
1640 data files, use `runWithDefaultPartials (compileTemplate ...)`.
1641 To compile a template and allow partials to be found locally
1642 (either on the file system or via HTTP, in the event that
1643 the main template has an absolute URL), ue
1644 `runWithPartials (compileTemplate ...)`.
1645 + Export `getTemplate`, which seeks a template locally,
1646 or via HTTP if the template has an absolute URL, falling
1647 back to the data files if not found.
1648 + Export `compileDefaultTemplate` -- does `getDefaultTemplate`
1649 and compiles the result, raising an error on failure.
1651 * Text.Pandoc.Class [API change]
1653 + Remove `TemplateMonad` instances for `PandocIO` and `PandocPure`.
1654 These were too limiting and caused a bug whereby a local
1655 partial could be used even when the default template was requested.
1656 We now rely on instances provided in the Templates module.
1658 * Text.Pandoc.App.OutputSettings: Simplify template retrieval code.
1660 * ConTeXt template: Adjust to title formatting (#5949, Denis Maier).
1661 Add `\setupinterlinespace` to `title`, `subtitle`, `date` and `author`
1662 elements: otherwise longer titles that run over multiple lines will look
1663 squashed as `\tfd` etc. won't adapt the line spacing to the font size.
1665 * reveal.js template: Add title-slide-attributes variable (#5981,
1668 * More informative JSON parse error (#5973).
1670 * Use external emojis package (forked from pandoc). Removed emoji data
1671 in Text.Pandoc.Emoji.
1673 * Fix regression in `makeSections` (#5965).
1674 Previously `hierarchicalize` (the ancestor of `makeSections`) would put
1675 header attributes on the containing Div. In 2.8 this behavior changed,
1676 which broke some tools depending on pandoc. Here we roll back this change,
1677 so that attributes again migrate from the header to the containing Div when
1678 `makeSections` is run. Note that attributes are retained on the header as
1679 well (unlike before) -- with the exception of the `id` attribute, which of
1680 course cannot be duplicated.
1682 * Fix `--toc-depth` regression in 2.8 (#5967).
1684 * Use doctemplates 0.8. Rename template 'filters' as 'pipes'
1685 to avoid confusion with the other notion of filter used by pandoc.
1687 * Fix README.md so that relative links from manual become absolute.
1688 Previously they'd be broken links when viewed on GitHub or Hackage.
1689 So we add the base URL for the pandoc manual.
1691 * Document display math syntax in manual.
1693## pandoc 2.8.1 (2019-12-05)
1695 * Add `ascii_identifiers` as a supported extension for `markdown`.
1696 This fixes a regression in 2.8.
1698 * Fix regression with behavior of `--variable` (#5962).
1699 Previously `-Vfoo=1 -Vfoo=2` would produce a list value for foo;
1700 with 2.8 it produced just `2`. This commit restores the earlier
1703 * Roll back part of of `--shift-heading-level-by` change (#5957).
1704 With positive heading shifts, starting in 2.8 this option
1705 caused metadata titles to be removed and changed to regular
1706 headings. This behavior is incompatible with the old
1707 behavior of `--base-header-level` and breaks old workflows,
1708 so we have rolled back the change. Note that there is now an
1709 asymmetry in positive and negative heading level shifts:
1710 With positive shifts, the metadata title stays the same and
1711 does not get changed to a heading in the body, while with
1712 negative shifts, a heading can be converted into the
1715 * Text.Pandoc.Shared: Fix `makeSections` so it doesn't turn
1716 column Divs into sections.
1718 * HTML writer: add task-list class to ul if all elements are
1719 task list items. This will allow styling unordered task
1720 lists in a way that omits the bullet.
1722 * HTML-based templates: Add CSS to suppress bullet on unordered task lists.
1724 * ConTeXt template: Fix `\startcslreferences` and use ConTeXt syntax
1725 conventions (#5945, Denis Maier). The old version had a too large
1726 a skip at the beginning of the reference list.
1728 * LaTeX template: keep the `\author{}` command even if author is not
1729 specified (#5961, Yihui Xie). Avoids a LaTeX warning.
1731 * Generate Emoji module with TH.
1733 + Add Text.Pandoc.Emoji.TH.
1734 + Replace long literal list in Text.Pandoc.Emoji with one-liner
1735 generating it from `emoji.json` using TH.
1736 + Add Makefile target to download `emoji.json`.
1737 + Remove `tools/emoji.hs`.
1739 * Increase GC allocation space for compilation in cabal.project.
1741 * Clean up manual on PDF generation backend options (#5940).
1743 * Update release checklist to include code signing step and update
1744 Windows release-candidate builds (#5950).
1747## pandoc 2.8.0.1 (2019-11-26)
1749 * List `pdf` in `--list-output-formats`.
1750 * EPUB writer: Fix regression with `--css` (#5937). In 2.8 `--css`
1751 would not have an effect on EPUB output.
1752 * RST writer: Use grid tables for one-column tables, since
1753 simple tables clash with heading syntax in this case (#5936).
1754 * Add unexported module Text.Pandoc.Readers.Metadata (see #5914).
1755 * Use doctemplates 0.7.2, which adds the `nowrap` filter to
1757 * Update default man template using `nowrap` for .TH heading (#5929).
1758 * HTML templates: Add support for `toc-title` variable (#5930,
1760 * Remove `grffile` (LaTeX package) requirement in MANUAL.txt
1761 (#5927, Ian Max Andolina).
1762 * Use skylighting 0.8.3.
1764## pandoc 2.8 (2019-11-22)
1766 * Improvements in templates system (from doctemplates):
1768 + Pandoc templates now support a number of new features that
1769 have been added in doctemplates: notably, `elseif`, `it`,
1770 partials, filters, and syntax to control nesting and reflowing of
1771 text. These changes make pandoc more suitable out of the
1772 box for generating plain-text documents from data in YAML
1773 metadata. It can create enumerated lists and even tabular
1775 + We now used templates parameterized on doclayout Doc types.
1776 The main impact of this change is better reflowing of
1777 content interpolated into templates. Previously,
1778 interpolated variables were rendered independently and
1779 interpolated as strings, which could lead to overly long
1780 lines. Now the templates interpolated as Doc values which
1781 may include breaking spaces, and reflowing occurs after
1782 template interpolation rather than before.
1783 + Remove code from the LaTeX, Docbook, and JATS writers that
1784 looked in the template for strings to determine whether it
1785 is a book or an article, or whether csquotes is used. This
1786 was always kludgy and unreliable.
1787 + Change template code to use new API for doctemplates.
1789 * Add `--defaults`/`-d` option. This adds the ability to specify
1790 a collection of default values for options in a YAML file. For
1791 example, one might define a set of defaults for letters,
1792 and then do `pandoc -d letter myletter.md -o myletter.pdf`.
1793 See the documentation of this feature in MANUAL.txt.
1795 * Raise error on unsupported extensions (#4338).
1797 * The `--list-extensions[=FORMAT]` option now lists only
1798 extensions that affect the given FORMAT.
1800 * Add `-L` option as shortcut for `--lua-filter`.
1802 * Add `--shift-heading-level-by` option and deprecate
1803 `--base-heading-level` (#5615). The new option does
1804 everything the old one does, but also allows negative shifts.
1805 It also promotes the document metadata (if not null) to a
1806 level-1 heading with a +1 shift, and demotes an initial
1807 level-1 heading to document metadata with a -1 shift. This
1808 supports converting documents that use an initial level-1
1809 heading for the document title.
1811 * Allow `--metadata-file` to be used repeatedly to include
1812 multiple metadata files (Owen McGrath, #5702). Values in
1813 files specified first will be overridden by those in later
1816 * `--ascii` now uses numerical hex character references (#5718).
1818 * Allow PDF output to stdout (#5751). PDF output now behaves like other
1819 binary formats: it will not be output to the terminal, but can be
1820 sent to stdout using either `-o -` or a pipe. The intermediate format
1821 will be determined based on the setting of `--pdf-engine`.
1823 * Make some writers sensitive to 'unlisted' class on headings (#1762).
1824 If this is present on a heading with the 'unnumbered' class,
1825 the heading won't appear in the TOC. This class has no
1826 effect if 'unnumbered' is not also specified. This affects HTML-based
1827 writers (including slide shows and EPUB), LateX (including beamer), RTF,
1828 and PowerPoint. Other writers do not yet support `unlisted`.
1830 * Fix `gfm_auto_identifiers` behavior with emojis (#5813). Note that
1831 we also now use emoji names for emojis when `ascii_identifiers`
1834 * When `--ipynb-output` is used with the default "best" format, strip
1835 ANSI escape codes for non-ipynb output (#5633). These cause problems
1836 in many formats, including LaTeX.
1838 * Don't look for template files remotely for remote input (#5579).
1839 Previously pandoc would look for the template at a remote URL when a
1840 URL was used for the input file, instead of taking it from the
1843 * Allow combining `-Vheader-includes` and `--include-in-header` (#5904).
1844 Previously `header-includes` set as a variable would be
1845 clobbered by material included using `--include-in-header`.
1847 * Change merge behavior for metadata. Previously, if a document
1848 contained two YAML metadata blocks that set the same field, the
1849 conflict would be resolved in favor of the first. Now it is resolved
1850 in favor of the second (due to a change in pandoc-types).
1851 This makes the behavior more uniform with other things in pandoc
1852 (such as reference links and `--metadata-file`).
1854 * Don't add a newline to fragment output if there's already one.
1856 * Change exit codes and document in MANUAL.txt:
1858 + `PandocAppError` was 1, is now 4
1859 + `PandocOptionError` was 2, is now 6
1860 + `PandocMakePDFError` was 65, is now 66
1862 * Switch to new pandoc-types and use Text instead of String [API change].
1863 (Christian Despres, #5884).
1867 + Better handling of `<q>` with cite attribute (#5798, Ole Martin Ruud).
1868 If a `<q>` tag has a `cite` attribute, we interpret it as a Quoted
1869 element with an inner Span.
1870 + Add support for HTML `<samp>` element (#5792, Amogh Rathore).
1871 The `<samp>` element is parsed as Code with class `sample`.
1872 + Add support for HTML `<var>` element (#5799, Amogh Rathore).
1873 The `<var>` element is parsed as Code with class `variable`.
1874 + Add support for `<mark>` elements (Florian B, #5797). Parse
1875 `<mark>` elements from HTML as Spans with class `mark`.
1876 + Add support for `<kbd>` elements, parsing them as Span with class
1877 `kbd` (Daniele D'Orazio, #5796).
1878 + Add support for `<dfn>`, parsing this as a Span with class `dfn`
1879 (#5882, Florian Beeres).
1883 + Headers: don't parse content over newline boundary (#5714).
1884 + Handle inline code more eagerly within lists (Brian Leung, #5627).
1885 + Removed some needless lookaheads.
1886 + Don't parse footnote body unless extension enabled.
1887 + Fix small super/subscript issue (#5878). Superscripts and subscripts
1888 cannot contain spaces, but newlines were previously allowed
1889 (unintentionally). This led to bad interactions in some cases
1890 with footnotes. With this change newlines are also not allowed inside
1892 + Use `take1WhileP` for `str`, table row. This yields a small but
1893 measurable performance improvement.
1898 + Fix parsing of optional arguments that contain braced text (#5740).
1899 + Don't try to parse includes if `raw_tex` is set (#5673).
1900 When the `raw_tex` extension is set, we just carry through
1901 `\usepackage`, `\input`, etc. verbatim as raw LaTeX.
1902 + Properly handle optional arguments for macros (#5682).
1903 + Fix `\\` in `\parbox` inside a table cell (#5711).
1904 + Improve `withRaw` so it can handle cases where the token string is
1905 modified by a parser (e.g. accent when it only takes part of a Word
1906 token) (#5686). This fixes a bug that caused the ends of
1907 certain documents to be dropped.
1908 + Handle `\passthrough` macro used by latex writer (#5659).
1909 + Support tex `\tt` command (#5654).
1910 + Search for image with list of extensions like latex does, if an
1911 extension is not provided (#4933).
1912 + Handle `\looseness` command values better (#4439).
1913 + Add `mbox` and `hbox` handling (Vasily Alferov, #5586).
1914 When `+raw_tex` is enabled, these are passed through literally.
1915 Otherwise, they are handled in a way that emulates LaTeX's behavior.
1916 + Properly handle `\providecommand` and `\provideenvironment` (#5635).
1917 They are now ignored if the corresponding command or environment
1919 + Support epigraph command in LaTeX Reader (oquechy, #3523).
1920 + Ensure that expanded macros in raw LaTeX end with a space
1921 if the original did (#4442).
1922 + Treat `ly` environment from lilypond as verbatim (Urs Liska, #5671).
1923 + Add `tikzcd` to list of special environments (Eigil Rischel).
1924 This allows it to be processed by filters, in the same way that
1925 one can do for `tikzpicture`.
1929 + Better support for `while`.
1930 + More improvements in parsing conditionals.
1931 + Fix problem parsing comments before macro.
1932 + Improve handling of groups.
1933 + Better parsing of groups (#5410). We now allow groups
1934 where the closing `\\}` isn't at the beginning of a line.
1938 + Keep `name` property in `imgAttr` (Brian Leung, #5619).
1939 + Fixed parsing of indented blocks (#5753). We were requiring
1940 consistent indentation, but this isn't required by RST.
1941 + Use title, not admonition-title, for admonition title.
1942 This puts RST reader into alignment with docbook reader.
1943 + Don't strip final underscore from absolute URI (#5763).
1944 + Avoid spurious warning when resolving links to internal anchors
1945 ending with `_` (#5763).
1949 + Accept `ATTR_LATEX` in block attributes (Albert Krewinkel, #5648).
1950 Attributes for LaTeX output are accepted as valid block attributes;
1951 however, their values are ignored.
1952 + Modify handling of example blocks (Brian Leung, #5717).
1953 + Allow the `-i` switch to ignore leading spaces (Brian Leung).
1954 + Handle awkwardly-aligned code blocks within lists (Brian Leung).
1955 Code blocks in Org lists must have their `#+BEGIN_` aligned in a
1956 reasonable way, but their other components can be
1957 positioned otherwise.
1958 + Fix parsing of empty comment lines (#5856, Albert Krewinkel).
1959 Comment lines in Org-mode can be completely empty.
1961 * Muse reader (Alexander Krotov):
1963 + Add RTL support (#5551).
1964 + Do not allow closing asterisks to be followed by `*`.
1965 + Do not split series of asterisks into symbols and emphasis (#5821).
1966 + Do not terminate emphasis on `*` not followed by space.
1970 + Parse markup inside monospace ('') (#5916, Alexander Krotov).
1974 + Move style-parsing-specific code to a new unexported module,
1975 Text.Pandoc.Readers.Docx.Parse.Styles (Nikolay Yakimov).
1976 + Move StyleMap to docx writer (Nikolay Yakimov).
1977 + Only use LTR when it is overriding BiDi setting (#5723, Jesse
1978 Rosenthal). The left-to-right direction setting in docx is used
1979 in the spec only for overriding an explicit right-to-left setting.
1980 We only process it when it happens in a paragraph set with BiDi.
1981 This is especially important for docs exported from Google Docs,
1982 which explicitly (and unnecessarily) set `rtl=0` for every paragraph.
1983 + Fix list number resumption for sublists (#4324).
1984 The first list item of a sublist should not resume numbering
1985 from the number of the last sublist item of the same level,
1986 if that sublist was a sublist of a different list item.
1990 + Richer parse for admonitions (Michael Peyton Jones, #1234).
1991 Instead of parsing admonitions as blockquotes, we now parse
1992 them as Divs with an appropriate class. We also handle titles
1993 for admonitions as a nested Div with the "title" class.
1994 + Fix nesting of chapters and sections (#5864, Florian Klink,
1995 Félix Baylac-Jacqué).
1996 + Fix bug with entities in mathphrase element (#5885).
2000 + Skip optional `{{table}}` template (#5757).
2004 + Fix dollar-math parsing to ensure that space is left between a
2005 control sequence and a following letter (#5836).
2006 + In `untokenize`, ensure space between control sequence
2007 and following letter (#5836).
2008 + Don't omit macro definitions defined in the preamble.
2009 These were formerly omitted (though they still affected macro
2010 resolution if `latex_macros` was set). Now they are included in
2012 + Parse macro definitions as raw LaTeX when `latex_macros` is
2013 disabled. (When `latex_macros` is enabled, we omit them, since
2014 pandoc is applying the macros itself.)
2015 + Fix a hang/memory leak in certain circumstances (#5845).
2016 + Text.Pandoc.Readers.LaTeX.Parsing: add `[Tok]` parameter to
2017 `rawLaTeXParser`. This allows us to repeat retokenizing
2018 unnecessarily in e.g. `rawLaTeXBlock`.
2019 + Add KOMA-Script metadata commands (#5910, Andrew Dunning).
2020 Add all titling commands to existing definition for `\dedication`.
2021 + Parse `\micro` siunitx unit command (#5921, Jose Luis Duran).
2025 + Ensure proper nesting when we have long ordered list markers (#5705).
2026 + Make `plain` output plainer (#5741). Previously we used the following
2027 Project Gutenberg conventions for plain output: extra space before and
2028 after level 1 and 2 headings, all-caps for strong emphasis,
2029 underscores surrounding regular emphasis. Now these
2030 conventions are used only when the `gutenberg` extension is
2031 enabled. By default, Strong and Emph are rendered without
2032 special formatting, and headings are rendered without
2033 special formatting, and with only one blank line following.
2034 To restore the former behavior, use `-t plain+gutenberg`.
2035 + Prefer using raw_attribute when enabled (#4311).
2036 The `raw_attribute` will be used to mark raw bits, even HTML
2037 and LaTeX, and even when `raw_html` and `raw_tex` are
2038 enabled, as they are by default. To get the old behavior,
2039 disable `raw_attribute` in the writer.
2040 + Prefer `pipe_tables` to raw HTML even when we must
2041 lose width information (#2608, #4497).
2042 + Improve escaping in list items (#5918).
2046 + Don't include `+` in code blocks for regular asciidoc.
2047 This is asciidoctor-specific.
2048 + Handle admonitions (#5690).
2052 + Add thin space when needed in LaTeX quote ligatures (#5684).
2053 + Use `\hspace{0pt}` for 0-width space U+200B (#5756).
2054 + Use `cslreferences` environment for csl bibliographies.
2055 This allows bibliographies to receive special formatting.
2056 The template now contains definition of this environment (enabled
2057 only when CSL is used). It also defines a `\cslhangindent` length.
2058 This is set to 2em by default when the bibliography style specifies
2059 a hanging indent. To override the length, you can use e.g.
2060 `\setlength{\cslhangindent}{7em}` in header-includes.
2061 See jgm/pandoc-citeproc#410.
2062 + Strip off `{}` around locator for biblatex/natbib output (#5722).
2063 + Fix line breaks at start of paragraph (#3324).
2064 Previously we just omitted these. Now we render them
2065 using `\hfill\break` instead of `\\`. This is a revision
2066 of a PR by @sabine (#5591) who should be credited with the idea.
2067 + We no longer look in the template or header-includes to see if a
2068 book or article documentclass is used, or to see whether the
2069 `csquotes` package is used. To use `csquotes` for LaTeX, set
2070 `csquotes` in your variables or metadata. To specify a book
2071 style, use the `documentclass` variable or
2072 `--top-level-division`.
2073 + Fix horizontal rule (#5801). We change to use 0.5pt rather than
2074 `\linethickness`, which apparently only ever worked "by accident"
2075 and no longer works with recent updates to texlive.
2079 + Add option to include source files in ConTeXt PDFs (Tristan
2080 Stenner, #5578). The metadata field or variable
2081 (`includesource`) can be set to attach the source documents
2082 to the resulting PDF.
2083 + Customizable type of PDF/A for the ConTeXt writer (Karl
2084 Pettersson, #5608). The `pdfa` variable may now be set in metadata.
2085 Also updated color profile settings in accordance with ConTeXt wiki,
2086 and made ICC profile and output intent for PDF/A customizable
2087 using `pdfaiccprofile` and `pdfaintent`.
2088 + Unit tests: adjust code property to avoid an irrelevant
2089 failure involving inline code with two consecutive newlines.
2090 + Set `csl-hanging-indent` variable if needed.
2091 + Use special environment for CSL references.
2092 + Use braces, not start/stop, for inline language tags.
2093 This prevents unwanted gobbling of spaces.
2097 + Use numeric character references with `--ascii` (#5718).
2098 Previously we used named character references with html5 output.
2099 But these aren't valid XML, and we aim to produce html5 that is
2100 also valid XHTML (polyglot markup). (This is also needed for epub3.)
2101 + Ensure that line numbers in code blocks get id-prefix (#5650).
2102 + Ensure TeX formulas are rendered correctly (Philip Pesca,
2103 #5658). The web service passed in to `--webtex` may render
2104 formulas using inline or display style by default.
2105 Prefixing formulas with the appropriate command ensures
2106 they are rendered correctly.
2107 + Render inline formulas correctly with `--webtex` (Philip
2108 Pesca, #5655). We add `\textstyle` to the beginning of the
2109 formula to ensure it will be rendered in inline style.
2110 + Pass through `aria-` attributes to HTML5 (#5642).
2111 + Render a Quoted element with an inner Span with
2112 `cite` attribute using a `<q>` tag (#5798, Ole Martin Ruud).
2113 + Render a Span with class `mark` using the `<mark>` element
2114 (Florian Beeres, #5797).
2115 + Render Span with class `dfn` using `<dfn>` element
2116 (Florian Beeres, #5882).
2117 + Render Span with class `kbd` using `<kbd>` element (Daniele
2119 + Render Code with class `variable` using `<var>` element
2120 (Amogh Rathore, #5799).
2121 + Render Code with class `sample` using `<samp>` element
2122 (Amogh Rathore, #5799).
2126 + Improve splitting into chapters (#5761), using `makeSection`.
2127 + Avoid issuing warning multiple times when title not set (see #5760).
2128 + Use svg tag wrapper for cover image (#5638). In addition, the
2129 code generating the image has been moved to the template, to make it
2130 more customizable. NOTE: Those who use custom EPUB
2131 templates will need to adjust their templates, adding the
2132 code to generate the cover image. (Previously this was just
2133 inserted into 'body'.)
2134 + Improve toChapters, making it work better if there are Divs
2136 + Add support for EPUB2 covers (blmage, #3992).
2137 + Do not override existing "fileN" medias when writing to EPUB format
2139 + Ensure that `lang` variable is set on all chapters (so that it
2140 will add an `xml:lang` attribute on the `html` element).
2144 + Removed remnants of `admonition-title`.
2145 + Fix handling of `:align:` on figures and images (#4420).
2146 When the image has the `align-right` (etc.) class, we now use
2147 an `:align:` attribute.
2148 + Improve spacing for tables with no width information (#5899).
2149 If a simple table would be too wide, we use a grid table.
2150 + Fix backslash escaping after strings (Albert Krewinkel, #5906).
2151 The check whether a complex inline element following a string must
2152 be escaped, now depends on the last character of the string instead
2154 + Ensure there's a blank line before tables (#5898).
2158 + Handle mixed lists without HTML fallback (#5107).
2162 + Fix multiline table (Zihang Chen, #5683).
2166 + Add RTL support (Alexander Krotov, #5551).
2170 + Suppress non-absolute link URLs (#5770). Absolute URLs are
2171 still printed in parentheses following the link text, but relative
2172 URLs are suppressed (just as internal links starting with '#'
2174 + Improved definition list term output. Now we boldface code but
2175 not other things. This matches the most common style in man pages
2176 (particularly option lists).
2180 + Use `.LP` instead of `.PP` for line block (#5588).
2181 + Use boldface for definition terms in DefinitionLists.
2185 + Do not emit empty `<fn-group>` (Mauro Bieg, #5595).
2186 + Update template to v1.1dtd (#5632, Arfon Smith).
2187 + Update `data/jats.csl` to avoid commas between editor
2188 name-part elements. (#5629)
2189 + Add `abstract` to template (Mauro Bieg).
2193 + Don't strip hash from internal links (#5922).
2197 + Remove escapeStringForJira for code blocks (Jan-Otto Kröpke).
2198 + Remove extraneous newline after single-line block quotes
2199 (#5858, Albert Krewinkel).
2200 + Improve escaping of special characters, using backslash escapes
2201 instead of HTML entities (#5858, Albert Krewinkel).
2203 * OpenDocument writer:
2205 + Avoid duplicate attributes (#4634). We use the innermost
2206 attribute in nested cases.
2207 + If `native_numbering` extension is set, use native OpenDocument
2208 enumeration for figures and tables (Nils Carlson).
2209 + Place caption before table (#5681, Dmitry Pogodin).
2213 + Add a test for MathML formulas in ODT documents (blmage).
2214 + Improve the parsing of frames in ODT documents (blmage).
2218 + Make handling of styles more robust in localized versions
2219 of Word (Nikolay Yakimov, #5523, #5052, #5074). We now use
2220 style names, not ids, for assigning semantic meaning, since
2221 the ids can change depending on the locale. Style name
2222 comparisons are case-insensitive, since those are
2223 case-insensitive in Word. Since docx style names can have
2224 spaces in them, and pandoc-markdown classes can't, anywhere
2225 when style name is used as a class name, spaces are
2226 replaced with ASCII dashes `-`. Code styles, i.e. "Source
2227 Code" and "Verbatim Char" now honor style inheritance. Docx
2228 Reader now honours "Compact" style (used in
2229 Pandoc-generated docx). The side-effect is that "Compact"
2230 style no longer shows up in docx+styles output. Styles
2231 inherited from "Compact" will still show up.
2232 + Re-use Readers.Docx.Parse for StyleMap (#5766, Nikolay Yakimov).
2233 + Internal improvements and code simplification (Nikolay Yakimov).
2234 + Preserve built-in styles in DOCX with custom style (Ben Steinberg,
2235 #5670). This change prevents custom styles on divs and spans
2236 from overriding styles on certain elements inside them, like
2237 headings, blockquotes, and links. On those elements, the
2238 "native" style is required for the element to display correctly.
2239 This change also allows nesting of custom styles; in order to do so,
2240 it removes the default "Compact" style applied to Plain blocks,
2241 except when inside a table.
2242 + Add `proofState` to list of elements carried over from
2243 settings.xml in the reference.docx (Krystof Beuermann, #5703).
2244 + Change order of `ilvl` and `numId` in `document.xml` (Agustín
2245 Martín Barbero, #5645). Also, make list para properties go first.
2246 This reordering of properties shouldn't be necessary but
2247 it seems Word Online does not understand the docx correctly otherwise.
2249 * PowerPoint writer:
2251 + Code formatting is now context dependent (Jeroen de Haas, #5573).
2252 This commit alters the way in which the Powerpoint writer treats
2253 inline code and code blocks. Inline code is now formatted at
2254 the same size as the surrounding text. Code blocks are now given
2255 a margin and font size according to their level.
2256 Furthermore this commit allows changing the font with which code is
2257 formatted via the `monofont` option.
2258 + Start numbering at appropriate numbers (Jesse Rosenthal, #5709).
2259 Starting numbers for ordered lists were previously ignored. Now
2260 we specify the number if it is something other than 1.
2262 * Text.Pandoc.Parsing:
2264 + Add `manyChar`, `many1Char`, `manyTillChar`, `many1TillChar`,
2265 `many1Till`, `manyUntil`, `mantyUntilChar`: these are like their
2266 unsuffixed counterparts but pack some or all of their output
2267 (Christian Despres, #5884).
2268 + Add `stateAllowLineBreaks` to `ParserState` [API change].
2269 + Fix inline parsing in grid table cells (#5708).
2270 + Change type of `setLastStrPos` so it takes a `Maybe SourcePos`
2271 rather than a `SourcePos` [API change].
2272 + Make `parseFromString'` and `gridTableWith` and
2273 `gridTableWith'` polymorphic in the parser state,
2274 constraining it with `HasLastStrPosition` [API change].
2275 + `parseFromString'`: reset `stateLastStrPos` to `Nothing` before parse.
2276 + Rename takeWhileP -> take1WhileP and clean it up.
2277 (It doesn't match the empty sequence.)
2281 + For PDFs via HTML, ensure temp file is deleted even if the pdf
2282 program is not found (#5720).
2283 + Better detection of a Cygwin environment (#5451).
2284 + Don't assume tex log file is UTF8-encoded (#5872).
2285 Fall back to latin1 if it can't be read as UTF-8.
2287 * Text.Pandoc.Extensions:
2289 + Export new function `getAllExtensions`, which returns the
2290 extensions that affect a given format (whether enabled by default
2291 or not) [API change].
2292 + Change type of `parseFormatSpec` from
2293 `Either ParseError (String, Extensions -> Extensions)`
2294 to `Either ParseError (String, [Extension], [Extension])`
2296 + Add `Ext_gutenberg` constructor to `Extension` [API change].
2297 + Add `Ext_native_numbering` constructor to `Extension` [API change]
2300 * Text.Pandoc.Readers, Text.Pandoc.Writers:
2302 + Change type of `getReader` and `getWriter` so they return
2303 a value in the PandocMonad instance rather than an Either
2304 [API change]. Exceptions for unknown formats and unsupported
2305 extensions are now raised by these functions.
2309 + Change `optMetadataFile` type from `Maybe FilePath` to `[FilePath]`
2310 (Owen McGrath, #5702) [API change].
2312 * Text.Pandoc.Logging:
2314 + Add `CouldNotDeduceFormat` constructor to `LogMessage` [API change].
2315 Issue this warning when we're falling back to markdown or
2316 html because we don't recognize the extension of the input or
2318 + Clarify warning for missing title (#5760).
2319 + Add `UnusualConversion` constructor to `LogMessage` [API change]
2320 (Mauro Bieg, #5736). Emit warning on `-f latex -o out.pdf`.
2324 + Improve function documentation (Albert Krewkinkel).
2325 + Traverse nested blocks and inlines in correct order (Albert
2326 Krewinkel, #5667). Traversal methods are updated to use the new
2327 Walk module so that sequences with nested Inline (or Block) elements
2328 are traversed in the order in which they appear in the linearized
2330 + New unexported module `Text.Pandoc.Lua.Walk` (Albert Krewinkel).
2331 Lua filters must be able to traverse sequences of AST
2332 elements and to replace elements by splicing sequences back
2333 in their place. Special `Walkable` instances can be used for
2334 this; those are provided in a new module
2335 `Text.Pandoc.Lua.Walk`.
2336 + `Attr` values can now be given as normal Lua tables (Albert
2337 Krewinkel, #5744). This can be used as a convenient alternative
2338 to constructing `Attr` values with `pandoc.Attr`. Identifiers
2339 are taken from the `id` field, classes must be given as
2340 space separated words in the `class` field. All remaining fields
2341 are included as attributes. With this change, the following lines
2342 now create equal elements:
2344 pandoc.Span('test', {id = 'test', class = 'a b', check = 1})
2345 pandoc.Span('test', pandoc.Attr('test', {'a','b'}, {check = 1}))
2347 This also works when using the *attr* setter:
2349 local span = pandoc.Span 'text'
2350 span.attr = {id = 'test', class = 'a b', check = 1}
2352 Furthermore, the *attributes* field of AST elements can now be a
2353 plain key-value table even when using the `attributes` accessor:
2355 local span = pandoc.Span 'test'
2356 span.attributes = {check = 1} -- works as expected now
2358 + Export `make_sections`, remove `hierarchicalize`. Lua filters that
2359 use `hierarchicalize` will need to be rewritten to use
2361 + Add a `clone()` method to all AST elements (Albert Krewinkel, #5568).
2362 + Fix Lua function names in pandoc.system (niszet). Change
2363 `get_current_directory` to `get_working_directory` and
2364 `with_temp_directory` to `with_temporary_directory`, to
2365 conform to the manual.
2367 * Text.Pandoc.Error:
2369 + Add constructors `PandocUnknownReaderError`,
2370 `PandocUnknownWriterError`, `PandocUnsupportedExtensionError`.
2372 + Better message for `PandocShouldNeverHappenError`.
2373 + Better message for `PandocTemplateError`.
2375 * Text.Pandoc.Emoji:
2377 + Update emoji list (#5666). Done using new `tools/emojis.hs`,
2378 which uses the list from the gem GitHub uses. Future updates
2379 can be done with this tool.
2383 + Pass value of `--dpi` to `rsvg-convert` when converting SVG to PDF
2384 in the process of creating a PDF (#5721).
2386 * Text.Pandoc.Shared:
2388 + Replace `Element` and `makeHierarchical` with `makeSections`.
2389 Now that we have Divs, we can use them to represent the
2390 structure of sections, and we don't need a special Element type.
2391 `makeSections` reorganizes a block list, adding Divs with class
2392 `section` around sections, and adding numbering if needed.
2393 This change also fixes some longstanding issues recognizing section
2394 structure when the document contains Divs (#3057, see also #997).
2395 + Remove `Element` type [API change]
2396 + Remove `makeHierarchicalize` [API change]
2397 + Add `makeSections` [API change]
2398 + Export `deLink` [API change]
2399 + Make `filterIpynbOutput` strip ANSI escapes from code in output
2400 for non-ipynb formats, when the default "best" option is used with
2401 `--ipynb-output` (#5633).
2402 + Fix `camelCaseToHyphenated` so it handles `ABCDef` better.
2403 + Improve `isTight` (#5857). If a list has an empty item,
2404 this should not count against its being a tight list.
2405 + Export `htmlSpanLikeElements` [API change] (Daniele D'Orazio, #5796).
2406 This is a mapping of HTML span-like elements that are internally
2407 represented as a Span with a single class.
2408 + Change the implementation of `htmlSpanLikeElements` to retain
2409 classes and attributes (#5882, Florian Beeres).
2411 * Text.Pandoc.Slides: recognize content in Divs when determining
2414 * Text.Pandoc.SelfContained:
2416 + Omit content-type on type attribute for `<style>` (#5725).
2417 It doesn't seem to be valid for HTML5, and as a result Chrome
2418 ignores the style element.
2420 * Text.Pandoc.Pretty has been removed [API change].
2421 We now use the new external doclayout module instead.
2423 * Text.Pandoc.Writers.Shared:
2425 + Remove `metaToJSON`, `metaToJSON'` [API change].
2426 + Modify `addVariablesToContext`, `defField`, `setField`, `getField`,
2427 `resetField` to work with Context rather than JSON values. [API change]
2428 + Export new function `endsWithPlain` [API change].
2429 + Change `gridTables` so it does better at keeping the widths of
2430 columns (#4320) and does better at figuring out column widths
2431 when no widths are given (#5899).
2433 * Text.Pandoc.Options
2435 + Change type of `writerTemplate` to `Maybe Template` instead
2437 + Change To/FromJSON instances for `HTMLMathMethod`, `CiteMethod`,
2438 `ObfuscationMethod`, `TrackChanges`, `WrapOption`,
2439 `TopLevelDivision`, `ReferenceLocation`, `HTMLSlideVariant` (#5790).
2440 In each case we use lowercase (or hyphenated lowercase) for
2441 constructors to line up more closely with command-line option
2442 values. This is a breaking change for those who manually decode or
2443 encode JSON for these data types (e.g. for `ReaderOptions` or
2446 * Text.Pandoc.Filters:
2448 + Add `FromYAML` instance for `Filter`.
2449 + `applyFilters`: Add and apply filters in order (not reversed)
2450 This changes `applyFilters` from Text.Pandoc.Filter so
2451 that it does a left fold rather than a right fold, applying
2452 the filters in the order listed.
2456 + Change `toEntities` to emit numerical hex character references
2459 * Text.Pandoc.Highlighting:
2461 + Add additional listings languages (Wandmalfarbe).
2463 * Text.Pandoc.MediaBag:
2465 + Some of the types using Strings were switched to use FilePath instead
2466 (Christian Despres, #5884).
2468 * Text.Pandoc.Templates:
2470 + Don't import/export `varListToJSON` [API change]. It is removed in
2471 doctemplates >= 0.3.
2472 + Change type of `renderTemplate'` [API change]. Return value is
2473 now Text rather than being polymorphic. This makes room for
2474 upcoming removal of the `TemplateTarget` class from doctemplates.
2476 * Text.Pandoc.App.Opt [API changes]:
2478 + More convenient To/FromJSON instances. Make the field names
2479 like `strip-empty-paragraphs` rather than `optStripEmptyParagraphs`.
2480 Anyone who is using JSON serialization of Opt will need to adjust
2482 + Change `optHighlightStyle` to a `Maybe String` instead of
2483 `Maybe Style`. Do the parsing/loading of themes later, after
2485 + Remove `optBaseHeaderLevel` from `Opt`. We now just use
2486 `optShiftHeadingLevelBy`, to avoid redundancy.
2487 + Change `optShiftHeadingLevel` to `optShiftHeadingLevelBy` to
2489 + Custom FromJSON instance for `LineEnding`, so either `CRLF`
2490 or `crlf` will work.
2491 + Change `optVariables` from `[(String, String)]` to `Context Text`.
2492 + Change `optMetadata` to `Meta`, to allow structured values.
2493 The current behavior of the `--metadata` option stays the same.
2494 + Rename `optReader`, `optWriter` as `optFrom`, `optTo`.
2495 + Add `FromYAML` instances to `Opt` and to all subsidiary types.
2496 + Rename `optMetadataFile` to `optMetadataFiles`.
2497 + Rename `optPDFEngineArgs` to `optPDFEngineOpts`.
2498 + Rename `optWrapText` to `optWrap`.
2499 + Add `IpynbOutput` enumerated type: use this instead of
2500 a string for `optIpynbOutput`.
2501 + Change optInputFiles to a `Maybe [FilePath]` (#5888) [API change].
2502 `Nothing` means: nothing specified.
2503 `Just []` means: an empty list specified (e.g. in defaults).
2504 + List fields in Opt so they aren't reversed (#5881) [API change].
2505 Previously `optIncludeInHeader`, etc. were in reverse order.
2506 + The `sourcefile` variable is now always a list. It used to be
2507 sometimes a string, sometimes a list (when there was more than one).
2511 + default.latex: added code for `cslreferences` environment,
2512 to be used for pandoc-citeproc references. A `csl-hanging-indent`
2513 variable (set automatically if there is a `hanging-ident`
2514 class on the references Div) controls whether contents of this
2515 environment receive a hanging indent.
2516 + default.latex: Add `space` as default option for xeCJK, so that
2517 spaces between words are preserved (#5855, jeongminkim-islab).
2518 This is necessary for Korean.
2519 + default.latex: Remove include of `grffile` (#5848).
2520 This package used to be needed for proper handling of image filenames
2521 containing periods (in addition to the period before the extension).
2522 It no longer works with the latest LaTeX kernel and graphicx,
2523 so we have removed it. Future versions of graphicx will handle
2524 these filenames without the need for `grffile`.
2525 + default.context: add a saner default for page numbers.
2526 Previously they appeared centered at the top of the page;
2527 now we put them centered at the bottom, unless the `pagenumbering`
2529 + default.context: define a start-stop-pair `cslreferences` to
2530 allow for hanging indents in the bibliography (#5875, Denis Maier).
2531 + default.ms: update defaults. Use Palatino font, use slightly
2532 wider interparagraph space, don't indent paragraphs,
2533 and put page numbers on the bottom. This brings ms output
2534 closer to default LaTeX output.
2535 + default.revealjs: add navigationMode (Mauro Bieg, #5657).
2536 + default.muse: handle multiple authors better.
2537 + docbook4, docbook5 templates: add indentation to body.
2538 + HTML-based templates: use `styles.html` partial to avoid
2540 + HTML-based templates: change indentation of styles in template.
2542 * reference.docx (#5820):
2544 + Change Block Text (block quote) style so that the same font
2545 is used as in the body text, and the block text is indented
2547 + All headings now have a uniform color.
2548 + Level-1 headings no longer set `w:themeShade="B5"`.
2549 + Level-2 headings are now 14 point rather than 16 point.
2550 + Level-3 headings are now 12 point rather than 14 point.
2551 + Level-4 headings are italic rather than bold.
2553 * epub.css: Add CSS for hanging-indent div to support pandoc-citeproc's
2554 new hanging indents.
2558 + Repeat ghc-options in all stanzas.
2559 + Remove conditionals for ghc < 8 (Albert Krewinkel, #5693).
2560 + Compile with `-Wcpp-undef` and `-fhide-source-paths` when possible
2562 + Add cabal.project to extra-source-files (Albert Krewinkel).
2563 + Add dependency on skylighting-core (#5729). Even though it shouldn't
2564 be needed, some tools require it.
2565 + Require latest pandoc-types, texmath, skylighting, haddock-library.
2566 + Ensure TemplateHaskell is added to other-extensions when it is
2567 used (Vanessa McHale, #5728).
2568 + Remove `derive_json_via_th` flag; always use TH. This cuts down
2569 on code duplication and reduces the chance for errors. See #4083.
2575 + Remove references to obsolete flag (#5694).
2577 * Benchmarks: fix failure on ipynb.
2579 * Use MathJax 3 (zorkow).
2581 * KaTeX math: respect `classoption=fleqn` variable,
2582 bump KaTeX version to 0.11.1 (#5815, Mauro Bieg).
2584 * Fix redundant constraint compiler warnings (Pete Ryland, #5625).
2586 * Use throwError instead of fail when appropriate.
2588 * Use Prelude.fail to avoid ambiguity with fail from GHC.Base.
2590 * Add `diff-zip.sh` to tools (John MacFarlane, Agustín Martín Barbero).
2591 This is intended to make it easier to test differences in zip
2592 containers, like epub, docx, or odt.
2594 * Add `.gitattributes` (#5747). This ensures that the golden files
2595 in `test/fb2/reader/` don't have newlines converted. This should fix
2596 a test failure on GitHub CI with Windows.
2598 * Reorder options in `--help`.
2600 * Revise code for HsYAML-0.2.0.0 (@vijayphoenix, #5704).
2602 * Remove blank line in code example in Haddocks (Leif Metcalf, #5679).
2604 * Fix trypandoc with `getReader`/`getWriter` changes.
2606 * Allow building pandoc with GHC 8.8.
2608 * linux tarball: add architecture `-amd64` to filename.
2609 Now it will be: `pandoc-VERSION-linux-ARCH.tar.gz`.
2613 + Add section for exit codes.
2614 + Document some pptx limitations in slide show section:
2615 No incremental display (#5689). No pause with `. . .` (#5701).
2616 + reveal.js flags (Mauro Bieg, #5653).
2617 + Document addition of `data-` prefix to unknown attributes in HTML5.
2618 + Link to YAML spec (Mauro Bieg, #5687).
2619 + Fix capitalization of "Linux" (#5859, Marcus Stollsteimer).
2620 + Use a table for exit codes.
2621 + Put all template variable docs into one section.
2622 + Use ATX headers consistently.
2623 + Add fuller documentation of templates (#5779), including
2624 new template syntax, partials, etc.
2625 + Add documentation for the variable `hyperrefoptions` (Wandmalfarbe).
2626 + Clarify when macro definitions are passed as raw latex.
2627 In Markdown input, they are always passed through. In LaTeX, only if
2628 `latex_macros` is disabled.
2629 + Clarify that `--dpi` provides a default and doesn't override
2630 dpi values specified in the images themselves (#5721).
2631 + Document how to use custom writers with `--standalone` (#5866).
2632 + Clarify `--preserve-tabs` default.
2636 + Fix instructions for libicu.
2637 + Add Void Linux instructions (Volodymyr Kozachnyskyi).
2641 + Add information on tests (Agustín Martín Barbero, #5652).
2642 + Add information about command test naming to CONTRIBUTING (Florian B).
2644 * Fix typos in changelog and comments (#5896, Brian Wignall).
2646 * doc/lua-filters.md:
2648 + Fix mistakes in mediabag module docs (#5851, Albert Krewinkel).
2649 + Improve metadata replacement example in lua-filters doc (#5851).
2650 + Mention which Lua version is shipped with pandoc (Albert Krewinkel,
2653## pandoc 2.7.3 (2019-06-11)
2655 * Add `jira` (Atlassian's Jira wiki markup) as output format (#2497,
2658 * Add `tex_math_dollars` to `multimarkdownExtensions` (#5512).
2659 This form is now supported in multimarkdown,
2660 in addition to `tex_math_double_backslash`.
2662 * Fix `--self-contained` so it works when output format has extensions.
2663 Previously if you used `--self-contained` with `html-smart` or
2664 `html+smart`, it wouldn't work.
2666 * Add template variable `curdir` with working directory
2667 from which pandoc is run (#5464).
2669 * Markdown reader: don't create implicit reference for empty header
2672 * Muse reader: allow images inside link descriptions (Alexander Krotov).
2674 * HTML reader: epub related fixes.
2676 + With epub extensions, check for `epub:type` in addition to `type`.
2677 + Fix problem with noteref parsing which caused block-level
2678 content to be eaten with the noteref.
2679 + Rename `pAnyTag` to `pAny`.
2680 + Refactor note resolution.
2681 + Trim definition list terms (Alexander Krotov).
2685 + Add braces when resolving `\DeclareMathOperator`
2686 (#5441). These seem to be needed for xelatex but not pdflatex.
2687 + Allow newlines in `\mintinline`.
2688 + Pass through unknown listings language as class (#5540).
2689 Previously if the language was not in the list of languages supported
2690 by listings, it would not be added as a class, so highlighting
2691 would not be triggered.
2692 + `rawLaTeXInline`: Include trailing `{}`s in raw latex commands (#5439).
2693 This change affects the markdown reader and other readers that allow raw
2694 LaTeX. Previously, trailing `{}` would be included for unknown
2695 commands, but not for known commands. However, they are sometimes used
2696 to avoid a trailing space after the command. The chances that a `{}`
2697 after a LaTeX command is not part of the command are very small.
2699 * MediaWiki reader: handle multiple attributes in table row (#5471,
2702 * Docx reader: Add support for `w:rtl` (#5545). Elements with this
2703 property are put into Span inlines with `dir="rtl"`.
2705 * DocBook reader: Issue `IgnoredElement` warnings.
2707 * Org reader (Albert Krewinkel):
2709 + Fix planning elements in headers level 3 and higher
2710 (#5494). Planning info is now always placed before
2711 the subtree contents. Previously, the planning info was placed after
2712 the content if the header's subtree was converted to a list, which
2713 happens with headers of level 3 and higher per default.
2714 + Omit, but warn about unknown export options. Unknown export
2715 options are properly ignored and omitted from the output.
2716 + Prefer plain symbols over math symbols (#5483).
2717 Symbols like `\alpha` are output plain and unemphasized, not as math.
2718 + Recognize emphasis after TODO/DONE keyword (#5484).
2722 + Skip unknown elements rather than throwing errors (#5560).
2723 Sometimes custom elements are used (e.g. `id` element
2724 inside `author`); previously the reader would halt with an error.
2725 Now it skips the element and issues an `IgnoredElement` warning.
2726 + Parse notes (#5493, Alexander Krotov).
2727 + Internal improvements (Alexander Krotov).
2729 * OpenDocument writer: Roll back automatic figure/table numbering
2730 (#5474). This was added in pandoc 2.7.2, but it makes it impossible
2731 to use pandoc-crossref. So this has been rolled back for now,
2732 until we find a good solution to make this behavior optional
2733 (or a creative way to let pandoc-crossref and this feature
2736 * New module Text.Pandoc.Writers.Jira, exporting `writeJira` [API
2737 change] (Albert Krewinkel).
2741 + Don't include 'landmarks' if there aren't any.
2742 Previously we could get an empty ol element, which caused
2743 validation errors with epubcheck.
2744 + Ensure unique ids for styleesheets in content.opf (#5463).
2745 + Make stylesheet link compatible with kindlegen (#5466,
2746 Eric Schrijver). Pandoc omitted `type="text/css"` from both
2747 `<style>` and `<rel="stylesheet">` elements in all templates, which
2748 is valid according to the spec. However, Amazon’s kindlegen software
2749 relies on this attribute on `<link>` elements when detecting
2750 stylesheets to include.
2754 + Output video and audio elements depending on file
2755 extension of the image path (Mauro Bieg).
2756 + Emit empty alt tag in figures (#5518, Mauro Bieg).
2757 The same text is already in the <figcaption> and
2758 screen-readers would read it twice, see #4737.
2759 + Don't add variation selector if it's already there.
2760 This fixes round-trip failures.
2761 + Prevent gratuitous emojification on iOS (#5469).
2762 iOS chooses to render a number of Unicode entities, including '↩', as
2763 big colorful emoji. This can be defeated by appending Unicode
2764 VARIATION SELECTOR-15'/'VARIATION SELECTOR-16'. So we now append this
2765 character when escaping strings, for both '↩' and '↔'. If other
2766 characters prove problematic, they can simply be added to
2767 `needsVariationSelector`. + Add `class="heading"` to level 7+ Headers
2768 rendered as `<p>` elements (#5457).
2770 * RST writer: treat Span with no attributes as transparent (#5446).
2771 Previously an Emph inside a Span was being treated as
2772 nested markup and ignored. With this patch, the Span
2777 + Include inline code attributes with `--listings` (#5420).
2778 + Don't produce columns environment unless beamer (#5485).
2779 + Fix footnote in image caption. Regression: the fix for #4683 broke
2781 + Don't highlight code in headings (#5574). This causes
2783 + Use `\mbox` to get proper behavior inside `\sout` (#5529).
2785 * EPUB writer: Fix document section assignments (#5546).
2786 For example, introduction should go in bodymatter, not frontmatter, and
2787 epigraph, conclusion, and afterward should go in bodymatter, not
2788 backmatter. For the full list of assignments, see the manual.
2792 + Add backslashes to avoid unwanted interpretation of
2793 definition list terms as other kinds of block (#554).
2794 + Ensure the code fence is long enough (#5519).
2795 Previously too few backticks were used when the code block
2796 contained an indented line of backticks. (Ditto tildes.)
2797 + Handle labels with integer names (Jesse Rosenthal, #5495).
2798 Previously if labels had integer names, it could produce a conflict
2799 with auto-labeled reference links. Now we test for a conflict and
2800 find the next available integer. This involves adding a new state
2801 variable `stPrevRefs` to keep track of refs used in other document
2802 parts when using `--reference-location=block|section`
2804 * Textile writer: fix closing tag for math output (Albert Krewinkel).
2805 Opening and closing tag for math output match now.
2807 * Org writer: always indent src blocks content by 2 spaces (#5440, Albert
2808 Krewinkel). Emacs always uses two spaces when indenting the content of
2809 src blocks, e.g., when exiting a `C-c '` edit-buffer. Pandoc used to
2810 indent contents by the space-equivalent of one tab, but now always uses
2815 + Use `` `+...+` `` form for inline code.
2816 The old `` `a__b__c` `` yields emphasis inside code in asciidoc.
2817 To get a pure literal code span, use `` `+a__b__c+` ``.
2818 + Use proper smart quotes with asciidoctor (#5487).
2819 Asciidoctor has a different format for smart quotes.
2820 + Use doubled ## when necessary for spans (#5566).
2821 + Ensure correct nesting of strong/emph (#5565): strong
2822 must be the outer element.
2826 + Wrap elements with p when needed (#5570). The JATS spec restricts
2827 what elements can go inside `fn` and `list-item`. So we wrap other
2828 elements inside `<p specific-use="wrapper">` when needed.
2829 + Properly handle footnotes (#5511) according to "best practice."
2830 (Group them at the end in `<fn-group>` and use `<xref>` elements
2832 + Fix citations with PMID so they validate (#5481). This includes
2833 an update to data/jats.csl.
2834 + Ensure validity of `<pub-date>` by parsing the date and
2835 extracting year, month, and day, as expected. Also add an
2836 iso-8601-date attribute automatically.
2837 + Don't use `<break>` element for LineBreak. It is only
2838 allowed in a few special contexts, and not in `<p>` elements.
2839 + Don't make `<string-name>` a child of `<string>`, which is illegal.
2843 + Do not wrap note references into `<sup>` and brackets
2844 (Alexander Krotov). Existing FB2 readers, such as FBReader, already
2845 display links with type="note" as a superscript.
2846 + Use genre metadata field (#5478).
2848 * Muse writer: do not escape empty line after `<br>` (Alexander Krotov).
2850 * Add unicode code point in "Missing character" warning (#5538).
2851 If the character isn't in the console font, the message is pretty useless,
2852 so we show the code point for anything non-ASCII.
2854 * Lua: add Version type to simplify comparisons (Albert Krewinkel).
2855 Version specifiers like `PANDOC_VERSION` and `PANDOC_API_VERSION` are
2856 turned into `Version` objects. The objects simplify version-appropriate
2857 comparisons while maintaining backward-compatibility.
2858 A function `pandoc.types.Version` is added as part of the newly
2859 introduced module `pandoc.types`, allowing users to create version
2862 * pandoc lua module (Albert Krewinkel):
2864 - Fix deletion of nonexistent attributes (#5569).
2865 - Better tests for Attr and AttributeList.
2867 * pandoc.mediabag lua module (Albert Krewinkel):
2869 + Add function `delete` for deleting a single item.
2870 + Add function `empty` for removing all entries.
2871 + Add function `items` for iterating over mediabag.
2873 * Text.Pandoc.Class: Fix handling of `file:` URL scheme in
2874 `downloadOrRead` (#5517, Mauro Bieg). Previously `file:/`
2875 URLs were handled wrongly and pandoc attempted to make HTTP
2876 requests, which failed.
2878 * Text.Pandoc.MIME: add `mediaCategory` [API change] (Mauro Bieg).
2880 * Text.Pandoc.Shared:
2882 + Add `onlySimpleTableCells` [API change]
2883 (Mauro Bieg) and use this to consolidate simple-table detection
2884 (#5524). This fixes an inconsistency in the HTML reader, which did not
2885 treat tables with `<p>` inside cells as simple.
2886 + `metaToJSON`: treat digits starting with 0 as a string, not a number
2887 (#5479). This fixes a regression in YAML metadata in pandoc 2.7.2.
2889 * Text.Pandoc.Logging: Add `IgnoredElement` constructor for
2890 `LogMessage`. `SkippedConetnt` doesn't work for some XML-based
2891 readers which don't have access to parsec source positions.
2893 * Text.Pandoc.Asciify: Add Turkish undotted-i (#5433, Mauro Bieg).
2895 * Improve output of Lua tests (#5499, Albert Krewinkel).
2896 This makes use of tasty-lua, a package to write tests in Lua
2897 and integrate the results into Tasty output. Test output becomes
2898 more informative: individual tests and test groups become visible
2899 in test output. Failures are reported with helpful error messages.
2901 * Lua: add `pandoc.system` module (#5468, Albert Krewinkel).
2902 The `system` Lua module provides utility functions to interact with the
2903 operating- and file system. E.g.
2904 `print(pandoc.system.get_current_directory())`
2907 pandoc.system.with_temporary_directory('tikz', function (dir)
2908 -- write and compile a TikZ file with pdflatex
2912 * LaTeX template: Add pdflang to hypersetup if lang is set (#5443).
2914 * beamer template: Fix using Beamer with geometry (#5505, Daniel Maslowski).
2915 Beamer already loads geometry, so we need to use the `\geometry`
2916 command to set geometry options.
2918 * EPUB2/3 templates: Move inline styles to default epub.css (#5466).
2919 NOTE: Those who use a custom CSS stylesheet with EPUB should
2922 code{ white-space: pre-wrap; }
2923 span.smallcaps{ font-variant: small-caps; }
2924 span.underline{ text-decoration: underline; }
2925 q { quotes: "“" "”" "‘" "’"; }
2926 div.column{ display: inline-block; vertical-align: top; width: 50%; }
2928 * reveal.js template:
2930 + Updates for revealjs 3.8.0 (#5435, ebiim).
2931 + Remove reference to head.min.js (#5448, Winnie Hellmann).
2932 NOTE: users will need to update reveal.js to at least 3.8.0
2933 for their presentations generated with this version of pandoc
2938 + Replace `</>` with literal `/` (#5451).
2939 We use forward-slash for a directory separator in tmpDir,
2940 even on Windows (because that's what tex likes). So we
2941 should not put a backslash between the tmpDir and the
2942 filename on Windows. This is harmless enough in normal
2943 Windows setups, but it breaks on Cygwin.
2944 Thanks to @cc2x for noticing and diagnosing the problem.
2945 + Allow use of `-output-directory` in `--pdf-engine-opt` (#5462).
2946 This is currently possible with `mklatex` and `-outdir`, but
2947 was not yet possible with xelatex and `-output-directory`.
2948 + For PDF via ms/pdfroff, make TOC appear at beginning and in
2949 PDF bookmarks (#5553). Previously the TOC appeared at the end
2950 of the document, and was not bookmarked. To keep it at the end,
2951 add `--pdf-engine-opt=--no-toc-relocation` to your command line.
2953 * Fix broken links in documents (#5473, Shim Myeongseob).
2954 Also, use absolute links to pandoc.org when possible, so that
2955 the links can be followed by people viewing these documents
2958 * Improved sample lua tikz filter in lua-filters docs (#5445,
2959 Matthew Doty). There are three changes:
2961 + It only processes elements which begin with `\begin{tikzpicture}`
2962 + It uses pdf2svg instead of imagemagick to preserve fidelity
2963 + The images produced have transparent backgrounds
2967 + Add note about `title-meta`, `author-meta`, `date-meta` (#5486).
2968 + Fix typo (#5489, Christian Krause).
2970 * add test/tables.xwiki to git and pandoc.cabal (#5498, Mauro Bieg).
2972 * Disable missing-home-modules warning in `stack.yaml`.
2973 Otherwise `stack ghci` fails.
2976## pandoc 2.7.2 (2019-04-05)
2978 * Add XWiki writer (#1800, Derek Chen-Becker).
2979 Add `Text.Pandoc.Writers.XWiki`, exporting `writeXWiki` [API change].
2981 * Dokuwiki Reader: parse single curly brace (#5416, Mauro Bieg).
2983 * Vimwiki reader: improve handling of internal links (#5414).
2984 We no longer append `.html` to link targets, and we add a title
2985 `wikilink`. This mirrors behavior of other wiki readers. Generally
2986 the `.html` extension is not wanted. It may be important for output
2987 to HTML in certain circumstances, but it can always be added using a
2988 filter that matches on links with title `wikilink`.
2990 If your workflow requires the current behavior, here is a lua filter
2991 that will add the `.html` extension:
2995 if el.title == 'wikilink' then
2996 el.target = el.target .. ".html"
3003 + Use format `ipynb` for raw cell where no format given.
3004 + Avoid introducing spurious `.0` on integers in metadata.
3006 * Markdown reader: fenced div takes priority over setext header.
3008 * HTML reader: read `data-foo` attribute into `foo` (#5392).
3009 The HTML writer adds the `data-` prefix for HTML5 for nonstandard
3010 attributes. But the attributes are represented in the AST without
3011 the `data-` prefix, so we should strip this when reading HTML.
3013 * LaTeX reader: Improve autolink detection (#5340).
3015 * PowerPoint writer (Jesse Rosenthal):
3017 + Expand builtin reference doc to model all layouts.
3018 The previous built-in reference doc had only title and content
3019 layouts. Add in a section-header slide and a two-content slide, so
3020 users can more easily modify it to build their own templates.
3021 + Always open up in slide view. When editing a
3022 template/reference-doc, the user might be in Master view, but when
3023 producing a slide show, it is assumed that slide view will be
3025 + Remove `handoutsMasterList` from template presentation.xml
3026 + Fix numerous errors in templating (#5402). Previously, some templates
3027 produced by Office 365 (MacOS) would not render with `--reference-doc`
3028 correctly. We now apply correct shapes for content, and build
3029 shape trees correctly.
3030 + Make default placeholder type for template lookup.
3031 + Apply speaker notes to metadata slide if applicable.
3032 + Test for speaker notes after breaking header.
3033 + Correctly handle notes after section-title header.
3034 Previously, if notes came after a section-title header (ie, a level-1
3035 header in a slide-level=2 presentation), they would go on the next
3036 slide. This keeps them on the slide with the header.
3037 + Internal improvements.
3041 + Use format `ipynb` for raw cell where no format given.
3042 According to nbformat docs, this is supposed to render in every
3043 format. We don't do that, but we at least preserve it as a raw
3044 block in markdown, so you can round-trip.
3045 + Consolidate adjacent raw blocks. Sometimes pandoc creates two
3046 HTML blocks, e.g. one for the open tag and one for a close tag.
3047 If these aren't consolidated, only one will show up in output cell.
3048 + Fixed carry-over of nbformat from metadata.
3049 + Preserve `nbformat_minor` if it's given. This helps with round-tripping.
3053 + Avoid inadvertently creating ?` or !` ligatures (#5407).
3054 These are upside down ? and !, resp.
3055 + Fix footnotes in table caption and cells (#5367). This fixes a
3056 bug wherein footnotes appeared in the wrong order, and with
3057 duplicate numbers, when in table captions and cells.
3058 We now use regular `\footnote` commands, even in the table
3059 caption and the minipages containing cells. Apparently
3060 longtable knows how to handle this.
3062 * HTML writer: Don't add data- prefix to RDFa attributes (#5403).
3064 * JATS writer: Ensure that plain strings go inside `<pub-id>` tag (#5397).
3068 + Better rendering of numbers (#5398). If the number is integral,
3069 we render it as an integral not a float.
3070 + Proper rendering of empty map in YAML metadata (#5398). Should
3071 be `{}`, not empty string.
3072 + Properly escape attributes in Markdown writer (#5369).
3073 + Be sure implicit figures work in list contexts (#5368).
3074 Previously they would sometimes not work: e.g., when they
3075 occurred in final paragraphs in lists that were originally
3076 parsed as Plain and converted later using PlainToPara.
3078 * Docx writer: Use `w:br` without attributes for line breaks (#5377).
3079 We previously added the attribute `type="textWrapping"`, but
3080 this causes problems on Word Online.
3082 * LaTeX template (Andrew Dunning):
3084 + Ensure correct heading/table order (#5365). Improve workaround
3085 (#1658) for tables following headings. The new solution works whether
3086 or not the `indent` variable is enabled.
3087 + Remove `subparagraph` variable. The default is now to use run-in
3088 style for level 4 and 5 headings (`\paragraph` and `\subparagraph`).
3089 To get the previous default behavior (where these were formatted as
3090 blocks, like `\subsubsection`), set the `block-headings` variable.
3091 + Add pandoc to PDF metadata (#5388).
3092 + Group graphics-related code (#5389).
3093 + Move `\setstretch` after front matter (#5179). Ensures that
3094 `\maketitle`, `\tableofcontents`, and so forth are not affected by
3095 changes to line spacing.
3097 * Update data/jats.csl to avoid commas between name-part elements
3100 * Add support for golang (`go`) with `--listings` (#5427).
3102 * Text.Pandoc.Shared - improve `metaToJSON` behavior with numbers.
3103 We now do a better job marshalling numbers from MetaString
3104 or MetaInlines into JSON Number.
3106 * Text.Pandoc.Writers.Shared: `metaValueToJSON`: use Number Values for
3107 integers. Pandoc's MetaValue doesn't have a distinguished number type,
3108 so numbers are put in MetaStrings. If the MetaString consists
3109 entirely of digits, we convert it to a Number. We should probably
3110 consider adding a MetaNumber constructor to MetaValue, for better
3111 round-tripping with JSON etc. This change aids round-tripping in
3112 ipynb metadata fields, like `toc_depth`.
3114 * Text.Pandoc.Class: `fetchItem`: don't treat UNC paths as
3115 protocol-relative URLs (#5127). These are paths beginning `//?/UNC/...`.
3117 * Text.Pandoc.ImageSize: Improve `pdfSize` so it handles
3118 a wider range of PDFs (#4322, with help from Richard Davis).
3120 * Text.Pandoc.Pretty: avoid stack overflow by using strict sum (#5401).
3122 * Fix harmless error in file-scope code (#5422).
3126 + Improve 'header' and 'heading' usage (#5423, Andrew
3127 Dunning). The term 'header' was being used where 'heading'
3128 is more appropriate.
3129 + Add paragraph on options affecting markdown in ipynb.
3131 * stack.yaml - remove -Wmissing-home-modules
3132 This seems to cause problems with stack ghci. Remove RTS options.
3134 * Add ghc-options to cabal.project.
3136 * appveyor.yml - use ghc 8.6.4. Fixes segfault issues on Windows (#5037).
3138 * linux build process: Remove clone of pandoc-citeproc (#5366).
3139 It wasn't being used; cabal.project specifies the version to use.
3141## pandoc 2.7.1 (2019-03-14)
3143 * Add tectonic as an option for --pdf-engine (#5345, Cormac Relf).
3144 Runs tectonic on STDIN instead of a temporary .tex file, so that it
3145 looks in the working directory for `\include` and `\input` like the rest
3146 of the engines. Allows overriding the output directory
3147 args with `--pdf-engine-opt=--outdir --pdf-engine-opt="$DIR"`.
3149 * Allow `-o/--output` to be used with `--print-default-data-file`,
3150 `--print-highlighting-style`, `--print-default-template`.
3151 Note that `-o` must occur BEFORE the `--print*` command on the command
3152 line (this is documented, #5357).
3156 + Support `\underline`, `\ul`, `\uline` (#5359, Paul
3157 Tilley). These are parsed as a Span with class `underline`, as
3159 + Ensure that `\Footcite` and `\Footcites` get put in a note.
3163 + Remove sensitivity to `raw_html`, `raw_tex` extensions.
3164 We now include every output format. Pruning is handled by
3166 + Better handling of cell metadata. We now include even complex cell
3167 metadata in the Div's attributes (as JSON, in complex cases, or
3168 as plain strings in simple cases).
3172 + Recurse into native divs for output cell data (#5354).
3173 + Render cell metadata fields from div attributes.
3175 * Docx writer: avoid extra copy of abstractNum and num elements
3176 in numbering.xml. This caused pandoc-produced docx files to
3177 be uneditable using Word Online (#5358).
3179 * Markdown writer: improve handling of raw blocks/inline.
3180 We now emit raw content using `raw_attribute` when no more
3181 direct method is available. Use of `raw_attribute` can be
3182 forced by disabling `raw_html` and `raw_tex`.
3184 * LaTeX writer: Add classes for frontmatter support (#5353, Andrew Dunning)
3185 and remove frontmatter from `scrreprt`.
3189 + Improve readability (#5363, Andrew Dunning).
3190 + Robust section numbering removal (#5351, Andrew Dunning).
3191 Ensures that section numbering does not reappear with custom
3192 section levels. See <https://tex.stackexchange.com/questions/473653/>.
3193 + Better handling of front/main/backmatter (#5348).
3194 In pandoc 2.7 we assumed that every class with chapters would accept
3195 `\frontmatter`, `\mainmatter`, and `\backmatter`. This is not so (e.g.
3196 report does not). So pandoc 2.7 breaks on report class by including an
3197 unsupported command. Instead of the `book-class` variable, we use two
3198 variables, `has-chapters` and `has-frontmatter`, and set these
3199 intelligently in the writer.
3201 * Text.Pandoc.Shared: Improve `filterIpynbOutput`. Ensure that
3202 images are prioritized over text. `best` should include everything
3205 * Tests.Old: specify `--data-dir=../data` to ensure tests can find
3206 data files even if they haven't been installed. Remove old
3207 `pandoc_datadir` environment variable, which hasn't done anything for a
3210 * MANUAL.txt: Add recommendation to use `raw_attribute` with ipynb (#5354).
3212 * Use cmark-gfm-hs 0.1.8 (note that 0.1.7 is buggy).
3214 * Use latest pandoc-citeproc, texmath.
3217## pandoc 2.7 (2019-03-03)
3219 * Use XDG data directory for user data directory (#3582). Instead of
3220 `$HOME/.pandoc`, the default user data directory is now
3221 `$XDG_DATA_HOME/pandoc`, where `XDG_DATA_HOME` defaults to
3222 `$HOME/.local/share` but can be overridden by setting the
3223 environment variable. If this directory is missing, then
3224 `$HOME/.pandoc` is searched instead, for backwards compatibility.
3225 However, we recommend moving local pandoc data files from
3226 `$HOME/.pandoc` to `$HOME/.local/share/pandoc`. On Windows the
3227 default user data directory remains the same.
3229 * Slide show formats behavior change: content under headers
3230 less than slide level is no longer ignored, but included in
3231 the title slide (for HTML slide shows) or in a slide after
3232 the title slide (for beamer). This change makes possible
3233 2D reveal.js slideshows with content in the top slide on
3234 each stack (#4317, #5237).
3236 * Add command line option `--ipynb-output=all|none|best` (#5339).
3237 Output cells in ipynb notebooks often contain several different
3238 versions of an output, with different MIME types, e.g. an HTML
3239 table and a plain-text fallback. Specifying `--ipynb-output=best`
3240 (the default) ensures that the best version for the output format
3241 is used. `all` includes all versions, and `none` suppresses them
3242 all, leaving output cells empty.
3244 * `asciidoctor` is now an output format separate from `asciidoc`,
3245 to accommodate some minor implementation-specific differences
3246 (currently just in the treatment of display math).
3248 * Add `latexmk` as an option for `--pdf-engine` (#3195).
3249 Note that you can use `--pdf-engine-opt=-outdir=bar` to specify
3250 a persistent temp directory.
3254 + Improve tight/loose list handling (#5285). Previously the
3255 algorithm allowed list items with a mix of Para and Plain, which
3257 + Add newline when parsing blocks in YAML (#5271). Otherwise last
3258 block gets parsed as a Plain rather than a Para. This is a
3259 regression in pandoc 2.x. This patch restores pandoc 1.19
3261 + Make `yamlToMeta` respect extensions (#5272, Mauro Bieg).
3262 This adds a `ReaderOptions` parameter to `yamlToMeta` [API change].
3263 + Fix bug parsing fenced code blocks (#5304). Previously parsing
3264 would break if the code block contained a string of backticks of
3265 sufficient length followed by something other than end of line.
3267 * LaTeX reader: don't let `\egroup` match `{`. `braced` now actually
3268 requires nested braces. Otherwise some legitimate command and
3269 environment definitions can break.
3271 * Docx reader (Jesse Rosenthal):
3273 + Rename `getDocumentPath` as `getDocumentXmlPath`.
3274 + Use field notation for setting `ReaderEnv`.
3275 + Figure out `document.xml` path once at the beginning of parsing, and
3276 add it to the environment, so we can avoid repeated lookups.
3277 + Dynamically determine main document xml path (#5277).
3278 The desktop Word program places the main document file in
3279 `word/document.xml`, but the online word places it in
3280 `word/document2.xml`. This file path is actually stated in the root
3281 `_rels/.rels` file, in the `Relationship` element with an
3282 `http://../officedocument` type.
3283 + Fix paths in archive to prevent Windows failure (#5277).
3284 Some paths in archives are absolute (have an opening slash) which, for
3285 reasons unknown, produces a failure in the test suite on MS
3286 Windows. This fixes that by removing the leading slash if it exists.
3287 + Add comments to aid code readability.
3288 + Trim space inside the last inline (#5273).
3289 + Unwrap sdt elements in footnotes and comments (#5302).
3291 * Muse reader (Alexander Krotov):
3293 + Test that block level markup does not break `<verbatim>`.
3294 + Add secondary note support.
3296 * ipynb reader: handle images referring to attachments. Previously
3297 we didn't strip off the attachment: prefix, so even though the
3298 attachment was available in the mediabag, pandoc couldn't find it.
3302 + Fix parsing of figures (#5321). This ensures that a figure
3303 containing a single image is parsed as a pandoc "implicit
3304 figure" (i.e., a Para with a single Image whose title attribute
3305 begins with `fig:`). More complex figures will still be parsed
3307 + Support `fig-group` block element (#5317).
3308 + Handle citations with multiple references (#5310). The `rid`
3309 attribute can have a space-separated list of ids.
3311 * AsciiDoc Writer: Add `writeAsciiDoctor` [API change, Tarik Graba].
3312 Handle display math appropriately for Asciidoctor.
3314 * JATS writer: wrap figure caption in `<p>` to fix validation (#5290,
3319 + Implement WAI-ARIA roles for (end)notes, citations, and
3320 bibliography (#4213). Note that doc-biblioref is only used when
3321 link-citations produces links, since it belongs on links.
3322 + Include content (including speaker notes) in title slides
3327 + Ensure final newline.
3328 + Only include metadata under `jupyter` field.
3329 + Don't create attachments for images with absolute URIs,
3330 including data: URIs (#5303).
3331 + Keep plain text fallbacks in output even if a richer format is
3332 included (#5293). We don't know what output format will be needed.
3333 See the `--ipynb-output` command line option for a way to control
3334 what formats are included in the output.
3336 * Markdown writer: use `markdown="1"` when appropriate for Divs:
3337 when `native_divs` and `markdown_in_html_blocks` are disabled
3338 but `raw_html` and `markdown_attribute` are enabled.
3342 + Use right fold for `escapeString`. This is more elegant than
3343 the explicit recursive code we were using.
3344 + Avoid `{}` after control sequences when escaping.
3345 `\ldots{}.` doesn't behave as well as `\ldots.` with the latex
3346 ellipsis package. This patch causes pandoc to avoid emitting
3347 the `{}` when it is not necessary. Now `\ldots` and other
3348 control sequences used in escaping will be followed by either
3349 a `{}`, a space, or nothing, depending on context.
3350 + For beamer, include contents under headers superordinate to
3351 slidelevel (#4317). Currently we keep the fancy title slide, and
3352 add a new slide with the same title and whatever content was
3355 * Powerpoint writer (Jesse Rosenthal): support underlines.
3356 Use span with single class "underline" as in docx writer.
3358 * Muse writer: escape secondary notes (Alexander Krotov).
3360 * FB2 writer: add section identifiers support (#5229, John KetzerX).
3362 * Make `--fail-if-warnings` work for PDF output (#5343).
3364 * Lua filters (Albert Krewinkel):
3366 + Load module `pandoc` before calling `init.lua` (#5287). The file
3367 `init.lua` in pandoc's data directory is run as part of pandoc's
3368 Lua initialization process. Previously, the `pandoc` module was
3369 loaded in `init.lua`, and the structure for marshaling was
3370 set up after. This allowed simple patching of element
3371 marshaling, but made using `init.lua` more difficult. Now, all
3372 required modules are now loaded before calling `init.lua`. The
3373 file can be used entirely for user customization. Patching
3374 marshaling functions, while discouraged, is still possible via
3376 + All Lua modules bundled with pandoc, i.e., `pandoc.List`,
3377 `pandoc.mediabag`, `pandoc.utils`, and `text` are re-exported from the
3378 `pandoc` module. They are assigned to the fields `List`, `mediabag`,
3379 `utils`, and `text`, respectively.
3381 * Text.Pandoc.Lua (Albert Krewinkel):
3383 + Split `StackInstances` into smaller Marshaling modules.
3384 + Get `CommonState` from Lua global. This allows more control over
3385 the common state from within Lua scripts.
3389 + Support the `subject` metadata variable (#5289, Pascal Wagler).
3390 + Add `\frontmatter`, `\mainmatter`, `\backmatter`
3391 for book classes (#5306).
3393 * epub3 template: Add titlepage class to section (#5269).
3395 * HTML5 template: Add ARIA role `doc-toc` for table of contents (#4213).
3397 * Make `--metadata-file` use selected extensions (#5279, #5272, Mauro Bieg).
3399 * Text.Pandoc.Shared:
3401 + Remove `withTempDir` [API change].
3402 + Add new exported function `defaultUserDataDirs` [API change].
3403 + Add `filterIpynbOutput` [API change].
3404 + `compactify`: Avoid lists with a mix of Plain and Para elements
3407 * Text.Pandoc.Translations: reorder alphabetically and remove `Author`
3408 (#5334, Mauro Bieg).
3410 * Text.Pandoc.Extensions:
3412 + More carefully groom ipynb default extensions.
3413 + Add `all_symbols_escapable` to `githubMarkdownExtensions`.
3417 + Use system temp directory when possible (#1192). Previously we
3418 created temp dirs in the working directory, partly (a) because
3419 there were problems using the system temp directory on Windows,
3420 when their pathnames included tildes, and partly (b) because
3421 programs like `epstopdf.pl` would not be allowed to write to
3422 directories outside the working directory in restricted mode. We
3423 now (a) use the system temp dir except when the path includes
3424 tildes, and (b) set `TEXMFOUTPUT` when creating the PDF, so that
3425 subsidiary programs can use the system temp directory. This
3426 addresses problems that occurred when pandoc was used in a
3427 synced directory (such as Dropbox).
3428 + Change types of subsidiary functions to PandocIO, to allow
3429 warnings to be threaded through (#5343).
3431 * Text.Pandoc.MIME: add WebP (#5267, Mauro Bieg).
3433 * Tests: avoid calling `findPandoc` multiple times.
3435 * Old tests: remove need for temp files by using `pipeProcess`.
3437 * Added simple ipynb reader/writer tests (#5274).
3439 * Rearrange `--help` output in a more rational way, with common
3440 options at the beginning and options grouped by function (#5336).
3442 * trypandoc: Add JATS and other missing formats (Arfon Smith, #5291).
3444 * Add missing copyright notices and remove license boilerplate (#4592,
3447 * Use latest basement/foundation on 32bit windows.
3449 * Use latest skylighting (#5328). Custom syntax definitions no
3450 longer try to load `language.dtd`.
3452 * Require texmath 0.11.2.1
3454 * Use latest pandoc-citeproc (0.16.1.1).
3458 + Clarify variable substitution indentation in templates (#5338,
3459 Agustín Martín Barbero).
3460 + Reorder custom-styles section (#5324, Mauro Bieg).
3462## pandoc 2.6 (2019-01-30)
3464 * Support ipynb (Jupyter notebook) as input and output format.
3466 + Add `ipynb` as input and output format (extension `.ipynb`).
3467 + Added Text.Pandoc.Readers.Ipynb [API change].
3468 + Added Text.Pandoc.Writers.Ipynb [API change].
3469 + Add `PandocIpynbDecodingError` constructor to Text.Pandoc.Error.Error
3471 + Depend on ipynb library.
3472 + Note: there is no template for ipynb.
3474 * Add DokuWiki reader (#1792, Alexander Krotov). This adds
3475 Text.Pandoc.Readers.DokuWiki [API change], and adds `dokuwiki`
3478 * Implement task lists (#3051, Mauro Bieg). Added `task_lists`
3479 extension. Task lists are supported from markdown and gfm input.
3480 They should work, to some degree, in all output formats, though in
3481 most formats you'll get a bullet list with a unicode character for
3482 the box. In HTML, you get checkboxes and in LaTeX/PDF output, a
3483 box is used as the list marker. API changes:
3485 + Added constructor `Ext_task_lists` to `Extension`.
3486 + Added `taskListItemFromAscii` and `taskListItemToAscii` to
3489 * Allow some command line options to take URL in addition to FILE.
3490 `--include-in-header`, `--include-before-body`, `--include-after-body`.
3494 + Handle empty `start` attribute (see #5162).
3495 + Treat `textarea` as a verbatim environment (#5241) and preserve
3500 + Change treatment of `number-lines` directive (Brian Leung,
3501 #5207). Directives of this type without numeric inputs should
3502 not have a `startFrom` attribute; with a blank value, the
3503 writers can produce extra whitespace.
3504 + Removed superfluous `sourceCode` class on code blocks (#5047).
3505 + Handle `sourcecode` directive as synonynm for `code` (#5204).
3509 + Remove `sourceCode` class for literate Haskell code blocks
3510 (#5047). Reverse order of `literate` and `haskell` classes on
3511 code blocks when parsing literate Haskell, so `haskell` is
3513 + Treat `<textarea>` as a verbatim environment (#5241).
3517 + Handle `minlevel` option differently (#5190, Brian Leung).
3518 When `minlevel` exceeds the original minimum level observed in
3519 the file to be included, every heading should be shifted
3521 + Allow for case of `:minlevel == 0` (#5190).
3522 + Fix treatment of links to images (#5191, Albert Krewinkel).
3523 Links with descriptions which are pointing to images are no
3524 longer parsed as inline images, but as links.
3525 + Add support for #+SELECT_TAGS (Brian Leung).
3526 + Separate filtering logic from conversion function (Brian Leung).
3528 * TWiki reader: Fix performance issue with underscores (#3921).
3530 * MediaWiki reader: use `_` instead of `-` in auto-identifiers (#4731).
3531 We may not still be exactly matching mediawiki's algorithm.
3535 + Remove `sourceCode` class for literate Haskell code blocks
3536 (#5047). Reverse order of `literate` and `haskell` classes on
3537 code blocks when parsing literate Haskell, so `haskell` is
3539 + Support `\DeclareMathOperator` (#5149).
3540 + Support `\inputminted` (#5103).
3541 + Support `\endinput` (#5233).
3542 + Allow includes with dots like `cc_by_4.0`. Previously the `.0`
3543 was interpreted as a file extension, leading pandoc not to add
3544 `.tex` (and thus not to find the file). The new behavior matches
3549 + Use `mapLeft` from Shared instead of defining own.
3551 * Docx reader (Jesse Rosenthal):
3553 + Handle level overrides (#5134).
3557 + Support custom properties (#3024, #5252, Agustín Martín Barbero).
3558 Also supports additional core properties: `subject`, `lang`,
3559 `category`, `description`.
3560 + Make Level into a real type, instead of an alias for a tuple
3563 * ICML writer (Mauro Bieg):
3565 + Support custom-styles (#5137, see #2106).
3566 + Support unnumbered headers (#5140).
3568 * Texinfo writer: Use header identifier for anchor if present (#4731).
3569 Previously we were overwriting an existing identifier with a new one.
3571 * Org writer: Preserve line-numbering for example and code blocks
3574 * Man/Ms writers: Don't escape `-` as `\-`. The `\-` gets rendered
3575 in HTML and PDF as a unicode minus sign.
3577 * Ms writer: Ensure we have a newline after .EN in display math (#5251).
3579 * RST writer: Don't wrap simple table header lines (#5128).
3581 * Asciidoc writer: Shorter delimiters for tables, blockquotes
3582 (#4364). This matches asciidoctor reference docs.
3584 * Dokuwiki writer: Remove automatic `:` prefix before internal image
3585 links (#5183, Damien Clochard). This prevented users from making
3586 relative image links.
3588 * Zimwiki writer: remove automatic colon prefix before internal
3589 images (#5183, Damien Clochard).
3591 * MediaWiki writer: fix caption, use 'thumb' instead of 'frame'
3592 (#5105). Captions used to have the word 'caption' prepended; this
3593 has been removed. Also, 'thumb' is used instead of 'frame' to
3594 allow images to be resized.
3598 + Ensure that we don't get > 2 levels of section nesting,
3599 even with slide level > 2 (#5168).
3600 + If slide level == N but there is no N-level header, make
3601 sure the next header with level > N gets treated as a slide
3602 and put in a section, rather than remaining loose (#5168).
3606 + Make `plain` RawBlocks pass through in `plain` output.
3607 + Include needed whitespace after HTML figure (#5121).
3608 We use HTML for a figure in markdown dialects that can't
3609 represent it natively.
3611 * Commonmark writer:
3613 + Fix handling of SoftBreak with `hard_line_breaks` (#5195).
3614 + Implement `--toc` (`writerTableOfContents`)
3615 in commonmark/gfm writers (#5172).
3619 + Ensure that picture transforms are done on metadata too.
3620 + Small fixes to `nav.xhtml`:
3621 Add 'landmarks' id attribute to the landmarks nav.
3622 Replace old default CSS removing numbers from ol.toc li
3623 with new rules that match `nav#toc ol, nav#landmarks ol`.
3624 We keep the `toc` class on `ol` for backwards compatibility.
3628 + Make raw content marked `beamer` pass through in `beamer`
3629 output (pandoc/lua-filters#40).
3630 + Beamer: avoid duplicated `fragile` property in some cases
3632 + Add `#` special characters for listings (#4939).
3633 This character needs special handling in `\lstinline`.
3635 * RTF writer: use `toTableOfContents` from Shared to replace
3636 old duplicated code.
3640 + Support custom properties. Also supports additional core
3641 properties: `subject`, `category`, `description` (#5252,
3642 Agustín Martín Barbero).
3643 + Use `toTableOfContents` from Shared to replace old duplicated code.
3645 * ODT writer (Augustín Martín Barbero):
3647 + Fix typo in custom properties (#2839).
3648 + Improve standard properties, including the following core
3649 properties: `generator` (Pandoc/VERSION), `description`, `subject`,
3650 `keywords`, `initial-creator` (from authors), `creation-date`
3651 (actual creation date) (#5252).
3655 + Allow '-' in filenames for custom lua writers (#5187).
3656 + sample.lua: add `SingleQuoted`, `DoubleQuoted` (#5104).
3657 + sample.lua: Add a missing `>` (MichaWiedenmann).
3659 * reveal.js template: Add `zoomKey` config (#4249).
3661 * HTML5 template: Remove unnecessary type="text/css" on style and
3662 link for HTML5 (#5146).
3664 * LaTeX template (Andrew Dunning, except where noted):
3666 + Prevent fontspec from scaling `mainfont` to match the default
3667 font, Latin Modern. A main font set to 12pt could
3668 previously appear between 11pt to 13pt depending on its design.
3669 To return to the earlier rendering, use `-V
3670 mainfontoptions="Scale=MatchLowercase"` (#5212, #5218).
3671 + Display monospaced fonts without TeX ligatures when using
3672 `--pdf-engine=lualatex`. It now matches the behaviour of other
3673 engines (#5212, #5218).
3674 + Remove the deprecated `romanfont` variable. The functionality of
3675 `mainfont` is identical (#5218).
3676 + Render `\subtitle` with the standard document classes.
3677 Previously, `subtitle` only appeared when using the KOMA-Script
3678 classes or Beamer (#5213, #5244).
3679 + Use Babel instead of Polyglossia for LuaLaTeX. This avoids
3680 several language selection problems, notably with retaining
3681 French spacing conventions when switching to a verbatim
3682 environment or another language; and in printing Greek text
3683 without hyphenation (#5193).
3684 + Use the [`xurl`](https://ctan.org/pkg/xurl) package if
3685 available, improving the appearance of URLs by allowing them to
3686 break at additional points (#5193).
3687 + Use [`bookmark`](https://ctan.org/pkg/bookmark) if available
3688 to correct heading levels in PDF bookmarks: see the [KOMA-Script
3689 3.26 release notes](https://komascript.de/release3.26) (#5193).
3690 + Require the [`xcolor`](https://ctan.org/pkg/xcolor) package to
3691 avoid a possible error when using additional packages alongside
3692 footnotes in tables (#5193, closes #4861).
3693 + Remove obsolete `fixltx2e` package, which has no functionality
3694 with TeX Live 2015 or later (#5193).
3695 + Allow multiple `fontfamilies.options` (#5193, closes #5194).
3696 + Restrict `institute` variable to Beamer (#5219).
3697 + Use [`footnotehyper`](https://ctan.org/pkg/footnotehyper)
3698 package if available to make footnotes in tables compatible
3699 with `hyperref` (#5234).
3700 + Number parts and chapters in book classes only if the
3701 `numbersections` variable is set, for consistency with other
3702 output formats. To return to the previous behaviour, use
3703 `-V numbersections -V secnumdepth=0` (#5235).
3704 + Reindent file (#5193).
3705 + Use built-in parskip handling with KOMA-Script classes (#5143, Enno).
3706 + Set default listings language for lua, assembler (#5227, John
3707 MacFarlane). Otherwise we get an error when trying to compile code
3708 with lua or assembler code. To change the default dialect
3709 (currently 5.3 for lua and x86masm for assembler), you can use
3710 `--include-in-header` to inject something like
3711 `\lstset{defaultdialect=[5.2]Lua}`.
3713 * Text.Pandoc.Readers: Changed types of `readJSON`; it now runs
3714 in an instance of PandocMonad, like the other readers and
3715 writers. [API change]
3717 * Text.Pandoc.Writers: Changed types of `writeJSON`; it now runs
3718 in an instance of PandocMonad, like the other readers and
3719 writers. [API change]
3721 * Text.Pandoc.Error: Added `PandocUTF8DecodingError` constructor
3722 for `PandocError`. [API change]
3724 * Text.Pandoc.Writers.Shared - add `toTableOfContents`. [API change]
3725 This is refactored out from the Markdown writer.
3726 It can be used in other writers to create a table of contents.
3728 * Improve error messages for UTF-8 decoding errors. Now we give
3729 the filename and byte offset (#4765).
3731 * Text.Pandoc.XML: Strip out illegal XML characters in
3732 `escapeXMLString` (#5119).
3734 * Text.Pandoc.Process: update `pipeProcess` (Albert Krewinkel).
3735 The implementation of `pipeProcess` was rewritten to fix sporadic
3736 failures caused by prematurely closed pipes.
3738 * Use `safeRead` instead of `read` everywhere in the code
3739 (John MacFarlane, Mauro Bieg, #5162, #5180).
3741 * Text.Pandoc.SelfContained: Decompress `.svgz` when
3742 converting to `data:` URI (#5163, Alexander Krotov).
3744 * Text.Pandoc.Parsing: Remove unused `HasHeaderMap`
3745 (#5175, Alexander Krotov). [API change]
3747 * Normalize Windows paths to account for change in ghc 8.6 (#5127).
3748 When pandoc is compiled with ghc 8.6, Windows paths are treated
3749 differently, and paths beginning `\\server` no longer work.
3750 This commit rewrites such patsh to `\\?\UNC\server` which works.
3751 The change operates at the level of argument parsing, so it
3752 only affects the command line program.
3754 * Simplify/fix reading of `--metadata` values on command line
3755 to avoid problems relating to hvr/HsYAML#7 (#5177).
3757 * data/pandoc.lua: auto-fix nested constructor arguments (Albert
3758 Krewinkel). Incorrect types to pandoc element constructors are
3759 automatically converted to the correct types when possible. This was
3760 already done for most constructors, but conversions are now also done
3761 for nested types (like lists of lists).
3763 * Removed custom Setup.hs, use build-type: simple. The only thing we
3764 gained from the custom build was automatic installation of the man
3765 page when using 'cabal install'. But custom builds cause problems,
3766 e.g., with cross-compilation. Installation of the man page is
3767 better handled by packagers. Note to packagers (e.g. Debian): it
3768 may be necessary to add a step installing the man page with the
3771 * Allow latest http-client, tasty, zip-archive, Glob.
3773 * Require skylighting >= 0.7.5, adding support for sml, J,
3776 * Tests: Cleaned up `findPandoc` in `Tests.Helpers`, so it
3777 works well with cabal v2.
3781 + Use button for installer links (John MacFarlane, Mauro Bieg,
3783 + Fix links and bump required stack version (max).
3784 + Improve installation notes on associated software (Andrew
3785 Dunning). Includes explanation of how to install related tools
3786 with package managers (since the method of installing
3787 `rsvg-convert` is not obvious).
3789 * doc/org.md: improve documentation of org features (Albert
3792 * doc/lua-filters.md: use 3rd level headers for module fields.
3796 + Clarify automatic identifiers (#5201). We remove
3797 non-alphanumerics. This includes, e.g., emojis.
3798 + Fix example for Div with id (Geoffrey Ely).
3799 + Update list of LaTeX packages used.
3800 + Make it clear that `hard_line_breaks` works in `gfm` (see #5195).
3801 + Mention `raw_attribute` in documentation for `raw_html` and
3802 `raw_tex` (#5240, thanks to @eiro).
3803 + Clarify that `$sep$` must come right before `$endfor$` in templates
3805 + Document metadata support for docx, odt, pptx writers (Agustín
3807 + Reorganize template variables (#5249, Andrew Dunning).
3808 Add additional headings to categorize variables, and
3809 alphabetize when there is large number; add more examples.
3810 + Document `date-meta` template variable (#5260, Tristan Stenner).
3812 * trypandoc: Fix CSS and viewport.
3814## pandoc 2.5 (2018-11-27)
3816 * Text.Pandoc.App: split into several unexported submodules (Albert
3817 Krewinkel): Text.Pandoc.App.FormatHeuristics,
3818 Text.Pandoc.App.Opt, Text.Pandoc.App.CommandLineOptions,
3819 Text.Pandoc.App.OutputSettings. This is motivated partly by the
3820 desire to reduce recompilations when something is modified,
3821 since App previously depended on virtually every other module.
3823 * Text.Pandoc.Extensions
3825 + Semantically, `gfm_auto_identifiers` is now a modifier of
3826 `auto_identifiers`; for identifiers to be set, `auto_identifiers` must
3827 be turned on, and then the type of identifier produced depends on
3828 `gfm_auto_identifiers` and `ascii_identifiers` are set. Accordingly,
3829 `auto_identifiers` is now added to `githubMarkdownExtensions` (#5057).
3830 + Remove `ascii_identifiers` from `githubMarkdownExtensions`.
3831 GitHub doesn't seem to strip non-ascii characters any more.
3833 * Text.Pandoc.Lua.Module.Utils (Albert Krewinkel)
3835 + Test AST object equality via Haskell (#5092). Equality of Lua
3836 objects representing pandoc AST elements is tested by unmarshalling
3837 the objects and comparing the result in Haskell.
3838 A new function `equals` which performs this test has been added to the
3839 `pandoc.utils` module.
3840 + Improve stringify. Meta value strings (MetaString)
3841 and booleans (MetaBool) are now converted to the literal string and the
3842 lowercase boolean name, respectively. Previously, all values of these
3843 types were converted to the empty string.
3845 * Text.Pandoc.Parsing: Remove Functor and Applicative constraints where Monad
3846 already exists (Alexander Krotov).
3848 * Text.Pandoc.Pretty: Don't render BreakingSpace at end of line
3849 or beginning of line (#5050).
3851 * Text.Pandoc.Readers.Markdown
3853 + Fix parsing of citations, quotes, and underline emphasis
3854 after symbols. Starting with pandoc 2.4, citations, quoted inlines,
3855 and underline emphasis were no longer recognized after certain
3856 symbols, like parentheses (#5099, #5053).
3857 + In pandoc 2.4, a soft break after an abbreviation would be
3858 relocated before it to allow for insertion of a nonbreaking
3859 space after the abbreviation. This behavior is here reverted.
3860 A soft break after an abbreviation will remain, and no nonbreaking
3861 space will be added. Those who care about this issue should take care not
3862 to end lines with an abbreviation, or to insert nonbreaking spaces
3865 * Text.Pandoc.Readers.FB2: Do not throw error for unknown elements in
3866 `<body>` (Alexander Krotov). Some libraries include custom elements
3869 * Text.Pandoc.Readers.HTML
3871 + Allow `tfoot` before body rows (#5079).
3872 + Parse `<small>` as a Span with class "small" (#5080).
3873 + Allow thead containing a row with `td` rather than `th` (#5014).
3875 * Text.Pandoc.Readers.LaTeX
3877 + Cleaned up handling of dimension arguments. Allow decimal points,
3879 + Don't allow arguments for verbatim, etc.
3880 + Allow space before bracketed options.
3881 + Allow optional arguments after `\\` in tables.
3882 + Improve parsing of `\tiny`, `\scriptsize`, etc. Parse as raw,
3883 but know that these font changing commands take no arguments.
3885 * Text.Pandoc.Readers.Muse
3887 + Trim whitespace before parsing grid table cells (Alexander Krotov).
3888 + Add grid tables support (Alexander Krotov).
3890 * Text.Pandoc.Shared
3892 + For bibliography match Div with id `refs`, not class `references`.
3893 This was a mismatch between pandoc's docx, epub, latex, and markdown
3894 writers and the behavior of pandoc-citeproc, which actually looks for a
3895 div with id `refs` rather than one with class `references`.
3896 + Exactly match GitHub's identifier generating algorithm (#5057).
3897 + Add parameter for `Extensions` to `uniqueIdent` and
3898 `inlineListToIdentifier` (#5057). [API change]
3899 This allows these functions to be sensitive to the settings of
3900 `Ext_gfm_auto_identifiers` and `Ext_ascii_identifiers`, and allows us to
3901 use `uniqueIdent` in the CommonMark reader, replacing custom code. It
3902 also means that `gfm_auto_identifiers` can now be used in all formats.
3904 * Text.Pandoc.Writers.AsciiDoc
3906 + Use `.`+ as list markers to support nested ordered lists (#5087).
3907 + Support list number styles (#5089).
3908 + Render Spans using `[#id .class]#contents#` (#5080).
3910 * Text.Pandoc.Writers.CommonMark
3912 + Respect `--ascii` (#5043, quasicomputational).
3913 + Make sure `--ascii` affects quotes, super/subscript.
3915 * Text.Pandoc.Writers.Docx
3917 + Fix bookmarks to headers with long titles (#5091).
3918 Word has a 40 character limit for bookmark names. In addition, bookmarks
3919 must begin with a letter. Since pandoc's auto-generated identifiers may
3920 not respect these constraints, some internal links did not work. With
3921 this change, pandoc uses a bookmark name based on the SHA1 hash of the
3922 identifier when the identifier isn't a legal bookmark name.
3923 + Add bookmarks to code blocks (Nikolay Yakimov).
3924 + Add bookmarks to images (Nikolay Yakimov).
3925 + Refactor common bookmark creation code into a function (Nikolay Yakimov).
3927 * Text.Pandoc.Writers.EPUB: Handle calibre metadata (#5098).
3930 <meta name="calibre:series" content="Classics on War and Politics"/>
3932 are now included from an epub XML metadata file. You can also include
3933 this information in your YAML metadata, like so:
3936 series: Classics on War and Policitics
3938 In addition, ibooks-specific metadata can now be included via an XML
3939 file. (Previously, it could only be included via YAML metadata, see
3942 * Text.Pandoc.Writers.HTML: Use plain `"` instead of `"` outside of
3945 * Text.Pandoc.Writers.ICML: Consolidate adjacent strings, inc. spaces.
3946 This avoids splitting up the output unnecessarily into separate elements.
3948 * Text.Pandoc.Writers.LaTeX: Don't emit `[<+->]` unless beamer output, even
3949 if `writerIncremental` is True (#5072).
3951 * Text.Pandoc.Writers.Muse (Alexander Krotov).
3953 + Output tables as grid tables if they have multi-line cells.
3954 + Indent simple tables only on the top level.
3955 + Output tables with one column as grid tables.
3956 + Add support for `--reference-location`.
3957 + Internal improvements.
3959 * Text.Pandoc.Writers.OpenDocument: Fix list indentation (Nils Carlson,
3960 #5095). This was a regression in pandoc 2.4.
3962 * Text.Pandoc.Writers.RTF: Fix warnings for skipped raw inlines.
3964 * Text.Pandoc.Writers.Texinfo: Add blank line before `@menu` section (#5055).
3966 * Text.Pandoc.XML: in `toHtml5Entities`, prefer shorter entities
3967 when there are several choices for a particular character.
3969 * data/abbreviations
3971 + Add additional abbreviations (Andrew Dunning)
3972 Many of these borrowed from the Chicago Manual of Style 10.42,
3973 'Scholarly abbreviations'.
3977 + Asciidoc template: add :lang: to title header is lang is set in
3980 * pandoc.cabal: Add cabal flag `derive_json_via_th` (Albert Krewinkel)
3981 Disabling the flag will cause derivation of ToJSON and FromJSON
3982 instances via GHC Generics instead of Template Haskell. The flag is
3983 enabled by default, as deriving via Generics can be slow (see #4083).
3987 + Tweaked drop-down lists.
3988 + Put link to site in footer.
3989 + Preselect output format.
3990 + Update on change of in or out format.
3991 + Add man input format.
3995 + Fix outdated description of latex_macros extension.
3996 + Clarified placement of bibliography.
3997 + Added "A note on security."
3998 + Fix note on curly brace syntx for locators.
3999 + Document new explicit syntax for citeproc locators.
4000 + Remove confusing cross-links for some extensions.
4001 + Don't put pandoc in code ticks in heading.
4002 + Document that `--ascii` works for gfm and commonmark too.
4003 + Add `man` to `--from` options.
4005 * doc/customizing-pandoc.md: various improvements (Mauro Bieg).
4008## pandoc 2.4 (2018-11-03)
4012 * New input format `man` (Yan Pashkovsky, John MacFarlane).
4016 * `--ascii` is now implemented in the writers, not in Text.Pandoc.App,
4017 via the new `writerPreferAscii` field in `WriterOptions`.
4018 Now the `write*` functions for Docbook, HTML, ICML, JATS, LaTeX,
4019 Ms, Markdown, and OPML are sensitive to `writerPreferAscii`.
4020 Previously the to-ascii translation was done in Text.Pandoc.App,
4021 and thus not available to those using the writer functions
4024 * `--ascii` now works with Markdown output. HTML5 character reference
4027 * `--ascii` now works with LaTeX output. 100% ASCII output can't be
4028 guaranteed, but the writer will use commands like `\"{a}` and `\l`
4029 whenever possible, to avoid emitting a non-ASCII character.
4031 * For HTML5 output, `--ascii` now uses HTML5 character reference
4032 entities rather than numerical entities.
4034 * Improved detection of format based on extension (in Text.Pandoc.App).
4035 We now ensure that if someone tries to convert a file for a
4036 format that has a pandoc writer but not a reader, it won't just
4037 default to markdown.
4039 * Add viz. to abbreviations file (#5007, Nick Fleisher).
4041 * AsciiDoc writer: always use single-line section headers,
4042 instead of the old underline style (#5038). Previously the single-line
4043 style would be used if `--atx-headers` was specified, but
4044 now it is always used.
4046 * RST writer: Use simple tables when possible (#4750).
4048 * CommonMark (and gfm) writer: Add plain text fallbacks. (#4528,
4049 quasicomputational). Previously, the writer would unconditionally
4050 emit HTML output for subscripts, superscripts, strikeouts (if the
4051 strikeout extension is disabled) and small caps, even with
4052 `raw_html` disabled. Now there are plain-text (and, where
4053 possible, fancy Unicode) fallbacks for all of these corresponding
4054 (mostly) to the Markdown fallbacks, and the HTML output is only
4055 used when `raw_html` is enabled.
4057 * Powerpoint writer: support raw openxml (Jesse Rosenthal, #4976).
4058 This allows raw openxml blocks and inlines to be used in the pptx
4059 writer. Caveats: (1) It's up to the user to write
4060 well-formed openxml. The chances for corruption, especially with
4061 such a brittle format as pptx, is high. (2) Because of
4062 the tricky way that blocks map onto shapes, if you are using
4063 a raw block, it should be the only block on a slide
4064 (otherwise other text might end up overlapping it). (3) The
4065 pptx ooxml namespace abbreviations are different from the
4066 docx ooxml namespaces. Again, it's up to the user to get it
4067 right. Unzipped document and ooxml specification should be
4070 * With `--katex` in HTML formats, do not use the autorenderer (#4946).
4071 We no longer surround formulas with `\(..\)` or `\[..\]`. Instead,
4072 we tell katex to convert the contents of span elements with
4073 class "math". Since math has already been identified, this
4074 avoids wasted time parsing for LaTeX delimiters. Note, however,
4075 that this may yield unexpected results if you have span elements
4076 with class "math" that don't contain LaTeX math.
4077 Also, use latest version of KaTeX by default (0.9.0).
4079 * The man writer now produces ASCII-only output, using groff escapes,
4084 + Add title, author and date to metadata; any remaining
4085 metadata fields are added as `meta:user-defined` tags.
4086 + Implement table caption numbering (#4949, Nils Carlson).
4087 Captioned tables are numbered and labeled with format "Table 1:
4088 caption", where "Table" is replaced by a translation, depending
4089 on the value of `lang` in metadata. Uncaptioned tables are not
4091 + OpenDocument writer: Implement figure numbering in captions (#4944,
4092 Nils Carlson). Figure captions are now numbered 1, 2, 3, ...
4093 The format in the caption is "Figure 1: caption" and so on
4094 (where "Figure" is replaced by a translation, depending on the
4095 value of `lang` in the metadata). Captioned figures are numbered
4096 consecutively and uncaptioned figures are not enumerated. This
4097 is necessary in order for LibreOffice to generate an
4098 Illustration Index (Table of Figures) for included figures.
4100 * RST reader: Pass through fields in unknown directives as div attributes
4101 (#4715). Support `class` and `name` attributes for all directives.
4103 * Org reader: Add partial support for `#+EXCLUDE_TAGS` option. (#4284,
4104 Brian Leung). Headers with the corresponding tags should not
4105 appear in the output.
4107 * Log warnings about missing title attributes now include a
4108 suggestion about how to fix the problem (#4909).
4110 * Lua filter changes (Albert Krewinkel):
4112 + Report traceback when an error occurs. A proper Lua traceback is
4113 added if either loading of a file or execution of a filter
4114 function fails. This should be of help to authors of Lua filters
4115 who need to debug their code.
4117 + Allow access to pandoc state (#5015). Lua filters and custom
4118 writers now have read-only access to most fields of pandoc's
4119 internal state via the global variable `PANDOC_STATE`.
4121 + Push ListAttributes via constructor (Albert Krewinkel).
4122 This ensures that ListAttributes, as present in OrderedList elements,
4123 have additional accessors (viz. `start`, `style`, and `delimiter`).
4125 + Rename ReaderOptions fields, use snake_case. Snake case is used
4126 in most variable names, using camelCase for these fields was an
4127 oversight. A metatable is added to ensure that the old field
4128 names remain functional.
4130 + Iterate over AST element fields when using `pairs`. This makes
4131 it possible to iterate over all ield names of an AST element by
4132 using a generic `for` loop with pairs`:
4134 for field_name, field_content in pairs(element) do
4138 Raw table fields of AST elements should be considered an
4139 implementation detail and might change in the future. Accessing
4140 element properties should always happen through the fields
4141 listed in the Lua filter docs.
4143 Note that the iterator currently excludes the `t`/`tag` field.
4145 + Ensure that MetaList elements behave like Lists. Methods usable
4146 on Lists can also be used on MetaList objects.
4148 + Fix MetaList constructor (Albert Krewinkel). Passing a MetaList
4149 object to the constructor `pandoc.MetaList` now returns the
4150 passed list as a MetaList. This is consistent with the
4151 constructor behavior when passed an (untagged) list.
4153 * Custom writers: Custom writers have access to the global variable
4154 `PANDOC_DOCUMENT`(Albert Krewinkel, #4957). The variable contains
4155 a userdata wrapper around the full pandoc AST and exposes two
4156 fields, `meta` and `blocks`. The field content is only
4157 marshaled on-demand, performance of scripts not accessing the
4158 fields remains unaffected.
4162 * Text.Pandoc.Options: add `writerPreferAscii` to `WriterOptions`.
4164 * Text.Pandoc.Shared:
4166 + Export `splitSentences`. This was previously duplicated in the Man and
4168 + Add `ToString` typeclass (Alexander Krotov).
4170 * New exported module Text.Pandoc.Filter (Albert Krewinkel).
4172 * Text.Pandoc.Parsing
4174 + Generalize `gridTableWith` to any `Char` Stream (Alexander Krotov).
4175 + Generalize `readWithM` from `[Char]` to any `Char` Stream
4176 that is a `ToString` instance (Alexander Krotov).
4178 * New exposed module Text.Pandoc.Filter (Albert Krewinkel).
4180 * Text.Pandoc.XML: add `toHtml5Entities`.
4182 * New exported module Text.Pandoc.Readers.Man (Yan Pashkovsky, John
4185 * Text.Pandoc.Writers.Shared
4187 + Add exported functions `toSuperscript` and
4188 `toSubscript` (quasicomputational, #4528).
4189 + Remove exported functions `metaValueToInlines`,
4190 `metaValueToString`. Add new exported functions
4191 `lookupMetaBool`, `lookupMetaBlocks`, `lookupMetaInlines`,
4192 `lookupMetaString`. Use these whenever possible for uniformity
4193 in writers (Mauro Bieg, #4907). (Note that
4194 removed function `metaValueToInlines` was in previous
4196 + Add `metaValueToString`.
4200 + Expose more useful internals (Albert Krewinkel):
4202 - `runFilterFile` to run a Lua filter from file;
4203 - data type `Global` and its constructors; and
4204 - `setGlobals` to add globals to a Lua environment.
4206 This module also contains `Pushable` and `Peekable` instances
4207 required to get pandoc's data types to and from Lua. Low-level
4208 Lua operation remain hidden in Text.Pandoc.Lua.
4210 + Rename `runPandocLua` to `runLua` (Albert Krewinkel).
4212 + Remove `runLuaFilter`, merging this into Text.Pandoc.Filter.Lua's
4213 `apply` (Albert Krewinkel).
4215### Bug fixes and under-the-hood improvements
4217 * Text.Pandoc.Parsing
4219 + Make `uri` accept any stream with Char tokens (Alexander Krotov).
4220 + Rewrite `uri` without `withRaw` (Alexander Krotov).
4221 + Generalize `parseFromString` and `parseFromString'` to any
4222 streams with Char token (Alexander Krotov)
4223 + Rewrite `nonspaceChar` using `noneOf` (Alexander Krotov)
4225 * Text.Pandoc.Shared: Reimplement `mapLeft` using `Bifunctor.first`
4228 * Text.Pandoc.Pretty: Simplify `Text.Pandoc.Pretty.offset`
4233 + Work around HXT limitation for --syntax-definition with windows
4235 + Always preserve tabs for man format. We need it for tables.
4236 + Split command line parsing code into a separate unexported
4237 module, Text.Pandoc.App.CommandLineOptions (Albert Krewinkel).
4239 * Text.Pandoc.Readers.Roff: new unexported module for tokenizing
4242 * New unexported module Text.Pandoc.RoffChar, provided character
4243 escape tables for roff formats.
4245 * Text.Pandoc.Readers.HTML: Fix `htmlTag` and `isInlineTag` to
4246 accept processing instructions (#3123, regression since 2.0).
4248 * Text.Pandoc.Readers.JATS: Use `foldl'` instead of `maximum` to
4249 account for empty lists (Alexander Krotov).
4251 * Text.Pandoc.Readers.RST: Don't allow single-dash separator in
4252 headerless table (#4382).
4254 * Text.Pandoc.Readers.Org: Parse empty argument array in inline src
4255 blocks (Brian Leung).
4257 * Text.Pandoc.Readers.Vimwiki:
4259 + Get rid of `F`, `runF` and `stateMeta'` in favor of `stateMeta`
4261 + Parse `Text` without converting to `[Char]` (Alexander Krotov).
4263 * Text.Pandoc.Readers.Creole: Parse `Text` without converting to
4264 `[Char]` (Alexander Krotov).
4266 * Text.Pandoc.Readers.LaTeX
4268 + Allow space at end of math after `\` (#5010).
4269 + Add support for `nolinkurl` command (#4992, Brian Leung).
4270 + Simplified type on `doMacros'`.
4271 + Tokenize before pulling tokens, rather than after (#4408). This
4272 has some performance penalty but is more reliable.
4273 + Make macroDef polymorphic and allow in inline context.
4274 Otherwise we can't parse something like `\lowercase{\def\x{Foo}}`.
4275 I have actually seen tex like this in the wild.
4276 + Improved parsing of `\def`, `\let`. We now correctly parse:
4286 + Improve parsing of `\def` argspec.
4287 + Skip `\PackageError` commands (see #4408).
4288 + Fix bugs omitting raw tex (#4527). The default is `-raw_tex`,
4289 so no raw tex should result unless we explicitly say `+raw_tex`.
4290 Previously some raw commands did make it through.
4291 + Moved `isArgTok` to Text.Pandoc.Readers.LaTeX.Parsing.
4292 + Moved `babelLangToBCP`, `polyglossiaLangToBCP` to new module,
4293 Text.Pandoc.Readers.LaTeX.Lang (unexported).
4294 + Simplified accent code using unicode-transforms.
4295 New dependency on unicode-transforms package for normalization.
4296 + Allow verbatim blocks ending with blank lines (#4624).
4297 + Support `breq` math environments: `dmath`, `dgroup`, `darray`.
4298 This collects some of the general-purpose code from the LaTeX reader,
4299 with the aim of making the module smaller.
4301 * Text.Pandoc.Readers.Markdown
4303 + Fix awkward soft break movements before abbreviations (#4635).
4304 + Add updateStrPos in a couple places where needed.
4306 * Text.Pandoc.Readers.Docx: Trigger bold/italic with bCs, iCs
4307 (#4947). These are variants for "complex scripts" like Arabic
4308 and are now treated just like b, i (bold, italic).
4310 * Text.Pandoc.Readers.Muse (Alexander Krotov)
4312 + Try to parse lists before trying to parse table.
4313 This ensures that tables inside lists are parsed correctly.
4314 + Forbid whitespace after opening and before closing markup
4316 + Parse page breaks.
4317 + Simplify `museToPandocTable` to get rid of partial functions.
4318 + Allow footnotes to start with empty line.
4319 + Make sure that the whole text is parsed.
4320 + Allow empty headers. Previously empty headers caused parser to
4321 terminate without parsing the rest of the document.
4322 + Allow examples to be indented with tabs.
4323 + Remove indentation from examples indicated by `{{{` and `}}}`.
4324 + Fix parsing of empty cells.
4325 + Various changes to internals.
4326 + Rewrite some parsers in applicative style.
4327 + Avoid tagsoup dependency.
4328 + Allow table caption to contain `+`.
4330 * Text.Pandoc.Writers.LaTeX
4332 + Add newline if math ends in a comment (#4880). This prevents the
4333 closing delimiter from being swalled up in the comment.
4334 + With `--listings`, don't pass through org-babel attributes (#4889).
4335 + With `--biblatex`, use `\autocite` when possible (#4960).
4336 `\autocites{a1}{a2}{a3}` will not collapse the entries. So, if
4337 we don't have prefixes and suffixes, we use instead
4338 `\autocite{a1,a2,a3}`.
4339 + Fix description lists contining highlighted code (#4662).
4341 * Text.Pandoc.Writers.Man
4343 + Don't wrap `.SH` and `.SS` lines (#5019).
4344 + Avoid unnecessary `.RS`/`.RE` pair in definition lists with
4345 one paragraph definitions.
4346 + Moved common groff functions to Text.Pandoc.Writers.Groff.
4347 * Fix strong/code combination on man (should be `\f[CB]` not
4348 `\f[BC]`, see #4973).
4349 + Man writer: use `\f[R]` instead of `\f[]` to reset font
4350 (Alexander Krotov, #4973).
4351 + Move `splitSentences` to Text.Pandoc.Shared.
4353 * Text.Pandoc.Writers.Docx
4355 + Add framework for custom properties (#3034). So far, we don't
4356 actually write any custom properties, but we have the
4357 infrastructure to add this.
4359 + Handle tables in table cells (#4953). Although this is not
4360 documented in the spec, some versions of Word require a `w:p`
4361 element inside every table cell. Thus, we add one when the
4362 contents of a cell do not already include one (e.g. when a table
4363 cell contains a table).
4365 * Text.Pandoc.Writers.AsciiDoc: Prevent illegal nestings.
4366 Adjust header levels so that n+1 level headers are only
4367 found under n level headers, and the top level is 1.
4369 * Text.Pandoc.Writers.OpenDocument: Improve bullet/numbering
4370 alignment (#4385). This change eliminates the large gap we used
4371 to have between bullet and text, and also ensures that numbers
4372 in numbered lists will be right-aligned.
4374 * Text.Pandoc.Writers.ZimWiki
4376 + Number ordered list items sequentially, rather than always
4378 + Remove extra indentation on lists (#4963).
4380 * Text.Pandoc.Writers.EPUB: Use metadata field `css` instead of
4381 `stylesheet` (Mauro Bieg, #4990).
4383 * Text.Pandoc.Writers.Markdown: Ensure blank between raw block and
4384 normal content (#4629). Otherwise a raw block can prevent a
4385 paragraph from being recognized as such.
4387 * Text.Pandoc.Writers.Ms
4389 + Removed old `escapeBar`. We don't need this now that we use
4391 + Moved common code to Text.Pandoc.Writers.Roff and to
4392 Text.Pandoc.RoffChar.
4393 + Move `splitSentences` to Text.Pandoc.Shared (to avoid duplication
4394 with the man writer).
4396 * Text.Pandoc.Writers.Muse (Alexander Krotov).
4398 + Add support for grid tables.
4399 + Fix Muse writer style.
4400 + Use `length` instead of `realLength` to calculate definition
4401 indentation. Muse parsers don't take character width into
4402 account when calculating indentation.
4403 + Do not insert newline before lists.
4404 + Use lightweight markup after `</em>` tag.
4406 * New unexported module Text.Pandoc.Writers.Roff, providing functions
4407 useful for all roff format writers (man, ms).
4411 + Move globals handling to separate module Text.Pandoc.Lua.Global
4414 + Lua filter internals: push Shared.Element as userdata (Albert
4415 Krewinkel). Hierarchical Elements were pushed to Lua as plain
4416 tables. This is simple, but has the disadvantage that marshaling
4417 is eager: all child elements will be marshaled as part of the
4418 object. Using a Lua userdata object instead allows lazy access
4419 to fields, causing content marshaling just (but also each time)
4420 when a field is accessed. Filters which do not traverse the full
4421 element contents tree become faster as a result.
4423### Default template changes
4427 + Add variable `hyperrefoptions` (#4925, Mathias Walter).
4428 + Add variable `romanfont`, `romanfontoptions` (#4665, OvidiusCicero).
4430 * AsciiDoc template: use single-line style for title.
4432 * revealjs template: Fix typo in the socket.io javascript plugin (#5006,
4435 * Text.Pandoc.Lua.Util: add missing docstring to `defineHowTo`
4438 * data/pandoc.lua: add datatype ListAttributes (Albert Krewinkel)
4440 * data/sample.lua: replace custom pipe function with pandoc.utils.pipe
4443### Documentation improvements
4447 + Add chromeos install instructions (#4958) (Evan Pratten).
4448 + Add note about TinyTeX.
4452 + Change `groff` -> `roff`.
4453 + Implement `--ascii` for Markdown writer.
4454 + Clarify LaTeX image dimensions output (Mauro Bieg).
4456 * doc/customizing-pandoc.md: added skeleton (Mauro Bieg, #3288).
4458 * doc/getting-started.md: Added title to test1.md to avoid warning.
4460 * doc/lua-filters.md: merge type references into main document,
4461 fix description of Code.text (Albert Krewinkel).
4463### Build infrastructure improvements
4467 + Makefile: added quick-cabal, full-cabal targets.
4468 + Make .msi download targets insensitive to order of appveyor builds.
4470 * Update benchmarks for ghc 8.6.1.
4474 + Enable more compiler warnings (Albert Krewinkel).
4475 + Make base lower bound 4.8.
4476 + Bump upper bound for QuickCheck.
4477 + Bump upper bound for binary.
4478 + Updated version bounds for containers and haddock-library (#4974).
4479 + Added docx/docPropos/custom.xml to cabal data-files.
4480 + Require skylighting 0.7.4 (#4920).
4481 + New dependency on unicode-transforms package for normalization.
4483 * Improved .travis.yml testing and test with GHC 8.6.1 (Albert Krewinkel).
4485 * Added `tools/changelog-helper.sh`.
4487 * Added test/grofftest.sh for testing the man reader on real man pages.
4489## pandoc 2.3.1 (2018-09-28)
4493 + Parse RST inlines containing newlines (#4912, Francesco Occhipinti).
4494 This eliminates a regression introduced after pandoc 2.1.1, which
4495 caused inline constructions containing newlines not to be recognized.
4496 + Fix bug with internal link targets (#4919). They were gobbling up
4497 indented content underneath.
4499 * Markdown reader: distinguish autolinks in the AST. With this change,
4500 autolinks are parsed as Links with the `uri` class. (The same is true
4501 for bare links, if the `autolink_bare_uris` extension is enabled.)
4502 Email autolinks are parsed as Links with the `email` class. This
4503 allows the distinction to be represented in the AST.
4507 + Force inline code blocks to honor export options (Brian Leung).
4508 + Parse empty argument array in inline src blocks (Brian Leung).
4510 * Muse reader (Alexander Krotov):
4512 + Added additional tests.
4513 + Do not allow code markup to be followed by digit.
4514 + Remove heading level limit.
4515 + Simplify `<literal>` tag parsers
4516 + Parse Text instead of String. Benchmark shows 7% improvement.
4517 + Get rid of HTML parser dependency.
4518 + Various code improvements.
4520 * ConTeXt writer: change `\` to `/` in Windows image paths (#4918).
4521 We do this in the LaTeX writer, and it avoids problems.
4522 Note that `/` works as a LaTeX path separator on Windows.
4526 + Add support for multiprenote and multipostnote arguments
4527 with `--biblatex` (Brian Leung, #4930). The multiprenotes occur before
4528 the first prefix of a multicite, and the multipostnotes follow the
4530 + Fix a use of `last` that might take empty list. If you ran with
4531 `--biblatex` and have an empty document (metadata but no blocks),
4532 pandoc would previously raise an error because of the use of
4533 `last` on an empty list.
4535 * RTF writer: Fix build failure with ghc-8.6.1 caused by missing
4536 MonadFail instance (Jonas Scholl).
4538 * ODT Writer: Improve table header row style handling (Nils Carlson).
4539 This changes the way styles for cells in the header row
4540 and normal rows are handled in ODT tables.
4541 Previously a new (but identical) style was generated for
4542 every table, specifying the style of the cells within the table.
4543 After this change there are two style definitions for table cells,
4544 one for the cells in the header row, one for all other cells.
4545 This doesn't change the actual styles, but makes post-processing
4546 changes to the table styles much simpler as it is no longer
4547 necessary to introduce new styles for header rows and there are
4548 now only two styles where there was previously one per table.
4552 + Don't add `uri` class to presumed autolinks. Formerly the `uri`
4553 class was added to autolinks by the HTML writer, but it had to
4554 guess what was an autolink and could not distinguish
4555 `[http://example.com](http://example.com)` from
4556 `<http://example.com>`. It also incorrectly recognized
4557 `[pandoc](pandoc)` as an autolink. Now the HTML writer
4558 simply passes through the `uri` attribute if it is present,
4559 but does not add anything.
4560 + Avoid adding extra section nestings for revealjs.
4561 Previously revealjs title slides at level (slidelevel - 1)
4562 were nested under an extra section element, even when
4563 the section contained no additional (vertical) content.
4564 That caused problems for some transition effects.
4565 + Omit unknown attributes in EPUB2 output. For example,
4566 `epub:type` attributes should not be passed through,
4567 or the epub produced will not validate.
4569 * JATS writer: remove 'role' attribute on 'bold' and 'sc' elements (#4937).
4570 The JATS spec does not allow these.
4572 * Textile writer: don't represent `uri` class explicitly
4573 for autolinks (#4913).
4575 * Lua filters (Albert Krewinkel):
4577 + Cleanup filter execution code.
4578 + Better error on test failure.
4580 * HTML, Muse reader tests: reduce time taken by round-trip test.
4582 * Added cabal.project.
4584 * MANUAL: `epub:type` is only useful for epub3 (Maura Bieg).
4586 * Use hslua v1.0.0 (Albert Krewinkel).
4588 * Fix `translations/ru` to use modern Russian orthography
4591 * Build Windows binary using ghc 8.6.1 and cabal new-build. This
4592 fixes issues with segfaults in the 32-bit Windows binaries (#4283).
4594## pandoc 2.3 (2018-09-16)
4596 * Add `--metadata-file` option (Mauro Bieg, #1960), which allows
4597 users to specify metadata in a YAML file, regardless of the
4598 input format (#1960).
4600 * Text.Pandoc.Writers.Shared: export `isDisplayMath` (API change).
4602 * Text.Pandoc.Readers.Markdown: export `yamlToMeta` (API change,
4605 * Text.Pandoc.Readers.LaTeX.Types:
4607 + New type `ArgSpec` (API change).
4608 + Second parameter of `Macro` constructor is now `[ArgSpec]` instead of
4613 + Use `tex` instead of `latex` for raw tex-ish content. We can't
4614 always tell if it's LaTeX, ConTeXt, or plain TeX. Better just to
4615 use `tex` always. Note that if `context` or `latex` specifically
4616 is desired, you can still force that in a markdown document by
4617 using the raw attribute. Note that this change may affect some
4618 filters, if they assume that raw tex parsed by the Markdown reader
4619 will be RawBlock (Format `latex`). In most cases it should be
4620 trivial to modify the filters to accept `tex` as well.
4621 + Refactor and reorganize YAML code (Mauro Bieg).
4622 + Make `example_lists` work for interrupted lists
4623 without `startnum` (#4908).
4627 + Parse `<script type="math/tex` tags as math (#4877).
4628 These are used by MathJax in some configurations.
4629 + Extract spaces inside links instead of trimming them
4630 (Alexander Krotov, #4845).
4631 + Added round-trip tests (Alexander Krotov).
4632 + Make parsing sensitive to the `raw_tex` extension (#1126). This now
4633 allows raw LaTeX environments, `\ref`, and `\eqref` to be parsed
4634 (which is helpful for translation HTML documents using MathJaX).
4636 * Org reader (Albert Krewinkel):
4638 + Respect export option `p` for planning info. Inclusion of planning info
4639 (`*DEADLINE*`, `*SCHEDULED*`, and `*CLOSED*`) can be controlled via the
4640 `p` export option: setting the option to `t` will add all planning
4641 information in a *Plain* block below the respective headline.
4642 + Org reader internals: don't rely on RecordWildCards and ViewPatterns
4644 + Strip planning info from output. Planning info is parsed, but not
4645 included in the output (as is the default with Emacs Org-mode, #4867).
4649 + Handle parameter patterns for `\def` (#4768, #4771).
4650 For example: `\def\foo#1[#2]{#1 and #2}`.
4651 + Allow `%` characters in URLs. This affects `\href` and `\url` (#4832).
4652 + Fixed parsing of `\texorpdfstring`. We were returning the wrong
4653 argument as the content.
4654 + Support `blockcquote`, `foreignblockquote`, `foreigncblockquote`,
4655 `hyphenblockquote`, `hyphencblockquote`, `enquote*`, `foreignquote`,
4656 `hyphenquote` from `csquotes` (#4848). Note that `foreignquote`
4657 will be parsed as a regular Quoted inline (not using the quotes
4658 appropriate to the foreign language).
4659 + Support more text-mode accents (#4652). Add support for `\|`, `\b`, `\G`,
4660 `\h`, `\d`, `\f`, `\r`, `\t`, `\U`, `\i`, `\j`, `\newtie`,
4661 `\textcircled`. Also fall back to combining characters when composed
4662 characters are not available.
4663 + Resolve `\ref` for figure numbers.
4664 + Support `mintinline` (#4365, Marc Schreiber).
4665 + Fix siunitx unit commands so they are only recognized in
4666 siunitx contexts (#4842). For example, `\l` outside of an
4667 siunitx context should be l-slash, not l (for liter).
4668 + Fix double `unnumbered` class (#4838). The `unnumbered` class
4669 was being included twice for starred sections.
4671 * RST reader: Don't skip link definitions after comments (#4860).
4673 * Muse reader (Alexander Krotov):
4675 + Close the `</quote>` in indented tag test.
4676 There is already a separate test for unclosed `</quote>`.
4677 + Autonumber sections in the correct order. Parsing now stops
4678 at each section header to ensure the header is registered before
4679 parsing of the next section starts.
4680 + Move duplicate code into `headingStart` function.
4681 + Allow newline after opening `*` or `**`.
4682 + Don't allow digits after closing marker in lightweight markup
4683 This change makes reader more compatible with Emacs Muse.
4684 + Parse `<verse>` tag in one pass instead of using
4685 `parseFromString`. This change makes it possible to have
4686 verbatim `</verse>` tag inside verse.
4688 * ODT reader: deal gracefully with missing `<office:font-face-decls/>`
4689 (#4336). This allows pandoc to parse ODT document produced by KDE's
4692 * Muse writer (Alexander Krotov):
4694 + Output headers without asterisks if not on the top level.
4695 + Never wrap definition list terms.
4696 + Set `envInsideBlock = True` when rendering notes.
4697 + Use `""` instead of `[]` for empty String.
4698 + Check for whitespace in the beginning and end of Str's.
4699 + Escape `-`, `;` and `>` in the beginning of strings.
4700 + Escape list markers in the beginning of notes.
4701 + Normalize inline list before testing if tags should be used.
4702 + Use tags instead of lightweight markup for empty strings.
4703 + Use lightweight markup when possible.
4704 + Escape empty strings. This guarantees that `conditionalEscapeString`
4705 never returns empty string.
4706 + Wrap conditionalEscapeString result into `Muse` type.
4707 This removes the need to pass `envInsideLinkDescription` to it.
4708 + Separate `shouldEscapeString` function.
4709 + Simplify inline list rendering.
4710 + Replace newlines in strings with spaces.
4714 + Add MetaString case for abstract, subtitle (#4900, Mauro Bieg).
4715 + Properly handle display math in spans (#4826). This isn't a
4716 complete solution, since other nestings of display math may still
4717 cause problems, but it should work for what is by far the most
4722 + Always output `<dt>` element, even if it is empty (#4883,
4724 + Don't prefix `epub:` attributes with `data-`.
4726 * Org writer: Don't escape literal `_`, `^` (#4882). Org doesn't
4727 recognize these escapes.
4729 * ODT writer: Fix percentage image scaling (#4881, Nils Carlson).
4730 Image scaling was broken when a width was set to a percentage.
4732 * EPUB writer: set `epub:type` on body element in each chapter,
4733 depending on the `epub:type` of the first section (#4823). This
4734 only affects epub3. See
4735 http://www.idpf.org/epub/profiles/edu/structure/#h.l0bzsloklt10
4737 * FB2 writer: put `coverpage` element between title and date rather than in
4738 `document-info` element (#4854).
4740 * Markdown writer: Escape `~` if strikeout extension enabled (#4840).
4742 * Haddock writer: Use proper format for latex math in haddock (#4571, Joe
4743 Hermaszewski). Inline math in `\(..\)`, display math in `\[..\]`,
4744 tex is now used. Previously we'd "fake it with unicode" and fall
4745 back to tex when that didn't work. But newer haddock versions
4750 + Ensure that title element is always present, even if empty (#4839).
4751 + Put author tags in the template, rather than adding them in
4754 * LaTeX writer/template: be sensitive to `filecolor` variable (#4822).
4755 `linkcolor` only affects internal links, and `urlcolor` only
4756 affects linked URLs. For external links, the option to use is
4759 * ConTeXt writer: output raw `tex` blocks as well as `context` (#969).
4763 + Use `.. raw:: latex` for `tex` content.
4764 + Use `.. container` for generic Divs, instead of raw HTML.
4765 + Render Divs with admonition classes as admonitions (#4833).
4766 Also omit Div with class `admonition-title`. These are generated
4767 by the RST reader and should be omitted on round-trip.
4769 * Text.Pandoc.PDF: fix message printed when rsvg-convert is not available
4770 (#4855, Antonio Terceiro).
4772 * HTML5 template: add the `title-block-header` identifier to the
4773 `header` element, to make it easier to style precisely (#4767,
4776 * OpenDocument template: Remove unnecessary indenting of TOC title (#4798,
4777 José de Mattos Neto).
4779 * latex template: Add support for $toc-title$ to LaTeX (and PDF)
4780 (#4853, Wandmalfarbe).
4782 * TEI template: improve `publicationStmt`. Add support for
4783 `publisher`, `address`, `pubPlace`, and `date` variables.
4785 * beamer template: Support "toc-title" (#4835, Cyril Roelandt).
4787 * Text.Pandoc.Extensions: Fix haddock on `Ext_footnotes` (Chris Martin).
4789 * Lua: cleanup Lua utils, remove unused functions (Albert Krewinkel).
4793 + Clarify that `--biblatex/--natbib` don't work directly for PDF
4795 + Document `epub:type` attribute (Mauro Bieg, #4901)
4796 + Clarify when `--resource-path` has an effect.
4797 + More detail on customization in syntax highlighting section.
4798 + Document encoding issue with `--listings` (#4871, Damien Clochard).
4799 + Remove docs on removed `--katex-stylesheet` (Mauro Bieg, #4862).
4800 + Use https for context wiki links (#4910).
4804 + Link to lua-filters repository (#4874).
4805 + Fix mistake in REPL instructions for stack. (#4849, Brian Leung).
4807 * lua-filters.md: add links to filters, and to lua-filters repository
4812 + Indicate that cabal >= 2.0 is needed.
4813 + Added chocolatey installation method (#4844, Miodrag Milić).
4815 * Travis: exclude round-trip tests, except for nightly test which can fail.
4817 * Use latest texmath, pandoc-citeproc.
4819 * Use a patched version of foundation until
4820 https://github.com/haskell-foundation/foundation/pull/503
4823 * Clean up appveyor build and Windows package creation.
4824 We now use 64-bit stack and ghc 8.4.3, lts-12 for the 64-bit build. The
4825 WiX-based msi is now 64-bit for 64-bit builds (fixing #4795).
4827 * Remove obsolete RELEASE-CHECKLIST.md.
4829 * Added additional compiler warnings in Makefile and CI builds.
4831## pandoc 2.2.3.2 (2018-08-07)
4833 * Markdown reader: Properly handle boolean values in YAML metadata (#4819).
4834 This fixes a regression in 2.2.3, which cause boolean values to
4835 be parsed as MetaInlines instead of MetaBool.
4837 We here record another undocumented (but desirable) change in 2.2.3:
4838 numerical metadata fields are now parsed as MetaInlines rather than
4841## pandoc 2.2.3.1 (2018-08-06)
4843 * Markdown reader: Fix parsing of embedded mappings in YAML metadata
4844 (#4817). This fixes a regression in 2.2.3 which caused embedded
4845 mappings (e.g. mappings in sequences) not to work in YAML metadata.
4847## pandoc 2.2.3 (2018-08-05)
4849 * RST reader: improve parsing of inline interpreted text roles (#4811).
4851 + Use a Span with class "title-reference" for the default
4852 title-reference role.
4853 + Use `B.text` to split up contents into `Space`s, `SoftBreak`s,
4854 and `Str`s for `title-reference`.
4855 + Use Code with class "interpreted-text" instead of Span and Str for
4856 unknown roles. (The RST writer has also been modified to round-trip
4858 + Disallow blank lines in interpreted text.
4859 + Backslash-escape now works in interpreted text.
4860 + Backticks followed by alphanumerics no longer end interpreted text.
4861 + Remove support for nested inlines (Francesco Occhipinti).
4862 RST does not allow nested emphasis, links, or other inline
4863 constructs. This fixes several bugs (#4581, #4561, #4792).
4865 * Org reader: fix parsers relying on `parseFromString` (#4784, Albert
4866 Krewinkel). Emphasis was not parsed when it followed directly after
4867 some block types (e.g., lists).
4869 * Markdown reader: Allow unquoted numbers and booleans as YAML mapping
4870 keys. Previously in 2.2.2 you could not do
4882 With this change, both forms work.
4884 * DocBook reader: metadata handling improvements.
4885 Now we properly parse title and subtitle elements that are direct
4886 children of book and article (as well as children of bookinfo,
4887 articleinfo, or info). We also now use the `subtitle` metadata
4888 field for subtitles, rather than tacking the subtitle on to the
4893 + Allow images to be directly nested within links (#4810, Francesco
4895 + Use `titleblock` instead of `title` variable for title block (#4803,
4896 Francesco Occhipinti). `titleblock` contains a properly formatted
4897 title and subtitle (using top-level headers). `title` and
4898 `subtitle` variables are still available and just contain the
4899 title and subtitle text. Note that this change will require an
4900 update to custom rst templates.
4901 + Render Code with class "interpreted-text" as interpreted text role.
4903 * MediaWiki writer: Avoid extra blank line in tables with empty cells
4904 (#4794). Note that the old output is semantically identical, but the
4905 new output looks better.
4907 * Lua Utils module: add function `blocks_to_inlines` (#4799, Albert
4908 Krewinkel). Exposes a function converting which flattenes a list of
4909 blocks into a list of inlines. An example use case would be the
4910 conversion of Note elements into other inlines.
4912 * RST template: use `titleblock` instead of `title`. Users of
4913 custom RST templates will want to update this.
4915 * LaTeX template: Moved some beamer code in default.latex template.
4916 This change allows beamer themes to change the template and font (as
4917 Metropolis does) (#4450).
4919 * Better error message on `-t pdf -o out.pdf` (#1155, Mauro Bieg).
4921 * Added test case for #4669 to repository.
4923 * INSTALL.md: Fix broken link for cabal-install (#4806, ChanHoHo).
4927 + Add beamer info for slide backgrounds (#4802, John Muccigrosso).
4928 + Clarify when `csquotes` is used in LaTeX writer (#4514).
4929 + Add `commonmark` to list of output formats where `raw_tex` has an
4933## pandoc 2.2.2.1 (2018-07-19)
4935 * Fix regression finding templates in user data directory (#4777).
4936 Under version 2.2.1 and prior pandoc found latex templates in the
4937 templates directory under the data directory, but this broke in 2.2.2.
4939 * Fix for bug in parsing `\input` in `rawLaTeXBlock` and
4940 `rawLaTeXInline` (#4781). (This primarily affects the markdown
4941 reader, and other readers that accept raw tex.)
4942 Starting in 2.2.2, everything after an `\input` (or `\include`)
4943 in a markdown file would be parsed as raw LaTeX.
4947 + Clarify `gfm` vs `markdown_github` (#4783, Mauro Bieg).
4948 * Use `keywords` instead of `tags` in YAML metadata example (#4779).
4949 Unlike `tags`, `keywords` is used in some of the writers
4950 and default templates.
4952 * Add missing `rollingLinks` option to revealjs template (#4778,
4955## pandoc 2.2.2 (2018-07-16)
4957 * Use HsYAML instead of yaml for translations and YAML metadata (#4747).
4958 yaml wraps a C library; HsYAML is pure Haskell. Advances #4535.
4960 Note: HsYAML implements YAML 1.2, in which the valid true
4961 values are `true`, `True`, `TRUE`. This means a change in
4962 the semantics of YAML metadata that could affect users:
4963 `y`, `yes`, and `on` no longer count as true values.
4965 * Fix regression: make `--pdf-engine` work with full paths (#4681, Mauro
4968 * CommonMark reader: Handle `ascii_identifiers` extension (#4742,
4969 Anders Waldenborg). Non-ascii characters were not stripped from
4970 identifiers even if the `ascii_identifiers` extension was
4971 enabled (which is is by default for gfm).
4973 * TikiWiki reader: Improve list parsing (#4722, Mauro Bieg).
4974 Remove trailing Space from list items. Parse lists that have no space
4979 + Treat `lilypond` as a verbatim environment (#4725).
4980 + Parse figure label into Image id (#4700, Mauro Bieg).
4981 + Beamer: Allow "noframenumbering" option (#4696, Raymond Ehlers).
4982 + Allow spaces around `\graphicspath` arguments (#4698).
4983 + Handle includes without surrounding blanklines (#4553).
4984 In addition, `\input` can now be used in an inline context,
4985 e.g. to provide part of a paragraph, as it can in LaTeX.
4986 + In `rawLaTeXBlock`, handle macros that resolve to a
4987 `\begin` or `\end` (#4667).
4988 + In `rawLaTeXBlock`, don't expand macros in macro definitions (#4653).
4989 Note that this only affected LaTeX in markdown.
4990 + Tighten up reading of beamer overlay specifications (#4669).
4991 Ideally we'd turn these on only when reading beamer, but currently
4992 beamer is not distinguished from latex as an input format.
4993 This commit also activates parsing of overlay specifications
4994 after commands in general (e.g. `\item`), since they can occur
4995 in many contexts in beamer.
4996 + Parse more siunitx unit commands (#4296, #4773).
4997 + Be more forgiving in key/value option parsing (#4761).
5001 + Allow empty code spans, e.g. `` ` ` ``.
5002 + Emojis are now wrapped in Spans with class `emoji` and
5003 attribute `data-emoji` (Anders Waldenborg, #4743).
5004 This allows the writer to handle them in a special way
5005 (e.g. using a special font, or just rendering the
5008 * Muse reader (Alexander Krotov, except where indicated):
5010 + Get rid of non-exhaustive pattern match warning (Mauro Bieg).
5011 + Add support for floating images.
5012 + Add support for images with specified width.
5013 + Parse image URLs without "guard" and "takeExtension".
5014 + Split link and image parsing into separate functions.
5015 + Parse links starting with "URL:" explicitly instead of trying to strip
5016 "URL:" prefix after parsing.
5018 * Texinfo writer: Use `@sup` and `@sub` instead of custom macros (#4728,
5021 * Markdown writer: Preserve `implicit_figures` with attributes, even if
5022 `implicit_attributes` is not set, by rendering in raw HTML (#4677).
5024 * Markdown and commonmark/github writers now respect the `emoji`
5025 extension. So, `-f markdown+emoji -t markdown+emoji` now leaves
5026 `:smile:` as `:smile:` rather than converting it to a smile
5029 * Docx writer: Be sensitive to `toc` in YAML metadata (#4645).
5031 * ODT/OpenDocument writer: Make internal links work (#4358).
5032 This adds proper bookmarks to the headers with non-null IDs.
5034 * EPUB writer: Properly escape pagetitle. Previously we weren't
5035 escaping `&` and other XML characters in the pagetitle, so a title
5036 containing a `&` would be invalid.
5038 * AsciiDoc Writer: Eescape square brackets at start of line (#4545,
5043 + Don't treat 'example' as a syntax name (#4748).
5044 This fixes conversions from org with example blocks.
5045 + Support `--number-sections` via the `section-numbering`
5046 directive in standalone output.
5048 * reveal.js writer and template: reuse mathjax URL
5049 provided by the argument to `--mathjax` or the normal pandoc default,
5050 rather than a hard-coded one in the template (#4701).
5054 + Properly handle footnotes in table captions (#4683).
5055 Refactored code from figure captions to use in both places.
5056 + In beamer output, fix single digit column percentage (#4690, Mauro
5059 * FB2 writer (Alexander Krotov):
5061 + Convert Plain to Para in annotation (#2424).
5062 + Fix order of items in title-info (#2424).
5064 * Custom writer: fix error message on script failure (Albert Krewinkel).
5065 Error messages produced by Lua were not displayed by Pandoc.
5067 * Text.Pandoc.Emoji now exports `emojiToInline`, which returns a Span
5068 inline containing the emoji character and some attributes with metadata
5069 (class `emoji`, attribute `data-emoji` with emoji name). (API change,
5070 Anders Waldenborg, #4743).
5074 + Revert fix for #4484 (only compress images on last run, #4755).
5075 This will mean some increase in the time it takes to
5076 produce an image-heavy PDF with xelatex, but it will
5077 make tables of contents correct, which is more important.
5078 + Fix logic error in `runTeXProgram`. We were running the tex program
5079 one more time than requested. This should speed up PDF production.
5081 * Allow `--template` to take a URL as argument.
5083 * Text.Pandoc.Highlighting: Add missing re-export of `breezeDark`
5084 highlighting style (#4687, Adrian Sieber, API change).
5086 * Clarify macOS install in INSTALL.md (#4661). Make the binary package
5087 installer the recommended method, and note that on some older versions of
5088 macOS, homebrew installs from source and takes a lot of disk space
5093 + Clarify EPUB linked media (#4756, Mauro Bieg)
5094 + Update manual for "true" YAML values. Now that we're using HsYAML and
5095 YAML 1.2, the valid true values are `true`, `True`, `TRUE`. NOTE!
5096 `y`, `yes`, `on` no longer count as true values.
5097 + Document `-F` as alias for `--filter` (thanks to Gandalf Saxe).
5098 + Update manual on how math is rendered in LaTeX.
5099 + Add proxy description (#4131, Mauro Bieg).
5100 + Clarify that `--toc` requires `--standalone` (#4703).
5101 + Update citation styles link (#4699, wiefling).
5103 * In API docs, clarify how `Ext_east_asian_line_breaks` extension works
5104 (kaizshang91). Note that it will not take effect when readers/writers
5105 are called as libraries (#4674).
5107 * Improved translations/fr (#4766, lux-lth).
5109 * Removed inadvertently added `.orig` files from repository (#4648).
5111 * Remove `network-uri` flag and use 'Network.Socket'.
5112 This removes a compiler warning. There is no need for the old
5113 `network-uri` flag, since network 2.6 was released in 2014.
5115 * Add stack.lts10.yaml, stack.lts11.yaml. use lts-12 in stack.yaml.
5117 * Bump upper bounds for dependent packages.
5119 * Exclude foundation 0.0.21 for ghc 7.10. Otherwise cabal gets
5120 confused because of the way ghc 7.10 is excluded in foundation's
5121 cabal file. This can be removed when haskell-foundation/foundation#500
5124 * Require cabal-version >= 2.0. This is needed for haddock-library.
5129## pandoc 2.2.1 (2018-05-10)
5131 * Restored and undeprecated gladtex for HTML math (#4607).
5133 + Added `GladTeX` constructor to `Text.Pandoc.Options.HTMLMathMethod`
5134 [API change, reverts removal in v2.2]
5135 + Restored and undeprecated `--gladtex` option, removed in v2.2.
5137 * LaTeX reader: Handle `$` in `/text{..}` inside math (#4576).
5139 * Org reader: Fix image filename recognition (Albert Krewinkel).
5140 Use a function from the filepath library to check whether a string is a
5141 valid file name. The custom validity checker that was used before gave
5142 wrong results (e.g. for absolute file paths on Windows,
5143 kawabata/ox-pandoc#52).
5145 * FB2 reader: Replace some errors with warnings (Alexander Krotov).
5149 + Strip links from headers when creating TOC (#4340).
5150 Otherwise the TOC entries will not link to the sections.
5151 + Fix regression with tex math environments in HTML + MathJax (#4639).
5153 * Muse writer (Alexander Krotov): Add support for left-align and
5154 right-align classes (#4542).
5156 * Docx writer: Support underline (#4633).
5158 * Text.Pandoc.Parsing: Lookahead for non-whitespace after
5159 `singleQuoteStart` and `doubleQuoteStart` (#4637).
5161 * `test-pandoc-utils.lua`: more robust testing on both windows
5162 and \*nix. Previously the pipe tests were only run if
5163 `\bin/false` and `/bin/sed` were present, which they aren't
5164 in default MacOS and Windows systems. Fixed by using `tr`
5165 and `false`, which should always be in the path on a \*nix
5166 system, and `find` and `echo` for Windows.
5168 * Text.Pandoc.Shared: add `uriPathToPath`.
5169 This adjusts the path from a file: URI in a way that is sensitive
5170 to Windows/Linux differences. Thus, on Windows,
5171 `/c:/foo` gets interpreted as `c:/foo`, but on Linux,
5172 `/c:/foo` gets interpreted as `/c:/foo`. See #4613.
5174 * Use `uriPathToPath` with file: URIs (#4613).
5176 * Revert piping HTML to pdf-engine (Mauro Bieg, #4413). Use a temp
5179 * Text.Pandoc.Class: Catch IO errors when writing media files
5180 and issue a warning, rather than an error (Francesco Occhipinti, #4559).
5182 * Don't lowercase custom writer filename (Alexander Krotov, #4610).
5184 * MANUAL (Mauro Bieg):
5186 + Clarify truthiness in template variables (#2281).
5187 + Clarify pipe table width calculation (#4520).
5189 * ConTeXt template: New Greek fallback typeface (Pablo Rodríguez, #4405).
5190 CMU Serif gives better typographic results than the previous
5191 Greek fallback DejaVu Serif.
5193 * Make HTML template polyglot (#4606, OvidiusCicero), by making
5194 `<link rel="stylesheet" href="$css$">` self-closing.
5196 * Use texmath 0.11, allowing better translation of non-ASCII
5197 characters in math (#4642).
5200## pandoc 2.2 (2018-04-27)
5202 * New input format: `fb2` (FictionBook2) (Alexander Krotov).
5204 * Make `--ascii` work for all XML formats (ICML, OPML, JATS,...),
5205 and for `ms` and `man`.
5207 * Remove deprecated `--latexmathml`, `--gladtex`, `--mimetex`, `--jsmath`, `-m`,
5208 `--asciimathml` options.
5210 * New module Text.Pandoc.Readers.FB2, exporting readFB2 (Alexander
5211 Krotov, API change).
5215 + Allow empty key-value attributes, like `title=""` (#2944).
5216 + Handle table w/o following blank line in fenced div (#4560).
5217 + Remove "fallback" for `doubleQuote` parser. Previously the
5218 parser tried to be efficient -- if no end double quote was found,
5219 it would just return the contents. But this could backfire in a
5220 case `**this should "be bold**`, since the fallback would return
5221 the content `"be bold**` and the closing boldface delimiter
5222 would never be encountered.
5223 + Improve computation of the relative width of the last column in a
5224 multiline table, so we can round-trip tables without constantly
5225 shrinking the last column.
5229 + Fix images with space in file path (#4344).
5233 + Properly resolve section numbers with `\ref` and chapters (#4529).
5234 + Parse sloppypar environment (#4517, Marc Schreiber).
5235 + Improve handling of raw LaTeX (for markdown etc.) (#4589, #4594).
5236 Previously there were some bugs in how macros were handled.
5237 + Support `\MakeUppercase`, `\MakeLowercase`, `\uppercase`,
5238 `\lowercase`, and also `\MakeTextUppercase` and
5239 `\MakeTextLowercase` from textcase (#4959).
5243 + Fixed tables with no body rows (#4513).
5244 Previously these raised an exception.
5248 + Improve table parsing (#4508). This fixes detection of table
5249 attributes and also handles `!` characters in cells.
5253 + Properly handle title in `section` element (#4526).
5254 Previously we just got `section_title` for `section` (though `sect1`,
5255 `sect2`, etc. were handled properly).
5256 + Read tex math as output by asciidoctor (#4569, Joe Hermaszewski).
5260 + Combine adjacent CodeBlocks with the same attributes into
5261 a single CodeBlock. This prevents a multiline codeblock in
5262 Word from being read as different paragraphs.
5266 + Allow < 3 spaces indent under directives (#4579).
5267 + Fix anonymous redirects with backticks (#4598).
5269 * Muse reader (Alexander Krotov):
5271 + Add support for Text::Amuse multiline headings.
5272 + Add `<math>` tag support.
5273 + Add support for `<biblio>` and `<play>` tags.
5274 + Allow links to have empty descriptions.
5275 + Require block `<literal>` tags to be on separate lines.
5276 + Allow `-` in anchors.
5277 + Allow verse to be indented.
5278 + Allow nested footnotes.
5279 + Internal improvements.
5281 * Muse writer (Alexander Krotov):
5283 + Escape `>` only at the beginning of a line.
5284 + Escape `]` in image title.
5285 + Escape `]` brackets in URLs as `%5D`.
5286 + Only escape brackets when necessary.
5287 + Escape ordered list markers.
5288 + Do not escape list markers unless preceded by space.
5289 + Escape strings starting with space.
5290 + Escape semicolons and markers after line break.
5291 + Escape `;` to avoid accidental comments.
5292 + Don't break headers, line blocks and tables with line breaks.
5293 + Correctly output empty headings.
5294 + Escape horizontal rule only if at the beginning of the line.
5295 + Escape definition list terms starting with list markers.
5296 + Place header IDs before header.
5297 + Improve span writing.
5298 + Do not join Spans in normalization.
5299 + Don't align ordered list items.
5300 + Remove key-value pairs from attributes before normalization.
5301 + Enable `--wrap=preserve` for all tests by default.
5302 + Reduced `<verbatim>` tags in output.
5307 + Use more consistent indentation (#4563). Previously we
5308 used an odd mix of 3- and 4-space indentation. Now we use 3-space
5309 indentation, except for ordered lists, where indentation must
5310 depend on the width of the list marker.
5311 + Flatten nested inlines (#4368, Francesco Occhipinti).
5312 Nested inlines are not valid RST syntax, so we flatten them following
5313 some readability criteria discussed in #4368.
5317 + Ensure that `pagetitle` is always set, even when structured titles
5318 are used. This prevents spurious warnings about empty title
5321 * FB2 writer (Alexander Krotov):
5323 + Output links inline instead of producing notes. Previously all links
5324 were turned into footnotes with unclickable URLs inside.
5325 + Allow emphasis and notes in titles.
5326 + Don't intersperse paragraph with empty lines.
5327 + Convert metadata value `abstract` to book annotation.
5328 + Use `<empty-line />` for `HorizontalRule` rather than `LineBreak`.
5329 FB2 does not have a way to represent line breaks inside paragraphs;
5330 previously we used `<empty-line />` elements, but these are not allowed
5333 * Powerpoint writer (Jesse Rosenthal):
5335 + Handle Quoted Inlines (#4532).
5336 + Simplify code with `ParseXml`.
5337 + Allow fallback options when looking for placeholder type.
5338 + Check reference-doc for all layouts.
5339 + Simplify speaker notes logic.
5340 + Change notes state to a simpler per-slide value.
5341 + Remove `Maybe` from `SpeakerNotes` in `Slide`. `mempty`
5342 means no speaker notes.
5343 + Add tests for improved speaker notes.
5344 + Handle speaker notes earlier in the conversion process.
5345 + Keep notes with related blocks (#4477). Some blocks automatically
5346 split slides (imgs, tables, `column` divs). We assume that any
5347 speaker notes immediately following these are connected to these
5348 elements, and keep them with the related blocks, splitting after them.
5349 + Remove `docProps/thumbnail.jpeg` in data dir (Jesse Rosenthal, #4588).
5350 It contained a nonfree ICC color calibration profile and is not needed
5351 for production of a powerpoint document.
5355 + Include a blank line at the end of the row in a single-row multiline
5356 table, to prevent it from being interpreted as a simple table (#4578).
5358 * CommonMark writer:
5360 + Correctly ignore LaTeX raw blocks when `raw_tex` is not
5361 enabled (#4527, quasicomputational).
5365 + Add `epub:type="footnotes"` to notes section in EPUB3 (#4489).
5369 + In beamer, don't use format specifier for default ordered lists
5370 (#4556). This gives better results for styles that put ordered list
5371 markers in boxes or circles.
5372 + Update `\lstinline` delimiters (#4369, Tim Parenti).
5376 + Use `\f[R]` rather than `\f[]` to reset font (#4552).
5377 + Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`,
5378 since the header font is automatically bold (#4552).
5379 + Use `\f[CB]` rather than `\f[BC]` for monospace bold (#4552).
5380 + Create pdf anchor for a Div with an identifier (#4515).
5381 + Escape `/` character in anchor ids (#4515).
5382 + Improve escaping for anchor ids: we now use _uNNN_ instead of uNNN
5387 + Don't escape U+2019 as `'` (#4550).
5389 * Text.Pandoc.Options:
5391 + Removed `JsMath`, `LaTeXMathML`, and `GladTeX` constructors from
5392 `Text.Pandoc.Options.HTMLMathMethod` [API change].
5394 * Text.Pandoc.Class:
5396 + `writeMedia`: unescape URI-escaping in file path. This avoids
5397 writing things like `file%20one.png` to the file system.
5399 * Text.Pandoc.Parsing:
5401 + Fix `romanNumeral` parser (#4480). We previously accepted 'DDC'
5403 + `uri`: don't treat `*` characters at end as part of URI (#4561).
5407 + Use the alias `application/eps` for EPS (#2067).
5408 This will ensure that we retain the eps extension after reading the
5409 image into a mediabag and writing it again.
5413 + Use `withTempDir` in `html2pdf`.
5414 + With `xelatex`, don't compress images til the last run (#4484).
5415 This saves time for image-heavy documents.
5416 + Don't try to convert EPS files (#2067). `pdflatex` converts them
5417 itself, and JuicyPixels can't do it.
5418 + For `pdflatex`, use a temp directory in the working directory.
5419 Otherwise we can have problems with the EPS conversion pdflatex
5420 tries to do, which can't operate on a file above the working
5421 directory without `--shell-escape`.
5423 * Changes to tests to accommodate changes in pandoc-types.
5424 In <https://github.com/jgm/pandoc-types/pull/36> we changed
5425 the table builder to pad cells. This commit changes tests
5426 (and two readers) to accord with this behavior.
5428 * Set default extensions for `beamer` same as `latex`.
5432 + Add `beameroption` variable (#4359, Étienne Bersac).
5433 + Use `pgfpages` package; this is needed for notes on second
5434 screen in beamer (Étienne Bersac).
5435 + Add `background-image` variable (#4601, John Muccigrosso).
5437 * reveal.js template: Add `background-image` variable (#4600,
5440 * ms template: Fix date. Previously `.ND` was used, but this only
5441 works if you have a title page, which we don't. Thanks to @teoric.
5443 * Removed pragmas for unused extensions (#4506, Anabra).
5445 * Fix bash completion for `--print-default-data-file` (#4549).
5446 Previously this looked in the filesystem, even if pandoc
5447 was compiled with `embed_data_files` (and sometimes it looked
5448 in a nonexistent build directory). Now the bash completion
5449 script just includes a hard-coded list of data file names.
5453 + Clarify template vs metadata variables (#4501, Mauro Bieg).
5454 + Fix raw content example (#4479, Mauro Bieg).
5455 + Specify that you use html for raw output in epub.
5456 + Add examples for raw docx blocks (#4472, Tristan Stenner).
5457 The documentation states that the target format name should match
5458 the output format, which isn't the case for `docx`/`openxml` and
5460 + Don't say that `empty_paragraphs` affects markdown output (#4540).
5461 + Consolidate input/output format documentation (#4577, Mauro Bieg).
5463 * New README template. Take in/out formats from manual.
5465 * Fix example in lua-filters docs (#4459, HeirOfNorton).
5467 * Use the `-threaded` GHC flag when building benchmarks (#4587,
5468 Francesco Occhipinti).
5470 * Bump temporary upper bound to 1.4.
5472 * Use pandoc-citeproc 0.14.3.1.
5474 * Use texmath-0.10.1.2 (fixes escapes in math in ms, #4597).
5476 * Removed old lib directory. This was used for something long ago,
5477 but plays no role now.
5479 * Removed unneeded data file `LaTeXMathML.js`.
5481 * Create 64- and 32-bit versions of Windows binary packages.
5483## pandoc 2.1.3 (2018-03-18)
5485 * Docx reader (Jesse Rosenthal):
5487 + Add tests for nested smart tags.
5488 + Parse nested smart tags.
5489 + Make unwrapSDT into a general `unwrap` function that can unwrap both
5490 nested SDT tags and smartTags. This makes the SmartTags constructor in
5491 the Docx type unnecessary, so we remove it (#4446).
5492 + Remove unused `docxWarnings` (Alexander Krotov).
5494 * RST reader: Allow unicode bullet characters (#4454).
5496 * Haddock reader: Better table handling, using haddock-library's
5497 new table support, if compiled against a version that
5498 includes it. Note that tables with col/rowspans will not
5499 translate well into Pandoc.
5501 * Muse reader (Alexander Krotov):
5503 + Various internal improvements.
5504 + Require closing tag to have the same indentation as opening.
5505 + Do not reparse blocks inside unclosed block tag (#4425).
5506 + Parse `<class>` tag (supported by Emacs Muse).
5507 + Do not produce empty Str element for unindented verse lines.
5511 + Add support to parse unit string of `\SI` command (closes #4296,
5514 * Haddock writer: In the writer, we now render tables always as
5515 grid tables, since Haddock supports these.
5517 * DokuWiki writer: rewrite backSlashLineBreaks (#4445, Mauro Bieg).
5519 * Docx writer: Fixed formatting of `DefaultStyle` ordered lists in
5520 docx writer. We want decimal for the top level, not lower roman.
5524 + Strip whitespace at beginning and ending of inline containers
5525 (#4327, Francesco Occhipinti).
5526 + Filter out empty inline containers (#4434). There is nothing in
5527 RST that corresponds to e.g. `Emph []`, so we just ignore elements
5528 like this (Francesco Occhipinti).
5530 * Muse writer (Alexander Krotov):
5532 + Support spans with anchors.
5533 + Replace smallcaps with emphasis before normalization.
5534 + Output smallcaps as emphasis.
5535 + Expand Cite before list normalization.
5536 + Write empty inline lists as `<verbatim></verbatim>`.
5537 + Remove empty Str from the beginning of inline lists during normalization.
5538 + Escape "-" to avoid creating bullet lists.
5539 + Fix math expansion for more than one expression per paragraph.
5540 + Expand math before inline list normalization.
5542 * Dokuwiki writer: fix LineBreaks in Tables (#4313, Mauro Bieg).
5546 + Asciify pdf anchors, since unicode anchors don't work (#4436).
5547 Internal links should be converted automatically, so this shouldn't
5548 affect users directly.
5549 + Don't escape hyphens as `\-`; that's for a minus sign (#4467).
5551 * Beamer writer: put hyperlink after `\begin{frame}` and not in the title
5552 (#4307). If it's in the title, then we get a titlebar on slides with
5553 the `plain` attribute, when the id is non-null. This fixes a regression
5556 * EPUB writer: Remove notes from TOC in nav.xhtml (#4453, Mauro Bieg).
5558 * JATS writer: Remove extraneous, significant whitespace (#4335,
5561 * html2pdf: inject base tag with current working directory (#4413, Mauro
5562 Bieg). This helps ensure that linked resources are included.
5564 * Add Semigroup instances for everything for which we defined a
5565 Monoid instance previously (API change):
5567 + Text.Pandoc.Class.FileTree.
5568 + Text.Pandoc.Translations.Translations.
5569 + Text.Pandoc.Extensions.Extensions.
5570 + Text.Pandoc.Readers.Odt.StyleReader.Styles.
5571 + Text.Pandoc.Pretty.Doc.
5572 + Text.Pandoc.MediaBag.MediaBag.
5574 * Add custom Prelude to give clean code for Monoid and Semigroup
5575 that works with ghc 7.10-8.4. The custom Prelude (`prelude/Prelude`)
5576 is used for ghc versions < 8.4. `NoImplicitPrelude` is used
5577 in all source files, and Prelude is explicitly imported
5578 (this is necessary for ghci to work properly with the custom prelude).
5580 * Text.Pandoc.Writers.Shared (Francesco Occhipinti):
5582 + Export `stripLeadingTrailingSpace`.
5583 + Don't wrap lines in grid tables when `--wrap=none` (#4320).
5584 + `gridTable`: Don't wrap lines in tables when `--wrap=none`. Instead,
5585 expand cells, even if it results in cells that don't respect relative
5586 widths or surpass page column width. This change affects RST,
5587 Markdown, and Haddock writers.
5589 * Raise error if someone tries to print docx, odt, etc. template (#4441).
5591 * LaTeX template: Provide `bidi` package's option using
5592 `\PassOptionsToPackage` (#4357, Václav Haisman). This avoid a
5593 clash when `polyglossia` loads it first and then it is loaded again
5596 * ConTeXt template: Added `pdfa` variable to generate PDF/A (#4294, Henri
5597 Menke). Instructions on how to install the ICC profiles on ConTeXt
5598 standalone can be found in the wiki:
5599 <http://wiki.contextgarden.net/PDFX#ICC_profiles>.
5600 If the ICC profiles are not available the log will contain error
5603 * Use latest pandoc-types, skylighting
5605 * Use latest pandoc-citeproc in binary package.
5607 * Bump upper bound for time, criterion, haddock-library, exceptions,
5608 http-types, aeson, haddock-library.
5610 * Bump upper bound tasty-quickcheck 0.10 (#4429, Felix Yan).
5612 * pandoc.cabal: fix up other-extensions and language fields.
5613 Language is now consistently `Haskell2010`, and other-extensions
5614 is consistently `NoImplicitPrelude`. Everything else to be specified
5615 in the module header as needed.
5617 * Removed `old-locale` flag and Text.Pandoc.Compat.Time.
5618 This is no longer necessary since we no longer support ghc 7.8.
5620 * Make `weigh-pandoc` into a benchmark program.
5621 Remove `weigh-pandoc` flag. `weigh-pandoc` is now built (and run)
5622 automatically when you build (and run) benchmarks.
5624 * MANUAL: add instructions for background images reveal.js (#4325, John
5627 * appveyor: use VS 2013 environment instead of VS 2015 for Windows builds.
5629## pandoc 2.1.2 (2018-03-02)
5633 + Fix parsing bug with nested fenced divs (#4281). Previously we allowed
5634 "nonindent spaces" before the opening and closing `:::`, but this
5635 interfered with list parsing, so now we require the fences to be flush with
5636 the margin of the containing block.
5638 * Commonmark reader:
5640 + `raw_html` is now on by default. It can be disabled explicitly
5641 using `-f commonmark-raw_html`.
5643 * Org reader (Albert Krewinkel):
5645 + Move citation tests to separate module.
5646 + Allow changing emphasis syntax (#4378). The characters allowed before
5647 and after emphasis can be configured via `#+pandoc-emphasis-pre` and
5648 `#+pandoc-emphasis-post`, respectively. This allows to change which
5649 strings are recognized as emphasized text on a per-document or even
5650 per-paragraph basis. Example:
5652 #+pandoc-emphasis-pre: "-\t ('\"{"
5653 #+pandoc-emphasis-post: "-\t\n .,:!?;'\")}["
5657 + Fixed comments inside citations (#4374).
5658 + Fix regression in package options including underscore (#4424).
5659 + Make `--trace` work.
5660 + Fixed parsing of `tabular*` environment (#4279).
5664 + Fix regression in parsing of headers with trailing space (#4280).
5666 * Muse reader (Alexander Krotov):
5668 + Enable `<literal>` tags even if amuse extension is enabled.
5669 Amusewiki disables <literal> tags for security reasons.
5670 If user wants similar behavior in pandoc, RawBlocks and RawInlines
5671 can be removed or replaced with filters.
5672 + Remove space prefix from `<literal>` tag contents.
5673 + Do not consume whitespace while looking for closing end tag.
5674 + Convert alphabetical list markers to decimal in round-trip test.
5675 Alphabetical lists are an addition of Text::Amuse.
5676 They are not present in Emacs Muse and can be ambiguous
5677 when list starts with "i.", "c." etc.
5678 + Allow `<quote>` and other tags to be indented.
5679 + Allow single colon in definition list term.
5680 + Fix parsing of verse in lists.
5681 + Improved parsing efficiency. Avoid `parseFromString`.
5682 Lists are parsed in linear instead of exponential time now.
5683 + Replace ParserState with MuseState.
5684 + Prioritize lists with roman numerals over alphabetical lists.
5685 This is to make sure "i." starts a roman numbered list,
5686 instead of a list with letter "i" (followed by "j", "k", ...").
5687 + Fix directive parsing.
5688 + Parse definition lists with multiple descriptions.
5689 + Parse next list item before parsing more item contents.
5690 + Fixed a bug: headers did not terminate lists.
5691 + Move indentation parsing from `definitionListItem` to `definitionList`.
5692 + Paragraph indentation does not indicate nested quote.
5693 Muse allows indentation to indicate quotation or alignment,
5694 but only on the top level, not within a <quote> or list.
5695 + Require that block tags are on separate lines.
5696 Text::Amuse already explicitly requires it anyway.
5697 + Fix matching of closing inline tags.
5698 + Various internal changes.
5699 + Fix parsing of nested definition lists.
5700 + Require only one space for nested definition list indentation.
5701 + Do not remove trailing whitespace from `<code>`.
5702 + Fix parsing of trailing whitespace. Newline after whitespace now
5703 results in softbreak instead of space.
5705 * Docx reader (Jesse Rosenthal, except where noted):
5707 + Handle nested sdt tags (#4415).
5708 + Don't look up dependant run styles if `+styles` is enabled.
5709 + Move pandoc inline styling inside custom-style span.
5710 + Read custom styles (#1843). This will read all paragraph and
5711 character classes as divs and spans, respectively. Dependent styles
5712 will still be resolved, but will be wrapped with appropriate style
5713 tags. It is controlled by the `+styles` extension (`-f docx+styles`).
5714 This can be used in conjunction with the `custom-style` feature in the
5715 docx writer for a pandoc-docx editing workflow. Users can convert from
5716 an input docx, reading the custom-styles, and then use that same input
5717 docx file as a reference-doc for producing an output docx file. Styles
5718 will be maintained across the conversion, even if pandoc doesn't
5720 + Small change to Fields hyperlink parser. Previously, unquoted string
5721 required a space at the end of the line (and consumed it). Now we
5722 either take a space (and don't consume it), or end of input.
5723 + Pick table width from the longest row or header (Francesco Occhipinti,
5726 * Muse writer (Alexander Krotov):
5728 + Change verse markup: `> ` instead of `<verse>` tag.
5729 + Remove empty strings during inline normalization.
5730 + Don't indent nested definition lists.
5731 + Use unicode quotes for quoted text.
5732 + Write image width specified in percent in Text::Amuse mode.
5733 + Don't wrap displayMath into `<verse>`.
5734 + Escape nonbreaking space (`~~`).
5735 + Join code with different attributes during normalization.
5736 + Indent lists inside Div.
5737 + Support definitions with multiple descriptions.
5739 * Powerpoint writer (Jesse Rosenthal):
5741 + Use table styles This will use the default table style in the
5742 reference-doc file. As a result they will be easier when using
5743 in a template, and match the color scheme.
5744 + Remove empty slides. Because of the way that slides were split, these
5745 could be accidentally produced by comments after images. When animations
5746 are added, there will be a way to add an empty slide with either
5747 incremental lists or pauses.
5748 + Implement syntax highlighting. Note that background colors can't
5749 be implemented in PowerPoint, so highlighting styles that require
5750 these will be incomplete.
5751 + New test framework for pptx. We now compare the output of the
5752 Powerpoint writer with files that we know to (a) not be corrupt,
5753 and (b) to show the desired output behavior (details below).
5754 + Add `notesMaster` to `presentation.xml` if necessary.
5755 + Ignore links and (end)notes in speaker notes.
5756 + Output speaker notes.
5757 + Read speaker note templates conditionally. If there are speaker
5758 notes in the presentation, we read in the notesMasters templates
5759 from the reference pptx file.
5760 + Fix deletion track changes (#4303, Jesse Rosenthal).
5762 * Markdown writer: properly escape @ to avoid capture as citation
5767 + Put hypertarget inside figure environment (#4388).
5768 This works around a problem with the endfloat package and
5769 makes pandoc's output compatible with it.
5770 + Fix image height with percentage (#4389). This previously caused
5771 the image to be resized to a percentage of textwidth, rather than
5774 * ConTeXt writer (Henri Menke):
5776 + New section syntax and support `--section-divs` (#2609).
5777 `\section[my-header]{My Header}` ->
5778 `\section[title={My Header},reference={my-header}]`.
5779 The ConTeXt writer now supports the `--section-divs` option to
5780 write sections in the fenced style, with `\startsection` and
5782 + xtables: correct wrong usage of caption (Henri Menke).
5786 + Fix image resizing with multiple images (#3930, Andrew Pritchard).
5787 + Use new golden framework (Jesse Rosenthal).
5788 + Make more deterministic to facilitate testing (Jesse Rosenthal).
5789 - `getUniqueId` now calls to the state to get an incremented digit,
5790 instead of calling to P.uniqueHash.
5791 - we always start the PRNG in mkNumbering/mkAbstractNum with the same
5792 seed (1848), so our randoms should be the same each time.
5793 + Fix ids in comment writing (Jesse Rosenthal). Comments from
5794 `--track-changes=all` were producing corrupt docx, because the
5795 writer was trying to get id from the `(ID,_,_)` field of
5796 the attributes, and ignoring the "id" entry in the key-value pairs. We
5799 * Ms writer: Added papersize variable.
5803 + Use `height` instead of `depth` for images (#4331).
5804 + Ensure that id prefix is always used.
5805 + Don't emit `role` attribute; that was a leftover from the
5807 + Use 'xml:id', not 'id' attribute (#4371).
5811 + Do not output implicit heading IDs (#4363, Alexander
5812 Krotov). Convert to `asciidoc-auto_identifiers` for old behaviour.
5816 + Remove `blockToRST'` moving its logic into `fixBlocks`
5817 (Francesco Occhipinti).
5818 + Insert comment between lists and quotes (#4248, Francesco Occchipinti).
5820 * RST template: remove definition of 'math' role as raw.
5821 This used to be needed prior to v 0.8 of docutils, but
5822 now math support is built-in.
5824 * Slides: Use divs to set incremental/non-incremental (#4381,
5825 Jesse Rosenthal). The old method (list inside blockquote) still
5826 works, but we are encouraging the use of divs with class
5827 `incremental` or `nonincremental`.
5829 * Text.Pandoc.ImageSize:
5831 + Make image size detection for PDFs more robust (#4322).
5832 + Determine image size for PDFs (#4322).
5833 + EMF Image size support (#4375, Andrew Pritchard).
5835 * Text.Pandoc.Extensions:
5837 + Add `Ext_styles` (Jesse Rosenthal, API change). This will be used in
5838 the docx reader (defaulting to off) to read pargraph and character
5839 styles not understood by pandoc (as divs and spans, respectively).
5840 + Made `Ext_raw_html` default for `commonmark` format.
5842 * Text.Pandoc.Parsing:
5844 + Export `manyUntil` (Alexander Krotov, API change).
5845 + Export improved `sepBy1` (Alexander Krotov).
5846 + Export list marker parsers: `upperRoman`, `lowerRoman`,
5847 `decimal`, `lowerAlpha`, `upperAlpha` (Alexander Krotov, API change).
5849 * Tests/Lua: fix tests on windows (Albert Krewinkel).
5851 * Lua: register script name in global variable (#4393). The name of the Lua
5852 script which is executed is made available in the global Lua variable
5853 `PANDOC_SCRIPT_FILE`, both for Lua filters and custom writers.
5855 * Tests: Abstract powerpoint tests out to OOXML tests (Jesse Rosenthal).
5856 There is very little pptx-specific in these tests, so we abstract out
5857 the basic testing function so it can be used for docx as well. This
5858 should allow us to catch some errors in the docx writer that slipped
5859 by the roundtrip testing.
5861 * Lua filters: store constructors in registry (Albert Krewinkel). Lua
5862 functions used to construct AST element values are stored in the Lua
5863 registry for quicker access. Getting a value from the registry is much
5864 faster than getting a global value (partly to idiosyncrasies of hslua);
5865 this change results in a considerable performance boost.
5869 + `doc/org.md` Add draft of Org-mode documentation (Albert Krewinkel).
5870 + `doc/lua-filters.md`: document global vars set for filters
5872 + INSTALL.md: mention Stack version. (#4343, Adam Brandizzi).
5873 + MANUAL: add documentation on custom styles (Jesse Rosenthal).
5874 + MANUAL.txt: Document incremental and nonincremental divs (Jesse
5875 Rosenthal). Blockquoted lists are still described, but fenced divs are
5876 presented in preference.
5877 + MANUAL.txt: document header and footer variables (newmana).
5878 + MANUAL.txt: self-contained implies standalone (#4304, Daniel Lublin).
5879 + CONTRIBUTING.md: label was renamed. (#4310, Alexander Brandizzi).
5881 * Require tagsoup 0.14.3 (#4282), fixing HTML tokenization bug.
5883 * Use latest texmath.
5885 * Use latest pandoc-citeproc.
5887 * Allow exceptions 0.9.
5889 * Require aeson-pretty 0.8.5 (#4394).
5891 * Bump blaze-markup, blaze-html lower bounds to 0.8, 0.9 (#4334).
5893 * Update tagsoup to 0.14.6 (Alexander Krotov, #4282).
5895 * Removed ghc-prof-options. As of cabal 1.24, sensible defaults are used.
5897 * Update default.nix to current nixpkgs-unstable for hslua-0.9.5 (#4348,
5900## pandoc 2.1.1 (2018-01-18)
5904 + Don't coalesce adjacent raw LaTeX blocks if they are separated by a
5905 blank line. See lierdakil/pandoc-crossref#160.
5906 + Improved `inlinesInBalancedBrackets` (#4272, jgm/pandoc-citeproc#315).
5907 The change both improves performance and fixes a regression whereby
5908 normal citations inside inline notes and figure captions were not
5913 + Better handling for headers with an anchor (#4240). Instead of creating a
5914 Div containing the header, we put the id directly on the header.
5915 This way header promotion will work properly.
5916 + Add aligned environment when needed in math (#4254). `rst2latex.py`
5917 uses an `align*` environment for math in `.. math::` blocks, so this
5918 math may contain line breaks. If it does, we put the math in an
5919 `aligned` environment to simulate `rst2latex.py`'s behavior.
5923 + Fix col width parsing for percentages < 10% (#4262, n3fariox).
5927 + Advance source position at end of stream.
5928 + Pass through macro defs in `rawLaTeXBlock` even if the `latex_macros`
5929 extension is set (#4246). This reverts to earlier behavior and is
5930 probably safer on the whole, since some macros only modify things in
5931 included packages, which pandoc's macro expansion can't modify.
5932 + Fixed pos calculation in tokenizing escaped space.
5933 + Allow macro definitions inside macros (#4253). Previously we went into
5934 an infinite loop with
5936 \newcommand{\noop}[1]{#1}
5937 \noop{\newcommand{\foo}[1]{#1}}
5940 + Fix inconsistent column widths (#4238). This fixes a bug whereby column
5941 widths for the body were different from widths for the header in some
5944 * Docx reader (Jesse Rosenthal):
5946 + Parse hyperlinks in `instrText` tags (#3389, #4266). This was a form of
5947 hyperlink found in older versions of word. The changes introduced for
5948 this, though, create a framework for parsing further fields in MS Word
5949 (see the spec, ECMA-376-1:2016, §17.16.5, for more on these fields).
5950 We introduce a new module, `Text.Pandoc.Readers.Docx.Fields` which
5951 contains a simple parsec parser. At the moment, only simple hyperlink
5952 fields are accepted, but that can be extended in the future.
5954 * Muse reader (Alexander Krotov):
5956 + Parse `~~` as non-breaking space in Text::Amuse mode.
5957 + Refactor list parsing.
5959 * Powerpoint writer (Jesse Rosenthal):
5961 + Change reference to `notesSlide` to `endNotesSlide`.
5962 + Move image sizing into `picProps`.
5963 + Improve table placement.
5964 + Make our own `_rels/.rels` file.
5965 + Import reference-doc images properly.
5966 + Move `Presentation.hs` out of `PandocMonad`.
5967 + Refactor into separate modules. T.P.W.Powerpoint.Presentation
5968 defines the Presentation datatype and goes Pandoc->Presentation;
5969 T.P.W.Pandoc.Output goes Presentation->Archive.
5970 Text.Pandoc.Writers.Powerpoint a thin wrapper around the two modules.
5971 + Avoid overlapping blocks in column output.
5972 + Position images correctly in two-column layout.
5973 + Make content shape retrieval environment-aware.
5974 + Improve image handling. We now determine image and caption placement
5975 by getting the dimensions of the content box in a given layout.
5976 This allows for images to be correctly sized and positioned in a
5977 different template. Note that images without captions and headers are
5978 no longer full-screened. We can't do this dependably in different
5979 layouts, because we don't know where the header is (it could be to
5980 the side of the content, for example).
5981 + Read presentation size from reference file. Our presentation size is
5982 now dependent on the reference/template file we use.
5983 + Handle (sub)headers above slidelevel correctly. Above the slidelevel,
5984 subheaders will be printed in bold and given a bit of extra space
5985 before them. Note that at the moment, no distinction is made between
5986 levels of headers above the slide header, though that can be changed.
5987 + Check for required files. Since we now import from reference/dist
5988 file by glob, we need to make sure that we're getting the files we
5989 need to make a non-corrupt Powerpoint. This performs that check.
5990 + Improve templating using `--reference-doc`. Templating should work
5991 much more reliably now.
5992 + Include Notes slide in TOC.
5993 + Set notes slide header to slide-level.
5994 + Add table of contents. This is triggered by the `--toc` flag. Note
5995 that in a long slide deck this risks overrunning the text box. The user
5996 can address this by setting `--toc-depth=1`.
5997 + Set notes slide number correctly.
5998 + Clean up adding metadata slide. We want to count the slide numbers
5999 correctly if it's in there.
6000 + Add anchor links. For anchor-type links (`[foo](#bar)`) we produce
6001 an anchor link. In powerpoint these are links to slides, so we keep
6002 track of a map relating anchors to the slides they occur on.
6003 + Make the slide number available to the blocks. For anchors,
6004 block-processing functions need to know what slide number
6005 they're in. We make the `envCurSlideId` available to blocks.
6006 + Move `curSlideId` to environment.
6007 + Allow setting `toc-title` in metadata.
6008 + Link notes to endnotes slide.
6012 + Fix cell width calculation (#4265). Previously we could get
6013 ever-lengthening cell widths when a table was run repeatedly through
6014 `pandoc -f markdown -t markdown`.
6018 + Escape `&` in lstinline (Robert Schütz).
6022 + Use xtables instead of Tables (#4223, Henri Menke).
6023 Default to xtables for context output. Natural Tables are used
6024 if the new `ntb` extension is set.
6028 + Fixed footnote backlinks with `--id-prefix` (#4235).
6030 * `Text.Pandoc.Extensions`: Added `Ext_ntb` constructor (API change,
6033 * `Text.Pandoc.ImageSize`: add derived `Eq` instance to `Dimension`
6034 (Jesse Rosenthal, API change).
6036 * Lua filters (Albert Krewinkel):
6038 + Make `PANDOC_READER_OPTIONS` available.
6039 The options which were used to read the document are made available to
6040 Lua filters via the `PANDOC_READER_OPTIONS` global.
6041 + Add lua module `pandoc.utils.run_json_filter`, which runs a JSON filter
6042 on a Pandoc document.
6043 + Refactor filter-handling code into `Text.Pandoc.Filter.JSON`,
6044 `Text.Pandoc.Filter.Lua`, and `Text.Pandoc.Filter.Path`.
6045 + Improve error messages. Provide more context about the task
6046 which caused an error.
6048 * data/pandoc.lua (Albert Krewinkel):
6050 + Accept singleton inline as a list. Every constructor which accepts a
6051 list of inlines now also accepts a single inline element for
6053 + Accept single block as singleton list. Every constructor which accepts
6054 a list of blocks now also accepts a single block element for
6055 convenience. Furthermore, strings are accepted as shorthand for
6056 `{pandoc.Str "text"}` in constructors.
6057 + Add attr, listAttributes accessors. Elements with
6058 attributes got an additional `attr` accessor. Attributes were
6059 accessible only via the `identifier`, `classes`, and `attributes`,
6060 which was in conflict with the documentation, which indirectly states
6061 that such elements have the an `attr` property.
6062 + Drop `_VERSION`. Having a `_VERSION` became superfluous, as this
6063 module is closely tied to the pandoc version, which is available via
6065 + Fix access to Attr components. Accessing an Attr value (e.g.,
6066 ` Attr().classes`) was broken; the more common case of accessing it via
6067 an Inline or Block element was unaffected by this.
6069 * Move `metaValueToInlines` to from Docx writer to
6070 `Text.Pandoc.Writers.Shared`, so it can be used by other writers
6075 + Clarify otherlangs in LaTeX (#4072).
6076 + Clarify `latex_macros` extension.
6077 + Recommend use of `raw_attribute` extension in header includes (#4253).
6079 * Allow latest QuickCheck, tasty, criterion.
6081 * Remove custom prelude and ghc 7.8 support.
6083 * Reduce compiler noise (exact paths for compiled modules).
6085## pandoc 2.1 (2018-01-07)
6087 * Allow filters and lua filters to be interspersed (#4196). Previously
6088 we ran all lua filters before JSON filters. Now we run filters in
6089 the order they are presented on the command line, whether lua or JSON.
6090 There are two incompatible API changes: The type of `applyFilters`
6091 has changed, and `applyLuaFilters` has been removed. `Filter` is
6094 * Use latest skylighting and omit the `missingIncludes` check, fixing
6095 a major performance regression in earlier releases of the 2.x series
6096 (#4226). Behavior change: If you use a custom syntax definition that
6097 refers to a syntax you haven't loaded, pandoc will now complain when
6098 it is highlighting the text, rather than doing a check at the start.
6099 This change dramatically speeds up invocations of pandoc on short
6102 * Text.Pandoc.Class: make `FileTree` opaque (don't export
6103 `FileTree` constructor). This forces users to interact with it using
6104 `insertInFileTree` and `getFileInfo`, which normalize file names.
6108 + Rewrite `inlinesInBalancedBrackets`. The rewrite is much more
6109 direct, avoiding `parseFromString`. And it performs significantly
6110 better; unfortunately, parsing time still increases exponentially
6112 + Avoid parsing raw tex unless `\` + letter seen. This seems to
6113 help with the performance problem, #4216.
6115 * LaTeX reader: Simplified a check for raw tex command.
6117 * Muse reader (Alexander Krotov):
6119 + Enable round trip test (#4107).
6120 + Automatically translate `#cover` into `#cover-image`.
6121 Amusewiki uses #cover directive to specify cover image.
6123 * Docx reader (Jesse Rosenthal):
6125 + Allow for insertion/deletion of paragraphs (#3927).
6126 If the paragraph has a deleted or inserted paragraph break (depending
6127 on the track-changes setting) we hold onto it until the next
6128 paragraph. This takes care of accept and reject. For this we introduce
6129 a new state which holds the ils from the previous para if necessary.
6130 For `--track-changes=all`, we add an empty span with class
6131 `paragraph-insertion`/`paragraph-deletion` at the end of the paragraph
6132 prior to the break to be inserted or deleted.
6133 + Remove unused anchors (#3679). Docx produces a lot of anchors with
6134 nothing pointing to them---we now remove these to produce cleaner
6135 output. Note that this has to occur at the end of the process
6136 because it has to follow link/anchor rewriting.
6137 + Read multiple children of `w:sdtContents`.
6138 + Combine adjacent anchors. There isn't any reason to have numerous
6139 anchors in the same place, since we can't maintain docx's
6140 non-nesting overlapping. So we reduce to a single anchor.
6143 * Muse writer (Alexander Krotov): don't escape URIs from AST
6147 + Removed redundant subtitle in title (Sebastian Talmon).
6148 + `firstRow` table definition compatibility for Word 2016 (Sebastian
6149 Talmon). Word 2016 seems to use a default value of "1" for table
6150 headers, if there is no firstRow definition (although a default
6151 value of 0 is documented), so all tables get the first Row formatted
6152 as header. Setting the parameter to 0 if the table has no header
6153 row fixes this for Word 2016
6154 + Fix custom styles with spaces in the name (#3290).
6156 * Powerpoint writer (Jesse Rosenthal):
6158 + Ignore Notes div for parity with other slide outputs.
6159 + Set default slidelevel correctly. We had previously defaulted to
6160 slideLevel 2. Now we use the correct behavior of defaulting to the
6161 highest level header followed by content. We change an expected test
6162 result to match this behavior.
6163 + Split blocks correctly for linked images.
6164 + Combine adjacent runs.
6165 + Make inline code inherit code size. Previously (a) the code size
6166 wasn't set when we force size, and (b) the properties was set from
6167 the default, instead of inheriting.
6168 + Simplify `replaceNamedChildren` function.
6169 + Allow linked images. The following markdown:
6170 `[](http://www.example.com)`
6171 will now produce a linked image in the resulting PowerPoint file.
6172 + Fix error with empty table cell. We require an empty `<a:p>` tag,
6173 even if the cell contains no paragraphs---otherwise PowerPoint
6174 complains of corruption.
6175 + Implement two-column slides. This uses the columns/column div
6176 format described in the pandoc manual. At the moment, only two
6177 columns (half the screen each) are allowed. Custom widths are not
6181 * OpenDocument/ODT writers: improved rendering of formulas (#4170, oltolm).
6183 * Lua filters (Albert Krewinkel):
6185 + `data/pandoc.lua`: drop 'pandoc-api-version' from Pandoc objects
6186 + The current pandoc-types version is made available to Lua programs in
6187 the global `PANDOC_API_VERSION`. It contains the version as a list of
6189 + The pandoc version available as a global `PANDOC_VERSION` (a list
6191 + `data/pandoc.lua`: make `Attr` an `AstElement`.
6192 + `data/pandoc.lua`: make all types subtypes of `AstElement`.
6193 `Pandoc`, `Meta`, and `Citation` were just plain functions and did
6194 not set a metatable on the returned value, which made it difficult
6195 to amend objects of these types with new behavior. They are now
6196 subtypes of AstElement, meaning that all their objects can gain
6197 new features when a method is added to the behavior object
6198 (e.g., `pandoc.Pandoc.behavior`).
6199 + `data/pandoc.lua`: split type and behavior tables. Clearly distinguish
6200 between a type and the behavioral properties of an instance of that
6201 type. The behavior of a type (and all its subtypes) can now be
6202 amended by adding methods to that types `behavior` object, without
6203 exposing the type objects internals. E.g.:
6205 pandoc.Inline.behavior.frob = function () print'42' end
6206 local str = pandoc.Str'hello'
6207 str.frob() -- outputs '42'
6209 + `data/pandoc.lua`: fix Element inheritance. Extending all elements
6210 of a given type (e.g., all inline elements) was difficult, as the
6211 table used to lookup unknown methods would be reset every time a
6212 new element of that type was created, preventing recursive property
6213 lookup. This is was changed in that all methods and attributes of
6214 supertypes are now available to their subtypes.
6215 + `data/pandoc.lua`: fix attribute names of Citation (#4222). The
6216 fields were named like the Haskell fields, not like the documented,
6217 shorter version. The names are changed to match the documentation
6218 and Citations are given a shared metatable to enable simple
6220 + `data/pandoc.lua`: drop function `pandoc.global_filter`.
6221 + Bump `hslua` version to 0.9.5. This version fixes a bug that made it
6222 difficult to handle failures while getting lists or a Map from Lua.
6223 A bug in pandoc, which made it necessary to always pass a tag when
6224 using MetaList or MetaBlock, is fixed as a result. Using the pandoc
6225 module's constructor functions for these values is now optional
6226 (if still recommended).
6227 + Stop exporting `pushPandocModule` (API change). The introduction
6228 of `runPandocLua` renders direct use of this function obsolete.
6229 + Update generation of module docs for lua filters.
6230 + `Lua.Module.Utils`: make stringify work on `MetaValues` (John
6231 MacFarlane). I'm sure this was intended in the first place,
6232 but currently only `Meta` is supported.
6234 * Improve benchmarks.
6236 + Set the default extensions properly.
6237 + Improve benchmark argument parsing. You can now say
6238 `make bench BENCHARGS="markdown latex reader"` and both the
6239 markdown and latex readers will be benchmarked.
6241 * MANUAL.txt simplify and add more structure (Mauro Bieg).
6243 * Generate README.md from template and MANUAL.txt.
6244 `make README.md` will generate the README.md after changes
6245 to MANUAL.txt have been made.
6247 * Update copyright notices to include 2018 (Albert Krewinkel).
6249## pandoc 2.0.6 (2017-12-28)
6251 * Added `jats` as an input format.
6253 + Add Text.Pandoc.Readers.JATS, exporting `readJATS` (API
6254 change) (Hamish Mackenzie).
6255 + Improved citation handling in JATS reader. JATS citations
6256 are now converted to pandoc citations, and JATS ref-lists
6257 are converted into a `references` field in metadata, suitable
6258 for use with pandoc-citeproc. Thus a JATS article with embedded
6259 bibliographic information can be processed with pandoc and
6260 pandoc-citeproc to produce a formatted bibliography.
6262 * Allow `--list-extensions` to take an optional FORMAT argument.
6263 This lists the extensions set by default for the selected FORMAT.
6264 The extensions are now alphabetized, and the `+` or `-`
6265 indicating the default setting comes before, rather than after,
6270 + Preserve original whitespace between blocks.
6271 + Recognize `\placeformula` as context.
6272 + Be pickier about table captions. A caption starts with a `:` which
6273 can't be followed by punctuation. Otherwise we can falsely interpret
6274 the start of a fenced div, or even a table header line like
6275 `:--:|:--:`, as a caption.
6276 + Always use four space rule for example lists. It would be awkward
6277 to indent example list contents to the first non-space character after
6278 the label, since example list labels are often long. Thanks to
6279 Bernhard Fisseni for the suggestion.
6280 + Improve raw tex parsing. Note that the Markdown reader is also
6281 affected by the `latex_macros` extension changes described below
6282 under the LaTeX reader.
6286 + `latex_macros` extension changes (#4179). Don't pass through macro
6287 definitions themselves when `latex_macros` is set. The macros
6288 have already been applied. If `latex_macros` is enabled, then
6289 `rawLaTeXBlock` in Text.Pandoc.Readers.LaTeX will succeed in parsing
6290 a macro definition, and will update pandoc's internal macro map
6291 accordingly, but the empty string will be returned.
6292 + Export `tokenize`, `untokenize` (API change).
6293 + Use `applyMacros` in `rawLaTeXBlock`, `rawLaTeXInline`.
6294 + Refactored `inlineCommand`.
6295 + Fix bug in tokenizer. Material following `^^` was
6296 dropped if it wasn't a character escape. This only affected
6297 invalid LaTeX, so we didn't see it in the wild, but it appeared
6298 in a QuickCheck test failure.
6299 + Fix regression in LateX tokenization (#4159). This mainly affects the
6300 Markdown reader when parsing raw LaTeX with escaped spaces.
6301 + Add tests of LaTeX tokenizer.
6302 + Support `\foreignlanguage` from babel.
6303 + Be more tolerant of `&` character (#4208). This allows us to parse
6304 unknown tabular environments as raw LaTeX.
6306 * Muse reader (Alexander Krotov):
6308 + Parse anchors immediately after headings as IDs.
6309 + Require that note references does not start with 0.
6310 + Parse empty comments correctly.
6312 * Org reader (Albert Krewinkel):
6314 + Fix asterisks-related parsing error (#4180).
6315 + Support minlevel option for includes (#4154). The level of headers
6316 in included files can be shifted to a higher level by specifying a
6317 minimum header level via the `:minlevel` parameter. E.g.
6318 `#+include: "tour.org" :minlevel 1` will shift the headers in
6319 tour.org such that the topmost headers become level 1 headers.
6320 + Break-up org reader test file into multiple modules.
6324 + Enable raw HTML and other extensions by default for notes
6325 (#4164). This fixes a regression in 2.0. Note that extensions can
6326 now be individually disabled, e.g. `-f opml-smart-raw_html`.
6330 + Allow empty list items (#4193).
6331 + More accurate parsing of references (#4156). Previously we erroneously
6332 included the enclosing backticks in a reference ID (#4156). This
6333 change also disables interpretation of syntax inside references, as
6334 in docutils. So, there is no emphasis in `` `my *link*`_ ``.
6338 + Continue lists after interruption (#4025, Jesse Rosenthal).
6339 Docx expects that lists will continue where they left off after an
6340 interruption and introduces a new id if a list is starting again. So
6341 we keep track of the state of lists and use them to define a "start"
6342 attribute, if necessary.
6343 + Add tests for structured document tags unwrapping (Jesse Rosenthal).
6344 + Preprocess Document body to unwrap `w:sdt` elements (Jesse Rosenthal,
6349 + Don't linkify table of contents.
6353 + Fix anchors for headers (#4188). We were missing an `_`.
6355 * PowerPoint writer (Jesse Rosenthal):
6357 + Treat lists inside BlockQuotes as lists. We don't yet produce
6358 incremental lists in PowerPoint, but we should at least treat lists
6359 inside BlockQuotes as lists, for compatibility with other slide formats.
6360 + Add ability to force size. This replaces the more specific
6361 `blockQuote runProp`, which only affected the size of blockquotes. We
6362 can use this for notes, etc.
6363 + Implement notes. This currently prints all notes on a final slide.
6364 Note that at the moment, there is a danger of text overflowing the
6365 note slide, since there is no logic for adding further slides.
6366 + Implement basic definition list functionality to PowerPoint writer.
6367 + Don't look for default template file for Powerpoint (#4181).
6368 + Add pptx to isTextFormat list. This is used to check standalone
6369 and not writing to the terminal.
6370 + Obey slide level option (Jesse Rosenthal).
6375 + Ensure that `distArchive` is the one that comes with pandoc
6376 (#4182). Previously a `reference.docx` in `~/.pandoc` (or the user data
6377 dir) would be used instead, and this could cause problems because a
6378 user-modified docx sometimes lacks vital sections that we count
6379 on the `distArchive` to supply.
6383 + Do not wrap "-" to avoid accidental bullet lists (Alexander Krotov).
6384 + Don't allow fn refs to wrap to beginning of line (#4171, with help from
6385 Alexander Krotov). Otherwise they can be interpreted as footnote
6388 * Muse writer (Alexander Krotov):
6390 + Don't wrap note references to the next line (#4172).
6394 + Use br elements in line blocks instead of relying on CSS
6395 (#4162). HTML-based templates have had the custom CSS for
6396 `div.line-block` removed. Those maintaining custom templates will want
6397 to remove this too. We still enclose line blocks in a div with class
6402 + Use `\renewcommand` for `\textlatin` with babel (#4161).
6403 This avoids a clash with a deprecated `\textlatin` command defined
6405 + Allow fragile=singleslide attribute in beamer slides (#4169).
6406 + Use `\endhead` after `\toprule` in headerless tables (#4207).
6410 + Add cover image specified by `cover-image` meta (Alexander Krotov,
6413 * JATS writer (Hamish Mackenzie):
6415 + Support writing `<fig>` and `<table-wrap>` elements
6416 with `<title>` and `<caption>` inside them by using Divs with class set
6417 to one of `fig`, `table-wrap` or `caption` (Hamish Mackenzie). The
6418 title is included as a Heading so the constraint on where Heading can
6419 occur is also relaxed.
6420 + Leave out empty alt attributes on links.
6421 + Deduplicate image mime type code.
6422 + Make `<p>` optional in `<td>` and `<th>` (#4178).
6423 + Self closing tags for empty xref (#4187).
6424 + Improve support for code language.
6428 + Use init file to setup Lua interpreter (Albert Krewinkel).
6429 The same init file (`data/init`) that is used to setup the Lua
6430 interpreter for Lua filters is also used to setup the interpreter of
6432 + Define instances for newtype wrapper (Albert Krewinkel). The custom
6433 writer used its own `ToLuaStack` instance definitions, which made
6434 it difficult to share code with Lua filters, as this could result
6435 in conflicting instances. A `Stringify` wrapper is introduced to
6437 + Added tests for custom writer.
6438 + Fixed definition lists and tables in `data/sample.lua`.
6440 * Fixed regression: when target is PDF, writer extensions were being
6441 ignored. So, for example, `pandoc -t latex-smart -o file.pdf`
6442 did not work properly.
6444 * Lua modules (Albert Krewinkel):
6446 + Add `pandoc.utils` module, to hold utility functions.
6447 + Create a Haskell module Text.Pandoc.Lua.Module.Pandoc to
6448 define the `pandoc` lua module.
6449 + Make a Haskell module for each Lua module. Move definitions for the
6450 `pandoc.mediabag` modules to a separate Haskell module.
6451 + Move `sha1` from the main `pandoc` module to `pandoc.utils`.
6452 + Add function `pandoc.utils.hierarchicalize` (convert list of
6453 Pandoc blocks into (hierarchical) list of Elements).
6454 + Add function `pandoc.utils.normalize_date` (parses a date and
6455 converts it (if possible) to "YYYY-MM-DD" format).
6456 + Add function `pandoc.utils.to_roman_numeral` (allows conversion
6457 of numbers below 4000 into roman numerals).
6458 + Add function `pandoc.utils.stringify` (converts any AST element
6459 to a string with formatting removed).
6460 + `data/init.lua`: load `pandoc.utils` by default
6461 + Turn pipe, read into full Haskell functions. The `pipe` and `read`
6462 utility functions are converted from hybrid lua/haskell functions
6463 into full Haskell functions. This avoids the need for intermediate
6464 `_pipe`/`_read` helper functions, which have dropped.
6465 + pandoc.lua: re-add missing MetaMap function. This was a bug
6466 introduced in version 2.0.4.
6468 * Text.Pandoc.Class: Add `insertInFileTree` [API change]. This gives
6469 a pure way to insert an ersatz file into a `FileTree`. In addition, we
6470 normalize paths both on insertion and on lookup.
6472 * Text.Pandoc.Shared: export `blocksToInlines'` (API change, Maura Bieg).
6474 * Text.Pandoc.MIME: Add opus to MIME type table as audio/ogg (#4198).
6476 * Text.Pandoc.Extensions: Alphabetical order constructors for
6477 `Extension`. This makes them appear in order in `--list-extensions`.
6479 * Allow lenient decoding of latex error logs, which are not always
6480 properly UTF8-encoded (#4200).
6482 * Update latex template to work with recent versions of beamer.
6483 The old template produced numbered sections with some recent
6484 versions of beamer. Thanks to Thomas Hodgson.
6486 * Updated reference.docx (#4175). Instead of just "Hello, world", the
6487 document now contains exemplars of most of the styles that have an
6488 effect on pandoc documents. This makes it easier to see the effect
6491 * Removed `default.theme` data file (#4096). It is no longer needed now
6492 that we have `--print-highlight-style`.
6494 * Added `stack.lts9.yaml` for building with lts 9 and ghc 8.0.2.
6495 We still need this for the alpine static linux build, since
6496 we don't have ghc 8.2.2 for that yet.
6498 * Removed `stack.pkg.yaml`. We only really need `stack.yaml`; we
6499 can put flag settings for pandoc-citeproc there.
6501 * Makefile: Add 'trypandoc' and 'pandoc-templates' targets to
6502 make releases easier.
6506 + Add note on what formats have `+smart` by default.
6507 + Use native syntax for custom-style (#4174, Mauro Bieg).
6508 + Introduce dedicated Extensions section, since some extensions
6509 affect formats other than markdown (Mauro Bieg, #4204).
6510 + Clarify default html output for `--section-divs` (Richard Edwards).
6512 * filters.md: say that Text.Pandoc.JSON comes form pandoc-types.
6513 Closes jgm/pandoc-website#16.
6515 * epub.md: Delete removed `-S` option from command (#4151, Georger Araújo).
6517## pandoc 2.0.5 (2017-12-12)
6519 * Fix a bug in 2.0.4, whereby pandoc could not read the theme files
6520 generated with `--print-highlight-style` (#4133). Improve JSON
6521 serialization of styles.
6523 * Fix CSS issues involving line numbers (#4128).
6524 Highlighted code blocks are now enclosed in a div with class `sourceCode`.
6525 Highlighting CSS no longer sets a generic color for pre and code; we only
6526 set these for class `sourceCode`.
6528 * `--pdf-engine-opt`: fix bug where option order was reversed (#4137).
6530 * Add PowerPoint (pptx) writer (Jesse Rosenthal).
6531 It works following the standard Pandoc conventions for making other
6532 sorts of slides. Caveats:
6534 + Syntax highlighting is not yet implemented. (This is difficult
6535 because there are no character classes in Powerpoint.)
6536 + Footnotes and Definition lists are not yet implemented. (Notes will
6537 usually take the form of a final slide.
6538 + Image placement and auto-resizing has a few glitches.
6539 + Reference powerpoint files don't work dependably from the command
6540 line. This will be implemented, but at the moment users are advised
6541 to change themes from within Powerpoint.
6543 * Create shared Text.Pandoc.Writers.OOXML module (Jesse Rosenthal).
6544 This is for functions used by both Powerpoint and Docx writers.
6546 * Add default pptx data for Powerpoint writer (Jesse Rosenthal).
6548 * Add `empty_paragraphs` extension.
6550 + Deprecate `--strip-empty-paragraphs` option. Instead we now
6551 use an `empty_paragraphs` extension that can be enabled on
6552 the reader or writer. By default, disabled.
6553 + Add `Ext_empty_paragraphs` constructor to `Extension`.
6554 + Revert "Docx reader: don't strip out empty paragraphs."
6555 This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b.
6556 + Implement `empty_paragraphs` extension in docx reader and writer,
6557 opendocument writer, html reader and writer.
6558 + Add tests for `empty_paragraphs` extension.
6562 + Don't parse native div as table caption (#4119).
6563 + Improved computation of column widths in pipe tables.
6564 Pipe tables with lines longer than the text width (as set
6565 by `--columns`) are now scaled to text width, with the relative
6566 widths of columns determined by the ratios between the
6567 header lines. Previously we computed column widths using
6568 the ratio of header line lengths to column width, so that
6569 tables with narrow header lines were extremely thin, which
6570 was very rarely the desired result.
6572 * LaTeX reader: fix `\` before newline (#4134). This should be a space,
6573 as long as it's not followed by a blank line. This has been fixed at the
6576 * Muse reader (Alexander Krotov):
6578 + Add test for `#disable-tables` directive in Emacs mode.
6579 + Don't allow emphasis to be preceded by letter.
6580 + Add underline support in Emacs Muse mode..
6581 + Support multiline directives in Amusewiki mode
6583 * Man writer: omit internal links (#4136). That is, just print the link
6584 text without the URL.
6586 * Markdown reader: accept processing instructions as raw HTML (#4125).
6588 * Lua filters (Albert Krewinkel):
6590 + Use script to initialize the interpreter. The file `init.lua` is
6591 used to initialize the Lua interpreter which is used in Lua filters.
6592 This gives users the option to require libraries which they want to
6593 use in all of their filters, and to extend default modules.
6594 + Fix package loading for Lua 5.1. The list of package searchers is
6595 named `package.loaders` in Lua 5.1 and LuaJIT, and `package.searchers`
6596 in Lua 5.2 and later.
6597 + Refactor lua module handling. The integration with Lua's package/module
6598 system is improved: A pandoc-specific package searcher is prepended to
6599 the searchers in `package.searchers`. The modules `pandoc` and
6600 `pandoc.mediabag` can now be loaded via `require`.
6601 + Bump lower bound of hslua. The release hslua 0.9.3 contains a new
6602 function which makes using Haskell functions as package loaders much
6605 * reveal.js template: add title-slide identifier to title slide (#4120).
6606 This allows it to be styled more easily.
6608 * LaTeX template: Added support for `pagestyle` variable (#4135,
6611 * Add `-threaded` to ghc-options for executable (#4130, fixes a build
6615## pandoc 2.0.4 (2017-12-03)
6617 * Add `--print-highlight-style` option. This generates a JSON version
6618 of a highlighting style, which can be saved as a `.theme` file, modified,
6619 and used with `--highlight-style` (#4106, #4096).
6621 * Add `--strip-empty-paragraphs` option. This works for any input format.
6622 It is primarily intended for use with docx and odt documents where
6623 empty paragraphs have been used for inter-paragraph spaces.
6625 * Support `--webtex` for `gfm` output.
6627 * Recognize `.muse` file extension.
6629 * Support beamer `\alert` in LaTeX reader. Closes #4091.
6631 * Docx reader: don't strip out empty paragraphs (#2252).
6632 Users who have a conversion pipeline from docx may want to consider adding
6633 `--strip-empty-paragraphs` to the command line.
6635 * Org reader (Albert Krewinkel): Allow empty list items (#4090).
6637 * Muse reader (Alexander Krotov):
6639 + Parse markup in definition list terms.
6640 + Allow definition to end with EOF.
6641 + Make code blocks round trip.
6642 + Drop common space prefix from list items.
6643 + Add partial round trip test.
6644 + Don't interpret XML entities.
6646 + Parse `~~` as non-breaking space in Emacs mode.
6647 + Correctly remove indentation from notes. Exactly one space is
6648 required and considered to be part of the marker.
6649 + Allow list items to be empty.
6650 + Add ordered list test.
6651 + Add more multiline definition tests.
6652 + Don't allow blockquotes within lists.
6653 + Fix reading of multiline definitions.
6654 + Add inline `<literal>` support.
6655 + Concatenate inlines of the same type
6657 * Docx writer: allow empty paragraphs (#2252).
6659 * CommonMark/gfm writer:
6661 + Use raw html for native divs/spans (#4113). This allows a pandoc
6662 markdown native div or span to be rendered in gfm using raw html tags.
6663 + Implement `raw_html` and `raw_tex` extensions. Note that `raw_html`
6664 is enabled by default for `gfm`, while `raw_tex` is disabled by default.
6666 * Muse writer (Alexander Krotov):
6668 + Test that inline math conversion result is normalized.
6669 Without normalization this test produced
6670 `<em>a</em><em>b</em><em>c</em>`.
6671 + Improve inline list normalization and move to writer.
6672 + Escape hash symbol.
6673 + Escape `----` to avoid accidental horizontal rules.
6674 + Escape only `</code>` inside code tag.
6675 + Additional `<verbatim>` is not needed as `<code>` is verbatim already.
6679 + Allow specifying just width or height for image size.
6680 Previously both needed to be specified (unless the image was
6681 being resized to be smaller than its original size).
6682 If height but not width is specified, we now set width to
6683 textwidth. If width but not height is specified, we now set
6684 height to textheight. Since we have `keepaspectratio`, this
6685 yields the desired result.
6686 + Escape `~` and `_` in code with `--listings` (#4111).
6688 * HTML writer: export `tagWithAttributes`. This is a helper allowing
6689 other writers to create single HTML tags.
6691 * Let papersizes `a0`, `a1`, `a2`, ... be case-insensitive by
6692 converting the case as needed in LaTeX and ConTeXt writers.
6694 * Change `fixDisplayMath` from `Text.Pandoc.Writers.Shared`
6695 so that it no longer produces empty `Para`'s as an artifact.
6697 * `Text.Pandoc.Shared.blocksToInlines`: rewrote using builder.
6698 This gives us automatic normalization, so we don't get
6699 for example two consecutive Spaces.
6701 * Include default CSS for 'underline' class in HTML-based templates.
6703 * revealjs template: add `tex2jax` configuration for the
6704 math plugin. With the next release of reveal.js, this will
6705 fix the problem of `$`s outside of math contexts being
6706 interpreted as math delimiters (#4027).
6708 * `pandoc.lua` module for use in lua filters (Albert Krewinkel):
6710 + Add basic lua List module (#4099, #4081). The List module is
6711 automatically loaded, but not assigned to a global variable. It can be
6712 included in filters by calling `List = require 'List'`. Lists of blocks,
6713 lists of inlines, and lists of classes are now given `List` as a metatable,
6714 making working with them more convenient. E.g., it is now possible to
6715 concatenate lists of inlines using Lua's concatenation operator `..`
6716 (requires at least one of the operants to have `List` as a metatable):
6718 function Emph (emph)
6719 local s = {pandoc.Space(), pandoc.Str 'emphasized'}
6720 return pandoc.Span(emph.content .. s)
6723 The `List` metatable is assigned to the tables which get passed to
6724 the constructors `MetaBlocks`, `MetaInline`, and `MetaList`. This
6725 enables the use of the resulting objects as lists.
6726 + `Lua/StackInstances`: push Pandoc and Meta via constructor.
6727 Pandoc and Meta elements are now pushed by calling the respective
6728 constructor functions of the pandoc Lua module. This makes serialization
6729 consistent with the way blocks and inlines are pushed to lua and allows
6730 to use List methods with the `blocks` value.
6731 + Add documentation for pandoc.List in `lua-filters.md`.
6733 * Use latest tagsoup. This fixes a bug in parsing HTML tags with
6734 `&` (but not a valid entity) following them (#4094, #4088).
6736 * Use skylighting 0.4.4.1, fixing the color of unmarked code text
6737 when `numberLines` is used (#4103).
6739 * Make `normalizeDate` more forgiving (Mauro Bieg, #4101), not
6740 requiring a leading 0 on single-digit days.
6742 * Fix `--help` output for `--highlight-style` to include `FILE` (Mauro
6745 * Clearer deprecation warning for `--latexmathml, --asciimathml, -m`.
6746 Previously we only mentioned `--latexmathml`, even if `-m` was
6749 * Changelog: fix description of lua filters in 2.0 release
6750 (Albert Krewinkel). Lua filters were initially run *after* conventional
6751 (JSON) filters. However, this was changed later to make it easier to deal
6752 with files in the mediabag. The changelog is updated to describe that
6753 feature of the 2.0 release correctly.
6755 * Change Generic JSON instances to TemplateHaskell (Jasper Van der Jeugt,
6756 #4085). This reduces compile time and memory usage significantly.
6758 * `lua-filters.md`: Added tikz filter example.
6760 * Create alternative zip file for macOS binaries.
6762 * Create alternative zip file for Windows binaries.
6764 * Update INSTALL.md since we now provide zips for binaries.
6766 * Relax `http-types` dependency (Justus Sagemüller, #4084).
6768 * Add `epub.md`, `getting-started.md` to docs. These used to live in
6771 * Add `packages` target to Makefile.
6773 * Bump bounds for binary, http-types, tasty-hunit
6775## pandoc 2.0.3 (2017-11-20)
6777 * Lua filters: preload text module (Albert Krewinkel, #4077).
6778 The `text` module is preloaded in lua. The module contains some UTF-8
6779 aware string functions, implemented in Haskell. The module is loaded on
6782 text = require 'text'
6784 s.text = text.upper(s.text)
6788 * Allow table-like access to attributes in lua filters (Albert Krewinkel,
6789 #4071). Attribute lists are represented as associative lists in Lua. Pure
6790 associative lists are awkward to work with. A metatable is attached to
6791 attribute lists, allowing to access and use the associative list as if
6792 the attributes were stored in as normal key-value pair in table.
6793 Note that this changes the way `pairs` works on attribute lists. Instead
6794 of producing integer keys and two-element tables, the resulting iterator
6795 function now returns the key and value of those pairs. Use `ipairs` to
6796 get the old behavior. Warning: the new iteration mechanism only works if
6797 pandoc has been compiled with Lua 5.2 or later (current default: 5.3).
6799 * Text.Pandoc.Parsing.uri: allow `&` and `=` as word characters (#4068).
6800 This fixes a bug where pandoc would stop parsing a URI with an
6801 empty attribute: for example, `&a=&b=` wolud stop at `a`.
6802 (The uri parser tries to guess which punctuation characters
6803 are part of the URI and which might be punctuation after it.)
6805 * Introduce `HasSyntaxExtensions` typeclass (Alexander Krotov, #4074).
6807 + Added new `HasSyntaxExtensions` typeclass for `ReaderOptions` and
6809 + Reimplemented `isEnabled` function from `Options.hs` to accept both
6810 `ReaderOptions` and `WriterOptions`.
6811 + Replaced `enabled` from `CommonMark.hs` with new `isEnabled`.
6813 * Add `amuse` extension (Alexander Krotov) to enable Amuse wiki
6814 behavior for `muse`. New `Ext_amuse` constructor for
6815 `Extension`. Note: this is switched on by default; for
6816 Emacs behavior, use `muse-amuse`.
6818 * Muse reader (Alexander Krotov):
6820 + Count only one space as part of list item marker.
6821 + Produce SoftBreaks on newlines. Now wrapping can be preserved
6822 with `--wrap=preserve`.
6823 + Add Text::Amuse footnote extensions. Footnote end is indicated by
6824 indentation, so footnotes can be placed anywhere in the text,
6825 not just at the end of it.
6826 + Accept Emacs Muse definition lists when `-amuse`.
6827 Emacs Muse does not require indentation.
6831 + Ensure we don't produce level 0 headers (#4076), even for chapter
6832 sections in epubs. This causes problems because writers aren't set
6834 + Allow spaces after `\(` and before `\)` with `tex_math_single_backslash`.
6835 Previously `\( \frac{1}{a} < \frac{1}{b} \)` was not parsed as math in
6836 `markdown` or `html` `+tex_math_single_backslash`.
6838 * MANUAL: clarify that math extensions work with HTML.
6839 Clarify that `tex_math_dollars` and `tex_math_single_backslash`
6840 will work with HTML as well as Markdown.
6842 * Creole reader: Fix performance issue for longer lists (Sascha Wilde,
6845 * RST reader: better support for 'container' directive (#4066).
6846 Create a div, incorporate name attribute and classes.
6850 + Support column specs like `*{2}{r}` (#4056). This is equivalent to
6851 `rr`. We now expand it like a macro.
6852 + Allow optional args for parbox (#4056).
6853 + Allow optional arguments on `\footnote` (#4062).
6855 * EPUB writer: Fixed path for cover image (#4069). It was previously
6856 `media/media/imagename`, and should have been `media/imagename`.
6858 * Markdown writer: fix bug with doubled footnotes in grid tables
6861 * LaTeX template: include natbib/biblatex after polyglossia (#4073).
6862 Otherwise we seem to get an error; biblatex wants polyglossia
6863 language to be defined.
6865 * Added examples to lua filters documentation.
6868## pandoc 2.0.2 (2017-11-12)
6870 * Deprecated ancient HTML math methods: `--latexmathml`, `--gladtex`,
6871 `--mimetex`, `--jsmath`.
6873 * Fixed URIs in `data/jats.csl`. They were being rendered twice,
6874 leading to invalid XML in default JATS output with pandoc-citeproc.
6876 * `lua-filters.md`: use real-world man page filter as example.
6878 * Add lua filter functions `walk_inline` and `walk_block`
6879 in the pandoc module, to apply filters inside particular
6880 inline and block elements.
6882 * Refactored some code from `Text.Pandoc.Lua.PandocModule`
6883 into new internal module `Text.Pandoc.Lua.Filter`.
6887 + Allow fenced code blocks to be indented 1-3 spaces (#4011).
6888 This brings our handling of them into alignment with CommonMark's.
6889 + Fix YAML metadata with "chomp" (`|-`). Previously if a
6890 YAML block under `|-` contained a blank line, pandoc would
6891 not parse it as metadata.
6893 * Removed `etc.` from abbreviations file. Often `etc.` ends a
6894 sentence, and we want the period to be treated as a
6895 sentence-ending period.
6897 * Fix regression with `--metadata` (#4054). Values specified with
6898 `--metadata` should replace a metadata value set in the document
6899 itself, rather than creating a list including a new value.
6903 + Fix EPUB OCF structure. #3720 had been improperly implemented.
6904 + Fix modified paths for raw HTML tags (src, poster, etc.)
6905 (#4050, #4055). This had not been updated for the new EPUB
6906 container layout, with a separate text/ subdirectory.
6907 + Fix image paths with empty `--epub-subdirectory`.
6909 * Miscellaneous code cleanup (Alexander Krotov).
6911 * Use pandoc-types 1.17.3, which adds `Walkable` instances
6912 for `[Block] Block` and `[Inline] Inline`.
6914 * Remove obsolete `stack.full.yaml` (#4052).
6916 * Change to using pandoc-citeproc 0.12.1 in binary packages.
6918 * Consolidate math output method documentation (#4049, Mauro Bieg).
6920 * `MANUAL.txt`: fix header level of "Extension: emoji" (Albert Krewinkel).
6922 * Use lua filter to generate man page from `MANUAL.txt`, replacing old
6923 Haskell filters. This is easier and faster.
6925 * Improved `INSTALL.md`.
6927 * Update commands to extract deb archive on Linux (#4043, Salim B).
6930## pandoc 2.0.1.1 (2017-11-04)
6932 * Improved fix to #3989 (parsing of HTML tags containing
6933 `>` in an attribute or comment). The previous fix (in 2.0.1) only
6934 worked in certain cases.
6936 * FB2 writer (Alexander Krotov):
6938 + Add `unrecognised` genre to `<title-info>`
6939 (Alexander Krotov). XML schema requires at least one genre.
6940 + Remove `<annotation>` from `<body>`.
6942 * CommonMark writer: fix strikethrough for `gfm` (#4038).
6944 * Use texmath 0.10, which adds support for a wider range of
6945 symbols and fixes default column alignments in MathML
6948 * Highlighting fixes, using skylighting 0.4.3.2:
6951 + Support `lineAnchors` (or `line-anchors`) in HTML code blocks.
6952 + Ensure that code lines don't get duplicate identifiers (#4031).
6953 The line identifiers are built using the code block's identifier
6954 as a prefix. If the code block has null identifier, we use
6957 * Added a few abbreviations to `data/abbreviations`,
6958 and sorted the list (#3984, Wandmalfarbe).
6960 * Improved support for columns in HTML writer (#4028).
6962 + Remove `width` attribute from the `div`.
6963 + Remove space between `<div class="column">` elements,
6964 since this prevents columns whose widths sum to 100%
6965 (the space takes up space).
6966 + Move as much as possible of the CSS to the template.
6967 + Ensure that all the HTML-based templates (including epub)
6968 contain the CSS for columns.
6969 + Columns default to 50% width unless they are given a width
6970 attribute. So if you want two equal-width columns, you
6971 can use a div with class `column` and no `width` attribute.
6973 * SelfContained: use `base64` for css links with media attribute (#4026).
6974 This fixes `--self-contained` with S5.
6976 * Improve `pandoc-template-mode.el` (Vaclav Haisman).
6978 * INSTALL.md: MacOS instructions needed xar -f (adam234).
6982 + Clarify that --setext-headers doesn't affect gfm output (#4035).
6983 + Clarify what is needed to open and close a div in `fenced_divs`
6984 (#4039, Tristano Ajmone).
6985 + Removed reference to `default.beamer` in docs (#4024).
6986 Also added mention of other templates affecting PDF output
6987 with different settings.
6990## pandoc 2.0.1 (2017-10-31)
6992 * Fixed regression in parsing of HTML comments in markdown and other
6993 non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`) (#4019).
6994 The parser stopped at the first `>` character, even if it wasn't
6995 the end of the comment.
6997 * Creole reader (Sascha Wilde):
6999 + Fix some minor typos and formatting.
7000 + Add additional test on nowiki-block after para.
7001 + Fix lists with trailing white space.
7003 * LaTeX reader: handle `%` comment right after command.
7004 For example, `\emph%`.
7006 * Markdown reader: make sure fenced div closers work in lists.
7007 Previously the following failed:
7014 and you needed a blank line before the closing `:::`.
7016 * Make `fenced_divs` affect the Markdown writer. If `fenced_divs` is
7017 enabled, Divs will be rendered as fenced divs.
7019 * LaTeX/Beamer writer: support "blocks" inside columns and other Divs
7022 * HTML Writer: consistently use dashed class-names (Mauro Bieg, #3556).
7023 Note: this change may require some changes in CSS rules.
7024 `footnoteRef` has become `footnote-ref`, `titleslide` has
7025 become `title-slide`, and `footnoteBack` has become `footnote-back`.
7027 * JATS writer: Properly pass through author metadata (#4020).
7029 * FB2 writer (Alexander Krotov):
7031 + Write blocks outside of `<p>` in definitions.
7032 + Make bullet lists consistent with ordered lists, repeating
7033 the marker for the outer list rather than indenting sublists,
7034 since indentation does not work in readers.
7035 + Add new style FB2 tests.
7037 * `Text.Pandoc.ImageSize`: Add `Millimeter` constructor to `Dimension`
7038 (#4012) [API change]. Now sizes given in 'mm' are no longer converted
7041 * Revise documentation of small caps syntax (Andrew Dunning, #4013).
7043 * Fix broken reference links in manual (Andrew Dunning, #4014)
7045 * Fixed example of slide columns structure in changelog (#4015).
7046 Also documented this feature in MANUAL.txt.
7049## pandoc 2.0.0.1 (2017-10-30)
7053 + Fixed filepaths for nonstandard epub-subdirectory values.
7054 + Ensure that epub2 is recognized as a non-text format,
7055 so that a template is used.
7056 + Don't include "prefix" attribute for ibooks for epub2.
7057 It doesn't validate.
7058 + Fix stylesheet paths; previously we had an incorrect
7059 stylesheet path for the cover page and nav page.
7063 + Insert space when needed in macro expansion (#4007).
7064 Sometimes we need to insert a space after a control sequence
7065 to prevent it merging with a following letter.
7066 + Allow unbraced arguments for macros (#4007).
7067 + Allow body of macro definition to be unbraced (#4007).
7069 * Linux package build: ensure that pandoc-citeproc is statically linked.
7071 * trypandoc: add native, ms.
7074## pandoc 2.0 (2017-10-29)
7078 * New output format `ms` (groff ms). Complete support, including
7079 tables, math, syntax highlighting, and PDF bookmarks. The writer uses
7080 texmath's new eqn writer to convert math to eqn format, so a ms file
7081 produced with this writer should be processed with `groff -ms -e` if
7084 * New output format `jats` (Journal Article Tag Suite). This is an XML
7085 format used in archiving and publishing articles. Note that a
7086 URI-encoded CSL stylesheet (`data/jats.csl`) is added automatically
7087 unless a stylesheet is specified using `--css`.
7089 * New output format `gfm` (GitHub-flavored CommonMark) (#3841).
7090 This uses bindings to GitHub's fork of cmark, so it should parse
7091 gfm exactly as GitHub does (excepting certain postprocessing
7092 steps, involving notifications, emojis, etc.). `markdown_github`
7093 has been deprecated in favor of `gfm`.
7095 * New output format `muse` (Emacs Muse) (Alexander Krotov, #3489).
7097 * New input format `gfm` (GitHub-flavored CommonMark) (#3841).
7098 This uses bindings to GitHub's fork of cmark. `markdown_github`
7099 has been deprecated in favor of `gfm`.
7101 * New input format `muse` (Emacs Muse) reader (Alexander Krotov, #3620).
7103 * New input format `tikiwiki` (TikiWiki markup) (rlpowell, #3800).
7105 * New input format `vimwiki` (Vimwiki markup) (Yuchen Pei, #3705).
7106 Note that there is a new data file, `data/vimwiki.css`, which can
7107 be used to display the HTML produced by this reader and
7108 pandoc's HTML writer in the style of vimwiki's own HTML
7111 * New input format `creole` (Creole 1.0) (#3994, Sascha Wilde).
7113 * New syntax for Divs, with `fenced_divs` extension enabled by
7114 default (#168). This gives an attractive, plain-text way to create
7115 containers for block-level content.
7117 * Added new syntax for including raw content in any output format,
7118 enabled by the `raw_attribute` extension (which is on by default
7119 for `markdown` and `multimarkdown`). The syntax is the same as
7120 for fenced code blocks or code inlines, only with `{=FORMAT}` for
7121 attributes, where `FORMAT` is the name of the output format
7122 (e.g., `ms`, `html`).
7124 * Implement multicolumn support for slide formats (#1710).
7125 The structure expected is:
7127 :::::::::::::: {.columns}
7128 ::: {.column width="40%"}
7131 ::: {.column width="60%"}
7136 Support has been added for beamer and all HTML slide formats.
7138 * Allows line comments in templates, beginning with `$--` (#3806).
7139 (Requires doctemplates 0.2.1.)
7141 * Add `--eol=crlf|lf|native` flag and writer option to control line endings
7142 (Stefan Dresselhaus, #3663, #2097).
7144 * Add `--log` option to save log messages in JSON format to a file (#3392).
7146 * Add `--request-header` option, to set request headers when pandoc
7147 makes HTTP requests to fetch external resources. For example:
7148 `--request-header User-Agent:blah`.
7150 * Added lua filters (Albert Krewinkel, #3514). The new `--lua-filter`
7151 option works like `--filter` but takes pathnames of special lua filters
7152 and uses the lua interpreter baked into pandoc, so that no external
7153 interpreter is needed. Note that lua filters are all applied after
7154 regular filters, regardless of their position on the command line.
7155 For documentation of lua filters, see `doc/lua-filters.md`.
7157 * Set `PANDOC_READER_OPTIONS` in environment where filters are run.
7158 This contains a JSON representation of `ReaderOptions`, so filters
7161 * Support creation of pdf via groff `ms` and pdfroff.
7162 `pandoc -t ms -o output.pdf input.txt`.
7164 * Support for PDF generation via HTML and `weasyprint` or `prince`
7165 (Mauro Bieg, #3909). `pandoc -t html5 -o output.pdf --pdf-engine=prince`.
7167 * Added `--epub-subdirectory` option (#3720). This specifies the
7168 subdirectory in the OCF container that holds the EPUB specific content.
7169 We now put all EPUB related content in an `EPUB/` subdirectory by default
7170 (later this will be configurable).
7175 com.apple.ibooks.display-options.xml
7177 EPUB/ <<--configurable-->>
7178 fonts/ <<--static-->>
7180 media/ <<--static-->>
7183 styles/ <<--static-->>
7187 text/ <<--static-->>
7191 * Added `--resource-path=SEARCHPATH` command line option (#852).
7192 SEARCHPATH is separated by the usual character, depending on OS
7193 (: on unix, ; on windows). Default resource path is just working
7194 directory. However, the working directory must be explicitly
7195 specified if the `--resource-path` option is used.
7197 * Added --abbreviations=FILE option for custom abbreviations file
7198 (#256). Dfault abbreviations file (`data/abbreviations`) contains
7199 a list of strings that will be recognized by pandoc's
7200 Markdown parser as abbreviations. (A nonbreaking space will
7201 be inserted after the period, preventing a sentence space in
7202 formats like LaTeX.) Users can override the default by putting a file
7203 abbreviations in their user data directory (`~/.pandoc` on *nix).
7205 * Allow a theme file as argument to `--highlight-style`.
7206 Also include a sample, `default.theme`, in `data/`.
7208 * Allow `--syntax-definition` option for dynamic loading of syntax
7209 highlighting definitions (#3334).
7211 * Lists in `markdown` by default now use the CommonMark variable
7212 nesting rules (#3511). The indentation required for a block-level
7213 item to be included in a list item is no longer fixed, but is
7214 determined by the first line of the list item. To be included in
7215 the list item, a block must be indented to the level of the first
7216 non-space content after the list marker. Exception: if are 5 or more
7217 spaces after the list marker, then the content is interpreted as an
7218 indented code block, and continuation paragraphs must be indented
7219 two spaces beyond the end of the list marker. See the CommonMark
7220 spec for more details and examples.
7222 Documents that adhere to the four-space rule should, in most cases,
7223 be parsed the same way by the new rules. Here are some examples
7224 of texts that will be parsed differently:
7229 will be parsed as a list item with a sublist; under the four-space
7230 rule, it would be a list with two items.
7236 Here we have an indented code block under the list item, even though it
7237 is only indented six spaces from the margin, because it is four spaces
7238 past the point where a continuation paragraph could begin. With the
7239 four-space rule, this would be a regular paragraph rather than a code
7246 Here the code block will start with two spaces, whereas under
7247 the four-space rule, it would start with `code`. With the four-space
7248 rule, indented code under a list item always must be indented eight
7249 spaces from the margin, while the new rules require only that it
7250 be indented four spaces from the beginning of the first non-space
7251 text after the list marker (here, `a`).
7253 This change was motivated by a slew of bug reports from people
7254 who expected lists to work differently (#3125, #2367, #2575, #2210,
7255 #1990, #1137, #744, #172, #137, #128) and by the growing prevalance
7256 of CommonMark (now used by GitHub, for example). Those who
7257 prefer the old behavior can use `-f markdown+four_space_rule`.
7259 * Added `four_space_rule` extension. This triggers the old pandoc
7260 parsing rule for content nested under list items (the "four space
7263 * Added `spaced_reference_links` extension (#2602). It allows whitespace
7264 between the two parts of a reference link: e.g.
7270 This was previously enabled by default; now it is forbidden by default.
7272 * Add `space_in_atx_header` extension (#3512). This is enabled by default
7273 in pandoc and GitHub markdown but not the other flavors.
7274 This requirse a space between the opening #'s and the header
7275 text in ATX headers (as CommonMark does but many other implementations
7276 do not). This is desirable to avoid falsely capturing things ilke
7284 * Add `sourcefile` and `outputfile` template variables (Roland Hieber,
7287 * Allow ibooks-specific metadata in epubs (#2693). You can now have
7288 the following fields in your YAML metadata, and it will be treated
7289 appropriately in the generated EPUB:
7294 specified-fonts: false
7295 ipad-orientation-lock: portrait-only
7296 iphone-orientation-lock: landscape-only
7298 scroll-axis: vertical
7304 * Reader functions no longer presuppose that CRs have been
7305 stripped from the input. (They strip CRs themselves, before
7306 parsing, to simplify the parsers.)
7308 * Added support for translations (localization) (#3559).
7309 Currently this only affects the LaTeX reader, for things
7310 like `\figurename`. Translation data files for 46 languages
7311 can be found in `data/translations`.
7313 * Make `--ascii` work with DocBook output too.
7315 * Rename `--latex-engine` to `--pdf-engine`,
7316 and `--latex-engine-opt` to `--pdf-engine-opt`.
7318 * Removed `--parse-raw` and `readerParseRaw`. These were confusing.
7319 Now we rely on the `+raw_tex` or `+raw_html` extension with latex or html
7320 input. Thus, instead of `--parse-raw -f latex` we use `-f latex+raw_tex`,
7321 and instead of `--parse-raw -f html` we use `-f html+raw_html`.
7323 * With `--filter` R filters are now recognized, even if they are
7324 not executable (#3940, #3941, Andrie de Vries).
7326 * Support SVG in PDF output, converting with `rsvg2pdf` (#1793).
7328 * Make epub an alias for epub3, not epub2.
7330 * Removed `--epub-stylesheet`; use `--css` instead (#3472, #847).
7331 Multiple stylesheets may be used. Stylesheets will be taken both from
7332 `--css` and from the `stylesheet` metadata field (which can contain
7333 either a file path or a list of them).
7335 * `--mathml` and MathML in HTMLMathMethod no longer take an argument.
7336 The argument was for a bridge JavaScript that used to be necessary
7337 in 2004. We have removed the script already.
7339 * `--katex` improvements. The latest version is used, and the
7340 autoload script is loaded by default.
7342 * Change MathJax CDN default since old one is shutting down (#3544).
7343 Note: The new URL requires a version number, which we'll have
7344 to update manually in subsequent pandoc releases in order to
7345 take advantage of mathjax improvements.
7347 * `--self-contained`: don't incorporate elements with `data-external="1"`
7348 (#2656). You can leave an external link as it is by adding the attribute
7349 data-external="1" to the element. Pandoc will then not try to
7350 incorporate its content when `--self-contained` is used. This is
7351 similar to a feature already supported by the EPUB writer.
7353 * Allow `--extract-media` to work with non-binary input formats
7354 (#1583, #2289). If `--extract-media` is supplied with a non-binary
7355 input format, pandoc will attempt to extract the contents of all
7356 linked images, whether in local files, data: uris, or external uris.
7357 They will be named based on the sha1 hash of the contents.
7359 * Make `papersize: a4` work regardless of the case of `a4`.
7360 It is converted to `a4` in LaTeX and `A4` in ConTeXt.
7362 * Make `east_asian_line_breaks` affect all readers/writers (#3703).
7364 * Underlined elements are now treated consistently by readers
7365 (#2270, hftf); they are always put in a Span with class `underline`.
7366 This allows the user to treat them differently from other emphasis,
7367 using a filter. Docx, Org, Textile, Txt2Tags, and HTML readers
7370 * Improved behavior of `auto_identifiers` when there are explicit ids
7371 (#1745). Previously only autogenerated ids were added to the list
7372 of header identifiers in state, so explicit ids weren't taken
7373 into account when generating unique identifiers. Duplicated
7374 identifiers could result. This simple fix ensures that explicitly given
7375 identifiers are also taken into account.
7377 * Use `table-of-contents` for contents of toc, make `toc` a boolean
7378 (#2872). Changed markdown, rtf, and HTML-based templates accordingly.
7379 This allows you to set `toc: true` in the metadata; this
7380 previously produced strange results in some output formats.
7381 For backwards compatibility, `toc` is still set to the
7382 toc contents. But it is recommended that you update templates
7383 to use `table-of-contents` for the toc contents and `toc`
7386 * Change behavior with binary format output to stdout.
7387 Previously, for binary formats, output to stdout was disabled
7388 unless we could detect that the output was being piped (and not
7389 sent to the terminal). Unfortunately, such detection is not
7390 possible on Windows, leaving windows users no way to pipe binary
7391 output. So we have changed the behavior in the following way:
7393 + Output to stdout is allowed when it can be determined that
7394 the output is being piped (on non-Windows platforms).
7395 + If the `-o` option is not used, binary output is never sent
7396 to stdout by default; instead, an error is raised.
7397 + If `-o -` is used, binary output is sent to stdout, regardless
7398 of whether it is being piped. This works on Windows too.
7400 * Better error behavior: uses of `error` have been replaced by
7401 raising of `PandocError`, which can be trapped and handled by the
7404 * Removed `hard_line_breaks` extension from `markdown_github` (#3594).
7405 GitHub has two Markdown modes, one for long-form documents like READMEs
7406 and one for short things like issue comments. In issue comments, a line
7407 break is treated as a hard line break. In README, wikis, etc., it is
7408 treated as a space as in regular Markdown. Since pandoc is more likely to
7409 be used to convert long-form documents from GitHub Markdown,
7410 `-hard_line_breaks` is a better default.
7412 * Include `backtick_code_blocks` extension in `mardkown_mmd` (#3637).
7414 * Escape `MetaString` values (as added with `-M/--metadata` flag) (#3792).
7415 Previously they would be transmitted to the template without any
7416 escaping. Note that `--M title='*foo*'` yields a different result from
7422 In the latter case, we have emphasis; in the former case, just
7423 a string with literal asterisks (which will be escaped
7424 in formats, like Markdown, that require it).
7426 * Allow `em`, `cm`, `in` for image height/width in HTML, LaTeX (#3450).
7428 * HTML writer: Insert `data-` in front of unsupported attributes. Thus,
7429 a span with attribute `foo` gets written to HTML5 with `data-foo`, so
7430 it is valid HTML5. HTML4 is not affected. This will allow us to use
7431 custom attributes in pandoc without producing invalid HTML. (With help
7432 from Wandmalfarbe, #3817.)
7434 * Plain writer: improved super/subscript rendering. We now
7435 handle more non-digit characters for which there are
7436 sub/superscripted unicode characters. When unicode
7437 sub/superscripted characters are not available, we use
7438 `_(..)` or `^(..)` (#3518).
7440 * Docbook, JATS, TEI writers: print INFO message when omitting interior
7441 header (#3750). This only applies to section headers inside list items,
7442 e.g., which were otherwise silently omitted.
7444 * Change to `--reference-links` in Markdown writer (#3701). With
7445 `--reference-location` of `section` or `block`, pandoc will now repeat
7446 references that have been used in earlier sections. The Markdown
7447 reader has also been modified, so that *exactly* repeated references
7448 do not generate a warning, only references with the same label but
7449 different targets. The idea is that, with references after every block,
7450 one might want to repeat references sometimes.
7452 * ODT/OpenDocument writer:
7454 + Support `lang` attribute (#1667).
7455 + Added support for `--toc` (#2836). Thanks to @anayrat.
7459 + `lang` meta, see #1667 (Mauro Bieg, #3515).
7460 + Change `FigureWithCaption` to `CaptionedFigure` (iandol, #3658).
7461 + Use `Table` rather than `Table Normal` for table style (#3275).
7462 `Table Normal` is the default table style and can't be modified.
7463 + Pass through comments (#2994). We assume that comments are defined as
7464 parsed by the docx reader:
7466 I want <span class="comment-start" id="0" author="Jesse Rosenthal"
7467 date="2016-05-09T16:13:00Z">I left a comment.</span>some text to
7468 have a comment <span class="comment-end" id="0"></span>on it.
7470 We assume also that the id attributes are unique and properly
7471 matched between comment-start and comment-end.
7472 + Bookmark improvements. Bookmark start/end now surrounds content rather
7473 than preceding it. Bookmarks generated for Div with id
7474 (jgm/pandoc-citeproc#205).
7475 + Add `keywords` metadata to docx document properties (Ian).
7477 * RST writer: support unknown interpreted text roles by
7478 parsing them as `Span` with `role` attributes (#3407). This
7479 way they can be manipulated in the AST.
7483 + Line block: Use class instead of style attribute (#1623). We now
7484 issue `<div class="line-block">` and include a default definition
7485 for `line-block` in the default templates, instead of hard-coding a
7487 + Add class `footnoteBack` to footnote back references (Timm Albers).
7488 This allows for easier CSS styling.
7489 + Render SmallCaps as span with smallcaps class (#1592), rather than
7490 using a style attribute directly. This gives the user more flexibility
7491 in styling small caps in CSS.
7492 + With reveal.js we use `data-src` instead of `src` for images for
7494 + Special-case `.stretch` class for images in reveal.js (#1291).
7495 Now in reveal.js, an image with class `stretch` in a paragraph
7496 by itself will stretch to fill the whole screen, with no
7497 caption or figure environment.
7499 * Added warnings for non-rendered blocks to writers.
7501 * Writers now raise an error on template failure.
7503 * When creating a PDF via LaTeX, warn if the font is missing some
7506 * Remove initial check for PDF-creating program (#3819).
7507 Instead, just try running it and raise the exception if it
7508 isn't found at that point. This improves things for users of Cygwin
7509 on Windows, where the executable won't be found by `findExecutable`
7510 unless `.exe` is added. The same exception is raised as before, but
7513 * Readers issue warning for duplicate header identifiers (#1745).
7514 Autogenerated header identifiers are given suffixes so as not to clash
7515 with previously used header identifiers. But they may still coincide with
7516 an explicit identifier that is given for a header later in the document,
7517 or with an identifier on a div, span, link, or image. We now issue
7518 a warning in this case, so users can supply an explicit identifier.
7520 * CommonMark reader now supports `emoji`, `hard_line_breaks`, `smart`,
7521 and `raw_html` extensions.
7525 + Don't allow backslash + newline to affect block structure (#3730).
7526 Note that as a result of this change, the following, which formerly
7527 produced a header with two lines separated by a line break, will
7528 now produce a header followed by a paragraph:
7533 This may affect some existing documents that relied on
7534 this undocumented and unintended behavior. This change makes pandoc
7535 more consistent with other Markdown implementations, and with itself
7536 (since the two-space version of a line break doesn't work inside ATX
7537 headers, and neither version works inside Setext headers).
7540 * Org reader (Albert Krewinkel, unless noted):
7542 + Support `table.el` tables (#3314).
7543 + Support macros (#3401).
7544 + Support the `#+INCLUDE:` file inclusion mechanism (#3510).
7545 Recognized include types are `example`, `export`, `src`, and
7546 normal org file inclusion. Advanced features like line numbers
7547 and level selection are not implemented yet.
7548 + Interpret more meta value as inlines. The values of the following
7549 meta variables are now interpreted using org-markup instead of
7550 treating them as pure strings: `keywords` (comma-separated list of
7551 inlines), `subtitle` (inline values), `nocite` (inline values, can
7553 + Support `\n` export option (#3940). This turns all newlines in the
7554 text into hard linebreaks.
7558 + Improved admonition support (#223). We no longer add an
7559 `admonition` class, we just use the class for the type of admonition,
7560 `note` for example. We put the word corresponding to the label in
7561 a paragraph inside a `Div` at the beginning of the admonition with
7562 class `admonition-title`. This is about as close as we can get to
7564 + Initial support of `.. table` directive. This allows adding captions
7566 + Support `.. line-block` directive. This is deprecated but may still
7567 be in older documents.
7568 + Support scale and align attributes of images (#2662).
7569 + Implemented implicit internal header links (#3475).
7570 + Support RST-style citations (#853). The citations appear at the end
7571 of the document as a definition list in a special div with id
7572 `citations`. Citations link to the definitions.
7573 + Recurse into bodies of unknown directives (#3432).
7574 In most cases it's better to preserve the content than
7575 to emit it. This isn't guaranteed to have good results;
7576 it will fail spectacularly for unknown raw or verbatim directives.
7577 + Handle chained link definitions (#262). For example,
7580 .. _goodbye: example.com
7582 Here both `hello` and `goodbye` should link to `example.com`.
7583 + Support anchors (#262). E.g.
7591 This is supported by putting "paragraph" in a `Div` with id `hello`.
7592 + Support `:widths:` attribute for table directive.
7593 + Implement csv-table directive (#3533). Most attributes are supported,
7594 including `:file:` and `:url:`.
7595 + Support unknown interpreted text roles by parsing them as Span
7596 with "role" attributes (#3407). This way they can be manipulated in
7599 * HTML reader: parse a span with class `smallcaps` as `SmallCaps`.
7603 + Implemented `\graphicspath` (#736).
7604 + Properly handle column prefixes/suffixes. For example, in
7605 `\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}`
7606 each cell will be interpreted as if it has a `$`
7607 before its content and a `$` after (math mode).
7608 + Handle komascript `\dedication` (#1845). It now adds a
7609 `dedication` field to metadata. It is up to the user to supply
7610 a template that uses this variable.
7611 + Support all `\textXX` commands, where XX = `rm`, `tt`, `up`, `md`,
7612 `sf`, `bf` (#3488). Spans with a class are used when there is
7614 + Expand `\newenvironment` macros (#987).
7615 + Add support for LaTeX subfiles package (Marc Schreiber, #3530).
7616 + Better support for subfigure package (#3577).
7617 A figure with two subfigures turns into two pandoc
7618 figures; the subcaptions are used and the main caption
7619 ignored, unless there are no subcaptions.
7620 + Add support for `\vdots` (Marc Schreiber, #3607).
7621 + Add basic support for hyphenat package (Marc Schreiber, #3603).
7622 + Add basic `\textcolor` support (Marc Schreiber).
7623 + Add support for `tabularx` environment (Marc Schreiber, #3632).
7624 + Better handling of comments inside math environments (#3113).
7625 This solves a problem with commented out `\end{eqnarray}` inside
7626 an eqnarray (among other things).
7627 + Parse tikzpicture as raw verbatim environment if `raw_tex` extension
7628 is selected (#3692). Otherwise skip with a warning. This is better
7629 than trying to parse it as text!
7630 + Add `\colorbox` support (Marc Schreiber).
7631 + Set identifiers on Spans used for `\label`.
7632 + Have `\setmainlanguage` set `lang` in metadata.
7633 + Support etoolbox's `\ifstrequal`.
7634 + Support `plainbreak`, `fancybreak` et al from the memoir class
7635 (bucklereed, #3833).
7636 + Support `\let`. Also, fix regular macros so they're expanded at the
7637 point of use, and NOT also the point of definition. `\let` macros,
7638 by contrast, are expanded at the point of definition. Added an
7639 `ExpansionPoint` field to `Macro` to track this difference.
7640 + Support simple `\def` macros. Note that we still don't support
7641 macros with fancy parameter delimiters, like `\def\foo#1..#2{...}`.
7642 + Support `\chaptername`, `\partname`, `\abstractname`, etc. (#3559,
7644 + Put content of `\ref`, `\label`, `\eqref` commands into `Span` with
7645 attributes, so they can be handled in filters (Marc Schreiber, #3639)
7646 + Add Support for `glossaries` and `acronym` package (Marc Schreiber,
7647 #3589). Acronyms are not resolved by the reader, but acronym and
7648 glossary information is put into attributes on Spans so that they
7649 can be processed in filters.
7650 + Use `Link` instead of `Span` for `\ref`. This makes more sense
7651 semantically and avoids unnecessary `Span [Link]` nestings when
7652 references are resolved.
7653 + Rudimentary support for `\hyperlink`.
7654 + Support `\textquoteleft|right`, `\textquotedblleft|right` (#3849).
7655 + Support `\lq`, `\rq`.
7656 + Implement `\newtoggle`, `\iftoggle`, `\toggletrue|false` from etoolbox
7658 + Support `\RN` and `\Rn`, from biblatex (bucklereed, #3854).
7659 + Improved support for `\hyperlink`, `\hypertarget` (#2549).
7660 + Support `\k` ogonek accent.
7661 + Improve handling of accents. Handle ogonek, and fall back correctly
7662 with forms like `\"{}`.
7663 + Better support for ogonek accents.
7664 + Support for `\faCheck` and `\faClose` (Marc Schreiber, #3727).
7665 + Support for `xspace` (Marc Schreiber, #3797).
7666 + Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia)
7668 + Better handling of `\part` in LaTeX (#1905). Now we parse chapters as
7669 level 0 headers, and parts as level -1 headers. After parsing, we
7670 check for the lowest header level, and if it's less than 1 we bump
7671 everything up so that 1 is the lowest header level. So `\part` will
7672 always produce a header; no command-line options are needed.
7673 + Add block version of `\textcolor` (Marc Schreiber).
7674 + `\textcolor` works as inline and block command (Marc Schreiber).
7675 + `\textcolor` will be parse as span at the beginning of a paragraph
7677 + Read polyglossia/babel `\text(LANG){...}` (bucklereed)
7678 + Improved handling of include files in LaTeX reader (#3971).
7679 Previously `\include` wouldn't work if the included file
7680 contained, e.g., a begin without a matching end.
7681 + Support `\expandafter` (#3983).
7682 + Handle `\DeclareRobustCommand` (#3983). Currently it's just treated
7683 as a synonym for `\newcommand`.
7684 + Handle `\lettrine` (Mauro Bieg).
7686 * Math improvements due to updates in texmath:
7688 + Improved handling of accents and upper/lower delimiters.
7689 + Support for output in GNU eqn format (used with *roff).
7690 + Allow `\boldsymbol` + a token without braces, and similarly
7691 with other styling commands.
7692 + Improve parsing of `\mathop` to allow multi-character operator names.
7693 + Add thin space after math operators when "faking it with
7696 * `walk` is now used instead of `bottomUp` in the `ToJSONFilter`
7697 instance for `a -> [a]` (pandoc-types). Note that behavior
7698 will be slightly different, since `bottomUp`'s treatment of
7699 a function `[a] -> [a]` is to apply it to each sublist of a
7700 list, while walk applies it only to maximal sublists.
7701 Usually the latter behavior is what is wanted, and the
7702 former can be simulated when needed. But there may be
7703 existing filters that need to be rewritten in light of the
7704 new behavior. Performance should be improved.
7706 * There are some changes to syntax highlighting due to revisions
7707 in the `skylighting` library:
7709 + Support for `powershell` has been added, and many syntax
7710 definitions have been updated.
7711 + Background colors have been added to the `kate` style.
7712 + The way highlighted code blocks are formatted in HTML has
7713 been changed (David Baynard), in ways that may require
7714 changes in hard-coded CSS affecting highlighting.
7715 (If you haven't included hard-coded highlighting CSS in
7716 your template, you needn't change anything.)
7721 * New module `Text.Pandoc.Class` (Jesse Rosenthal, John MacFarlane).
7722 This contains definitions of the `PandocMonad` typeclass, the
7723 `PandocIO` and `PandocPure` monads, and associated functions.
7725 * Changed types of all writers and readers.
7727 + We now use `Text` instead of `String` in the interface (#3731).
7728 (We have not yet changed the internals of most readers to work
7729 with `Text`, but making this change in the API now opens up a
7730 path to doing that.)
7731 + The result is now of form `m a` with constraint `PandocMonad m`.
7732 Readers and writers can be combined to form monadic values which
7733 can be run using either `runIO` or `runPure`. If `runIO` is used,
7734 then both readers and writers will be able to do IO when needed
7735 (for include files, for example); if `runPure` is used,
7736 then the functions are pure and will not touch IO.
7737 + Where previously you used
7738 `writeRST def (readMarkdown def "[foo](url)")`, now you
7740 `runPure $ readMarkdown def (pack "[foo](url)") >>= writeRST def`.
7742 * New module `Text.Pandoc.Readers` (Albert Krewinkel). This
7743 contains reader helper functions formerly defined in the
7744 top-level `Text.Pandoc` module.
7746 + Changed `StringReader` -> `TextReader`.
7747 + `getReader` now returns a pair of a reader and
7748 `Extensions`, instead of building the extensions into the
7749 reader (#3659). The calling code must explicitly set
7750 `readerExtensions` using the `Extensions` returned. The
7751 point of the change is to make it possible for the calling
7752 code to determine what extensions are being used.
7754 * New module `Text.Pandoc.Writers` (Albert Krewinkel).
7755 This contains writer helper functions formerly defined in the
7756 top-level `Text.Pandoc` module.
7758 + Changed `StringWriter` -> `TextWriter`.
7759 + `getWriter` now returns a pair of a reader and
7760 `Extensions`, instead of building the extensions into the
7761 reader (#3659). The calling code must explicitly set
7762 `readerExtensions` using the `Extensions` returned. The
7763 point of the change is to make it possible for the calling
7764 code to determine what extensions are being used.
7766 * New module `Text.Pandoc.Lua`, exporting `runLuaFilter` (Albert Krewinkel,
7769 * New module `Text.Pandoc.App`. This abstracts out the functionality
7770 of the command line program (`convertWithOpts`), so it can be reproduced
7771 e.g. in a desktop or web application. Instead of exiting, we throw errors
7772 (#3548), which are caught (leading to exit) in pandoc.hs, but allow other
7773 users of `Text.Pandoc.App` to recover. `pandoc.hs` is now a 2-liner.
7774 The module also exports some utility functions for parsing options
7775 and running filters.
7777 * New module `Text.Pandoc.Logging` (exported module) (#3392).
7778 This now contains the `Verbosity` definition previously in
7779 `Text.Pandoc.Options`, as well as a new `LogMessage` datatype that will
7780 eventually be used instead of raw strings for warnings. This will enable
7781 us, among other things, to provide machine-readable warnings if desired.
7782 Include ToJSON instance and showLogMessage. This gives us the possibility
7783 of both machine-readable and human-readable output for log messages.
7785 * New module `Text.Pandoc.BCP47`, with `getLang`, `Lang(..)`, `parseBCP47`.
7787 * New module `Text.Pandoc.Translations`, exporting `Term`,
7788 `Translations`, `readTranslations`.
7790 * New module `Text.Pandoc.Readers.LaTeX.Types', exporting `Macro`, `Tok`,
7791 `TokType`, `Line`, `Column`.
7793 * `Text.Pandoc.Error`: added many new constructors for `PandocError`.
7795 * Expose some previously private modules (#3260). These are often
7796 helpful to people writing their own reader or writer modules:
7798 + `Text.Pandoc.Writers.Shared`
7799 + `Text.Pandoc.Parsing`
7800 + `Text.Pandoc.Asciify`
7801 + `Text.Pandoc.Emoji`
7802 + `Text.Pandoc.ImageSize`
7803 + `Text.Pandoc.Highlighting`
7805 * New module `Text.Pandoc.Extensions` (Albert Krewinkel):
7806 Extension parsing and processing functions were defined in the top-level
7807 `Text.Pandoc` module. These functions are moved to the Extensions
7808 submodule as to enable reuse in other submodules.
7810 * Add `Ext_raw_attribute` constructor for `Extension`.
7812 * Add `Ext_fenced_divs` constructor for `Extension'.
7814 * Add `Ext_four_space_rule` constructor in `Extension`.
7816 * Add `Ext_gfm_auto_identifiers` constructor for `Extension`.
7818 * Add `Monoid` instance for `Extensions`.
7820 * Add `Text.Pandoc.Writers.Ms`, exporting `writeMs`.
7822 * Add `Text.Pandoc.Writers.JATS`, exporting `writeJATS`.
7824 * Add `Text.Pandoc.Writers.Muse`, exporting `writeMuse`.
7826 * Add `Text.Pandoc.Readers.Muse`, exporting `readMuse`.
7828 * Add `Text.Pandoc.Readers.TikiWiki`, exporting `readTikiWiki`.
7830 * Add `Text.Pandoc.Readers.Vimwiki`, exporting `readVimwiki`.
7832 * Add `Text.Pandoc.Readers.Creole`, exporting `readCreole`.
7834 * Export `setVerbosity` from `Text.Pandoc`.
7836 * `Text.Pandoc.Pretty`: Add `Eq` instance for `Doc`.
7838 * `Text.Pandoc.XML`: `toEntities`: changed type to `Text -> Text`.
7840 * `Text.Pandoc.UTF8`:
7842 + Export `fromText`, `fromTextLazy`, `toText`, `toTextLazy`.
7843 Define `toString`, `toStringLazy` in terms of them.
7844 + Add new functions parameterized on `Newline`: `writeFileWith`,
7845 `putStrWith`, `putStrLnWith`, `hPutStrWith`, `hPutStrLnWith`.
7847 * `Text.Pandoc.MediaBag`: removed `extractMediaBag`.
7849 * `Text.Pandoc.Highlighting`:
7851 + `highlighting` now returns an Either rather than Maybe.
7852 This allows us to display error information returned by the skylighting
7853 library. Display a warning if the highlighting library throws an error.
7854 + Add parameter for `SyntaxMap` to `highlight`.
7856 * `Text.Pandoc.Writers.Math`:
7858 + Export `defaultMathJaxURL`, `defaultKaTeXURL`. This will ensure that
7859 we only need to update these in one place.
7861 * `Text.Pandoc.SelfContained`:
7863 + Removed `WriterOptions` parameter from `makeSelfContained`.
7864 + Put `makeSelfContained` in PandocMonad instead of IO. This removes
7865 the need to pass MediaBag around and improves exceptions. It also
7866 opens up the possibility of using makeSelfContained purely.
7867 + Export `makeDataURI`.
7869 * `Text.Pandoc.ImageSize`:
7871 + Export `lengthToDim`, new function `scaleDimension`.
7872 + Export `inEm` from ImageSize (#3450).
7873 + Change `showFl` and `show` instance for `Dimension` so
7874 extra decimal places are omitted.
7875 + Added `Em` as a constructor of `Dimension`.
7876 + Add `WriterOptions` parameter to `imageSize` signature (Mauro Bieg).
7878 * `Text.Pandoc.Templates`:
7880 + Change type of `renderTemplate'`. Now it runs in `PandocMonad`
7881 and raises a proper `PandocTemplateError` if there are problems, rather
7882 than failing with uncatchable `error`.
7883 + Change signature of `getDefaultTemplate`. Now it runs in any instance
7884 of `PandocMonad`, and returns a `String` rather than an `Either` value.
7885 And it no longer takes a `datadir` parameter, since this can be
7886 retrieved from `CommonState`.
7888 * `Text.Pandoc.Options`:
7890 + Added `writerEpubSubdirectory` to `WriterOptions` (#3720).
7891 The EPUB writer now takes its EPUB subdirectory from this option.
7892 + In `WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine`
7893 and `writerLaTeXArgs` to `writerPdfArgs` (Mauro Bieg, #3909).
7894 + Add `writerSyntaxMap` to `WriterOptions`.
7895 + Removed `writerEpubStylesheet` from `WriterOptions`.
7896 + Remove `writerUserDataDir` from `WriterOptions`. It is now carried
7897 in `CommonState` in `PandocMonad` instances. (And thus it can be used
7899 + Changed `writerEpubMetadata` to a `Maybe String`.
7900 + Removed `readerApplyMacros` from `ReaderOptions`. Now we just check
7901 the `latex_macros` reader extension.
7902 + FromJSON/ToJSON instances for `ReaderOptions`.
7903 + In `HTMLMathMethod`, the `KaTeX` contsructor now takes only
7904 one string (for the KaTeX base URL), rather than two.
7905 + Removed `writerSourceURL` from `WriterOptions`. We now use
7906 `stSourceURL` in `CommonState`, which is set by `setInputFiles`.
7908 * `Text.Pandoc.Shared`:
7910 + `tabFilter` now takes a `Text`, not `String`.
7911 + `openURL`: Changed type from an Either. Now it will just raise
7912 an exception to be trapped later.
7913 + Remove `normalizeSpaces` (#1530).
7914 + Remove `warn`. (Use `report` from `Text.Pandoc.Class` instead.)
7915 + Export a new function `crFilter`.
7916 + Add `eastAsianLineBreakFilter` (previously in Markdown reader).
7917 + Provide custom `isURI` that rejects unknown schemes.
7918 (Albert Krewinkel, #2713). We also export the set of known
7919 `schemes`. The new function replaces the function of the same name
7920 from `Network.URI`, as the latter did not check whether a scheme is
7921 well-known. All official IANA schemes (as of 2017-05-22) are
7922 included in the set of known schemes. The four non-official schemes
7923 `doi`, `isbn`, `javascript`, and `pmid` are kept.
7925 + Remove `readDataFile`, `readDefaultDataFile`, `getReferenceDocx`,
7926 `getReferenceODT`. These now live in `Text.Pandoc.Class`,
7927 where they are defined in terms of `PandocMonad`
7928 primitives and have different signatures.
7929 + Remove `openURL`. Use `openURL` from `Text.Pandoc.Class` instead.
7930 + Add `underlineSpan`.
7932 * `Text.Pandoc.Readers.HTML`: export new `NamedTag` class.
7934 * `Text.Pandoc.Readers.Markdown`: remove `readDocxWithWarnings`.
7935 With the new API one can simply use `getLog` after running
7938 * `Text.Pandoc.Readers.LaTeX`: Changed types for `rawLaTeXInline`
7939 and `rawLaTeXBlock`. (Both now return a `String`, and they are
7940 polymorphic in state.)
7943### Bug fixes and under-the-hood improvements
7945 * TEI writer: Added identifiers on `<div>` elements.
7947 * DokuWiki reader: Better handling for code block in list item (#3824).
7949 * Custom writer: Remove old preprocesesor conditionals (Albert Krewinkel).
7951 * ZimWiki writer: Removed internal formatting from note and table cells,
7952 because ZimWiki does not support it (Alex Ivkin, #3446).
7956 + Updated list of syntax highlighting languages (#3461).
7957 Now `r` gets you `<source>` rather than `<code>` (among others).
7958 + Add display attribute on `<math>` tags (#3452). This allows display
7959 math to be rendered properly.
7960 + Remove newline before `</ref>` (#2652).
7961 + Don't softbreak lines inside list items (#3531).
7965 + Reduce to two spaces after bullets (#3417, Albert Krewinkel).
7966 + Add unit tests (Alexander Krotov).
7967 + Stop using raw HTML to wrap divs (Albert Krewinkel, #3771).
7968 + Do not strip `#` from Org anchor links (Alexander Krotov).
7970 * CommonMark writer:
7972 + Avoid excess blank lines at end of output.
7973 + Prefer pipe tables to HTML tables even if it means losing relative
7974 column width information (#3734).
7975 + Support table, strikethrough extensions, when enabled (as with gfm).
7976 Note that we bypass the commonmark writer from cmark and construct our
7977 own pipe tables, with better results.
7978 + Properly support `--wrap=none`.
7979 + Use smallcaps class for `SmallCaps` (#1592).
7980 + Omit "fig:" prefix in image titles. This is used internally to
7981 indicate internal figures.
7985 + Properly handle table captions.
7986 + Don't wrap lines in in definition list terms. Wrapping is not allowed.
7987 + Implemented `+/-smart` and improved escaping with `+smart`.
7988 + Add empty comments when needed to avoid including a blockquote
7989 in the indented content of a preceding block (#3675).
7990 + Improve grid table output, fix bug with empty rows (#3516).
7991 Uses the new `gridTable` in Writers.Shared, which is here
7992 improved to better handle 0-width cells.
7993 + Remove space at beginning/end of RST code span (#3496). Otherwise
7994 we get invalid RST. There seems to be no way to escape the space.
7995 + Add header anchors when header has non-standard id (#3937).
7996 + Correctly handle inline code containing backticks, using a `:literal:`
7998 + Don't backslash-escape word-internal punctuation (#3978).
8002 + Don't include variables in metadata blocks. Previously variables set
8003 on the command line were included in e.g. YAML metadata, contrary to
8004 documentation and intentions.
8005 + Improved escaping with `+smart`.
8006 + Fixed grid tables embedded in grid tables (#2834).
8007 + Use span with class 'smallcaps' for SmallCaps, instead of a style
8008 attribute as before (#1592).
8009 + Escape initial `%` in a paragraph if the `pandoc_title_blocks`
8010 extension is enabled (#3454). Otherwise in a document starting with
8011 a literal `%` the first line is wrongly interpreted as a title.
8012 + Fixed false ordered lists in YAML metadata (#3492, #1685). Now we
8013 properly escape things that would otherwise start ordered lists,
8019 + Better handling of tables with empty columns (#3337). We now
8020 calculate the number of columns based on the longest row (or the
8021 length of aligns or widths).
8022 + Escape unordered list markers at beginning of paragraph (#3497), to
8023 avoid false interpretation as a list.
8024 + Escape `|` appropriately.
8025 + Ensure space before list at top level (#3487).
8026 + Avoid spurious blanklines at end of document after tables and list,
8028 + Fixed bugs in simple/multiline list output (#3384).
8029 Previously we got overlong lists with `--wrap=none`. This is fixed.
8030 Previously a multiline list could become a simple list (and would
8031 always become one with `--wrap=none`).
8032 + Don't emit a simple table if `simple_tables` disabled (#3529).
8033 + Case-insensitive reference links (David A Roberts, #3616).
8034 Ensure that we do not generate reference links whose labels differ only
8035 by case. Also allow implicit reference links when the link
8036 text and label are identical up to case.
8037 + Put space before reference link definitions (Mauro Bieg, #3630).
8038 + Better escaping for links (David A. Roberts, #3619). Previously the
8039 Markdown writer would sometimes create links where there were none
8040 in the source. This is now avoided by selectively escaping bracket
8041 characters when they occur in a place where a link might be created.
8042 + Added missing `\n` (David A. Roberts, #3647).
8043 + Fixed duplicated reference links with `--reference-links`
8044 and `--reference-location=section` (#3674). Also ensure that there
8045 are no empty link references `[]`.
8046 + Avoid inline surround-marking with empty content (#3715).
8047 E.g. we don't want `<strong></strong>` to become `****`.
8048 Similarly for emphasis, super/subscript, strikeout.
8049 + Don't allow soft break in header (#3736).
8050 + Make sure `plain`, `markdown_github`, etc. work for raw.
8051 Previously only `markdown` worked. Note: currently a raw block labeled
8052 `markdown_github` will be printed for any `markdown` format.
8053 + Ensure that `+` and `-` are escaped properly so they don't cause
8054 spurious lists (#3773). Previously they were only
8055 if succeeded by a space, not if they were at end of line.
8056 + Use pipe tables if `raw_html` disabled and `pipe_tables` enabled,
8057 even if the table has relative width information (#3734).
8058 + Markdown writer: don't crash on `Str ""`.
8059 + Make `Span` with null attribute transparent. That is, we don't use
8060 brackets or `<span>` tags to mark spans when there are no attributes;
8061 we simply output the contents.
8062 + Escape pipe characters when `pipe_tables` enabled (#3887).
8063 + Better escaping of `<` and `>`. If `all_symbols_escapable` is set,
8064 we backslash escape these. Otherwise we use entities as before.
8065 + When writing plain, don't use ` ` to separate list and indented
8066 code. There's no need for it in this context, since this isn't to be
8067 interpreted using Markdown rules.
8068 + Preserve classes in JS obfuscated links (Timm Albers, #2989).
8069 HTML links containing classes originally now preserve them when using
8070 javascript email obfuscation.
8071 + Render `SmallCaps` as a native span when `native_spans` are enabled.
8072 + Always write attributes with `bracketed_spans` (d-dorazio).
8076 + Fix handling of nested font commands (#3568). Previously pandoc emitted
8077 incorrect markup for bold + italic, for example, or bold + code.
8078 + Avoid error for definition lists with no definitions (#3832).
8082 + Fix internal links with `writerIdentifierPrefix opt`
8083 (#3397, Mauro Bieg).
8087 + Don't include bookmarks on headers unless non-null id (#3476).
8088 + Support 9 levels of headers (#1642).
8089 + Allow 9 list levels (#3519).
8090 + Don't take `distArchive` from datadir (#3322). The docx writer takes
8091 components from the distribution's version of `reference.docx` when it
8092 can't find them in a user's custom `reference.docx`. Previously, we
8093 allowed a `reference.docx` in the data directory (e.g. `~/.pandoc`)
8094 to be used as the distribution's reference.docx. This led to a
8095 bizarre situation where pandoc would produce a good docx using
8096 `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to
8097 `~/.pandoc/reference.docx`, it would then produce a corrupted docx.
8098 + Fixed handling of soft hyphen (0173) (#3691).
8099 + Better handling of keywords (#3719).
8100 + Cleaner code for handling dir and style attributes for `Div`.
8101 + Use `Set` for dynamic styles to avoid duplicates.
8102 + Removed redundant element from data/docx/word/numbering.xml.
8103 The elements we need are generated when the document is
8104 compiled; this didn't do anything.
8105 + Activate `evenAndOddHeaders` from reference docx (#3901,
8106 Augustín Martín Barbero).
8108 * ODT/OpenDocument writer:
8110 + Calculate aspect ratio for percentage-sized images (Mauro Bieg, #3239).
8111 + Use more widely available bullet characters (#1400). The old
8112 characters weren't available in some font sets. These seem to work
8113 well on Windows and Linux versions of LibreOffice.
8114 + Wider labels for lists (#2421). This avoids overly narrow labels for
8115 ordered lists with `()` delimiters. However, arguably it creates
8116 overly wide labels for bullets. Also, lists now start flush with
8117 the margin, rather than indented.
8118 + Fixed dropped elements in some ordered lists (#2434).
8122 + Don't render `RawBlock` as code.
8123 + Don't fail with an error on interior headers (e.g. in list) (#3750).
8124 Instead, omit them with an INFO message.
8125 + Add support for "lang" metadata (Alexander Krotov, #3625).
8126 + Format `LineBlock` as poem (Alexander Krotov). Previously writer
8127 produced one paragraph with `<empty-line/>` elements, which are not
8128 allowed inside `<p>` according to FB2 schema.
8129 + Replace `concatMap` with `cMap` (Alexander Krotov).
8130 + Write FB2 lists without nesting blocks inside `<p>` (Alexander
8135 + Make sure `html4`, `html5` formats work for raw blocks/inlines.
8136 + Render raw inline environments when `--mathjax` used (#3816).
8137 We previously did this only with raw blocks, on the assumption
8138 that math environments would always be raw blocks. This has changed
8139 since we now parse them as inline environments.
8140 + Ensure we don't get two style attributes for width and height.
8141 + Report when not rendering raw inline/block.
8142 + Issue warning if no title specified and template used (#3473).
8143 + Info message if `lang` is unspecified (#3486).
8144 + Removed unused parameter in `dimensionsToAttributeList`.
8145 + Avoid two class attributes when adding `uri` class (#3716).
8146 + Fix internal links with `writerIdentifierPrefix opt` (#3397, Mauro
8148 + Use revealjs's math plugin for mathjax (#3743). This is a thin
8149 wrapper around mathjax that makes math look better on revealjs.
8150 + Slidy: use h1 for all slides, even if they were originally
8151 level 2 headers (#3566). Otherwise the built-in table of contents
8156 + Don't render LaTeX images with data: URIs (#3636). Note that
8157 `--extract-media` can be used when the input contains data: URIs.
8158 + Make highlighted code blocks work in footnotes (Timm Albers).
8159 + Don't use figure inside table cell (#3836).
8160 + Use proper code for list enumerators (#3891). This should fix problems
8161 with lists that don't use arabic numerals.
8162 + Always add hypertarget when there's a non-empty identifier (#2719).
8163 Previously the hypertargets were only added when there was actually
8164 a link to that identifier.
8165 + Use `%` after hypertarget before code block.
8166 + Add `\leavevmode` before hypertarget at start of paragraph (#2704,
8167 fixes formatting problems in beamer citations).
8168 + Don't use `lstinline` in `\item[..]` (#645). If you do, the contents
8169 of item disappear or are misplaced. Use `\texttt` instead.
8170 + Fix problem with escaping in `lstinline` (#1629). Previously the
8171 LaTeX writer created invalid LaTeX when `--listings` was specified and
8172 a code span occurred inside emphasis or another construction.
8173 + Fix error with line breaks after empty content (#2874). LaTeX
8174 requires something before a line break, so we insert a `~` if no
8175 printable content has yet been emitted.
8177 + Fixed detection of otherlangs (#3770). We weren't recursing into
8179 + Handle language in inline code with `--listings` (#3422).
8180 + Write euro symbol directly in LaTeX (Andrew Dunning, #3801).
8181 The textcomp package allows pdfLaTeX to parse `€` directly, making the
8182 `\euro` command unneeded.
8183 + Fixed footnotes in table captions (#2378). Note that if the table has
8184 a first page header and a continuation page header, the notes will
8185 appear only on the first occurrence of the header.
8186 + In `writeBeamer` output, allow hyperlinks to frames (#3220).
8187 Previously you could link to a header above or below slide level but
8188 not *to* slide level. This commit changes that. Hypertargets are
8189 inserted inside frame titles; technically the reference is to just
8190 after the title, but in normal use (where slides are viewed full
8191 screen in a slide show), this does not matter.
8192 + Remove `\strut` at beginning of table cells (#3436). This fixes a
8193 problem with alignment of lists in table cells. The `\strut` at the
8194 end seems to be enough to avoid the too-close spacing that motivated
8195 addition of the strut in #1573.
8196 + Add partial siunitx Support (Marc Schreiber, #3588).
8200 + Refactored to use BCP47 module.
8201 + Remove unnecessary `$` (Alexander Krotov, #3482).
8202 + Use header identifiers for chapters (#3968).
8206 + `title_page.xhtml` is now put in `text/`.
8207 + Don't strip formatting in TOC (#1611).
8211 + Fix bug for certain links in table cells (#3667).
8212 + Allow 'pre' code in list item (#3916).
8216 + Added warnings for ignored material (#3392).
8217 + Better sanity checks to avoid parsing unintended things as
8218 raw HTML in the Markdown reader (#3257).
8219 + Revise treatment of `li` with `id` attribute (#3596). Previously we
8220 always added an empty div before the list item, but this created
8221 problems with spacing in tight lists. Now we do this: If the list
8222 item contents begin with a `Plain` block, we modify the `Plain`
8223 block by adding a `Span` around its contents. Otherwise, we add a
8224 `Div` around the contents of the list item (instead of adding an
8225 empty `Div` to the beginning, as before).
8226 + Add `details` tag to list of block tags (#3694).
8227 + Removed `button` from block tag list (#3717). It is already in the
8228 `eitherBlockOrInlineTag` list, and should be both places.
8229 + Use `Set`s instead of lists for block tag lookup.
8230 + Rewrote to use `Text` throughout. Effect on memory usage is modest
8232 + Use the lang value of `<html>` to set the lang meta value (bucklereed,
8234 + Ensure that paragraphs are closed properly when the parent block
8235 element closes, even without `</p>` (#3794).
8236 + Parse `<figure>` and `<figcaption>` (Mauro Bieg, #3813).
8237 + Parse `<main>` like `<div role=main>` (bucklereed, #3791).
8238 `<main>` closes `<p>` and behaves like a block element generally
8239 + Support column alignments (#1881). These can be set either
8240 with a `width` attribute or with `text-width` in a `style` attribute.
8241 + Modified state type to be an instance of `HasLogMessages`, so
8242 `registerHeader` can issue warnings.
8243 + `</td>` or `</th>` should close any open block tag (#3991).
8244 + `<td>` should close an open `<th>` or `<td>`.
8245 + `htmlTag` improvements (#3989). We previously failed on cases
8246 where an attribute contained a `>` character. This patch fixes the
8247 bug, which especially affects raw HTML in Markdown.
8251 + Newline is not indentation (Alexander Krotov).
8255 + Allow extra hyphens after `|-` in tables (#2649).
8256 + Allow blank line after table start (#2649).
8257 + Fixed more table issues (#2649).
8258 + Ensure that list starts begin at left margin (#2606). Including when
8259 they're in tables or other list items.
8260 + Make smart double quotes depend on `smart` extension (#3585).
8261 + Don't do curly quotes inside `<tt>` contexts (#3585). Even if `+smart`.
8262 + Modified state type to be an instance of `HasLogMessages`, so
8263 `registerHeader` can issue warnings.
8265 * TWiki reader (Alexander Krotov):
8267 + Remove unnecessary `$` (#3597).
8268 + Simplify `linkText` (#3605).
8272 + Minor refactoring, avoiding explicit MediaBag handling.
8273 This all works behind the scenes in CommonState plumbing.
8277 + Don't drop smartTag contents (#2242).
8278 + Handle local namespace declarations (#3365). Previously we didn't
8279 recognize math, for example, when the xmlns declaration occurred on
8280 the element and not the root.
8281 + More efficient trimSps (#1530). Replacing `trimLineBreaks`. This
8282 does the work of `normalizeSpaces` as well, so we avoid the need for
8284 + Avoid 0-level headers (Jesse Rosenthal, #3830). We used to parse
8285 paragraphs styled with "HeadingN" as "nth-level header." But if a
8286 document has a custom style named "Heading0", this will produce a
8287 0-level header, which shouldn't exist. We only parse this style
8288 if N>0. Otherwise we treat it as a normal style name, and
8289 follow its dependencies, if any.
8290 + Add tests for avoiding zero-level header (Jesse Rosenthal).
8294 + Replaced `collectRights` with Rights from `Data.Either`.
8295 + Remove dead code (Albert Krewinkel).
8297 * Org reader (Albert Krewinkel, unless noted).
8299 + Don't allow tables inside list items (John MacFarlane, #3499).
8300 + Disallow tables on list marker lines (#3499).
8301 + Convert markup at beginning of footnotes (John MacFarlane, #3576).
8302 + Allow emphasized text to be followed by `[` (#3577).
8303 + Handle line numbering switch for src blocks.
8304 The line-numbering switch that can be given to source blocks (`-n` with
8305 an start number as an optional parameter) is parsed and translated to a
8306 class/key-value combination used by highlighting and other readers and
8308 + Stop adding rundoc prefix to src params. Source block parameter names
8309 are no longer prefixed with `rundoc`. This was intended to simplify
8310 working with the rundoc project, a babel runner. However, the rundoc
8311 project is unmaintained, and adding those markers is not the reader's
8312 job anyway. The original language that is specified for a source
8313 element is now retained as the `data-org-language` attribute and only
8314 added if it differs from the translated language.
8315 + Allow multi-word arguments to src block params (#3477). The reader now
8316 correctly parses src block parameter list even if parameter arguments
8317 contain multiple words.
8318 + Avoid creating `nullMeta` by applying `setMeta` directly
8320 + Replace `sequence . map` with `mapM`.
8321 + Fix smart parsing behavior. Parsing of smart quotes and special
8322 characters can either be enabled via the `smart` language extension or
8323 the `'` and `-` export options. Smart parsing is active if either the
8324 extension or export option is enabled. Only smart parsing of special
8325 characters (like ellipses and en and em dashes) is enabled by default,
8326 while smart quotes are disabled. Previously, all smart parsing was
8327 disabled unless the language extension was enabled.
8328 + Subject full doc tree to headline transformations (Albert Krewinkel,
8329 #3695). Emacs parses org documents into a tree structure, which is
8330 then post-processed during exporting. The reader is changed to do the
8331 same, turning the document into a single tree of headlines starting
8333 + Fix cite parsing behaviour (Herwig Stuetz). Until now, `org-ref`
8334 cite keys included special characters also at the end. This caused
8335 problems when citations occur right before colons or at the end of
8336 a sentence. With this change, all non alphanumeric characters at
8337 the end of a cite key are ignored. This also adds `,` to the list
8338 of special characters that are legal in cite keys to better mirror
8339 the behaviour of org-export.
8340 + Fix module names in haddock comments. Copy-pasting had lead to
8341 haddock module descriptions containing the wrong module names.
8342 + Recognize babel result blocks with attributes (#3706). Babel
8343 result blocks can have block attributes like captions and names.
8344 Result blocks with attributes were not recognized and were parsed
8345 as normal blocks without attributes.
8346 + Include tags in headlines. The Emacs default is to include tags in the
8347 headline when exporting. Instead of just empty spans, which contain the
8348 tag name as attribute, tags are rendered as small caps and wrapped in
8349 those spans. Non-breaking spaces serve as separators for multiple tags.
8350 + Respect export option for tags (#3713). Tags are appended to
8351 headlines by default, but will be omitted when the `tags` export option
8353 + Use `tag-name` attribute instead of `data-tag-name`.
8354 + Use `org-language` attribute rather than `data-org-language`.
8355 + Modified state type to be an instance of `HasLogMessages`, so
8356 `registerHeader` can issue warnings.
8357 + End footnotes after two blank lines. Footnotes can not only be
8358 terminated by the start of a new footnote or a header, but also by two
8359 consecutive blank lines.
8360 + Update emphasis border chars (#3933). The org reader was updated to
8361 match current org-mode behavior: the set of characters which are
8362 acceptable to occur as the first or last character in an org emphasis
8363 have been changed and now allows all non-whitespace chars at the
8364 inner border of emphasized text (see `org-emphasis-regexp-components`).
8368 + Fixed small bug in list parsing (#3432). Previously the parser didn't
8369 handle properly this case:
8375 + Handle multiline cells in simple tables (#1166).
8376 + Parse list table directive (Keiichiro Shikano, #3432).
8377 + Make use of `anyLineNewline` (Alexander Krotov, #3686).
8378 + Use `anyLineNewline` in `rawListItem` (Alexander Krotov, #3702).
8379 + Reorganize block parsers for ~20% faster parsing.
8380 + Fixed `..include::` directive (#3880).
8381 + Handle blank lines correctly in line blocks (Alexander Krotov, #3881).
8382 Previously pandoc would sometimes combine two line blocks separated
8383 by blanks, and ignore trailing blank lines within the line block.
8384 + Fix indirect hyperlink targets (#512).
8388 + Allow attributes in reference links to start on next line (#3674).
8389 + Parse YAML metadata in a context that sees footnotes defined in
8390 the body of the document (#1279).
8391 + When splitting pipe table cells, skip tex math (#3481).
8392 You might have a `|` character inside math. (Or for that matter
8393 something that the parser might mistake for raw HTML.)
8394 + Treat span with class `smallcaps` as SmallCaps.
8395 This allows users to specify small caps in Markdown this way:
8396 `[my text]{.smallcaps}` (#1592).
8397 + Fixed internal header links (#2397).
8398 This patch also adds `shortcut_reference_links` to the list
8400 + Treat certain environments as inline
8401 when they occur without space surrounding them (#3309, #2171).
8402 E.g. equation, math. This avoids incorrect vertical space
8404 + Optimized `nonindentSpaces`. Makes the benchmark go from 40 to 36 ms.
8405 + Allow latex macro definitions indented 1-3 spaces.
8406 Previously they only worked if nonindented.
8407 + Improved parsing of indented raw HTML blocks (#1841).
8408 Previously we inadvertently interpreted indented HTML as
8409 code blocks. This was a regression. We now seek to determine the
8410 indentation level of the contents of an HTML block, and (optionally)
8411 skip that much indentation. As a side effect, indentation may be
8412 stripped off of raw HTML blocks, if `markdown_in_html_blocks` is
8413 used. This is better than having things interpreted as indented
8415 + Fixed smart quotes after emphasis (#2228). E.g. in `*foo*'s 'foo'`.
8416 + Warn for notes defined but not used (#1718).
8417 + Use `anyLineNewline` (Alexander Krotov).
8418 + Interpret YAML metadata as Inlines when possible (#3755). If
8419 the metadata field is all on one line, we try to interpret it as
8420 Inlines, and only try parsing as Blocks if that fails. If it
8421 extends over one line (including possibly the `|` or `>` character
8422 signaling an indented block), then we parse as Blocks. This was
8423 motivated by some German users finding that `date: '22. Juin 2017'`
8424 got parsed as an ordered list.
8425 + Fixed spurious parsing as citation as reference def (#3840).
8426 We now disallow reference keys starting with `@` if the
8427 `citations` extension is enabled.
8428 + Parse `-@roe` as suppress-author citation (pandoc-citeproc#237).
8429 Previously only `[-@roe]` (with brackets) was recognized as
8430 suppress-author, and `-@roe` was treated the same as `@roe`.
8431 + Fixed parsing of fenced code after list when there is no intervening
8433 + Allow raw latex commands starting with `\start` (#3558). Previously
8434 these weren't allowed because they were interpreted as starting
8435 ConTeXt environments, even without a corresponding `\stop`...
8436 + Added `inlines`, `inlines1`.
8437 + Require nonempty alt text for `implicit_figures` (#2844).
8438 A figure with an empty caption doesn't make sense.
8439 + Removed texmath macro material; now all this is handled
8440 in the LaTeX reader functions.
8441 + Fixed bug with indented code following raw LaTeX (#3947).
8445 + Rewrote LaTeX reader with proper tokenization (#1390,
8446 #2118, #3236, #3779, #934, #982). This rewrite is primarily
8447 motivated by the need to get macros working properly. A side benefit
8448 is that the reader is significantly faster. We now tokenize the
8449 input text, then parse the token stream. Macros modify the token
8450 stream, so they should now be effective in any context, including
8451 math. Thus, we no longer need the clunky macro processing
8452 capacities of texmath.
8453 + Parse `\,` to `\8198` (six-per-em space) (Henri Werth).
8454 + Allow `\newcommand\foo{blah}` without braces.
8455 + Support `\lstinputlisting` (#2116).
8456 + Issue warnings when skipping unknown latex commands (#3392).
8457 + Include contents of `\parbox`.
8458 + Allow `\hspace` and `\vspace` to count as raw block or inline.
8459 Previously we would refuse to parse anything as raw inline if
8460 it was in the `blockCommands` list. Now we allow exceptions
8461 if they're listed under ignoreInlines in inlineCommands.
8462 This should make it easier e.g. to include an `\hspace`
8463 between two side-by-side raw LaTeX tables.
8464 + Don't drop contents of `\hypertarget`.
8465 + Handle spaces before `\cite` arguments.
8466 + Allow newpage, clearpage, pagebreak in inline contexts as well as
8467 block contexts (#3494).
8468 + Treat `{{xxx}}` the same as `{xxx}` (#2115).
8469 + Use `pMacroDefinition` in macro (for more direct parsing).
8470 Note that this means that `macro` will now parse one
8471 macro at a time, rather than parsing a whole group together.
8472 + Fixed failures on `\ref{}`, `\label{}` with `+raw_tex`. Now these
8473 commands are parsed as raw if `+raw_tex`; otherwise, their argument
8474 is parsed as a bracketed string.
8475 + Don't crash on empty `enumerate` environment (#3707).
8476 + Handle escaped `&` inside table cell (#3708).
8477 + Handle block structure inside table cells (#3709). `minipage` is no
8479 + Handle some width specifiers on table columns (#3709). Currently
8480 we only handle the form `0.9\linewidth`. Anything else would have
8481 to be converted to a percentage, using some kind arbitrary assumptions
8483 + Make sure `\write18` is parsed as raw LaTeX. The change is in the
8484 LaTeX reader's treatment of raw commands, but it also affects the
8486 + Fixed regression with starred environment names (#3803).
8487 + Handle optional args in raw `\titleformat` (#3804).
8488 + Improved heuristic for raw block/inline. An unknown command at the
8489 beginning of the line that could be either block or inline is
8490 treated as block if we have a sequence of block commands followed by
8491 a newline or a `\startXXX` command (which might start a raw ConTeXt
8493 + Don't remove macro definitions from the output, even if
8494 `Ext_latex_macros` is set, so that macros will be applied.
8495 Since they're only applied to math in Markdown, removing the macros
8496 can have bad effects. Even for math macros, keeping them should be
8498 + Removed `macro`. It is no longer necessary, since the
8499 `rawLaTeXBlock` parser will parse macro definitions. This also avoids
8500 the need for a separate `latexMacro` parser in the Markdown reader.
8501 + Use `label` instead of `data-label` for label in caption (#3639).
8502 + Fixed space after `\figurename` etc.
8503 + Resolve references to section numbers.
8504 + Fix `\let\a=0` case, with single character token.
8505 + Allow `@` as a letter in control sequences. `@` is commonly used
8506 in macros using `\makeatletter`. Ideally we'd make the tokenizer
8507 sensitive to `\makeatletter` and `\makeatother`, but until then this
8508 seems a good change.
8509 + Track header numbers and correlate with labels.
8510 + Allow `]` inside group in option brackets (#3857).
8511 + lstinline with braces can be used (verb cannot be used with braces)
8512 (Marc Schreiber, #3535).
8513 + Fix keyval function: pandoc did not parse options in braces correctly
8514 (Marc Schreiber, #3642).
8515 + When parsing raw LaTeX commands, include trailing space (#1773).
8516 Otherwise things like `\noindent foo` break and turn into
8517 `\noindentfoo`. Affects `-f latex+raw_tex` and `-f markdown` (and other
8518 formats that allow `raw_tex`).
8519 + Don't treat "..." as Quoted (#3958). This caused quotes to be omitted in
8521 + Add tests for existing `\includegraphics` behaviour (Ben Firshman).
8522 + Allow space before `=` in bracketd options (Ben Firshman).
8523 + Be more forgiving in parsing command options. This was needed, for
8524 example, to make some minted options work.
8525 + Strip off quotes in `\include` filenames.
8527 * Added `Text.Pandoc.CSV`, simple (unexported) CSV parser.
8529 * `Text.Pandoc.PDF`:
8531 + Got `--resource-path` working with PDF output (#852).
8532 + Fetch images when generating PDF via context (#3380).
8533 To do this, we create the temp directory as a subdirectory
8534 of the working directory. Since context mk IV by default looks
8535 for images in the parent directory, this works.
8536 + Use `report` instead of `warn`, make it sensitive to verbosity settings.
8537 + Use `fillMediaBag` and `extractMedia` to extract media to temp dir.
8538 This reduces code duplication.
8539 + `html2pdf`: use stdin instead of intermediate HTML file
8540 + Removed useless `TEXINPUTS` stuff for `context2pdf`. mkiv context
8541 doesn't use `TEXINPUTS`.
8543 * `Text.Pandoc.Pretty`:
8545 + Simplified definition of `realLength`.
8546 + Don't error for blocks of size < 1. Instead, resize to 1 (see #1785).
8548 * `Text.Pandoc.MIME`:
8550 + Use `application/javascript` (not `application/x-javascript`).
8551 + Added `emf` to mimeTypes with type `application/x-msmetafile` (#1713).
8553 * `Text.Pandoc.ImageSize`:
8555 + Improve SVG image size code (Marc Schreiber, #3580).
8556 + Make `imageSize` recognize basic SVG dimensions (Mauro Bieg, #3462).
8558 * Use `Control.Monad.State.Strict` throughout. This gives 20-30% speedup
8559 and reduction of memory usage in most of the writers.
8561 * Use `foldrWithKey` instead of deprecated `foldWithKey`.
8563 * `Text.Pandoc.SelfContained`:
8565 + Fixed problem with embedded fonts (#3629).
8566 + Refactored getData from `getDataURI` in `SelfContained`.
8567 + Don't use data URIs for script or style (#3423). Instead, just use
8568 script or style tags with the content inside. The old method with
8569 data URIs prevents certain optimizations outside pandoc. Exception:
8570 data URIs are still used when a script contains `</script>` or a
8571 style contains `</`.
8572 + SelfContained: Handle URL inside material retrieved from a URL
8573 (#3629). This can happen e.g. with an @import of a google web font.
8574 (What is imported is some CSS which contains an url reference
8575 to the font itself.) Also, allow unescaped pipe (|) in URL.
8576 + Load resources from `data-src` (needed for lazy loading in
8577 reveal.js slide shows).
8578 + Handle `data-background-image` attribute on section (#3979).
8580 * `Text.Pandoc.Parsing`:
8582 + Added `indentWith` (Alexander Krotov, #3687).
8583 + Added `stateCitations` to `ParserState`.
8584 + Removed `stateChapters` from `ParserState`.
8585 + In `ParserState`, make `stateNotes'` a Map, add `stateNoteRefs`.
8586 + Added `gobbleSpaces` and `gobbleAtMostSpaces`.
8587 + Adjusted type of `insertIncludedFile` so it can be used with token
8589 + Replace old texmath macro stuff from Parsing. Use Macro from
8590 Text.Pandoc.Readers.LaTeX.Types instead.
8591 + Export `insertIncludedFile`.
8592 + Added `HasLogMessages`, `logMessage`, `reportLogMessages` (#3447).
8593 + Replace partial with total function (Albert Krewinkel).
8594 + Introduce `HasIncludeFiles` type class (Albert Krewinkel). The
8595 `insertIncludeFile` function is generalized to work with all parser
8596 states which are instances of that class.
8597 + Add `insertIncludedFilesF` which returns F blocks (Albert Krewinkel).
8598 The `insertIncludeFiles` function was generalized and renamed
8599 to `insertIncludedFiles'`; the specialized versions are based on that.
8600 + `many1Till`: Check for the end condition before parsing (Herwig
8601 Stuetz). By not checking for the end condition before the first
8602 parse, the parser was applied too often, consuming too much of the
8603 input. This only affects `many1Till p end` where `p` matches on a
8605 + Provide `parseFromString` (#3690). This is a version of
8606 `parseFromString` specialied to ParserState, which resets
8607 `stateLastStrPos` at the end. This is almost always what we want.
8608 This fixes a bug where `_hi_` wasn't treated as emphasis in the
8609 following, because pandoc got confused about the position of the
8610 last word: `- [o] _hi_`.
8611 + Added `takeP`, `takeWhileP` for efficient parsing of `[Char]`.
8612 + Fix `blanklines` documentation (Alexander Krotov, #3843).
8613 + Give less misleading line information with `parseWithString`.
8614 Previously positions would be reported past the end of the chunk.
8615 We now reset the source position within the chunk and report
8616 positions "in chunk."
8617 + Add `anyLineNewline` (Alexander Krotov).
8618 + Provide shared F monad functions for Markdown and Org readers
8619 (Albert Krewinkel). The `F` monads used for delayed evaluation
8620 of certain values in the Markdown and Org readers are based on a
8621 shared data type capturing the common pattern of both `F` types.
8622 + Add `returnF` (Alexander Krotov).
8623 + Avoid parsing `Notes:**` as a bare URI (#3570). This avoids parsing
8624 bare URIs that start with a scheme + colon + `*`, `_`, or `]`.
8625 + Added `readerAbbreviations` to `ParserState`. Markdown reader
8626 now consults this to determine what is an abbreviation.
8627 + Combine grid table parsers (Albert Krewinkel, #3638). The grid table
8628 parsers for markdown and rst was combined into one single
8629 parser `gridTable`, slightly changing parsing behavior of both
8630 parsers: (1) The markdown parser now compactifies block content
8631 cell-wise: pure text blocks in cells are now treated as paragraphs
8632 only if the cell contains multiple paragraphs, and as plain blocks
8633 otherwise. Before, this was true only for single-column tables. (2)
8634 The rst parser now accepts newlines and multiple blocks in header
8636 + Generalize tableWith, gridTableWith (Albert Krewinkel).
8637 The parsing functions `tableWith` and `gridTableWith` are generalized
8638 to work with more parsers. The parser state only has to be an
8639 instance of the `HasOptions` class instead of requiring a concrete
8640 type. Block parsers are required to return blocks wrapped into a
8641 monad, as this makes it possible to use parsers returning results
8642 wrapped in `Future`s.
8644 * `Text.Pandoc.Shared`:
8646 + Simplify `toRomanNumeral` using guards (Alexander Krotov, #3445)
8647 + `stringify`: handle Quoted better (#3958). Previously we were losing
8648 the quotation marks in Quoted elements.
8650 * `Text.Pandoc.Writers.Shared`:
8652 + Export `metaToJSON'`, `addVariablesToJSON` (#3439).
8653 This allows us to add the variables AFTER using the metadata
8654 to generate a YAML header (in the Markdown writer).
8655 + Added `unsmartify` (previously in RST writer).
8656 Undo literal double curly quotes. Previously we left these.
8657 + Generalize type of `metaToJSON` so it can take a Text. Previously a
8658 String was needed as argument; now any ToJSON instance will do.
8659 + Added `gridTable` (previously in Markdown writer).
8660 + `gridTable`: Refactored to use widths in chars.
8661 + `gridTable`: remove unnecessary extra space in cells.
8662 + Fixed `addVariablesToJSON`. It was previously not allowing multiple
8663 values to become lists.
8664 + Pipe tables: impose minimum cell size (see #3526).
8667### Default template changes
8669 * HTML templates (including EPUB and HTML slide show templates):
8671 + Make default.html5 polyglot markup conformant (John Luke Bentley,
8672 #3473). Polyglot markup is HTML5 that is also valid XHTML. See
8673 <https://www.w3.org/TR/html-polyglot>. With this change, pandoc's
8674 html5 writer creates HTML that is both valid HTML5 and valid XHTML.
8675 + Regularized CSS in html/epub/html slide templates (#3485).
8676 All templates now include `code{white-space: pre-wrap}`
8677 and CSS for `q` if `--html-q-tags` is used. Previously some templates
8678 had `pre` and others `pre-wrap`; the `q` styles were only sometimes
8680 + CSS for `.smallcaps`, (Mauro Bieg, #1592)
8681 + `default.revealjs`: make `history` default to true.
8682 + `default.revealjs`: use lazy loading (#2283).
8683 + `default.revealjs`: add `mathjax` variable and some conditional code
8684 to use the MathJaX plugin.
8685 + `default.slidy` uses `https` instead of `http` (ickc, #3848).
8686 + `default.dzslides`: Load Google Font using HTTPS by default
8689 * DocBook5 template: Use `lang` and `subtitle` variables (Jens Getreu,
8692 * LaTeX/Beamer template:
8694 + Combine LaTeX/Beamer templates (Andrew Dunning, #3878).
8695 `default.beamer` has been removed; beamer now uses the
8696 `default.latex` template. Beamer-specific parts are conditional
8697 on the `beamer` variable set by the writer. Note that
8698 `pandoc -D beamer` will return this (combined) template.
8699 + Use `xcolor` for `colorlinks` option (Andrew Dunning, #3877).
8700 Beamer loads `xcolor` rather than `color`, and thus the
8701 `dvipsnames` option doesn't take effect. This also provides a wider
8702 range of colour selections with the `svgnames` option.
8703 + Use starred versions of `xcolor` names (Andrew Dunning).
8704 Prevents changes to documents defined using the `dvipsnames` list (e.g.
8705 `Blue` gives a different result with svgnames enabled).
8706 + Load `polyglossia` after header-includes (#3898). It needs to be
8707 loaded as late as possible.
8708 + Use `unicode-math` (Vaclav Haisman). Use `mathspec` with only
8710 + Don't load `fontspec` before `unicode-math` (over there).
8711 The `unicode-math` package loads `fontspec` so explicit loading of
8712 `fontspec` before `unicode-math` is not necessary.
8713 + Use `unicode-math` by default in default.latex template. mathspec will
8714 be used in xelatex if the `mathspec` variable is set; otherwise
8715 unicode-math will be used (Václav Haisman).
8716 + Use `dvipsnames` options when `colorlinks` specified (otherwise
8717 we get an error for `maroon`) (Thomas Hodgson).
8718 + Added beamer `titlegraphic` and `logo` variables (Thomas Hodgson).
8719 + Fix typo in fix for notes in tables (#2378, zeeMonkeez).
8720 + Fix `hyperref` options clash (Andrew Dunning, #3847) Avoids an options
8721 clash when loading a package (e.g. `tufte-latex`) that uses
8722 `hyperref` settings different from those in the template.
8723 + Add `natbiboptions` variable (#3768).
8724 + Fix links inside captions in LaTeX output with links-as-notes
8725 (Václav Haisman, #3651). Declare our redefined `\href` robust.
8726 + Load `parskip` before `hyperref` (Václav Haisman, #3654).
8727 + Allow setting Japanese fonts when using LuaLaTeX (Václav Haisman,
8728 #3873). by using the `luatexja-fontspec` and `luatexja-preset`
8729 packages. Use existing `CJKmainfont` and `CJKoptions` template
8730 variables. Add `luatexjafontspecoptions` for `luatexja-fontspec`
8731 and `luatexjapresetoptions` for `luatexja-preset`.
8732 + Added `aspectratio` variable to beamer template (Václav Haisman,
8734 + Modified template.latex to fix XeLaTex being used with tables
8735 (lwolfsonkin, #3661). Reordered `lang` variable handling to
8736 immediately before `bidi`.
8738 * ConTeXt template: Improved font handling: `simplefonts` is now
8739 obsolete in ConTeXt (Pablo Rodríguez).
8742### Documentation improvements
8746 + Add URL for Prince HTML > PDF engine (Ian, #3919).
8747 + Document that content above slide-level will be omitted in
8748 slide shows. See #3460, #2265.
8749 + Explain `--webtex` SVG url (Mauro Bieg, #3471)
8750 + Small clarification in YAML metadata section.
8751 + Document that html4 is technically XHTML 1.0 transitional.
8752 + Remove refs to highlighting-kate (#3672).
8753 + Document ibooks specific epub metadata.
8754 + Clarify that mathml is used for ODT math.
8755 + Mention limitations of Literate Haskell Support (#3410,
8757 + Add documentation of limitations of grid tables (Stephen
8759 + Clarify that meta-json contains transformed values (Jakob Voß,
8760 #3491) Make clear that template variable `meta-json` does not
8761 contain plain text values or JSON output format but field values
8762 transformed to the selected output format.
8766 + Clarify that templates are dual-licensed.
8767 + Clarify that pandoc-types is BSD3 licensed.
8768 + List new files not written by jgm (Albert Krewinkel).
8769 + Update dates in copyright notices (Albert Krewinkel). This follows
8770 the suggestions given by the FSF for GPL licensed software.
8771 <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
8775 + Improved instructions for tests with patterns.
8776 + Put RPM-based distros on separate point (Mauro Bieg, #3449)
8780 + Fixed typos (Wandmalfarbe, #3479).
8781 + Add "ask on pandoc-discuss" (Mauro Bieg).
8783 * Add lua filter documentation in `doc/lua-filters.md`. Note that the
8784 end of this document is autogenerated from `data/pandoc.lua`
8785 using `make doc/lua-filters.md`, which uses `tools/ldoc.ltp`
8788 * Add `doc/filters.md`. This is the old scripting tutorial from
8791 * Add `doc/using-the-pandoc-api.md` (#3289). This gives an introduction
8792 to using pandoc as a Haskell library.
8795### Build infrastructure improvements
8797 * Removed `data/templates` submodule. Templates are now a subtree
8798 in `data/templates`. This removes the need to do `git submodule
8801 * Renamed `tests` -> `test`.
8803 * Remove `https` flag. Always build with HTTPS support.
8805 * Use `file-embed` instead of `hsb2hs` to embed data files when
8806 `embed_data_files` flag is set. `file-embed` gives us better dependency
8807 tracking: if a data file changes, ghc/stack/cabal know to recompile
8808 the Data module. This also removes `hsb2hs` as a build dependency.
8810 * Add `custom-setup` stanza to pandoc, lowercase field names.
8812 * Add `static` Cabal flag.
8814 * Name change OSX -> MacOS. Add a -MacOS suffix to mac package rather
8815 than -OSX. Changed local names from osx to macos.
8817 * make_macos_package.sh - Use strip to reduce executable size.
8819 * Revised binary linux package. Now a completely static executable
8820 is created, using Docker and alpine. We create both a deb and a
8821 tarball. The old `deb` directory has been replaced with a `linux`
8822 directory. Running `make` in the `linux` directory should
8823 perform the build, putting the binary packages in `artifacts/`.
8825 * `linux/control.in`: add `Replaces:`, so existing pandoc-citeproc and
8826 pandoc-data packages will be uninstalled; this package provides
8827 both (#3822). Add latex packages as 'suggested', update
8830 * Remove cpphs build requirement -- it is no longer needed.
8832 * Replaced `{deb,macos,windows}/stack.yaml` with `stack.pkg.yaml`.
8834 * Name change OSX -> macOS (ickc, #3869).
8836 * Fix casing of Linux, UNIX, and Windows (ickc).
8838 * `.travis.yml`: create a source dist and do cabal build and test there.
8839 That way we catch errors due to files missing from the data
8840 section of pandoc.cabal.
8844 + Split `make haddock` from `make full`.
8845 + Add BRANCH variable for winpkg.
8846 + Add `lint` target.
8847 + Improve `make full`. Disable optimizations.
8848 Build everything, inc. trypandoc and benchmarks. Use parallel build.
8849 + Allow `make test` to take `TESTARGS`.
8851 * Added new command tests (`Tests.Command`), using small text files
8852 in `test/command/`. Any files added in this directory will be treated
8853 as shell tests (see smart.md for an example). This makes it very easy
8854 to add regression tests etc.
8856 * Test fixes so we can find data files. In old tests & command tests,
8857 we now set the environment variable `pandoc_datadir`. In lua tests,
8858 we set the datadir explicitly.
8860 * Refactored `compareOutput` in docx writer test.
8862 * Consolidated some common functions in `Tests.Helper`.
8864 * Small change to unbalanced bracket test to speed up test suite.
8866 * Speed up Native writer quickcheck tests.
8868 * Use tasty for tests rather than test-framework.
8870 * Add simple Emacs mode to help with Pandoc templates editing.
8871 (Václav Haisman, #3889). `tools/pandoc-template-mode.el`
8874## pandoc 1.19.2.4 (2017-09-10)
8876 * Add dependencies on texmath and skylighting to the executable.
8877 This is needed for dependency version numbers to be available,
8880## pandoc 1.19.2.3 (2017-09-09)
8882 * Add CPP to Setup.hs so it works with Cabal >= 2 and < 2.
8884## pandoc 1.19.2.2 (2017-09-08)
8886 * Fix build with GHC 8.2.1 (#3876, Peter Simons). Setup.hs does not
8887 compile with Cabal 2.x, so we require an earlier version via
8888 setup-depends. The following packages need newer versions with
8889 GHC 8.2.1 and had their constraints relaxed accordingly:
8890 executable-path, process, syb, and time.
8892## pandoc 1.19.2.1 (2017-01-31)
8894 * Require skylighting >= 0.1.1.4.
8895 * Adjust test output for skylighting version.
8896 * Relax upper bounds on blaze-html and blaze-markup.
8898## pandoc 1.19.2 (2017-01-29)
8900 * Use skylighting library instead of highlighting-kate for syntax
8901 highlighting. Skylighting is faster and more accurate (#3363).
8902 Later we'll be able to add features like warning messages, dynamic
8903 loading of xml syntax definitions, and dynamic loading of themes.
8905 * Added a new highlight style, `breezeDark`.
8907 * Text.Pandoc.Highlighting: Update list of `listings` languages (#3374).
8908 This allows more languages to be used when using the `--listings`
8911 * OpenDocument writer:
8913 + Small refactoring. Removed separate 'parent' parameter in paraStyle.
8914 + Don't profilerate text styles unnecessarily (#3371).
8915 This change makes the writer create only as many temporary
8916 text styles as are absolutely necessary. It also consolidates
8917 adjacent nodes with the same style.
8919 * Org reader (Albert Krewinkel):
8921 + Allow short hand for single-line raw blocks (Albert Krewinkel,
8922 #3366). Single-line raw blocks can be given via `#+FORMAT: raw line`,
8923 where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
8924 + Accept org-ref citations followed by commas (Albert Krewinkel).
8925 Bugfix for an issue which, whenever the citation was immediately
8926 followed by a comma, prevented correct parsing of org-ref citations.
8927 + Ensure emphasis markup can be nested. Nested emphasis markup (e.g.
8928 `/*strong and emphasized*/`) was interpreted incorrectly in that the
8929 inner markup was not recognized.
8930 + Remove pipe char irking the haddock coverage tool (Albert Krewinkel).
8932 * Docx reader: Empty header should be list of lists (Jesse Rosenthal).
8933 In the past, the docx reader wrote an empty header as an empty list. It
8934 should have the same width as a row (and be filled with empty cells).
8938 + Improved handling of display math (#3362). Sometimes display math is
8939 indented with more than one colon. Previously we handled these cases
8940 badly, generating definition lists and missing the math.
8941 + Fix quotation mark parsing (#3336, tgkokk). Change MediaWiki reader's
8942 behavior when the smart option is parsed to match other readers'
8947 + Fixed `-f markdown_github-hard_line_breaks+escaped_line_breaks`
8948 (#3341). Previously this did not properly enable escaped line breaks.
8949 + Disallow space between inline code and attributes (#3326, #3323,
8952 * DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330, Mauro Bieg).
8954 * Added some test cases for ODT reader (#3306, #3308, Hubert Plociniczak).
8956 * LaTeX writer: allow tables with empty cells to count as "plain."
8957 This addresses a problem of too-wide tables when empty cells
8958 are used. Thanks to Joost Kremers for reporting the issue.
8960 * Org writer: prefix footnote numbers with `fn:` (Albert Krewinkel).
8961 Unprefixed numbers where used by older org-mode versions, but are no
8964 * HTML writer: don't process pars with empty RawInline, (#1040, #3327,
8967 * Markdown writer: Fix display math with `--webtex` (#3298).
8969 * Fix sample.lua so it properly handles raw blocks/inlines (#3358,
8974 + default.latex: Moved geometry after hyperref (Václav Haisman).
8975 Otherwise PDF sizes can be wrong in some circumstances.
8976 + Copied a few changes from default.latex to default.beamer
8978 + default.latex, default.beamer: Changed position of `\VerbatimNotes`
8979 and `fancyvrb`. This fixes hyperlinks on footnotes in documents
8980 that contain verbatim in notes (#3361). (Note: the beamer template
8981 was updated to match the LaTeX template, but at this point verbatim
8982 in notes seems not to work in beamer.)
8983 + default.latex: Allow passing `microtypeoptions` to microtype
8985 + default.latex: Add hyphen option to url package.
8986 + default.docbook5: Fix namespace declarations (Mauro Bieg).
8988 * Moved `make_osx_package.sh` to `osx/` directory.
8990 * Travis continuous integration:
8992 + Fix false positives with dist build.
8993 + Speed improvements (Kolen Cheung, #3304, #3357).
8997 + Clarify that blank space is needed around footnotes (#3352).
8998 + Fixed typo (#3351, Alexey Rogechev).
8999 + Note that `--wrap=auto` does not work in HTML output.
9000 + Default `--columns` width is 72, not 80.
9001 + Fixed broken links (#3316, Kolen Cheung).
9002 + Document usage of `@*` in nocite section (#3333, John Muccigrosso).
9006 + Indent code so it's properly formatted (#3335, Bheesham Persaud).
9007 + Added instructions for extracting binary from OSX, Windows packages.
9009 * CONTRIBUTING.md: Describe labels currently used in issue tracker
9010 (Albert Krewinkel). The labels have changed over time, the list of
9011 labels is updated to reflect the current set of labels used in the
9014 * Rearrange and extend badges in README (Albert Krewinkel, #3354)
9016 * Bumped version bounds for dependencies.
9019## pandoc 1.19.1 (2016-12-10)
9021 * Set `PANDOC_VERSION` environment variable for filters (#2640).
9022 This allows filters to check the pandoc version that produced
9023 the JSON they are receiving.
9025 * Docx reader: Ensure one-row tables don't have header (#3285,
9026 Jesse Rosenthal). Tables in MS Word are set by default to have
9027 special first-row formatting, which pandoc uses to determine whether
9028 or not they have a header. This means that one-row tables will, by
9029 default, have only a header -- which we imagine is not what people
9030 want. This change ensures that a one-row table is not understood to
9031 be a header only. Note that this means that it is impossible to
9032 produce a header-only table from docx, even though it is legal
9033 pandoc. But we believe that in nearly all cases, it will be an
9034 accidental (and unwelcome) result
9038 + Fixed some bad regressions in HTML table parser (#3280).
9039 This regression leads to the introduction of empty rows
9040 in some circumstances.
9041 + Understand `style=width:` as well as `width` in `col` (#3286).
9045 + Print warnings when keys, substitition, notes not found.
9046 Previously the parsers failed and we got raw text. Now we get a
9047 link with an empty URL, or empty inlines in the case of a note or
9050 + Fix hyperlink aliases (#3283).
9052 * Man writer: Ensure that periods are escaped at beginning of line
9055 * LaTeX writer: Fix unnumbered headers when used with `--top-level`
9056 (#3272, Albert Krewinkel). Fix interaction of top-level
9057 divisions `part` or `chapter` with unnumbered headers when
9058 emitting LaTeX. Headers are ensured to be written using
9059 stared commands (like `\subsection*{}`).
9061 * LaTeX template: use comma not semicolon to separate keywords for
9062 `pdfkeywords`. Thanks to Wandmalfarbe.
9064 * Markdown writer: Fixed incorrect word wrapping (#3277).
9065 Previously pandoc would sometimes wrap lines too early due to
9068 * Text.Pandoc.Pretty: Added `afterBreak` [API change]. This makes it
9069 possible to insert escape codes for content that needs escaping at the
9070 beginning of a line.
9072 * Removed old MathMLInHTML.js from 2004, which should no longer
9073 be needed for MathML with modern browsers.
9075 * Fixed tests with dynamic linking (#2709).
9077 * Makefile: Use stack instead of cabal for targets. This is just
9078 a convenience for developers.
9080 * Fixed bash completion of filenames with space (#2749).
9082 * MANUAL: improved documentation on how to create a custom
9085 * Fix minor spelling typos in the manual (#3273, Anthony Geoghegan)
9087## pandoc 1.19 (2016-12-01)
9089 * Changed resolution of filter paths.
9091 + We now first treat the argument of `--filter` as a full (absolute
9092 or relative) path, looking for a program there. If it's found, we
9094 + If not, and if it is a simple program name or a relative path, we
9095 try resolving it relative to `$DATADIR/filters`.
9096 + If this fails, then we treat it as a program name and look in the
9098 + Removed a hardcoded '/' that may have caused problems with
9101 Previously if you did `--filter foo` and you had `foo` in your path and
9102 also an executable `foo` in your working directory, the one in the path
9103 would be used. Now the one in the working directory is used.
9105 In addition, when you do `--filter foo/bar.hs`, pandoc will now find a
9106 filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a
9107 `foo/bar.hs` relative to the working directory.
9109 * Allow `file://` URIs as arguments (#3196). Also improved default reader
9110 format detection. Previously with a URI ending in .md or .markdown,
9111 pandoc would assume HTML input. Now it treats these as markdown.
9113 * Allow to overwrite top-level division type heuristics (#3258,
9114 Albert Krewinkel). Pandoc uses heuristics to determine the most
9115 reasonable top-level division type when emitting LaTeX or
9116 Docbook markup. It is now possible to overwrite this implicitly set
9117 top-level division via the `top-level-division` command line parameter.
9119 * Text.Pandoc.Options \[API changes\]:
9121 + Removed `writerStandalone` field in `WriterOptions`, made
9122 `writerTemplate` a `Maybe` value. Previously setting
9123 `writerStandalone = True` did nothing unless a template was provided
9124 in writerTemplate. Now a fragment will be generated if
9125 `writerTemplate` is `Nothing`; otherwise, the specified template
9126 will be used and standalone output generated.
9127 + `Division` has been renamed `TopLevelDivision` (#3197). The
9128 `Section`, `Chapter`, and `Part` constructors were renamed to
9129 `TopLevelSection`, `TopLevelChapter`, and
9130 `TopLevelPart`, respectively. An additional `TopLevelDefault`
9131 constructor was added, which is now also the new default value of
9132 the `writerTopLevelDivision` field in `WriterOptions`.
9134 * Improved error if they give wrong arg to `--top-level-division`.
9136 * Use new module from texmath to lookup MS font codepoints in Docx reader.
9137 Removed unexported module Text.Pandoc.Readers.Docx.Fonts. Its code now
9138 lives in texmath (0.9).
9140 * DocBook reader: Fixed xref lookup (#3243). It previously only worked
9141 when the qnames lacked the docbook namespace URI.
9145 + Improved table parsing (#3027). We now check explicitly for non-1
9146 rowspan or colspan attributes, and fail when we encounter them.
9147 Previously we checked that each row had the same number of cells,
9148 but that could be true even with rowspans/colspans. And there are
9149 cases where it isn't true in tables that we can handle fine -- e.g.
9150 when a tr element is empty. So now we just pad rows with empty cells
9152 + Treat `<math>` as MathML by default unless something else is
9153 explicitly specified in xmlns. Provided it parses as MathML,
9154 of course. Also fixed default which should be to inline math if no
9155 display attribute is used.
9156 + Only treat "a" element as link if it has href (#3226). Otherwise
9159 * Docx reader (Jesse Rosenthal):
9161 + Add a placeholder value for CHART. We wrap `[CHART]` in a
9162 `<span class="chart">`. Note that it maps to inlines because, in
9163 docx, anything in a drawing tag can be part of a larger paragraph.
9164 + Be more specific in parsing images We not only want `w:drawing`,
9165 because that could also include charts. Now we specify
9166 `w:drawing/pic:pic`. This shouldn't change behavior at all, but it's
9167 a first step toward allowing other sorts of drawing data as well.
9168 + Abstract out function to avoid code repetition.
9169 + Update tests for img title and alt (#3204).
9170 + Handle Alt text and titles in images. We use the "description" field
9171 as alt text and the "title" field as title. These can be accessed
9172 through the "Format Picture" dialog in Word.
9173 + Docx reader utils: handle empty namespace in `elemName`. Previously,
9174 if given an empty namespace `(elemName ns "" "foo")` `elemName`
9175 would output a QName with a `Just ""` namespace. This is never what
9176 we want. Now we output a `Nothing`. If someone *does* want a
9177 `Just ""` in the namespace, they can enter the QName
9180 * ODT reader/writer:
9182 + Inline code when text has a special style (Hubert Plociniczak). When
9183 a piece of text has a text `Source_Text` then we assume that this is
9184 a piece of the document that represents a code that needs to
9185 be inlined. Adapted the writer to also reflect that change.
9186 Previously it was just writing a 'preformatted' text using a
9187 non-distinguishable font style. Code blocks are still not recognized
9188 by the ODT reader. That's a separate issue.
9189 + Infer table's caption from the paragraph (#3224,
9190 Hubert Plociniczak). ODT's reader always put empty captions for the
9191 parsed tables. This commit
9193 1. checks paragraphs that follow the table definition
9194 2. treats specially a paragraph with a style named 'Table'
9195 3. does some postprocessing of the paragraphs that combines tables
9196 followed immediately by captions
9198 The ODT writer used the `TableCaption` style for the caption
9199 paragraph. This commit follows the OpenOffice approach which allows
9200 for appending captions to table but uses a built-in style named
9201 `Table` instead of `TableCaption`. Users of a custom `reference.odt`
9202 should change the style's name from `TableCaption` to `Table`.
9204 * ODT reader: Infer tables' header props from rows (#3199,
9205 Hubert Plociniczak). ODT reader simply provided an empty header list
9206 which meant that the contents of the whole table, even if not empty, was
9207 simply ignored. While we still do not infer headers we at least have to
9208 provide default properties of columns.
9212 + Allow reference link labels starting with `@...` if `citations`
9213 extension disabled (#3209). Example: in
9217 `link text` isn't hyperlinked because `[@a]` is parsed as
9218 a citation. Previously this happened whether or not the `citations`
9219 extension was enabled. Now it happens only if the `citations`
9220 extension is enabled.
9221 + Allow alignments to be specified in Markdown grid tables. For
9224 +-------+---------------+--------------------+
9225 | Right | Left | Centered |
9226 +=========:+:=================+:=============:+
9227 | Bananas | $1.34 | built-in wrapper |
9228 +-------+---------------+--------------------+
9230 + Allow Small Caps elements to be created using bracketed spans (as
9231 they already can be using HTML-syntax spans) (#3191, Kolen Cheung).
9235 + Don't treat `\vspace` and `\hspace` as block commands (#3256).
9236 Fixed an error which came up, for example, with `\vspace` inside
9237 a caption. (Captions expect inlines.)
9238 + Improved table handling. We can now parse all of the tables emitted
9239 by pandoc in our tests. The only thing we don't get yet are
9240 alignments and column widths in more complex tables. See #2669.
9241 + Limited support for minipage.
9242 + Allow for `[]`s inside LaTeX optional args. Fixes cases like:
9243 + Handle BVerbatim from fancyvrb (#3203).
9244 + Handle hungarumlaut (#3201).
9245 + Allow beamer-style `<...>` options in raw LaTeX (also in Markdown)
9246 (#3184). This allows use of things like `\only<2,3>{my content}` in
9247 Markdown that is going to be converted to beamer.
9249 * Use pre-wrap for code in dzslides template (Nicolas Porcel). Otherwise
9250 overly long code will appear on every slide.
9252 * Org reader (Albert Krewinkel):
9254 + Respect column width settings (#3246). Table column properties can
9255 optionally specify a column's width with which it is displayed in
9256 the buffer. Some exporters, notably the ODT exporter in org-mode
9257 v9.0, use these values to calculate relative column widths. The org
9258 reader now implements the same behavior. Note that the org-mode
9259 LaTeX and HTML exporters in Emacs don't support this feature yet,
9260 which should be kept in mind by users who use the column
9262 + Allow HTML attribs on non-figure images (#3222). Images which are
9263 the only element in a paragraph can still be given HTML attributes,
9264 even if the image does not have a caption and is hence not a figure.
9265 The following will add set the `width` attribute of the image to
9268 +ATTR\_HTML: :width 50%
9269 =======================
9271 \[\[file:image.jpg\]\]
9273 + Support `ATTR_HTML` for special blocks (#3182). Special
9274 blocks (i.e. blocks with unrecognized names) can be prefixed with an
9275 `ATTR_HTML` block attribute. The attributes defined in that
9276 meta-directive are added to the `Div` which is used to represent the
9278 + Support the `todo` export option. The `todo` export option allows to
9279 toggle the inclusion of TODO keywords in the output. Setting this to
9280 `nil` causes TODO keywords to be dropped from headlines. The default
9281 is to include the keywords.
9282 + Add support for todo-markers. Headlines can have optional
9283 todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`,
9284 or `#+TYP_TODO` meta directive. Multiple such directives can be
9285 given, each adding a new set of recognized todo-markers. If no
9286 custom todo-markers are defined, the default `TODO` and `DONE`
9287 markers are used. Todo-markers are conceptually separate from
9288 headline text and are hence excluded when autogenerating
9289 headline IDs. The markers are rendered as spans and labelled with
9290 two classes: One class is the markers name, the other signals the
9291 todo-state of the marker (either `todo` or `done`).
9295 + Use `\autocites*` when "suppress-author" citation used.
9296 + Ensure that simple tables have simple cells (#2666). If cells
9297 contain more than a single Plain or Para, then we need to set
9298 nonzero widths and put contents into minipages.
9299 + Remove invalid inlines in sections (#3218, Hubert Plociniczak).
9303 + Fix calculation of column widths for aligned multiline tables
9304 (#1911, Björn Peemöller). This also fixes excessive CPU and memory
9305 usage for tables when `--columns` is set in such a way that cells
9306 must be very tiny. Now cells are guaranteed to be big enough so that
9307 single words don't need to line break, even if this pushes the line
9308 length above the column width.
9309 + Use bracketed form for native spans when `bracketed_spans`
9311 + Fixed inconsistent spacing issue (#3232). Previously a tight bullet
9312 sublist got rendered with a blank line after, while a tight ordered
9313 sublist did not. Now we don't get the blank line in either case.
9314 + Fix escaping of spaces in super/subscript (#3225). Previously two
9315 backslashes were inserted, which gave a literal backslash.
9316 + Adjust widths in Markdown grid tables so that they match
9321 + Give full detail when there are errors converting tex math.
9322 + Handle title text in images (Jesse Rosenthal). We already handled
9323 alt text. This just puts the image "title" into the docx
9325 + Fixed XML markup for empty cells (#3238). Previously the Compact
9326 style wasn't being applied properly to empty cells.
9330 + Updated `renderHtml` import from blaze-html.
9332 * Text.Pandoc.Pretty:
9334 + Fixed some bugs that caused blank lines in tables (#3251). The bugs
9335 caused spurious blank lines in grid tables when we had things like
9336 `blankline $$ blankline`.
9337 + Add exported function `minOffet` \[API change\] (Björn Peemöller).
9338 + Added error message for illegal call to `block` (Björn Peemöller).
9340 * Text.Pandoc.Shared:
9342 + Put `warn` in MonadIO.
9343 + `fetchItem`: Better handling of protocol-relative URL (#2635). If
9344 URL starts with `//` and there is no "base URL" (as there would be
9345 if a URL were used on the command line), then default to http:.
9347 * Export Text.Pandoc.getDefaultExtensions \[API change\] (#3178).
9349 * In --version, trap error in `getAppUserDataDirectory` (#3241). This
9350 fixes a crash with `pandoc --version` on unusual systems with no real
9351 user (e.g. SQL Server 2016).
9353 * Added weigh-pandoc for memory usage diagnostics (#3169).
9355 * Use correct mime types for woff and woff2 (#3228).
9357 * Remove make\_travis\_yml.hs (#3235, Kolen Cheung).
9359 * changelog: Moved an item that was misplaced in the 1.17.2 section to the
9360 1.18 section where it belongs.
9362 * CONTRIBUTING.md: minor change in wording and punctuation (#3252,
9365 * Further revisions to manual for `--version` changes (#3244).
9369## pandoc 1.18 (2016-10-26)
9371 * Added `--list-input-formats`, `--list-output-formats`,
9372 `--list-extensions`, `--list-highlight-languages`, and
9373 `--list-highlight-styles` (#3173). Removed list of highlighting
9374 languages from `--version` output. Removed list of input and output
9375 formats from default `--help` output.
9377 * Added `--reference-location=block|section|document` option
9378 (Jesse Rosenthal). This determines whether Markdown link references
9379 and footnotes are placed at the end of the document, the end of the
9380 section, or the end of the top-level block.
9382 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
9383 This determines what a level-1 header corresponds to in LaTeX,
9384 ConTeXt, DocBook, and TEI output. The default is `section`.
9385 The `--chapters` option has been deprecated in favor of
9386 `--top-level-division=chapter`.
9388 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
9389 is now used in parsing RST and Markdown line blocks, DocBook
9390 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
9391 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
9392 are handled specially in the following output formats: AsciiDoc
9393 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
9394 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
9395 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
9396 other output formats, a paragraph with hard linebreaks is emitted.
9398 * Allow binary formats to be written to stdout (but not to tty) (#2677).
9399 Only works on posix, since we use the unix library to check whether
9400 output is to tty. On Windows, pandoc works as before and always requires
9401 an output file parameter for binary formats.
9403 * Changed JSON output format (Jesse Rosenthal). Previously we used
9404 generically generated JSON, but this was subject to change depending
9405 on the version of aeson pandoc was compiled with. To ensure stability,
9406 we switched to using manually written ToJSON and FromJSON
9407 instances, and encoding the API version. **Note:** pandoc filter
9408 libraries will need to be revised to handle the format change.
9409 Here is a summary of the essential changes:
9411 + The toplevel JSON format is now `{"pandoc-api-version" :
9412 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
9413 instead of `[{"unMeta": META}, [BLOCKS]]`.
9414 Decoding fails if the major and minor version numbers don't
9416 + Leaf nodes no longer have an empty array for their "c" value.
9417 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
9418 rather than `{"t":"Space","c":[]}` as before.
9420 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
9421 module to pandoc-types (Jesse Rosenthal). This makes it easier
9422 to use QuickCheck with pandoc types outside of pandoc itself.
9424 * Add `bracketed_spans` Markdown extension, enabled by default
9425 in pandoc `markdown`. This allows you to create a native span
9426 using this syntax: `[Here is my span]{#id .class key="val"}`.
9428 * Added `angle_brackets_escapable` Markdown extension (#2846).
9429 This is needed because github flavored Markdown has a slightly
9430 different set of escapable symbols than original Markdown;
9431 it includes angle brackets.
9433 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
9435 * Print highlighting-kate version in `--version`.
9437 * `Text.Pandoc.Options`:
9439 + `Extension` has new constructors `Ext_brackted_spans` and
9440 `Ext_angle_brackets_escapable` [API change].
9441 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
9442 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
9445 * `--filter`: we now check `$DATADIR/filters` for filters before
9446 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
9447 Voß for the idea). Filters placed in this directory need not
9448 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
9449 or `.rb`, pandoc will run the right interpreter.
9451 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
9452 default (Kolen Cheung).
9454 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
9456 * Execute .js filters with node (Jakob Voß).
9460 + Support `bc..` extended code blocks (#3037). Also, remove trailing
9461 newline in code blocks (consistently with Markdown reader).
9462 + Improve table parsing. We now handle cell and row attributes, mostly
9463 by skipping them. However, alignments are now handled properly.
9464 Since in pandoc alignment is per-column, not per-cell, we
9465 try to devine column alignments from cell alignments.
9466 Table captions are also now parsed, and textile indicators
9467 for thead and tfoot no longer cause parse failure. (However,
9468 a row designated as tfoot will just be a regular row in pandoc.)
9469 + Improve definition list parsing. We now allow multiple terms
9470 (which we concatenate with linebreaks). An exponential parsing
9471 bug (#3020) is also fixed.
9472 + Disallow empty URL in explicit link (#3036).
9476 + Use Div instead of BlockQuote for admonitions (#3031).
9477 The Div has class `admonition` and (if relevant) one of the
9478 following: `attention`, `caution`, `danger`, `error`, `hint`,
9479 `important`, `note`, `tip`, `warning`. **Note:** This will change
9480 the rendering of some RST documents! The word ("Warning", "Attention",
9481 etc.) is no longer added; that must be done with CSS or a filter.
9482 + A Div is now used for `sidebar` as well.
9483 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
9484 space before a footnote marker. We discard those spaces so that footnotes
9485 will be adjacent to the text that comes before it. This is in line with
9486 what rst2latex does.
9487 + Allow empty lines when parsing line blocks (Albert Krewinkel).
9491 + Allow empty lines when parsing line blocks (Albert Krewinkel).
9492 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
9496 + More robust parsing of unknown environments (#3026).
9497 We no longer fail on things like `^` inside options for tikz.
9498 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
9499 Some custom environments give these a meaning, so we should try not to
9500 fall over when we encounter them.
9501 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
9505 + Fix for unquoted attribute values in mediawiki tables (#3053).
9506 Previously an unquoted attribute value in a table row
9507 could cause parsing problems.
9508 + Improved treatment of verbatim constructions (#3055).
9509 Previously these yielded strings of alternating Code and Space
9510 elements; we now incorporate the spaces into the Code. Emphasis
9511 etc. is still possible inside these.
9512 + Properly interpret XML tags in pre environments (#3042). They are meant
9513 to be interpreted as literal text.
9515 * EPUB reader: don't add root path to data: URIs (#3150).
9516 Thanks to @lep for the bug report and patch.
9518 * Org reader (Albert Krewinkel):
9520 + Preserve indentation of verse lines (#3064). Leading spaces in verse
9521 lines are converted to non-breaking spaces, so indentation is preserved.
9522 + Ensure image sources are proper links. Image sources as those in plain
9523 images, image links, or figures, must be proper URIs or relative file
9524 paths to be recognized as images. This restriction is now enforced
9525 for all image sources. This also fixes the reader's usage of uncleaned
9526 image sources, leading to `file:` prefixes not being deleted from
9527 figure images. Thanks to @bsag for noticing this bug.
9528 + Trim verse lines properly (Albert Krewinkel).
9529 + Extract meta parsing code to module. Parsing of meta-data is well
9530 separable from other block parsing tasks. Moving into new module to
9531 get small files and clearly arranged code.
9532 + Read markup only for special meta keys. Most meta-keys should be read
9533 as normal string values, only a few are interpreted as marked-up text.
9534 + Allow multiple, comma-separated authors. Multiple authors can be
9535 specified in the `#+AUTHOR` meta line if they are given as a
9536 comma-separated list.
9537 + Give precedence to later meta lines. The last meta-line of any given
9538 type is the significant line. Previously the value of the first line
9539 was kept, even if more lines of the same type were encountered.
9540 + Read LaTeX_header as header-includes. LaTeX-specific header commands
9541 can be defined in `#+LaTeX_header` lines. They are parsed as
9542 format-specific inlines to ensure that they will only show up in LaTeX
9544 + Set documentclass meta from LaTeX_class.
9545 + Set classoption meta from LaTeX_class_options.
9546 + Read HTML_head as header-includes. HTML-specific head content can be
9547 defined in `#+HTML_head` lines. They are parsed as format-specific
9548 inlines to ensure that they will only show up in HTML output.
9549 + Respect `author` export option. The `author` option controls whether
9550 the author should be included in the final markup. Setting
9551 `#+OPTIONS: author:nil` will drop the author from the final meta-data
9553 + Respect `email` export option. The `email` option controls whether the
9554 email meta-field should be included in the final markup. Setting
9555 `#+OPTIONS: email:nil` will drop the email field from the final
9557 + Respect `creator` export option. The `creator` option controls whether
9558 the creator meta-field should be included in the final markup. Setting
9559 `#+OPTIONS: creator:nil` will drop the creator field from the final
9560 meta-data output. Org-mode recognizes the special value `comment` for
9561 this field, causing the creator to be included in a comment. This is
9562 difficult to translate to Pandoc internals and is hence interpreted the
9563 same as other truish values (i.e. the meta field is kept if it's
9565 + Respect unnumbered header property (#3095). Sections the `unnumbered`
9566 property should, as the name implies, be excluded from the automatic
9567 numbering of section provided by some output formats. The Pandoc
9568 convention for this is to add an "unnumbered" class to the header. The
9569 reader treats properties as key-value pairs per default, so a special
9570 case is added to translate the above property to a class instead.
9571 + Allow figure with empty caption (Albert Krewinkel, #3161).
9572 A `#+CAPTION` attribute before an image is enough to turn an image into
9573 a figure. This wasn't the case because the `parseFromString` function,
9574 which processes the caption value, would fail on empty values. Adding
9575 a newline character to the caption value fixes this.
9579 + Use XML convenience functions (Jesse Rosenthal).
9580 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
9581 the code a lot cleaner than the original XML.Light functions, but they
9582 had been used inconsistently. This puts them in wherever applicable.
9583 + Handle anchor spans with content in headers. Previously, we would only
9584 be able to figure out internal links to a header in a docx if the
9585 anchor span was empty. We change that to read the inlines out of the
9586 first anchor span in a header.
9587 + Let headers use existing id. Previously we always generated an id for
9588 headers (since they wouldn't bring one from Docx). Now we let it use an
9589 existing one if possible. This should allow us to recurs through anchor
9591 + Use all anchor spans for header ids. Previously we only used the first
9592 anchor span to affect header ids. This allows us to use all the anchor
9593 spans in a header, whether they're nested or not (#3088).
9594 + Test for nested anchor spans in header. This ensures that anchor spans
9595 in header with content (or with other anchor spans inside) will resolve
9596 to links to a header id properly.
9598 * ODT reader (Hubert Plociniczak)
9600 + Include list's starting value. Previously the starting value of
9601 the lists' items has been hardcoded to 1. In reality ODT's list
9602 style definition can provide a new starting value in one of its
9604 + Infer caption from the text following the image.
9605 Frame can contain other frames with the text boxes.
9606 + Add `fig:` to title for Image with a caption (as expected
9607 by pandoc's writers).
9608 + Basic support for images in ODT documents.
9609 + Don't duplicate text for anchors (#3143). When creating an anchor
9610 element we were adding its representation as well as the original
9611 content, leading to text duplication.
9615 + Include an anchor element when a div or span has an id (#3102).
9616 Note that DocBook does not have a class attribute, but at least this
9617 provides an anchor for internal links.
9621 + Don't use * for unnumbered paragraph, subparagraph. The starred
9622 variants don't exist. This helps with part of #3058...it gets rid of
9623 the spurious `*`s. But we still have numbers on the 4th and 5th level
9625 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
9626 Otherwise they can cause unintended ligatures like `` ?` ``.
9627 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
9628 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
9629 This allows figure placement defaults to be changed by the user
9632 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
9633 TEI doesn't have `<book>` elements but only generic `<divN>` division
9634 elements. Checking the template for a trailing `</book>` is nonsensical.
9636 * MediaWiki writer: transform filename with underscores in images (#3052).
9637 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
9638 for internal links, but it also needs to happen for images.
9640 * ICML writer: replace partial function (!!) in table handling (#3175,
9643 * Man writer: allow section numbers that are not a single digit (#3089).
9645 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
9646 (#3068). In AsciiDoc, you must use a special form of emphasis
9647 (double `__`) for intraword emphasis. Pandoc was previously using
9648 this more than necessary.
9650 * EPUB writer: use stringify instead of plain writer for metadata
9651 (#3066). This means that underscores won't be used for emphasis,
9652 or CAPS for bold. The metadata fields will just have unadorned
9657 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
9658 with a `custom-style` key in the attributes will apply the corresponding
9659 key to the contained blocks or inlines.
9660 + Add ReaderT env to the docx writer (Jesse Rosenthal).
9661 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
9662 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
9663 on the command line. For finer-grained control, you can set
9664 the `dir` attribute in Div or Span elements.
9666 * Org writer (Albert Krewinkel):
9668 + Remove blank line after figure caption. Org-mode only treats an image
9669 as a figure if it is directly preceded by a caption.
9670 + Ensure blank line after figure. An Org-mode figure should be surrounded
9671 by blank lines. The figure would be recognized regardless, but images
9672 in the following line would unintentionally be treated as figures as
9674 + Ensure link targets are paths or URLs. Org-mode treats links as
9675 document internal searches unless the link target looks like a URL or
9676 file path, either relative or absolute. This change ensures that this
9678 + Translate language identifiers. Pandoc and Org-mode use different
9679 programming language identifiers. An additional translation between
9680 those identifiers is added to avoid unexpected behavior. This fixes a
9681 problem where language specific source code would sometimes be output
9683 + Drop space before footnote markers (Albert Krewinkel, #3162).
9684 The writer no longer adds an extra space before footnote markers.
9688 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
9689 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
9691 + Check for the `raw_html` extension before emitting a raw HTML block.
9692 + Abstract out note/ref function (Jesse Rosenthal).
9693 + Add ReaderT monad for environment variables (Jesse Rosenthal).
9695 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
9696 subtitle, author, date (#3119). Note that, as a result of this change,
9697 authors may need to update CSS.
9699 * revealjs template: Added `notes-server` option
9700 (jgm/pandoc-templates#212, Yoan Blanc).
9704 + Restore whitespace between paragraphs. This was
9705 a regression in the last release (jgm/pandoc-templates#207).
9706 + Added `themeoptions` variable (Carsten Gips).
9707 + Added `beamerarticle` variable. This causes the `beamerarticle`
9708 package to be loaded in beamer, to produce an article from beamer
9709 slides. (Carsten Gips)
9710 + Added support for `fontfamilies` structured variable
9712 + Added hypersetup options (Jake Zimmerman).
9716 + Added dummy definition for `\institute`.
9717 This isn't a standard command, and we want to avoid a crash when
9718 `institute` is used with the default template.
9719 + Define default figure placement (Václav Haisman), since pandoc
9720 no longer includes `[htbp]` for figures. Users with custom templates
9721 will want to add this. See #3103.
9722 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
9725 * Moved template compiling/rendering code to a separate library.
9726 `doctemplates`. This allows the pandoc templating system to be
9729 * Text.Pandoc.Error: Fix out of index error in `handleError`
9730 (Matthew Pickering). The fix is to not try to show the exact line when
9731 it would cause an out-of-bounds error as a result of included files.
9733 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
9735 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
9736 addresses. Technically `**@user` is a valid email address, but if we
9737 allow things like this, we get bad results in markdown flavors
9738 that autolink raw email addresses (see #2940). So we exclude a few
9739 valid email addresses in order to avoid these more common bad cases.
9741 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
9742 emit the alt text, emphasized. This accords with what the ODT writer
9743 currently does. The user will still get a warning about a nonexistent
9746 * Fix example in API documentation (#3176, Thomas Weißschuh).
9748 * Tell where to get tarball in INSTALL (#3062).
9750 * Rename README to MANUAL.txt and add GitHub-friendly README.md
9751 (Albert Krewinkel, Kolen Cheung).
9753 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
9757 + Put note on structured vars in separate paragraph (#2148, Albert
9758 Krewinkel). Make it clearer that structured author variables require a
9760 + Note that `--katex` works best with `html5` (#3077).
9761 + Fix the LaTeX and EPUB links in manual (Morton Fox).
9762 + Document `biblio-title` variable.
9764 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
9766 * Update KaTeX to v0.6.0 (Kolen Cheung).
9768 * Allow latest dependencies.
9770 * Use texmath 0.8.6.6 (#3040).
9772 * Allow http-client 0.4.30, which is the version in stackage lts.
9773 Previously we required 0.5.
9774 Remove CPP conditionals for earlier versions.
9776 * Remove support for GHC < 7.8 (Jesse Rosenthal).
9778 + Remove Compat.Monoid.
9779 + Remove an inline monad compatibility macro.
9780 + Remove Text.Pandoc.Compat.Except.
9781 + Remove directory compat.
9782 + Change constraint on mtl.
9783 + Remove unnecessary CPP condition in UTF8.
9784 + Bump base lower bound to 4.7.
9785 + Remove 7.6 build from .travis.yaml.
9786 + Bump supported ghc version in CONTRIBUTING.md.
9787 + Add note about GHC version support to INSTALL.
9788 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
9789 + Remove TagSoup compat.
9790 + Add EOL note to time compat module. Because time 1.4 is a boot library
9791 for GHC 7.8, we will support the compatibility module as long as we
9792 support 7.8. But we should be clear about when we will no longer need
9794 + Remove blaze-html CPP conditional.
9795 + Remove unnecessary CPP in custom Prelude.
9797## pandoc 1.17.2 (2016-07-17)
9799 * Added Zim Wiki writer, template and tests. `zimwiki` is now
9800 a valid output format. (Alex Ivkin)
9802 * Changed email-obfuscation default to no obfuscation (#2988).
9803 + `writerEmailObfuscation` in `defaultWriterOptions` is now
9805 + the default for the command-line `--email-obfuscation` option is
9808 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
9812 + Support arbitrary raw inlines (Albert Krewinkel).
9813 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
9814 parlance) to be included as `@@format:raw foreign format text@@`.
9815 + Improve Div handling (Albert Krewinkel). Div blocks handling is
9816 changed to make the output look more like idiomatic org mode:
9817 - Div-wrapped content is output as-is if the div's attribute is the
9819 - Div containers with an id but neither classes nor key-value pairs
9820 are unwrapped and the id is added as an anchor.
9821 - Divs with classes associated with greater block elements are
9822 wrapped in a `#+BEGIN`...`#+END` block.
9823 - The old behavior for Divs with more complex attributes is kept.
9825 * HTML writer: Better support for raw LaTeX environments (#2758).
9826 Previously we just passed all raw TeX through when MathJax
9827 was used for HTML math. This passed through too much.
9828 With this patch, only raw LaTeX environments that MathJax
9829 can handle get passed through.
9830 This patch also causes raw LaTeX environments to be treated
9831 as math, when possible, with MathML and WebTeX output.
9833 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
9834 (#2993). Markdown line breaks involve a newline, and simple and pipe
9835 tables can't contain one.
9837 * Make --webtex work with the Markdown writer (#1177).
9838 This is a convenient option for people using
9839 websites whose Markdown flavors don't provide for math.
9843 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
9844 We treat display math like block quotes, and apply FirstParagraph style
9845 to paragraphs that follow them. These can be styled as the user
9846 wishes. (But, when the user is using indentation, this allows for
9847 paragraphs to continue after display math without indentation.)
9848 + Use actual creation time as doc prop (Jesse Rosenthal).
9849 Previously, we had used the user-supplied date, if available, for Word's
9850 document creation metadata. This could lead to weird results, as in
9851 cases where the user post-dates a document (so the modification might be
9852 prior to the creation). Here we use the actual computer time to set the
9857 + Don't URI-escape image source (#2825). Usually this is a local file,
9858 and replacing spaces with `%20` ruins things.
9859 + Allow 'standout' as a beamer frame option (#3007).
9860 `## Slide title {.standout}`.
9862 * RST reader: Fixed links with no explicit link text. The link
9863 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
9864 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
9865 Closes Debian #828167 -- reported by Christian Heller.
9869 + Fixed attributes (#2984). Attributes can't be followed by
9870 a space. So, `_(class)emph_` but `_(noclass) emph_`.
9871 + Fixed exponential parsing bug (#3020).
9872 + Fix overly aggressive interpretation as images (#2998).
9873 Spaces are not allowed in the image URL in textile.
9877 + Fix `\cite` so it is a NormalCitation not AuthorInText.
9878 + Strip off double quotes around image source if present (#2825).
9879 Avoids interpreting these as part of the literal filename.
9883 + Add semicolon to list of special chars (Albert Krewinkel)
9884 Semicolons are used as special characters in citations syntax. This
9885 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
9886 suffix]`. Previously, parsing would have failed unless there was a space
9887 or other special character as the last <prefix> character.
9888 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
9889 A specification for an official Org-mode citation syntax was drafted by
9890 Richard Lawrence and enhanced with the help of others on the orgmode
9891 mailing list. Basic support for this citation style is added to the
9893 + Support arbitrary raw inlines (Albert Krewinkel).
9894 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
9895 parlance) to be included as `@@format:raw foreign format text@@`.
9896 + Remove partial functions (Albert Krewinkel, #2991).
9897 Partial functions like `head` lead to avoidable errors and should be
9898 avoided. They are replaced with total functions.
9899 + Support figure labels (Albert Krewinkel, #2496, #2999).
9900 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
9901 respective image. This allows e.g. the LaTeX to add proper `\label`
9903 + Improve tag and properties type safety (Albert Krewinkel).
9904 Specific newtype definitions are used to replace stringly typing of tags
9905 and properties. Type safety is increased while readability is improved.
9906 + Parse as headlines, convert to blocks (Albert Krewinkel).
9907 Emacs org-mode is based on outline-mode, which treats documents as trees
9908 with headlines are nodes. The reader is refactored to parse into a
9909 similar tree structure. This simplifies transformations acting on
9910 document (sub-)trees.
9911 * Refactor comment tree handling (Albert Krewinkel).
9912 Comment trees were handled after parsing, as pattern matching on lists
9913 is easier than matching on sequences. The new method of reading
9914 documents as trees allows for more elegant subtree removal.
9915 * Support archived trees export options (Albert Krewinkel).
9916 Handling of archived trees can be modified using the `arch` option.
9917 Archived trees are either dropped, exported completely, or collapsed to
9918 include just the header when the `arch` option is nil, non-nil, or
9919 `headline`, respectively.
9920 * Put export setting parser into module (Albert Krewinkel).
9921 Export option parsing is distinct enough from general block parsing to
9922 justify putting it into a separate module.
9923 * Support headline levels export setting (Albert Krewinkel).
9924 The depths of headlines can be modified using the `H` option. Deeper
9925 headlines will be converted to lists.
9926 * Replace ugly code with view pattern (Albert Krewinkel).
9927 Some less-than-smart code required a pragma switching of overlapping
9928 pattern warnings in order to compile seamlessly. Using view patterns
9929 makes the code easier to read and also doesn't require overlapping
9930 pattern checks to be disabled.
9931 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
9932 Org rules for allowed characters before or after markup chars were not
9933 checked for verbatim text. This resultet in wrong parsing outcomes of
9934 if the verbatim text contained e.g. space enclosed markup characters as
9935 part of the text (`=is_substr = True=`). Forcing the parser to update
9936 the positions of allowed/forbidden markup border characters fixes this.
9938 * LaTeX template: fix for obscure hyperref/xelatex issue.
9939 Here's a minimal case:
9941 \documentclass[]{article}
9942 \usepackage{hyperref}
9947 Without this change, this fails on the second invocation of xelatex.
9948 This affects inputs this like `# %á` with pdf output via xelatex.
9950 * trypandoc: call results 'html' instead of 'result'.
9951 This is for better compatibility with babelmark2.
9953 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
9954 MultiMarkdown was only mentioned as a supported Markdown dialect but not
9955 as a possible input or output format. A brief mention is added
9956 everywhere the other supported markdown dialects are mentioned.
9958 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
9959 Raw HTML is kept when the output format is Emacs Org mode.
9961 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
9963 * Text.Pandoc.Shared:
9965 + Introduce blocksToInlines function (Jesse Rosenthal).
9966 This is a lossy function for converting `[Block] -> [Inline]`. Its main
9967 use, at the moment, is for docx comments, which can contain arbitrary
9968 blocks (except for footnotes), but which will be converted to spans.
9969 This is, at the moment, pretty useless for everything but the basic
9970 `Para` and `Plain` comments. It can be improved, but the docx reader
9971 should probably emit a warning if the comment contains more than this.
9972 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
9973 + Add further formats for `normalizeDate` (Jesse Rosenthal).
9974 We want to avoid illegal dates -- in particular years with greater than
9975 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
9976 `%Y%m`, and finally `%Y`.
9977 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
9978 We only allow years between 1601 and 9999, inclusive. The ISO 8601
9979 actually says that years are supposed to start with 1583, but MS Word
9980 only allows 1601-9999. This should stop corrupted word files if the date
9981 is out of that range, or is parsed incorrectly.
9982 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
9983 Previously we parsed a list of dates, took the first one, and then
9984 tested its year range. That meant that if the first one failed, we
9985 returned nothing, regardless of what the others did. Now we test for
9986 sanity before running `msum` over the list of Maybe values. Anything
9987 failing the test will be Nothing, so will not be a candidate.
9991 + Add simple comment functionality. (Jesse Rosenthal).
9992 This adds simple track-changes comment parsing to the docx reader. It is
9993 turned on with `--track-changes=all`. All comments are converted to
9994 inlines, which can list some information. In the future a warning will be
9995 added for comments with formatting that seems like it will be excessively
9996 denatured. Note that comments can extend across blocks. For that reason
9997 there are two spans: `comment-start` and `comment-end`. `comment-start`
9998 will contain the comment. `comment-end` will always be empty. The two
9999 will be associated by a numeric id.
10000 + Enable warnings in top-level reader (Jesse Rosenthal).
10001 Previously we had only allowed for warnings in the parser. Now we allow
10002 for them in the `Docx.hs` as well. The warnings are simply concatenated.
10003 + Add warning for advanced comment formatting. (Jesse Rosenthal).
10004 We can't guarantee we'll convert every comment correctly, though we'll
10005 do the best we can. This warns if the comment includes something other
10006 than Para or Plain.
10007 + Add tests for warnings. (Jesse Rosenthal).
10008 + Add tests for comments (Jesse Rosenthal).
10009 We test for comments, using all track-changes options. Note that we
10010 should only output comments if `--track-changes=all`. We also test for
10011 emitting warnings if there is complicated formatting.
10013 * README: update to include track-changes comments. (Jesse Rosenthal)
10015 * Improved Windows installer - don't ignore properties set on command-line.
10016 See #2708. Needs testing to see if this resolves the issue.
10019 * Process markdown extensions on command line in L->R order (#2995).
10020 Previously they were processed, very unintuitively, in R->L
10021 order, so that `markdown-tex_math_dollars+tex_math_dollars`
10022 had `tex_math_dollars` disabled.
10024 * Added `secnumdepth` variable to LaTeX template (#2920).
10026 * Include table of contents in README.html in Windows package.
10028 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
10029 In Writers.Shared, we strip leading and trailing spaces for display
10030 math. Since SoftBreak's are treated as spaces, we should strip those
10033 * beamer, latex templates: pass biblatexoptions directly in package load.
10034 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
10036 * CPP workaround for deprecation of `parseUrl` in http-client.
10038 * Removed some redundant class constraints.
10040 * make_oxs_package.sh - use OSX env variable.
10042 * Added `winpkg` target to Makefile. This downloads the windows package
10043 from appveyor and signs it using the key.
10045 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
10046 Raw TeX is kept verbatim when the output format is Emacs Org mode.
10048 * Support math with haddock-library >= 1.4.
10050 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
10051 wouldn't accept the package.
10053 * Update library dependency versions.
10055## pandoc 1.17.1 (2016-06-04)
10057 * New output format: `docbook5` (Ivo Clarysse).
10059 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
10064 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
10065 This allows header attributes to be added to org documents in the form
10066 of `:PROPERTIES:` drawers. All available attributes are stored as
10067 key/value pairs. This reflects the way the org reader handles
10068 `:PROPERTIES:` blocks.
10069 + Add drawer capability (Carlos Sosa). For the implementation of the
10070 Drawer element in the Org Writer, we make use of a generic Block
10071 container with attributes. The presence of a `drawer` class defines
10072 that the `Div` constructor is a drawer. The first class defines the
10073 drawer name to use. The key-value list in the attributes defines
10074 the keys to add inside the Drawer. Lastly, the list of Block elements
10075 contains miscellaneous blocks elements to add inside of the Drawer.
10076 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
10077 reserved for internal use by Org-mode and should not be used.
10078 The `CUSTOM_ID` property is to be used instead, it is converted to the
10079 `ID` property for certain export format.
10083 + Ignore `--incremental` unless output format is beamer (#2843).
10084 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
10085 Allow for optional argument in square brackets.
10086 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
10087 This allows one to access the hyphenation patterns in CTAN's
10089 + Add missing languages from hyph-utf8 (Andrew Dunning).
10090 + Improve use of `\strut` with `\minipage` inside tables
10091 (Jose Luis Duran). This improves spacing in multiline
10093 + Use `{}` around options containing special chars (#2892).
10094 + Avoid lazy `foldl`.
10095 + Don't escape underscore in labels (#2921). Previously they were
10097 + brazilian -> brazil for polyglossia (#2953).
10099 * HTML writer: Ensure mathjax link is added when math appears in footnote
10100 (#2881). Previously if a document only had math in a footnote, the
10101 MathJax link would not be added.
10103 * EPUB writer: set `navpage` variable on nav page.
10104 This allows templates to treat it differently.
10108 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
10109 + Properly handle `ulink`/`link` (Ivo Clarysse).
10113 + Unescape URIs in spine (#2924).
10114 + EPUB reader: normalise link id (Mauro Bieg).
10118 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
10119 `moveTo` and `moveFrom` are track-changes tags that are used when a
10120 block of text is moved in the document. We now recognize these tags and
10121 treat them the same as `insert` and `delete`, respectively. So,
10122 `--track-changes=accept` will show the moved version, while
10123 `--track-changes=reject` will show the original version.
10124 + Tests for track-changes moving (Jesse Rosenthal).
10126 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
10127 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
10128 would error out if zip-archive failed. We change the archive extraction
10129 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
10131 * Markdown, HTML readers: be more forgiving about unescaped `&` in
10132 HTML (#2410). We are now more forgiving about parsing invalid HTML with
10133 unescaped `&` as raw HTML. (Previously any unescaped `&`
10134 would cause pandoc not to recognize the string as raw HTML.)
10138 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
10139 + Added `-s` to markdown-reader-more test.
10141 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
10142 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
10144 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
10147 * RST reader: Support `:class:` option for code block in RST reader
10150 * Org reader (all Albert Krewinkel, except where noted otherwise):
10152 + Stop padding short table rows.
10153 Emacs Org-mode doesn't add any padding to table rows. The first
10154 row (header or first body row) is used to determine the column count,
10155 no other magic is performed.
10156 + Refactor rows-to-table conversion. This refactors
10157 the codes conversing a list table lines to an org table ADT.
10158 The old code was simplified and is now slightly less ugly.
10159 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
10160 This fixes Org mode parsing of some corner cases regarding empty cells
10161 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
10162 two empty cells, but would be parsed as a single cell containing a pipe
10163 character. Empty rows where parsed as alignment rows and dropped from
10165 + Fix spacing after LaTeX-style symbols.
10166 The org-reader was dropping space after unescaped LaTeX-style symbol
10167 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
10168 instead. This seems to be because the LaTeX-reader treats the
10169 command-terminating space as part of the command. Dropping the trailing
10170 space from the symbol-command fixes this issue.
10171 + Print empty table rows. Empty table rows should not
10172 be dropped from the output, so row-height is always set to be at least 1.
10173 + Move parser state into separate module.
10174 The org reader code has become large and confusing. Extracting smaller
10175 parts into submodules should help to clean things up.
10176 + Add support for sub/superscript export options.
10177 Org-mode allows to specify export settings via `#+OPTIONS` lines.
10178 Disabling simple sub- and superscripts is one of these export options,
10179 this options is now supported.
10180 + Support special strings export option Parsing of special strings
10181 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
10183 + Support emphasized text export option. Parsing of emphasized text can
10184 be toggled using the `*` option. This influences parsing of text marked
10185 as emphasized, strong, strikeout, and underline. Parsing of inline math,
10186 code, and verbatim text is not affected by this option.
10187 + Support smart quotes export option. Reading of smart quotes can be
10188 toggled using the `'` option.
10189 + Parse but ignore export options. All known export options are parsed
10191 + Refactor block attribute handling. A parser state attribute was used
10192 to keep track of block attributes defined in meta-lines. Global state
10193 is undesirable, so block attributes are no longer saved as part of the
10194 parser state. Old functions and the respective part of the parser state
10196 + Use custom `anyLine`. Additional state changes need to be made after
10197 a newline is parsed, otherwise markup may not be recognized correctly.
10198 This fixes a bug where markup after certain block-types would not be
10200 + Add support for `ATTR_HTML` attributes (#1906).
10201 Arbitrary key-value pairs can be added to some block types using a
10202 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
10203 when exporting to HTML, but since we cannot make this distinction here,
10204 the attributes are always added. The functionality is now supported
10206 + Add `:PROPERTIES:` drawer support (#1877).
10207 Headers can have optional `:PROPERTIES:` drawers associated with them.
10208 These drawers contain key/value pairs like the header's `id`. The
10209 reader adds all listed pairs to the header's attributes; `id` and
10210 `class` attributes are handled specially to match the way `Attr` are
10211 defined. This also changes behavior of how drawers of unknown type
10212 are handled. Instead of including all unknown drawers, those are not
10213 read/exported, thereby matching current Emacs behavior.
10214 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
10215 + Respect drawer export setting. The `d` export option can be used
10216 to control which drawers are exported and which are discarded.
10217 Basic support for this option is added here.
10218 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
10219 Also fix up tab handling for leading whitespace in code blocks.
10220 + Support new syntax for export blocks. Org-mode version 9
10221 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
10222 where `<FORMAT>` is the format of the block's content, the new
10223 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
10225 + Refactor `BEGIN...END` block parsing.
10226 + Fix handling of whitespace in blocks, allowing content to be indented
10227 less then the block header.
10228 + Support org-ref style citations. The *org-ref* package is an
10229 org-mode extension commonly used to manage citations in org
10230 documents. Basic support for the `cite:citeKey` and
10231 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
10232 + Split code into separate modules, making for cleaner code and
10235 * Added `docbook5` template.
10237 * `--mathjax` improvements:
10239 + Use new CommonHTML output for MathJax (updated default MathJax URL,
10241 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
10242 This is designed for cases where the input is always TeX and maximal
10243 conformity with TeX is desired. It seems to be smaller and load faster
10244 than what we used before. See #2858.
10245 + Load the full MathJax config to maximize loading speed (KolenCheung).
10247 * Bumped upper version bounds to allow use of latest packages
10248 and compilation with ghc 8.
10250 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
10251 #2310, #2310, #2824). This fixes behavior of roots, e.g.
10252 `\sqrt[3]{x}`, and issues with sub/superscript positioning
10253 and matrix column alignment in docx.
10257 + Clarified documentation of `implicit_header_references` (#2904).
10258 + Improved documentation of `--columns` option.
10260 * Added appveyor setup, with artefacts (Jan Schulz).
10262 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
10264 * LaTeX template: support for custom font families (vladipus).
10265 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
10266 can find some other usages. Example usage in YAML metadata:
10269 - name: \cyrillicfont
10270 font: Liberation Serif
10271 - name: \cyrillicfonttt
10272 options: Scale=MatchLowercase
10275 * Create unsigned msi as build artifact in appveyor build.
10277 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
10281## pandoc 1.17.0.3 (2016-03-24)
10283 * LaTeX writer: Fixed position of label in figures (#2813).
10284 Previously the label wasn't in the right place, and `\ref`
10285 wouldn't work properly.
10286 * Added .tei test files to pandoc.cabal so they'll be included
10287 in tarball (#2811).
10288 * Updated copyright dates.
10290## pandoc 1.17.0.2 (2016-03-23)
10292 * Fixed serious regression in `htmlInBalanced`, which caused
10293 newlines to be omitted in some raw HTML blocks in Markdown
10296## pandoc 1.17.0.1 (2016-03-21)
10298 * File scope is no longer used when there are no input files (i.e.,
10299 when input comes from stdin). Previously file scope was triggered
10300 when the `json` reader was specified and input came from `stdin`,
10301 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
10302 thanks to Fedor Sheremetyev for calling the bug to our attention.)
10303 * Improved documentation of templates (#2797).
10305## pandoc 1.17 (2016-03-20)
10307 * Added `--file-scope` option (Jesse Rosenthal).
10308 By default pandoc operates on multiple files by first concatenating
10309 them (around extra line breaks) and then processing the joined file. So
10310 it only parses a multi-file document at the document scope. This has the
10311 benefit that footnotes and links can be in different files, but for
10312 some purposes it is useful to parse the individual files first
10313 and then combine their outputs (e.g. when the files use footnotes
10314 or links with the same labels). The `--file-scope` option causes
10315 pandoc to parse the files first, and then combine the parsed output,
10316 instead of combining before parsing. `--file-scope` is selected
10317 automatically for binary input files (which cannot be concatenated)
10318 and for pandoc json.
10320 * Add TEI Writer (Chris Forster) and `tei` output format.
10322 * Added a general `ByteStringReader` with warnings, used by the docx
10323 reader (API change, Jesse Rosenthal).
10325 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
10327 * Changed type of `Shared.uniqueIdent` argument from
10328 `[String]` to `Set String`. This avoids performance problems in documents
10329 with many identically named headers (API change, #2671).
10331 * Removed `tex_math_single_backslash` from `markdown_github` options
10334 * Make language extensions as well as full language names
10335 trigger syntax highlighting. For example, `py` will now work as
10336 well as `python` (jgm/highlighting-kate#83).
10338 * Added `institute` variable to latex, beamer templates (Fraser
10339 Tweedale, Josef Svenningsson).
10341 * Docx reader (Jesse Rosenthal):
10343 + Handle alternate content. Some word functions (especially graphics)
10344 give various choices for content so there can be backwards compatibility.
10345 + Don't turn numbered headers into lists.
10346 + Docx Reader: Add state to the parser, for warnings
10347 + Update feature checklist in source code.
10348 + Get rid of `Modifiable` typeclass.
10349 + Add tests for adjacent hyperlinks.
10350 + Add a "Link" modifier to `Reducible`. We want to make sure that
10351 links have their spaces removed, and are appropriately smushed
10356 + Fixed behavior of base tag (#2777).
10357 If the base path does not end with slash, the last component
10358 will be replaced. E.g. base = `http://example.com/foo`
10359 combines with `bar.html` to give `http://example.com/bar.html`.
10360 If the href begins with a slash, the whole path of the base
10361 is replaced. E.g. base = `http://example.com/foo/` combines
10362 with `/bar.html` to give `http://example.com/bar.html`.
10363 + Rewrote `htmlInBalanced`. This version avoids an exponential
10364 performance problem with `<script>` tags, and it should be faster
10365 in general (#2730).
10366 + Properly handle an empty cell in a simple table (#2718).
10367 + Handle multiple `<meta>` tags with same name. Put them in a list
10368 in the metadata so they are all preserved, rather than (as before)
10369 throwing out all but one..
10373 + Improved pipe table parsing (#2765).
10374 + Allow `+` separators in pipe table cells. We already allowed
10375 them in the header, but not in the body rows, for some reason.
10376 This gives compatibility with org-mode tables.
10377 + Don't cross line boundary parsing pipe table row.
10378 Previously an Emph element could be parsed across the newline
10379 at the end of the pipe table row.
10380 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
10381 performance (#2730).
10382 + Fixed bug with smart quotes around tex math.
10386 + Handle interior `$` characters in math (#2743). For example,
10388 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
10389 This gives better results when people write e.g. `\TeX{}` in Markdown.
10390 + Properly handle LaTeX "math" environment as inline math (#2171).
10392 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
10395 * Org reader (Albert Krewinkel):
10397 + Prefix even empty figure names with "fig:" (#2643). The
10398 convention used by pandoc for figures is to mark them by prefixing
10399 the name with `fig:`. The org reader failed to do this if a figure
10401 + Refactor link-target processing (#2684).
10403 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
10404 Thanks to @c-foster.
10406 * HTML writer: Don't include alignment attribute for default table columns.
10407 Previously these were given "left" alignment. Better to leave off
10408 alignment attributes altogether (#2694).
10410 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
10411 better compatibility with other Markdown flavors (Henrik Tramberend).
10415 + Use image identifier to create a label and hypertarget for
10416 figures (Mauro Bieg).
10417 + Avoid double toprule in headerless table with caption (#2742).
10418 + Clean up options parser (Jesse Rosenthal).
10419 + Treat `memoir` template with `article` option as article, instead
10420 of treating all `memoir` templates as books.
10421 + Allow more flexible table alignment (Henrik Tramberend, #2665).
10422 New default is not to include `[c]` option (which is the default
10423 anyway if no positioning is specified). Now LaTeX emplates can
10424 control the overall table alignment in a document by setting the
10425 longtable length variables `LTleft` and `LTright`. For example,
10426 `\setlength\LTleft\parindent\setlength\LTright\fill`
10427 will create left-aligned tables that respect paragraph indentation.
10429 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
10431 * Org writer - pass through RawInline with format "org".
10433 * DokuWiki writer: use `$$` for display math.
10435 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
10437 * Make protocol-relative URIs work again (#2737).
10439 * make_osx_package.sh: Use env variable for developer id certs.
10441 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
10444 * Allow `zip-archive` 0.3.
10446 * Allow `aeson` 0.11.
10448## pandoc 1.16.0.2 (2016-01-12)
10450 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
10452 * Fixed regression in latex smart quote parsing (#2645).
10453 In cases where a match was not found for a quote, everything
10454 from the open quote to the end of the paragraph was being dropped.
10456## pandoc 1.16.0.1 (2016-01-10)
10458 * Fixed regression with `--latex-engine` (#2618). In 1.16
10459 `--latex-engine` raises an error if a full path is given.
10461 * Org reader: Fix function dropping subtrees tagged `:noexport`
10462 (Albert Krewinkel, #2628):
10464 * Markdown reader: renormalize table column widths if they exceed 100%
10467 * Textile reader: don't allow block HTML tags in inline contexts.
10468 The reader previously did allow this, following redcloth,
10469 which happily parses
10471 Html blocks can be <div>inlined</div> as well.
10475 <p>Html blocks can be <div>inlined</div> as well.</p>
10477 This is invalid HTML. The above sample now produces;
10479 <p>Html blocks can be</p>
10485 * Improved default template lookup for custom lua scripts (#2625).
10486 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
10487 pandoc would look for the template in
10488 `~/.pandoc/templates/default./path/to/lua/script.lua`.
10489 With this change it will look in the more reasonable
10490 `~/.pandoc/templates/default.script.lua`. This makes it possible to
10491 store default templates for custom writers.
10493 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
10496 * LaTeX writer: restore old treatment of Span (#2624). A Span is
10497 now rendered with surrounding `{}`, as it was before 1.16.
10499 * Entity handling fixes: improved handling of entities like
10500 `⟨` that require a trailing semicolon. Allow uppercase
10501 `x` in numerical hexadecimal character references, working
10502 around a tagsoup bug.
10504 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
10505 memory use on compile. With aeson 0.10 we were getting an out of
10506 memory error on a 2GB Ubuntu 64-bit VM.
10508 * Improved deb package creation script. Made `DPKGVER` work.
10509 Renamed `COMMIT` to `TREE`. You should now be able to do
10510 `TREE=1.16.0.1 DPKGVER=2 make deb`.
10513## pandoc 1.16 (2016-01-02)
10515 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
10517 + Added syntax for link and image attributes to pandoc's Markdown.
10518 + Updated readers and writers to use link and image attributes
10520 + Support image attributes in Docx, Textile, RST readers.
10522 * Renamed link attribute extensions. The old `link_attributes` is
10523 now `mmd_link_attributes`, and `link_attributes` now enables the
10524 new pandoc-style link and image attributes (API change).
10525 Note: this change could break some existing workflows.
10527 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
10528 Added threefold wrapping option.
10530 + Command line option: deprecated `--no-wrap`, added
10531 `--wrap=[auto|none|preserve]`
10532 + Added `WrapOption`, exported from `Text.Pandoc.Options`
10533 + Changed type of `writerWrapText` in `WriterOptions` from
10534 `Bool` to `WrapOption`.
10535 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
10536 + Supported `SoftBreak` in readers and writers.
10538 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
10539 change, Mauro Bieg).
10541 * Added `--dpi` command-line option (Mauro Bieg).
10543 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
10544 This change makes `--no-tex-ligatures` affect the LaTeX reader
10545 as well as the LaTeX and ConTeXt writers. If it is used,
10546 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
10547 literally, rather than parsing ligatures for quotation marks
10548 and dashes. And the LaTeX writer will print unicode quotation
10549 mark and dash characters literally, rather than converting
10550 them to the standard ASCII ligatures. Note that `--smart` has
10551 no effect on the LaTeX reader. `--smart` is still the default
10552 for all input formats when LaTeX or ConTeXt is the output format,
10553 *unless* `--no-tex-ligatures` is used.
10555 Some examples to illustrate the logic:
10558 % echo "'hi'" | pandoc -t latex
10560 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
10562 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
10564 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
10566 % echo "'hi'" | pandoc -f latex
10570 * Removed deprecated options `--offline` and `--html5`.
10572 * Fixed language code for Czech (`cs` not `cz`) (#2597).
10574 * Implemented `east_asian_line_breaks` extension (#2586).
10575 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
10576 to `Extension` (API change). This extension is like
10577 `ignore_line_breaks`, but smarter -- it only ignores line breaks
10578 between two East Asian wide characters. This makes it better suited
10579 for writing with a mix of East Asian and non-East Asian scripts.
10581 * Added support for PDF creation via `wkhtmltopdf`.
10582 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
10583 if you have math.) Margins can be set using the variables
10584 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
10585 Other styling can be done through CSS.
10587 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
10588 We were capturing final colons as in `[@foo: bar]`; the citation id
10589 was being parsed as `@foo:`.
10593 + Fixed image syntax for local files (#2589).
10594 + Changed type of `writeICML` (Mauro Bieg).
10595 API change: It is now `WriterOptions -> Pandoc -> IO String`.
10596 Also handle new image attributes.
10597 + Intersperse line breaks instead of appending them to
10598 every `ParagraphStyleRange` (Mauro Bieg, #2501).
10599 + Add `Cite` style to citations (Mauro Bieg).
10600 + Added figure handling (#2590, Mauro Bieg).
10601 + Better handling of math. Instead of just printing the raw tex,
10602 we now try to fake it with unicode characters.
10604 * HTML writer: Include `example` class for example lists (#2524).
10606 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
10608 + Support for percentage widths/heights
10609 + Use `Attr` instead of title to get dimensions from ODT walker
10610 to `writeOpenDocument`.
10614 + Support anchors in spans and divs with id elements
10615 (jgm/pandoc-citeproc#143).
10616 + Fixed code blocks (#1861).
10618 * Haddock writer: omit formatting inside links, which isn't supported
10619 by Haddock (#2515).
10621 * MediaWiki writer: Fixed spacing issues in table cells.
10623 + Start cell on new line unless it's a single Para or Plain
10625 + For single Para or Plain, insert a space after the `|` to
10626 avoid problems when the text begins with a character like
10629 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
10633 + Add support for GAP highlighting using listings (Raniere Silva).
10634 + Consider `header-includes` content as well as templates
10635 when determining whether to use csquotes (Andreas Lööw).
10636 + Create defaults for geometry using `margin-left` etc.
10637 If `geometry` has no value, but `margin-left`, `margin-right`,
10638 `margin-top`, and/or `-margin-bottom` are given, a default value
10639 for `geometry` is created from these. Note that these variables
10640 already affect PDF production via HTML5 with `wkhtmltopdf`.
10642 * ConTeXt writer: set default layout based on `margin-left`, etc.
10643 This sets up `\setuplayout` based on the variables `margin-left`,
10644 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
10647 * Docx writer: better handling of PDF images. Previously we tried
10648 to get the image size from the image even if an explicit size was
10649 specified. Since we still can't get image size for PDFs, this made
10650 it impossible to use PDF images in docx. Now we don't try to get
10651 the image size when a size is already explicitly specified.
10653 * Markdown writer: use raw HTML for link/image attributes when
10654 the `link_attributes` extension is unset and `raw_html` is set (#2554).
10656 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
10660 + Improved smart quote parsing (#2555). This fixes redering of
10662 + Use curly quotes for unmatched ` (#2555).
10663 + Allow blank space between braced arguments of commands (#2592).
10667 + Improved pipe table relative widths. Previously pipe table
10668 columns got relative widths (based on the header underscore lines)
10669 when the source of one of the rows was greater in width than the
10670 column width. This gave bad results in some cases where much of
10671 the width of the row was due to nonprinting material (e.g. link
10672 URLs). Now pandoc only looks at printable width (the width of a
10673 plain string version of the source), which should give better results.
10674 Thanks to John Muccigrosso for bringing up the issue.
10675 + Fixed parsing bug with macros. Previously macro definitions in
10676 indented code blocks were being parsed as macro definitions, not code.
10678 * Textile reader: skip over attribute in image source (#2515).
10679 We don't have a place yet for styles or sizes on images, but
10680 we can skip the attributes rather than incorrectly taking them
10681 to be part of the filename.
10683 * Docx reader: Handle dummy list items (Jesse Rosenthal).
10684 These come up when people create a list item and then delete the
10685 bullet. It doesn't refer to any real list item, and we used to ignore
10688 * CommonMark reader/writer rewritten to use latest `cmark`.
10690 * Fixed Emoji character definitions (#2523). There were many bugs in the
10693 * `Text.Pandoc.CSS`:
10695 + Added `pickStylesToKVs` function to extract multiple properties at
10696 once (API change, Mauro Bieg).
10697 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
10699 * `trypandoc`: sort drop-down lists.
10703 + Made `\euro` conditional on presence of character.
10704 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
10705 + Moved `header-includes` before setting of title (Thomas Hodgson),
10706 to match the LaTeX template (jgm/pandoc-templates#168).
10707 + Added `section-titles` variable (defaults to true)
10708 to enable/suppress section title pages in beamer
10709 slide shows (Thomas Hodgson).
10710 + Moved beamer themes after fonts, so that themes can
10711 change fonts. (Previously the fonts set were being
10712 clobbered by lmodern.sty.) (Thomas Hodgson).
10714 * Beamer/LaTeX template changes (Thomas Hodgson):
10715 + Added `thanks` variable
10716 + Use `parskip.sty` when `indent` isn't set (fall back to using
10717 `setlength` as before if `parskip.sty` isn't available).
10718 + Use `biblio-style` with biblatex.
10719 + Added `biblatexoptions` variable.
10721 * LaTeX template changes:
10723 + Added `paper` after `$papersize$` variable in latex template.
10724 Thus you can say `papersize: a4` and the latex will contain
10725 `a4paper`. This change may break some existing workflows; if
10726 you currently specify `a4paper`, you'll get `a4paperpaper` which
10727 is meaningless. However, the change seems worth it, as it will
10728 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
10729 and html->pdf via wkhtmltopdf.
10730 + Only pass options to color package if `colorlinks` is set
10732 + Make definition of `\euro` conditional in xelatex/lualatex,
10733 as it is already for pdflatex (Andrew Dunning).
10734 + Removed setting of `subject` in PDF metadata.
10735 This used to be set to the subtitle, but really the subtitle
10736 need not give the subject. Also, `subtitle` can contain formatting,
10737 so we'd need, at least, a plain text version for this.
10738 + Moved `header-includes` before setting of `\title`, `\author`,
10739 etc. This allows these macros to be redefined.
10740 + Use `\subtitle` command for `subtitle`, instead of tacking it
10741 on to the title as before. We give a no-op fallback definition if it
10742 is not defined. This change should produce much better results
10743 in classes that support `\subtitle`. With the default article
10744 class, which does not define `\subtitle`, subtitles will no
10745 longer be printed unless the user defines `\subtitle` and
10746 redefines `\maketitle`.
10747 + Moved redefinitions of `\paragraph` and `\subparagraph` to
10748 before header-includes.
10750 * Context template:
10752 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
10753 needed for things to work on ConTeXt stable from TeXLive 2015.
10754 + Revert use of `\setuphead` in title block (Andrew Dunning,
10757 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
10759 * Fixed man template so disabling hyphenation actually works.
10760 The command needs to come after .TH.
10762 * Added 'navigation' variable to beamer template (#2543).
10763 Valid values are `empty` (the default), `horizontal`, `vertical`,
10764 and `frame`. Note that this changes the default behavior from
10765 `horizontal` to `empty`. Closes #2543.
10767 * Added `toc` to HTML slide format templates (Andrew Dunning),
10768 so that `--toc` creates a contents slide.
10770 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
10772 * Allow pipe tables with no body rows (#2556).
10773 Previously this raised a runtime error.
10775 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
10776 as URL. The Haskell URI parsing routines will accept "C:" as a
10777 scheme, so we rule that out manually. This helps with
10778 `--self-contained` and absolute Windows paths.
10780 * Define a `meta-json` variable for all writers (#2019). This contains
10781 a JSON version of all the metadata, in the format selected for the
10782 writer. So, for example, to get just the YAML metadata, you can run
10783 pandoc with the following custom template: `$meta-json$`. The intent
10784 is to make it easier for static site generators and other tools to get
10787 * Document limitations of --self-contained (#2553).
10789 * Improved Citations section of README (#2551). Added information
10790 about `link-citations` and a link to the pandoc-citeproc man page.
10792 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
10795 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
10797 * Improved implicit pandoc-citeproc inclusion.
10798 The filter pandoc-citeproc is automatically used when
10799 `--bibliography` is specified on the command line, unless
10800 `--natbib` or `--biblatex` is used. However, previously this
10801 only worked if `--bibliography` was spelled out in full, and not
10802 if `--biblio` was used.
10804 * reveal.js: Interpret pauses correctly for all headers (#2530).
10805 Previously, when using headers below the slide level, pauses are left
10806 uninterpreted into pauses. In my opinion, unexpected behavior but
10807 intentional looking at the code.
10809 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
10811 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
10814 * ImageSize: Added functions for converting between image dimensions
10817 * Use lts-3.18 in stack.yaml. This avoids Windows build
10818 issues with the HTTP library.
10820 * Bump version bounds for dependencies.
10822## pandoc 1.15.2.1 (2015-11-16)
10824 * Added two missing test files, and `stack.yaml`, to
10825 `extra-source-files` so they're included in the source tarball.
10827 * reveal.js template: Fixed parallaxBackground options.
10828 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
10829 need integer values, not strings. (Vaughn Iverson)
10831## pandoc 1.15.2 (2015-11-15)
10833 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
10834 ConTeXt rather than LaTeX (#2463).
10836 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
10838 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
10839 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
10842 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
10843 parsing (#2469). Tightened up the inline HTML parser so it disallows
10846 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
10850 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
10851 Paragraphs can be followed by lists, even if there is no blank line
10852 between the two blocks. However, this should only be true if the
10853 paragraph is not within a list, were the preceding block should be
10854 parsed as a plain instead of paragraph (to allow for compact lists).
10855 Thanks to @rgaiacs for bringing this up.
10856 + Allow toggling header args (Albert Krewinkel, #2269).
10857 Org-mode allows to skip the argument of a code block header argument if
10858 it's toggling a value. Argument-less headers are now recognized,
10859 avoiding weird parsing errors.
10860 + Fix markup parsing in headers (Albert Krewinkel, #2504).
10861 Markup as the very first item in a header wasn't recognized. This was
10862 caused by an incorrect parser state: positions at which inline markup
10863 can start need to be marked explicitly by changing the parser state.
10864 This wasn't done for headers. The proper function to update the state
10865 is now called at the beginning of the header parser, fixing this issue.
10866 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
10867 Smart quotes, ellipses, and dashes should behave like normal quotes,
10868 single dashes, and dots with respect to text markup parsing.
10869 + Require whitespace around definition list markers (#2518).
10870 This rule was not checked before, resulting in bugs with footnotes
10871 and some link types.
10875 + Pipe tables with long lines now get relative cell widths (#2471).
10876 If a pipe table contains a line longer than the column width (as set by
10877 `--columns` or 80 by default), relative widths are computed based on the
10878 widths of the separator lines relative to the column width. This should
10879 solve persistent problems with long pipe tables in LaTeX/PDF output, and
10880 give more flexibility for determining relative column widths in other
10881 formats, too. For narrower pipe tables, column widths of 0 are used,
10882 telling pandoc not to specify widths explicitly in output formats that
10884 + Improved parser for `mmd_title_block`. We now allow blank metadata
10885 fields. These were explicitly disallowed before.
10886 + Citation keys can now contain `://`, so URLs and DOIs can be used
10887 as citation keys (jgm/pandoc-citeproc#166).
10889 * Beamer template: fix incompatibility of section slides with natbib.
10890 Natbib (and presumably biblatex) bibliography commands create
10891 their own section. Since these are in frame environments,
10892 we have an incompatibility with the `\AtBeginSection` macro
10893 which creates a special frame when a new section occurs.
10894 (We can't have a frame inside another frame.) This change disables
10895 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
10896 bringing the problem to my attention. This supersedes #145. See
10899 * Textile reader: don't do smart punctuation unless explicitly asked
10900 (#2480). Note that although smart punctuation is part of the textile
10901 spec, it's not always wanted when converting from textile
10902 to, say, Markdown. So it seems better to make this an option.
10904 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
10905 The `comment` environment is handled in a similar way to the
10906 `verbatim` environment, except that its content is discarded.
10908 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
10909 Jesse Rosenthal). This fixes a problem with links in notes.
10911 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
10912 (mb21). For LaTeX, also collect `lang` and `dir` attributes on spans and
10913 divs to set the `lang`, `otherlangs` and `dir` variables if they aren’t set
10918 + Use proper command for `\textarabic` (mb21).
10919 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
10920 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
10921 to link to Div or Span elements. We now don't bother defining `\label`
10922 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
10923 + Avoid footnotes in list of figures (#1506).
10924 + Properly handle footnotes in captions (#1506).
10925 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
10926 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
10927 `toccolor` is set (#2508).
10929 * Textile writer: support start number in ordered lists (#2465).
10931 * OpenDocument writer: Allow customization of opendocument
10932 automatic styles. Automatic styles can now be inserted in the
10933 template, which now provides the enclosing `<office:automatic-styles>`
10936 * Docx writer: insert space between footnote reference and note (#2527).
10937 This matches Word's default behavior.
10939 * EPUB writer: don't download linked media when `data-external` attribute
10940 set (#2473). By default pandoc downloads all linked media and includes it
10941 in the EPUB container. This can be disabled by setting `data-external` on
10942 the tags linking to media that should not be downloaded. Example:
10944 <audio controls="1">
10945 <source src="http://www.sixbarsjail.it/tmp/bach_toccata.mp3"
10946 type="audio/mpeg"></source>
10949 * HTML writer: use width on whole table if col widths sum to < 100%.
10950 Otherwise some browsers display the table with the columns
10951 separated far apart.
10953 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
10954 `abstract` (Andrew Dunning).
10956 * HTML-based templates (Andrew Dunning):
10958 + Use en dash instead of hyphen between title prefix and title.
10959 + Add `keywords` to metadata.
10960 + Add `lang`, `dir`, `quotes` where missing.
10961 + Always make author and date display conditional.
10962 + Updated dzslides template from source.
10964 * Man template: make "generated by" comment conditional.
10966 * LaTeX, Beamer templates:
10968 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
10969 filled by commands that make babel understand the polyglossia-style
10970 language directives (mb21, #137).
10971 + Improved formatting of conditionals; `$for$` is always provided to allow
10972 multiple options (Andrew Dunning, #141).
10973 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
10974 to improve support for LuaTeX (Andrew Dunning, #135).
10975 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
10976 - use same options for all LaTeX engines;
10977 - add `subtitle` and `keywords` to PDF metadata;
10978 - do not override `hyperref` link coloring without user input, effectively making
10979 the `hidelinks` option the default (removed as a separate variable);
10980 - link colors can be enabled (using a slightly darker version of the old
10981 defaults) using a new `colorlinks` variable, automatically used by
10982 the LaTeX writer when custom colors are specified;
10983 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
10984 `colorlinks`, and is only applied if `colorlinks` is disabled.
10986 * ConTeXt template (Andrew Dunning):
10988 + New variables for controlling styles: `linkstyle`, `linkcolor`,
10989 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
10990 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
10991 `monofont`, `mathfont`, `fontsize`.
10992 + Default template no longer supports MkII.
10993 + Improve writing of title block (suppressing numbering of first page).
10994 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
10995 + Support `subtitle`, `abstract`.
10996 + Support list of figures (`lof`), list of tables (`lot`).
10997 + Disable link styling by default.
10998 + Define styles for all section types.
10999 + Enable microtype.
11000 + Improved formatting of conditionals.
11002 * Beamer template: added code to prevent slide breaks inside paragraphs
11003 (#2422, thanks to Nick Bart). This will matter, in practice, only when
11004 `allowframebreaks` is used. It is especially helpful for bibliography
11007 * OpenDocument template: Add `<office:automatic-styles>` tag around
11008 automatic styles. The writer now longer provides this (see #2520).
11010 * Restored Text.Pandoc.Compat.Monoid.
11012 * Do not export (<>) from custom Prelude. The Prelude now matches
11013 base 4.8 Prelude's API.
11015 * Don't use custom prelude with ghc 7.10. Use the custom prelude
11016 only for earlier versions. This change makes `stack ghci` and
11017 `cabal repl` work (#2503), at least with ghc 7.10.
11019 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
11020 This prevents problems building haddocks with "C" locale.
11022 * Change default for old-locale flag to False.
11024 * Use stack in deb, osx, and Windows package generators.
11026 * Added Vagrantfile for building deb in vm.
11027 This should help in automating binary package creation. 'make package'
11028 will make the package. 'make package COMMIT=blah' will make the package
11033 + Consistent capitalization for pandoc and Markdown.
11034 + Fixed `auto_identifiers` examples (Benoit Schweblin).
11035 + Improved documentation of template variables (Andrew Dunning).
11037## pandoc 1.15.1 (2015-10-15)
11039 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
11040 and reexported from `Text.Pandoc` (Alex Vong). This allows
11041 writers to access it. (Alex Vong) (API change)
11043 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
11044 `subscripts` (#2401).
11046 * Added `odt` as input format (MarLinn). Added new module
11047 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
11048 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
11049 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
11050 Partly implemented features: Citations, Tables.
11054 + Add basic tests for each header style (Ophir Lifshitz).
11055 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
11056 + Skip spaces in headers (Ophir Lifshitz).
11057 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
11058 `# Header {id="myid" class="foo bar"}`
11059 is now equivalent to `# Header {#myid .foo .bar}`.
11060 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
11061 (Kristof Bastiaensen)
11062 + Pipe tables: allow indented columns. Previously the left-hand column
11063 could not start with 4 or more spaces indent. This was inconvenient
11064 for right-aligned left columns. Note that the first (header column)
11065 must still have 3 or fewer spaces indentation, or the table will be
11066 treated as an indented code block.
11067 + Fix regression: allow HTML comments containing `--`.
11068 Technically this isn't allowed in an HTML comment, but
11069 we've always allowed it, and so do most other implementations.
11070 It is handy if e.g. you want to put command line arguments
11075 + Don't eat excess whitespace after macros with only optional
11077 + Support longtable (#2411).
11078 + Implement `\Cite` (#2335).
11079 + Support abstract environment. The abstract populates an
11080 `abstract` metadata field.
11081 + Properly handle booktabs lines. Lines aren't part of the
11082 pandoc table model, so we just ignore them (#2307).
11086 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
11087 + Updated for new automatic header attributes.
11088 + Add auto identifiers if not present on headers. This makes
11089 TOC linking work properly.
11090 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
11091 + Test `<ol>` type, class, and inline list-style(-type) CSS
11093 + Better handling of "section" elements (#2438). Previously
11094 `<section>` tags were just parsed as raw HTML blocks. With
11095 this change, section elements are parsed as Div elements with
11096 the class "section".
11098 * MediaWiki reader: handle unquoted table attributes (#2355).
11102 + Added proper support for DocBook `xref` elements (Frerich Raabe).
11103 Added `dbContent` field to reader state, so we can lookup
11105 + Handle `informalexample` (#2319).
11109 + Create special punctuation test (Ophir Lifshitz).
11110 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
11111 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
11112 in `headers.docx` with pandoc's current `styles.xml`, which
11113 contains styles for Heading 1 through 6. Added Heading 4
11114 through 7 to the test document. Note that Heading 7 is not
11115 parsed as a Heading because there is no Heading 7 style.
11117 * RST reader: better handling of indirect roles.
11118 Previously the parser failed on this kind of case
11120 .. role:: indirect(code)
11122 .. role:: py(indirect)
11127 Now it correctly recognizes `:py:` as a code role.
11131 + Add auto identifiers if not present on headers
11132 (#2354, Juliusz Gonera).
11133 + Allow verse blocks to contain empty lines (#2402,
11136 * EPUB reader: stop mangling external URLs (#2284).
11140 + Don't insert `\ ` when complex expression in matched pairs.
11141 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
11142 + Ensure that `\ ` is inserted when needed before Cite and Span
11143 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
11144 + Normalize headers only in "standalone" mode (#2394).
11146 * Haddock writer: escape `*` and `^` (G. Bataille).
11150 + In TOC, add links to headers (#829).
11151 + Use unicode super/subscripts for digits in plain output
11152 (when the `superscripts` and `subscripts` extensions are
11157 + Moved invalid character stripping to `formattedString`.
11158 This avoids an inefficient generic traversal (#2356).
11159 + Use user data directory for `reference.docx` archive.
11160 This allows the test suite to work without installing pandoc first.
11161 It also brings the docx writer in line with the odt writer.
11162 + Tests: docx writer tests now use `../data` for data directory.
11163 This allows tests to be run without installing first.
11164 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
11168 + Fixed detection of 'chapters' from template.
11169 If a documentclass isn't specified in metadata, but the
11170 template has a hardwired bookish documentclass, act as if
11171 `--chapters` was used. This was the default in earlier
11172 versions, but it has been broken for a little while.
11173 + Correctly recognize book documentclass in metadata (#2395).
11174 + Set language-related variables automatically, depending
11175 on the value of the `lang` field, which is now always
11176 assumed to be in BCP47 format (mb21, #1614, #2437).
11177 + Add `\protect` to `\hyperdef` in inline context. This way we
11178 don't get an error when this is used as a moveable argument (#2136).
11179 + Support all frame attributes in Beamer.
11180 + Percent-encode more special characters in URLs (#1640, #2377).
11181 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
11185 + Update KaTeX JS and CSS versions (Emily Eisenberg).
11186 + For dzslides, add `role="note"` for speaker notes (#1693).
11187 + Percent-encode more special characters in URLs (#1640, #2377).
11188 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
11189 + Render Div with class `section` as `<section>` in HTML5.
11193 + In TOC, replace literal `<br/>` with space (#2105).
11194 + With `--webtex`, include image file rather than `data:` URI (#2363).
11196 * Native writer: format Div properly, with blocks separated.
11198 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
11203 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
11204 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
11208 + Beamer: Add `innertheme`, `outertheme` variables
11209 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
11210 Integrate recent font and language updates from LaTeX template;
11211 allow use of `mainfont` variable for changing the slide text
11212 in XeTeX and LuaTeX (Andrew Dunning, #131).
11213 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
11214 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
11215 (Andrew Dunning, #122). Support handling of bidirectional
11216 text (mb21, #120). Improve reliability of superscripts/subscripts
11217 under XeTeX and prevent letters and numbers from appearing on a
11218 different baseline by removing use of the `realscripts` package
11219 (via `xltxtra`). To restore use of OpenType characters for these
11220 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
11221 `header-includes` (Andrew Dunning, #130). Remove redundant
11222 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
11223 `indent`, `subparagraph` variables (Andrew Dunning).
11224 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
11225 #113). Prevent package clash with `tufte-latex` and other classes that
11226 include `hyperref` or `color` (Xavier Olive, #115).
11227 + ConTeXt: Support handling of bidirectional text (mb21, #120).
11228 + LaTeX and ConTeXt: Use more specific language variables.
11229 Instead of directly using `lang`, we now use `babel-lang` and
11230 `polyglossia-lang` and `context-lang`. These variables are set by
11231 the writers to the necessary values, based on the `lang` variable
11232 (which now always takes a value in BCP47 format). (mb21, #114, #129).
11233 + HTML: Support handling of bidirectional text (mb21, #120).
11234 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
11235 Add dir attribute in html5 (Andrew Dunning).
11236 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
11237 Add `width`, `height` variables (Anrew Dunning). Update template
11238 from 3.1 source (Andrew Dunning). All configuration options are now
11239 available as variables, but are only be included if set (reveal.js
11240 uses defaults otherwise).
11241 + man: Added comment stating that the page is autogenerated by pandoc,
11242 giving version. Added `adjusting` and `hyphenate` variables
11245 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
11247 * MediaBag: ensure that `/` is always used as path separator.
11249 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
11251 * Added `--bash-completion` option. This generates a bash completion
11252 script. To use: `eval "$(pandoc --bash-completion)"`.
11254 * Text.Pandoc.Error: Define Typeable and Exception instances
11255 for PandocError (#2386).
11257 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
11258 This makes keys with extra space at the beginning and end
11265 will now be a link to bar (it wasn't before).
11267 * Text.Pandoc: disable `auto_identifiers` for epub.
11268 The epub writer inserts its own auto identifiers;
11269 this is more complex due to splitting into "chapter" files.
11271 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
11272 It now reexports Data.Time.
11274 * Use custom Prelude to avoid compiler warnings.
11276 + The (non-exported) prelude is in prelude/Prelude.hs.
11277 + It exports Monoid and Applicative, like base 4.8 prelude,
11278 but works with older base versions.
11279 + It exports (<>) for mappend.
11280 + It hides 'catch' on older base versions.
11282 * Added a `stack.ymal` and stack install instructions to INSTALL.
11284 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
11286 * Added note to CONTRIBUTING.md about ghc versions and travis.
11288 * Clarify docs on block quotes. The space after `>` is optional (#2346).
11290 * Removed obsolete reference to default.csl (#2372).
11292 * List all styles in manual for `--reference-docx` (Chris Black)
11294 * Don't capitalize header links in man page.
11296 * Added section on repl to CONTRIBUTING.md.
11298 * README: Added space after backslash in image example (#2329).
11300 * Document details of citation locator terms (Nick Bart).
11302 * Fixed some internal links in README (#2309).
11304 * Improve CSL documentation, variables documentations,
11305 links, and cross-references in README. (Andrew Dunning)
11307 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
11309 * Use `newManager` instead of `withManager` in recent `http-client`.
11310 This avoids a deprecation warning.
11312 * Allow building with latest versions of http-types,
11313 HUnit, criterion, syb, aeson.
11315 * Updated benchmark program for new criterion API.
11317 * Setup.hs: rewrite so as not to use process, directory, filepath.
11318 Using anything outside base is dangerous, since older
11319 versions of ghc may link against two different versions.
11321 * Added appveyor (Windows continuous integration) builds.
11323 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
11324 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
11325 `make .travis.yml` regenerates it based on the tested-with
11326 field of the cabal file.
11328## pandoc 1.15.0.6 (2015-07-15)
11330 * `--self-contained`: Fixed overaggressive CSS minimization
11331 (#2301, 2286). Previously `--self-contained` wiped out all
11332 spaces in CSS, including semantically significant spaces.
11333 This was a regression from 1.14.x.
11335 * Markdown reader: don't allow bare URI links or autolinks in link
11336 label (#2300). Added test cases.
11338 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
11339 Previously we disallowed `-` at the end of an autolink,
11340 and disallowed the combination `=-`. This commit liberalizes the
11341 rules for allowing punctuation in a bare URI, and adds test cases.
11342 One potential drawback is that you can no longer put a bare
11343 URI in em dashes like this:
11344 `this uri---http://example.com---is an example.`
11345 But in this respect we now match github's treatment of bare URIs.
11347 * HTML writer: support speaker notes in dzslides.
11348 With this change `<div class="notes">` and also `<div class="notes"
11349 role="note">` will be output if `-t dzslides` is used. So we can
11350 have speaker notes in dzslides too. Thanks to maybegeek.
11352 * Updated dzslides template.
11354 * Improved documentation of options to print system default files (#2298).
11355 `--print-default-data-file` and `--print-default-template`.
11357 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
11358 (Tiziano Müller). MathJax seems currently to be the only maintained
11359 math rendering extension for DokuWiki.
11361 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
11362 div as top-level header (#2294). This fixes a bug with `--section-divs`,
11363 where the final references section added by pandoc-citeproc, enclosed in
11364 its own div, got nested in the div for the section previous to it.
11366 * Allow vector 0.11.
11368 * Require cmark > 0.4.
11370## pandoc 1.15.0.5 (2015-07-10)
11372 * HTML writer: Fixed email javascript obfuscation with `mailto:`
11373 URLs (#2280). This fixes a potential security issue. Because
11374 single quotes weren't being escaped in the link portion, a
11375 specially crafted email address could allow javascript code injection.
11377 * RST reader: allow inline formatting in definition list field
11378 names (Lars-Dominik Braun).
11380 * PDF: Make sure `--latex-engine-opt` goes before the filename
11381 on the command line. LaTeX needs the argument to come after
11382 the options (#1779).
11384 * CommonMark writer: fixed tags used for super/subscript.
11386 * ConTeXt template: activate hanging indent for definition lists
11389 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
11390 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
11391 to include `hsb2hs` in Build-Tools in cabal.
11393 * Improved Windows installer (thanks to nkalvi).
11395 + When per-machine installation is chosen, the system path
11396 is updated instead of the user's.
11397 + An appropriate default is used for per-machine installation
11399 + Admin privileges are no longer required for a per-user install
11401 * Travis: unpack sdist for build to catch packaging bugs.
11403 * Improved documentation on where user templates go (#2272).
11405## pandoc 1.15.0.4 (2015-07-03)
11407 * Added pandoc.1 man page to the repository. It is no longer
11408 built as part of the cabal build process. (This proved too
11409 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
11410 when `README` is changed.
11412 * Copying of the man page now respects `--destdir` (#2262).
11414 * Improved error messages for filters. User is now informed if
11415 the filter requires an interpreter that isn't found in the path,
11416 or if the filter returns an error status.
11418## pandoc 1.15.0.3 (2015-07-02)
11420 * Ensure target directory is created when installing man page.
11422## pandoc 1.15.0.2 (2015-07-02)
11424 * Added files needed for building man page to Extra-Source-Files.
11426## pandoc 1.15.0.1 (2015-07-01)
11428 * Man page is now built and installed as part of the cabal build
11429 process. Removed Makefile target for man page.
11431## pandoc 1.15 (2015-07-01)
11433 * Man page changes:
11435 + Removed `--man1`, `--man5` options (breaking change).
11436 + Removed `Text.Pandoc.ManPages` module (breaking API change).
11437 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
11438 create the man page from README using a custom template and filters.
11439 + Added `man/` directory with template and filters needed to build
11441 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
11442 Now there is just pandoc.1, which has all the content from README.
11443 This change was needed because of the extensive cross-references
11444 between parts of the README.
11445 + Removed old `data/pandoc.1.template` and
11446 `data/pandoc_markdown.5.template`.
11448 * OpenDocument writer: Do not add a carriage return after a hard
11449 line break (Michael Chladek).
11453 + use `\goto` for internal links.
11454 + Added a `%` at end for `\reference` to avoid spurious space.
11456 * Ignore sandbox on 'make quick'
11458## pandoc 1.14.1 (2015-06-30)
11460 * Added `--man1` and `--man5` options to pandoc, allowing
11461 pandoc to generate its own man pages. Man pages are no longer
11462 automatically generated in the build process (the process for
11463 this was too complex and prone to failure, #2190). The
11464 `make-pandoc-man-pages` executable has been removed. The
11465 `man/` directory has been removed, and man page templates
11466 have been moved to `data/`. NOTE TO PACKAGERS: You will no
11467 longer find pandoc's man pages in `man/`, but you can
11468 generate them using `pandoc --man1 > pandoc.1` and `pandoc
11469 --man5 > pandoc_markdown.5`.
11471 * Added new unexported module: `Text.Pandoc.ManPages`.
11473 * `README` now acts like a data file (even though it isn't in
11474 `data/`). So, for example, `pandoc --print-default-data-file README`
11475 will produce the README.) This change was required for the `--man1`
11476 and `--man5` options, since the man pages are produced from the
11477 README, but it may be useful for other purposes as well.
11479 * Allow `reference.docx` and `reference.odt` to be used with
11480 `--print-default-data-file` and to shadow defaults if placed in
11481 the user data directory. Note that as of 1.14, we no longer
11482 include these files as data files; instead, we include their
11483 components. This change causes pandoc to behave as if it has
11484 these data files; they are constructed on demand when needed
11485 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
11487 * Fixed regression in CSS parsing with `--self-contained` (#2224).
11488 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
11489 silently drops big sections of CSS. This commit replaces the
11490 use of css-text with a small but principled CSS preprocessor,
11491 which removes whitespace and comments and replaces `url()` with
11492 base 64 data when possible.
11494 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
11495 This will allow math to work when pages are being viewed locally.
11497 * `Text.Pandoc.Options`: Export `plainExtensions`.
11498 These are the extensions used in `plain` output.
11500 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
11501 math mode; treat them as regular inline text. Normally these will
11502 cause an error in LaTeX, but there are contexts (e.g. `alltt`
11503 environments) where they are allowed.
11505 * HTML reader: allow `<body>` to close `<head>`.
11507 * DocBook reader: support `mediaobject`s and `figures` (#2184, mb21).
11509 * RST reader: Fix reference names with special characters
11510 (Lars-Dominik Braun).
11512 * Textile writer: escape `+` and `-` as entities (#2225).
11514 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
11516 * Plain writer: don't use symbols for super/subscript (#2237).
11517 Simplified code by using `plainExtensions`.
11519 * InDesign writer: Properly escape URLs containing more than one
11520 colon character (gohai).
11522 * Docx writer: Make sure we use dist version of `reference.docx`
11523 (and not the user's version) for certain settings. Taking some
11524 settings values from a user-supplied reference.docx can lead to
11525 corruption. This fixes a regression from the last release (#2249).
11527 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
11528 `getDefaultReferenceODT` (API change). These functions have been
11529 removed from the Docx and ODT writers.
11531 * LaTeX template (Xavier Olive):
11532 + Added `CJKmainfont` and `CJKoptions` variables.
11533 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
11535 * Epub templates: use `author.role`, not `author.type`.
11537 * Bump cmark version to >= 0.3.4.
11539 * Improved Windows installer (#2205, thanks to nkalvi).
11540 Users can now select a per-user or systemwide install, and can set
11541 the installation path. At the end of installation, the install location
11542 is given. The install location is also now given in the list of
11543 installed programs in Control Panel. Cleaner WiX syntax is used for
11546 * Added `download_stats` target to Makefile.
11548## pandoc 1.14.0.4 (2015-06-02)
11550 * Added missing commonmark template.
11552 * Improved try pandoc (moved button, show raw command).
11554## pandoc 1.14.0.3 (2015-06-01)
11556 * Allow compilation with syb 0.5.*.
11558 * Custom writer: fixed some compiler warnings for ghc < 7.10.
11560## pandoc 1.14.0.2 (2015-05-31)
11562 * Allow building with hslua 0.4.
11564## pandoc 1.14.0.1 (2015-05-28)
11566 * Fixed problem with building of `reference.docx` and `reference.odt`
11567 when the `embed_data_files` flag is used. Instead of having a phase
11568 of the build where `reference.docx` and `reference.odt` are created
11569 from their constituent data files, we now construct these archives
11570 from their constituents when a `docx` or `odt` is built. The
11571 constituent files have been moved from `extra-source-files` to
11572 `data-files`, and `reference.docx` and `reference.odt` have been
11573 removed. Users can create their own `reference.docx` or
11574 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
11575 `make-reference-files.hs` has been removed, simplifying the build
11578 * Don't include generated man pages in extra-source-files (#2189).
11580 * Bumped upper bound for aeson.
11582 * ConTeXt writer: create internal link anchors for Div elements with
11583 identifiers. (This is needed for linked citations to work.)
11585## pandoc 1.14 (2015-05-27)
11589 * Added `commonmark` as input and output format.
11591 * Added `--verbose` flag for debugging output in PDF production (#1840,
11594 * Allow wildcards in `--epub-embed-font` arguments (#1939).
11596 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
11598 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
11599 This is enabled by default for those markdown flavors that
11600 support reading shortcut reference links, namely: `markdown`,
11601 `markdown_strict`, `markdown_github`, `markdown_php`.
11602 If the extension is enabled, the reader parses shortcut reference
11603 links like `[foo]`, and the writer creates such links unless doing
11604 so would cause problems. Users of markdown flavors that support
11605 shortcut reference links should not notice a difference in reading
11606 markdown, but the markdown pandoc produces may differ.
11607 If shortcut links are not desired, the extension can be disabled
11610### Behavior changes
11612 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
11613 A "dirty" TOC is created at the beginning of document.
11614 It can be regenerated after the document has been opened.
11616 * An implicit `--filter pandoc-citeproc` is now triggered only when the
11617 `--bibliography` option is used, and not when the `bibliography`
11618 field in metadata is specified (#1849).
11622 + Reference links with `implicit_header_references` are no longer
11623 case-sensitive (#1606).
11624 + Definition lists no longer require indentation for first line (#2087).
11625 Previously the body of the definition (after the `:` or `~` marker)
11626 needed to be in column 4. This commit relaxes that requirement,
11627 to better match the behavior of PHP Markdown Extra. So, now
11628 this is a valid definition list:
11632 + Resolve a potentially ambiguity with table captions:
11642 Is "bar" a definition, or the caption for the table? We'll count
11643 it as a caption for the table.
11644 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
11645 Markdown Extra. Note: If you have been using headerless pipe tables,
11646 this change may cause existing tables to break.
11647 + Allow pipe tables with header but no body (#2017).
11648 + Allow a digit as first character of a citation key (Matthias Troffaes).
11649 See https://github.com/jgm/pandoc-citeproc/issues/97
11653 + Don't limit includes to `.tex` extension (#1882).
11654 If the extension is not `.tex`, it must be given explicitly in
11655 the `\input` or `\include`.
11659 + Allow numbering in the style file. This allows inherited styles
11660 with numbering (lists) (Jesse Rosenthal).
11664 + Support smart punctuation (Craig Bosma).
11665 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
11666 `:noexport:` tag set are not exported. This mirrors org-mode.
11667 + Put header tags into empty spans (Albert Krewinkel, #2160).
11668 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
11669 Instead of being interpreted as part of the headline, the tags are now
11670 put into the attributes of empty spans. Spans without textual content
11671 won't be visible by default, but they are detectable by filters. They
11672 can also be styled using CSS when written as HTML.
11673 + Generalize code block result parsing (Albert Krewinkel).
11674 Previously, only code blocks were recognized as result blocks;
11675 now, any kind of block can be the result.
11677 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
11678 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
11682 + Add "inline" or "display" class to math spans (#1914).
11683 This allows inline and display math to be styled differently.
11684 + Include raw latex blocks if `--mathjax` specified (#1938).
11685 + Require highlighting-kate >= 0.5.14 (#1903).
11686 This ensures that all code blocks will be wrapped in a `div`
11687 with class `sourceCode`. Also, the default highlighting CSS
11688 now adds `div.sourceCode { x-overflow: auto; }`, which means
11689 that code blocks (even with line numbers) will acquire a scroll
11690 bar on screens too small to display them (e.g. mobile phones).
11691 See also jgm/highlighting-kate#65.
11695 + Use a declaration for tight lists (Jose Luis Duran, Joseph
11696 Harriott). Previously, pandoc hard-coded some commands to make
11697 tight lists in LaTeX. Now we use a custom command instead,
11698 allowing the styling to be changed in a macro in the header.
11699 (Note: existing templates may need to be modified to include
11700 the definition of this macro. See the current template.)
11701 + Beamer output: if the header introducing a slide has the
11702 class `fragile`, add the `[fragile]` option to the slide (#2119).
11704 * MediaWiki writer:
11706 + Use `File:` instead of the deprecated `Image:` for images and
11707 other media files (Greg Rundlett).
11711 + Render a `Div (id,_,_) [Para _]` element as a `para` element
11712 with an `id` attribute. This makes links to citations work in
11713 DocBook with pandoc-citeproc.
11717 + Normalize headings to sequential levels (Nikolay Yakimov).
11718 This is pretty much required by docutils.
11719 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
11720 + Better handling of raw latex inline (#1961). We use
11721 `` :raw-latex:`...` `` and add a definition for this role to
11726 + Remove `linear=no` from cover `itemref` (#1609).
11727 + Don't use `sup` element for epub footnotes (#1995).
11728 Instead, just use an a element with class `footnoteRef`.
11729 This allows more styling options, and provides better results
11730 in some readers (e.g. iBooks, where anything inside the a
11731 tag breaks popup footnotes).
11732 + Take TOC title from `toc-title` metadata field.
11736 + Implemented `FirstParagraph` style (Jesse Rosenthal).
11737 Following the ODT writer, we add the `FirstParagraph` style to the
11738 first text paragraph following an image, blockquote, table, heading,
11739 or beginning of document. This allows it to be styled differently.
11740 The default is for it to be the same as `Normal`.
11741 + Added `BodyText` style (Jesse Rosenthal).
11742 We apply a `BodyText` style to all unstyled paragraphs. This is,
11743 essentially, the same as `Normal`, except that since not everything
11744 inherits from `BodyText` (the metadata won't, for example, or
11745 the headers or footnote numbers), we can change the text in the body
11746 without having to make exceptions for everything. If we do want to
11747 change *everything*, we can still do it through `Normal`.
11748 + Altered `Blockquote` style slightly (Jesse Rosenthal).
11749 Since `BlockQuote` derives from `BodyText`, we just want to specify
11750 by default that it won't indent, regardless of what `BodyText` does.
11751 Note that this will not produce any visible difference in the default
11753 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
11754 + Added a style to figure images (Nikolay Yakimov).
11755 Figures with empty captions use style `Figure`.
11756 Figures with nonempty captions use style `Figure with Caption`, which
11757 is based on `Figure`, and additionally has `keepNext` set.
11761 + Added figure captions (Nikolay Yakimov). The following styles are
11763 `Figure` -- for figure with empty caption),
11764 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
11765 `FigureCaption` (based on `Caption`) -- for figure captions.
11766 Also, `TableCaption` (based on `Caption`) is used for table captions.
11770 * New `Text.Pandoc.Error` module with `PandocError` type
11771 (Matthew Pickering).
11773 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
11774 (Matthew Pickering). This allows better handling of errors.
11776 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
11778 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
11780 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
11781 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
11782 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
11785 * New `Ext_shortcut_reference_links` constructor for `Extension`
11786 (Konstantin Zudov).
11792 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
11793 + Check for tex macros after indented code (#1973).
11794 + Rewrote `charsInBalancedBrackets` for efficiency.
11795 + Make sure a closing `</div>` doesn't get included in a
11796 definition list item (#2127).
11797 + Don't parse bracketed text as citation if it might be a link,
11798 image, or footnote (Nikolay Yakimov).
11799 + Require space after key in mmd title block (#2026, Nikolay
11800 Yakimov). Require space after key-value delimiter colon in mmd title
11802 + Require nonempty value in mmd title block (Nikolay Yakimov).
11803 + Disable all metadata block extensions when parsing
11804 metadata field values (#2026, Nikolay Yakimov). Otherwise we
11805 could get a mmd title block inside YAML metadata, for example.
11809 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
11810 + Handle tables with `<th>` in body rows (#1859, mb21).
11811 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
11812 to see if the input starts with `<!--`. If not, it's bogus comment
11813 mode and we fail `htmlTag`.
11814 + Handle `base` tag; if it has an `href` value, this is added to
11815 all relative URLs in links and images.
11819 + Look inside "info" elements for section titles (#1931).
11823 + Parse images in deprecated vml format (Jesse Rosenthal).
11824 + Allow sub/superscript verbatims (Jesse Rosenthal).
11825 Verbatim usually shuts off all other run styles, but we don't want it
11826 to shut off sub/superscript.
11830 + Handle `tabular*` environment (#1850).
11831 Note that the table width is not actually parsed or taken into
11832 account, but pandoc no longer chokes on it.
11833 + Ignore options in `\lstinline` rather than raising error (#1997).
11834 + Add some test cases for simple tables (Mathias Schenner).
11835 + Handle valign argument in tables (Mathias Schenner) (currently
11836 we just ignore this).
11837 + Allow non-empty colsep in tables (Mathias Schenner).
11838 The `tabular` environment allows non-empty column separators
11839 with the "@{...}" syntax. Previously, pandoc would fail to
11840 parse tables if a non-empty colsep was present. With this
11841 commit, these separators are still ignored, but the table gets
11842 parsed. A test case is included.
11843 + Recognize `\newpage` as a block command.
11844 + Allow block content in `\title{}` (#2001).
11845 + Check for block-level newcommand aliases in blockCommand (Nikolay
11847 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
11848 + Properly gobble spaces after `\\` (#2007).
11852 + Handle newlines in table cells, and empty cells (#1919).
11856 + Allow image links with non-image targets (Hans-Peter Deifel).
11857 This matches behavior of Org-Mode for links like
11858 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
11862 + Don't print empty id attributes (thanks to Steve Horne).
11866 + Fixed list-style-type for numbered example lists.
11867 Should be "decimal," not "example" (#1902).
11868 + Do not omit missing `alt` attribute on `img` tag (#1131,
11870 + Allow multiple colgroups in table (#2122).
11871 + In revealjs, ensure that lists in speaker notes don't add "fragment"
11872 classes, which can cause additional keypresses to be needed to
11873 advance a slide (#1394).
11877 + Don't escape `$` in URL (#1913).
11878 + Don't use listings in headers (Matthew Pickering, #1963).
11879 + Recognize book documentclass if set in metadata (#1971).
11880 This sets `--chapters` implicitly if the documentclass in metadata
11881 is a book documentclass. Previously this was done only if a book
11882 documentclass was set in a variable.
11883 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
11884 + Make `mainlang` work when `lang` is in metadata (#2174).
11888 + Fix wrapping by using breakable spaces (Tim Lin).
11892 + Fixed toc depth in RST writer. Previously the depth was being
11893 rendered as a floating point number with a decimal point.
11897 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
11898 compatibility with original Markdown. We now escape `<` and `>`
11899 with entities. Also, we now backslash-escape square brackets.
11900 + Avoid introducing spurious list items through wrapping (#1946).
11901 + Don't emit span tags if plain or raw HTML disabled.
11903 * MediaWiki writer:
11905 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
11909 + Insert some needed blank lines (#1860).
11910 + Avoid wrapping after list marker (#1858).
11914 + Properly handle internal links to IDs in spans, divs (#1884).
11915 + Use plain writer for metadata dc: fields (#2121).
11916 This gives better results when we have, e.g. multiple paragraphs.
11917 Note that tags aren't allowed in these fields.
11918 + Properly handle image links without an extension (#1855).
11919 + Improved chapter splitting and internal link rewriting (#1887,
11920 #2162, #2163). This will ensure that internal links work and
11921 that the references section produced by pandoc-citeproc is
11922 in its own chapter.
11923 + Fixed handling of svg images (#2183).
11927 + Better handling of raw blocks and inlines (#1951).
11928 Previously these were always escaped and printed verbatim.
11929 Now they are ignored unless the format is `icml`, in which
11930 case they are passed through unescaped.
11931 + Fixed image URIs in ICML output (gohai).
11935 + Raise error if loadstring returns an error status.
11936 + Raise `PandocLuaException` instead of using 'error'.
11937 Eventually we'll change the return type so that no exception
11938 is involved, but at least this can be trapped.
11939 + Use UTF-8 aware bytestring conversion.
11940 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
11941 Also factored out ByteString, since it's only used as an intermediate
11946 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
11947 + Filter out illegal XML characters (#1992, Matthew Pickering).
11948 + Added `noProof` to docx syntax highlighting `SourceCode` style.
11949 + Added footnotes id -1 and 0 (Jesse Rosenthal).
11950 Word uses, by default, footnotes with id -1 and 0 for separators. If a
11951 user modifies `reference.docx`, they will end up with a `settings.xml`
11952 file that references these footnotes, but no such footnotes in the
11953 document. This will produce a corruption error. Here we add these to the
11954 document and `settings.xml` file, so future modifications won't break
11956 + Handle lists correctly inside table cells (Jesse Rosenthal).
11957 Previously we didn't transform lists inside table cells.
11958 + Set firstRow information in tables (Nikolay Yakimov).
11959 + Don't replace `SourceCode` style in `reference.docx` if it is defined
11960 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
11961 any `SourceCode` and `*Tok` styles in `reference.docx`.
11962 + Attempt to match international style names (#1607, Nikolay Yakimov).
11963 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
11964 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
11965 `Definition`, `First Paragraph`.
11966 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
11967 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
11968 `Footnote Ref -> Footnote Reference`.
11969 + Added `Caption` style (Nikolay Yakimov).
11970 + Changed these styles' inheritance (Nikolay Yakimov):
11971 `Image Caption <- Caption`, `Table Caption <- Caption`.
11972 + Remove `SourceCode` style from `reference.docx` (#1872).
11973 This is added automatically by the docx writer.
11974 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
11976 * `Text.Pandoc.PDF`
11978 + Don't suggest "Try xelatex" if xelatex already in use (mb21, #1832).
11979 + More comprehensible errors on image conversion (#2067).
11980 EPS can't be supported without shelling out to something like
11981 ImageMagick, but at least we can avoid mysterious error messages.
11983 * `Text.Pandoc.Shared`:
11985 + Make safeRead safe (#1801, Matthew Pickering).
11986 + Added `mapLeft`, `hush` (Matthew Pickering).
11988 * `Text.Pandoc.Pretty`:
11990 + Remove partial function (Matthew Pickering).
11992 * `Text.Pandoc.SelfContained`:
11994 + Add `;charset=utf-8` to script mime type if missing (#1842).
11995 + Improved building of data URIs (#1940). Now base64 is used except
11996 for `text/*` mime types.
11997 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
11998 + Properly handle data URIs in css urls (#2129).
11999 Use a proper CSS parser (adds dependency on `text-css`).
12001 * `Text.Pandoc.UTF8`:
12003 + Better handling of bare CRs in input files (#2132).
12004 Previously we just stripped them out; now we convert
12005 other line ending styles to LF line endings.
12007 * `Text.Pandoc.ImageSize`:
12009 + Fixed some exif header parsing bugs (#1834).
12010 + Make imageSize return an Either, not a Maybe (#1834).
12011 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
12012 parse failure (rather than `error`).
12013 + Improved warnings when image size can't be determined.
12014 + Removed error landmines (Matthew Pickering).
12016 * Added woff2 to MIME types (Alfred Wechselberger).
12018 * pandoc: When a binary input format is used, warn that file
12019 arguments past the first one are being ignored (Matthew Pickering).
12021### Template changes
12025 + Degrade gracefully if `\paragraph` not defined.
12026 + Include `grffile` together with `graphicx` (#2074).
12027 This properly handles filenames containing spaces and dots.
12028 + Redefine `\paragraph`, `\subparagraph`... to behave more
12029 like section headers (#1658).
12030 + Import hyperref before polyglossia to avoid an error with xelatex,
12031 "please load package hyperref before bidi package" (Nick Bart).
12032 + Added `toccolor` variable to control link color in toc (Kaixhin).
12034 * LaTeX, Beamer templates:
12036 + Provide `\tightlist`, which is now used by the LaTeX writer.
12037 + Use polyglossia in beamer (#85).
12038 + Use `bibliography` instead of `biblio-files`
12039 (#1661). Also use `\addbibresource` instead of `\bibliography` for
12041 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
12042 variable that is derived from a comma-separated list in `lang`;
12043 the last language is `mainlang` and the others are `otherlang`.
12047 + Use `div`, not `p`, for "rights" on title page.
12048 + Added header-includes, include-before, include-after (#1987).
12050 * OpenDocument template:
12052 + Use `text:p` instead of `text:h` for title.
12053 Using `text:h` causes problems with numbering. Closes #2059.
12054 Thanks to @nkalvi for diagnosing this.
12056 * reveal.js template:
12058 + Link to non-minified css, js. The minified versions no longer
12059 ship with the library.
12060 + Correctly include style CSS (#1949).
12061 + New configurable options options: `center`, `maxScale`, `slideNuber`
12062 (Dmitry Smirnov, pandoc-templates#89).
12063 + Moved custom CSS after theme. This allows custom CSS to modify
12064 themes, instead of being replaced by them.
12065 + Allow `center` to be set to false.
12067### Under the hood improvements
12069 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
12070 Yakimov). Instead the repository now includes the component text files,
12071 and the zipped binaries are built from these using a helper
12072 program, `make-reference-files`. This should make maintenance of
12073 these components easier going forward.
12075 * `Text.Pandoc.Parsing`:
12077 + Added new `<+?>` combinator (Nikolay Yakimov).
12078 + Added `stateHeaderKeys` to `ParserState`.
12080 * `make_deb.sh` fixes:
12082 + Detect architecture.
12083 + Add Installed-Size to debian package control file (#1900).
12084 + Use `fakeroot` to get permissions right.
12085 + Use `mkdir` and `cp` instead of `install`.
12086 + Set permissions of directories to 755.
12087 + Install in `/usr` rather than `/usr/local`.
12088 + Compress man pages.
12089 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
12091 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
12092 to assist with transition to `time` 1.5.
12094 * Updated CONTRIBUTING.md with information about issue tags (Matthew
12097 * Updated travis installs to the new sudo-less syntax (Tim Lin).
12099 * Updated dependency version bounds.
12101 * EPUB tests: don't use `joinPath`, which varies across platforms.
12102 Instead, use a forward-slash to join paths, regardless of the
12103 platform. This matches the way `MediaBag` now works.
12105 * Clarify JSON input and output in usage message (Caleb McDaniel).
12107 * Improved INSTALL instructions.
12109 * Always build man pages. Removed make-pandoc-man-pages flag.
12111 * Makefile: removed man target, now that we generate man pages by default.
12115 + Fixed typos (J. Lewis Muir).
12116 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
12117 + Added note on in-field markup in biblio databases (Nick Bart).
12118 + Fixed misleading example of raw HTML block.
12119 + Various minor formatting and consistency fixes for the program
12120 options (Andreas Lööw).
12121 + Made definition lists for options all "loose" for consistency.
12122 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
12123 `--bib2json` and `--bib2yaml` options (Nick Bart).
12124 + Removed obsolete reference to `mods2yaml` (Nick Bart).
12125 + Added section on syntax highlighting.
12126 + Documented `toccolor` variable.
12128## pandoc 1.13.2.1 (2015-04-15)
12130 * Updated to build with ghc 7.10.1.
12132 * Bumped package upper bounds for filepath, blaze-html, blaze-markup.
12134## pandoc 1.13.2 (2014-12-20)
12136 * TWiki Reader: add new new twiki reader (API chaneg, Alexander Sulfrian).
12140 + Better handling of paragraph in div (#1591).
12141 Previously text that ended a div would be parsed as Plain
12142 unless there was a blank line before the closing div tag.
12143 + Don't treat a citation as a reference link label (#1763).
12144 + Fix autolinks with following punctuation (#1811).
12145 The price of this is that autolinked bare URIs can no longer
12146 contain `>` characters, but this is not a big issue.
12147 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
12148 + Allow `startnum` to work without `fancy_lists`. Formerly
12149 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
12151 * RST reader (all Daniel Bergey):
12153 + Parse quoted literal blocks (#65). RST quoted literal blocks are
12154 the same as indented literal blocks (which pandoc already supports)
12155 except that the quote character is preserved in each line.
12156 + Parse RST class directives. The class directive accepts one or more
12157 class names, and creates a Div value with those classes. If the
12158 directive has an indented body, the body is parsed as the children of
12159 the Div. If not, the first block following the directive is made a
12160 child of the Div. This differs from the behavior of rst2xml, which
12161 does not create a Div element. Instead, the specified classes are
12162 applied to each child of the directive. However, most Pandoc Block
12163 constructors to not take an Attr argument, so we can't duplicate this
12165 + Warn about skipped directives.
12166 + Literal role now produces Code. Code role should have "code" class.
12167 + Improved support for custom roles
12169 - Added `sourceCode` to classes for `:code:` role, and anything
12170 inheriting from it.
12171 - Add the name of the custom role to classes if the Inline
12172 constructor supports Attr.
12173 - If the custom role directive does not specify a parent role,
12174 inherit from the `:span:` role.
12176 This differs somewhat from the `rst2xml.py` behavior. If a custom
12177 role inherits from another custom role, Pandoc will attach both
12178 roles' names as classes. `rst2xml.py` will only use the class of
12179 the directly invoked role (though in the case of inheriting from a
12180 `:code:` role with a `:language:` defined, it will also provide the
12181 inherited language as a class).
12182 + Warn about ignored fields in role directives.
12186 + Parse label after caption into a span instead of
12187 inserting an additional paragraph of bracketed text (#1747).
12188 + Parse math environments as inline when possible (#1821).
12189 + Better handling of `\noindent` and `\greektext` (#1783).
12190 + Handle `\texorpdfstring` more gracefully.
12191 + Handle `\cref` and `\sep` (Wikiwide).
12192 + Support `\smartcite` and `\Smartcite` from biblatex.
12196 + Retain display type of MathML output (#1719, Matthew Pickering).
12197 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
12198 + Make `embed` tag either block or inline (#1756).
12202 + Handle `keycombo`, `keycap` (#1815).
12203 + Get string content in inner tags for literal elements (#1816).
12204 + Handle `menuchoice` elements better, with a `>` between (#1817).
12205 + Include `id` on section headers (#1818).
12206 + Document/test "type" as implemented (Brian O'Sullivan).
12207 + Add support for calloutlist and callout (Brian O'Sullivan).
12208 We treat a calloutlist as a bulleted list. This works well in practice.
12209 + Add support for `classname` (Bryan O'Sullivan).
12213 + Fix window path for image lookup (Jesse Rosenthal).
12214 Don't use os-sensitive "combine", since we always want the paths in our
12215 zip-archive to use forward-slashes.
12216 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
12217 When users number their headers, Word understands that as a single item
12218 enumerated list. We make the assumption that such a list is, in fact,
12220 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
12221 There could be new top-level headers after making lists, so we have to
12222 rewrite links after that.
12223 + Use polyglot header list (Jesse Rosenthal).
12224 We're just keeping a list of header formats that different languages
12225 use as their default styles. At the moment, we have English, German,
12226 Danish, and French. We can continue to add to this.
12227 This is simpler than parsing the styles file, and perhaps less
12228 error-prone, since there seems to be some variations, even within a
12229 language, of how a style file will define headers.
12230 + Remove header class properly in other langs (Jesse Rosenthal).
12231 When we encounter one of the polyglot header styles, we want to remove
12232 that from the par styles after we convert to a header. To do that, we
12233 have to keep track of the style name, and remove it appropriately.
12234 + Account for external link URLs with anchors. Previously, if a URL
12235 had an anchor, the reader would incorrectly identify it as an
12236 internal link and return only the anchor as URL. (Caleb McDaniel)
12237 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
12241 + Added state changing blanklines (Jesse Rosenthal).
12242 This allows us to emphasize at the beginning of a new paragraph (or, in
12243 general, after blank lines).
12244 + Fixed bug with bulleted lists:
12250 was being parsed as a list, even though an unindented `*`
12251 should make a heading. See
12252 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
12253 + Org reader: absolute, relative paths in link (#1741, Albert
12254 Krewinkel). The org reader was too restrictive when parsing links;
12255 some relative links and links to files given as absolute paths
12256 were not recognized correctly.
12257 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
12258 This is important for use in gitit, which uses empty links
12260 + Respect indent when parsing Org bullet lists (#1650, Timothy
12261 Humphries). Fixes issue with top-level bullet list parsing.
12262 + Fix indent issue for definition lists (Timothy Humphries,
12263 see #1650, #1698, #1680).
12264 + Parse multi-inline terms correctly in definition list (#1649,
12265 Matthew Pickering).
12266 + Fix rules for emphasis recognition (Albert Krewinkel).
12267 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
12268 strings. This is wrong, as `,` and `'` are forbidden border chars and
12269 may not occur on the inner border of emphasized text.
12270 + Drop COMMENT document trees (Albert Krewinkel).
12271 Document trees under a header starting with the word `COMMENT` are
12272 comment trees and should not be exported. Those trees are dropped
12274 + Properly handle links to `file:target` (Albert Krewinkel).
12275 Org links like `[[file:target][title]]` were not handled correctly,
12276 parsing the link target verbatim. The org reader is changed such that
12277 the leading `file:` is dropped from the link target (see #756, #1812).
12278 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
12279 Org supports special symbols which can be included using LaTeX syntax,
12280 but are actually MathML entities. Examples for this are
12281 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
12282 or `\copy` (the copyright sign ©)
12286 + URI handling improvements. Now we outsource most of the work to
12287 `fetchItem'`. Also, do not include queries in file extensions (#1671).
12291 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
12292 + Handle consecutive linebreaks (#1733).
12293 + Protect graphics in headers (Jesse Rosenthal).
12294 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
12295 + Put `~` before header in list item text (Jesse Rosenthal).
12296 Because of the built-in line skip, LaTeX can't handle a section header
12297 as the first element in a list item.
12298 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
12299 + Better handling of display math in simple tables (#1754).
12300 We convert display math to inline math in simple tables,
12301 since LaTeX can't deal with display math in simple tables.
12302 + Escape spaces in code (#1694, Bjorn Buckwalter).
12304 * MediaWiki writer:
12306 + Fixed links with URL = text. Previously these were rendered as bare
12307 words, even if the URL was not an absolute URL (#1825).
12311 + Don't force all citations into footnotes.
12315 + Add blankline at end of output (#1732, Matthew Pickering).
12319 + Ensure blank line after figure.
12320 + Avoid excess whitespace after last list item (#1777).
12321 + Wrap line blocks with spaces before continuations (#1656).
12322 + Fixed double-rendering of footnotes in RST tables (#1769).
12326 + Better handling of block quotes. This change ensures that
12327 multiple paragraph blockquotes are rendered using native `>`
12328 rather than as HTML (#1738).
12329 + Fix external images (#1739). Preface relative links with ":",
12330 absolute URIs without. (Timothy Humphries)
12334 + Use protocol-relative URL for mathjax.
12335 + Put newline btw img and caption paragraph.
12336 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
12337 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
12338 This adds `KaTeX` to `HTMLMathMethod` (API change).
12339 + Don't double render when `email-obfuscation=none` (#1625, Matthew
12341 + Make header attributes work outside top level (#1711).
12342 Previously they only appeared on top level header elements.
12343 Now they work e.g. in blockquotes.
12347 + Correctly handle images without extensions (#1729).
12348 + Strip querystring in ODT write (#1682, Todd Sifleet).
12352 + Add newline to output.
12356 + Don't add `sourceURL` to absolute URIs (#1669).
12357 + Don't use unsupported `opf:title-type` for epub2.
12358 + Include "landmarks" section in nav document for epub3 (#1757).
12359 + Removed playOrder from navpoint elements in ncx file (#1760).
12360 These aren't required, and they make manual modification of epubs
12362 + Extract title even from structured title.
12363 + Don't include nav node in spine unless `--toc` was requested.
12364 Previously we included it in the spine with `linear="no"`, leading
12365 to odd results in some readers (#1593).
12366 + Fixed absolute URI detection (#1672).
12367 + Correctly resolve relative URIs (#1671).
12368 + Use regular page template for `nav.xhtml`, including doctype (#1759).
12372 + Put docx table captions above tables (#1641, Nikolay Yakimov).
12373 + Get the page width from the reference docx file, and use
12374 it to scale images that are too large to fit (Grégory Bataille).
12375 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
12376 are inferred based on `<w:name val="heading #">` fallback, if there
12377 are no en-US "Heading#" styles
12378 + Look in user data dir for archive `reference.docx`.
12379 + Renumber header and footer relationships to avoid collisions (Jesse
12380 Rosenthal). We previously took the old relationship names of the
12381 headers and footer in secptr. That led to collisions. We now make
12382 a map of available names in the relationships file, and then rename
12387 + Add function toLabel (Mark Szepieniec).
12388 This function can be used to sanitize reference labels so that
12389 they do not contain any of the illegal characters \#[]",{}%()|= .
12390 Currently only Links have their labels sanitized, because they
12391 are the only Elements that use passed labels.
12393 * `Text.Pandoc.Shared`:
12395 + Moved import of `toChunks` outside of CPP conditional (#1590).
12396 + Fix `inDirectory` to reset to the original directory in case
12397 an exception occurs (Freiric Barral).
12401 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
12402 Thanks to bluebirch.
12403 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
12405 + LaTeX template: Add shorthands=off to babel options (#1648).
12406 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
12407 This aids styling, making it possible for example to set 0 margins
12408 on the title page (#1758).
12409 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
12410 Previously we just expected 'title', 'subtitle', 'author', 'date'.
12411 Now we still support those, but also support the format recommended
12412 for epub metadata in the pandoc README:
12419 text: An investigation of metadata
12427 text: doi:10.234234.234/33
12428 publisher: My Press
12429 rights: (c) 2007 John Smith, CC BY-NC
12432 * `Text.Pandoc.Templates.getDefaultTemplate`:
12433 don't fail when called with "fb2" (#1660).
12435 * `Text.Pandoc.Parsing`:
12437 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
12438 For example: `$x = \text{the $n$th root of $y$}` (#1677).
12439 + Change `parseFromString` to fail if not all input is consumed.
12440 (Matthew Pickering)
12441 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
12442 used by more readers (API change, Daniel Bergey).
12444 * `Text.Pandoc.Pretty`:
12446 + Improve performance of `realLength` (Matthew Pickering).
12447 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
12448 were getting at the end of markdown fragments (as well as rst, org,
12451 * `Text.Pandoc.MIME`:
12453 + Add mime type for WebVTT (Jason Ronallo).
12454 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
12455 This is needed for epub3 validation.
12457 * `Text.Pandoc.MediaBag`:
12459 + Fix Windows specific path problems (#1597).
12461 * `Text.Pandoc.Shared`:
12463 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
12465 * Link the test suite using `-threaded`.
12466 This allows the test suite to be run using `+RTS -N`.
12468 * Added `network` dependency under `network-uri` flag in test section.
12470 * Give better error messages when someone tries to convert from
12471 pdf, doc, odt (#1683).
12473 * Added `track` to list of tags treated by `--self-contained` (#1664).
12476## pandoc 1.13.1 (2014-08-30)
12478 * Fixed `--self-contained` with Windows paths (#1558).
12479 Previously `C:\foo.js` was being wrongly interpreted as a URI.
12481 * HTML reader: improved handling of tags that can be block or inline.
12482 Previously a section like this would be enclosed in a paragraph,
12483 with RawInline for the video tags (since video is a tag that can
12484 be either block or inline):
12486 <video controls="controls">
12487 <source src="../videos/test.mp4" type="video/mp4" />
12488 <source src="../videos/test.webm" type="video/webm" />
12490 The videos can not be played back on your system.<br/>
12491 Try viewing on Youtube (requires Internet connection):
12492 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
12497 This change will cause the video and source tags to be parsed
12498 as RawBlock instead, giving better output.
12499 The general change is this: when we're parsing a "plain" sequence
12500 of inlines, we don't parse anything that COULD be a block-level tag.
12504 + Be sensitive to user styles. Note that "Hyperlink" is
12505 "blacklisted," as we don't want the default underline styling to be
12506 inherited by all links by default (Jesse Rosenthal).
12507 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
12508 This makes to docx reader's native output fit with the way the markdown
12509 reader understands its markdown output.
12513 + Header is now parsed only if standalone flag is set (Matthew Pickering).
12514 + The header is now parsed as meta information. The first line is the
12515 `title`, the second is the `author` and third line is the `date`
12516 (Matthew Pickering).
12517 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
12518 + Fixed crash when reading from stdin.
12520 * Textile writer: Extended the range of cases where native textile
12521 tables will be used (as opposed to raw HTML): we now handle any
12522 alignment type, but only for simple tables with no captions.
12524 * EPUB writer: Don't use page-progression-direction in EPUB2, which
12525 doesn't support it. Also, if page-progression-direction not specified
12526 in metadata, don't include the attribute even in EPUB3; not including it
12527 is the same as including it with the value "default", as we did before.
12530 * Org writer: Accept example lines with indentation at the beginning
12535 + Refactor to use Reader monad (Matthew Pickering).
12536 + Avoid using raw HTML in table cells; instead, use `\\`
12537 instead of newlines (Jesse Rosenthal).
12538 + Properly handle HTML table cell alignments, and use spacing
12539 to make the tables look prettier (#1566).
12543 + Bibliography entries get `Bibliography` style (#1559).
12544 + Implement change tracking (Jesse Rosenthal).
12548 + Fixed a bug that caused a table caption to repeat across all pages
12550 + Improved vertical spacing in tables and made it customizable using
12551 standard lengths set by booktab. See
12552 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
12554 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
12555 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
12556 + Made horizontal rules more flexible (Jose Luis Duran).
12558 * Text.Pandoc.MIME:
12560 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
12561 Code cleanups (Artyom Kazak).
12565 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
12568 * Improved OSX build procedure.
12570 * Added `network-uri` flag, to deal with split of `network-uri` from
12573 * Fix build dependencies for the `trypandoc` flag, so that they are
12574 ignored if `trypandoc` flag is set to False (Gabor Pali).
12576 * Updated README to remove outdated claim that `--self-contained`
12577 looks in the user data directory for missing files.
12579## pandoc 1.13.0.1 (2014-08-17)
12583 + Fixed regression which bungled list numbering (#1544), causing
12584 all lists to appear as basic ordered lists.
12585 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
12586 Added a property to all table rows where the sum of column widths
12587 is specified in pct (fraction of 5000). This helps persuade Word
12588 to lay out the table with the widths we specify.
12590 * Fixed a bug in Windows 8 which caused pandoc not to find the
12591 `pandoc-citeproc` filter (#1542).
12593 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
12594 Most significantly, the reader now uses Builder, leading to some
12595 performance improvements.
12597 * HTML reader: Parse appropriately styled span as SmallCaps.
12599 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
12600 `superscript`, and `subscript` extensions, respectively, are
12601 deactivated (#1127).
12603 * Added `trypandoc` flag to build CGI executable used in the online
12606 * Makefile: Added 'quick', 'osxpkg' targets.
12608 * Updated README in templates to indicate templates license.
12609 The templates are dual-licensed, BSD3 and GPL2+.
12611## pandoc 1.13 (15 August 2014)
12615 * Added `docx` as an input format (Jesse Rosenthal). The docx
12616 reader includes conversion of native Word equations to pandoc
12617 LaTeX `Math` elements. Metadata is taken from paragraphs at the
12618 beginning of the document with styles `Author`, `Title`, `Subtitle`,
12619 `Date`, and `Abstract`.
12621 * Added `epub` as an input format (Matthew Pickering). The epub
12622 reader includes conversion of MathML to pandoc LaTeX `Math`
12625 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
12626 Txt2tags is a lightweight markup format described at
12627 <http://txt2tags.org/>.
12629 * Added `dokuwiki` as an output format (Clare Macrae).
12631 * Added `haddock` as an output format.
12633 * Added `--extract-media` option to extract media contained in a zip
12634 container (docx or epub) while adjusting image paths to point to the
12637 * Added a new markdown extension, `compact_definition_lists`, that
12638 restores the syntax for definition lists of pandoc 1.12.x, allowing
12639 tight definition lists with no blank space between items, and
12640 disallowing lazy wrapping. (See below under behavior changes.)
12642 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
12644 * Added extensions `native_spans` and `native_divs` to activate
12645 parsing of material in HTML span or div tags as Pandoc Span
12646 inlines or Div blocks.
12648 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
12649 Textile, and MediaWiki readers. This is an option intended
12650 for debugging parsing problems; ordinary users should not need
12653### Behavior changes
12655 * Changed behavior of the `markdown_attribute` extension, to bring
12656 it in line with PHP markdown extra and multimarkdown. Setting
12657 `markdown="1"` on an outer tag affects all contained tags,
12658 recursively, until it is reversed with `markdown="0"` (#1378).
12660 * Revised markdown definition list syntax (#1429). Both the reader
12661 and writer are affected. This change brings pandoc's definition list
12662 syntax into alignment with that used in PHP markdown extra and
12663 multimarkdown (with the exception that pandoc is more flexible about
12664 the definition markers, allowing tildes as well as colons). Lazily
12665 wrapped definitions are now allowed. Blank space is required
12666 between list items. The space before a definition is used to determine
12667 whether it is a paragraph or a "plain" element. **WARNING: This change
12668 may break existing documents!** Either check your documents for
12669 definition lists without blank space between items, or use
12670 `markdown+compact_definition_lists` for the old behavior.
12672 * `.numberLines` now works in fenced code blocks even if no language
12673 is given (#1287, jgm/highlighting-kate#40).
12675 * Improvements to `--filter`:
12677 + Don't search PATH for a filter with an explicit path.
12678 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
12679 the system path, even if there was a `caps.py` in the working directory.
12680 + Respect shebang if filter is executable (#1389).
12681 + Don't print misleading error message.
12682 Previously pandoc would say that a filter was not found,
12683 even in a case where the filter had a syntax error.
12687 + Parse `div` and `span` elements even without `--parse-raw`,
12688 provided `native_divs` and `native_spans` extensions are set.
12689 Motivation: these now generate native pandoc Div and Span
12690 elements, not raw HTML.
12691 + Parse EPUB-specific elements if the `epub_html_exts`
12692 extension is enabled. These include `switch`, `footnote`,
12693 `rearnote`, `noteref`.
12697 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
12698 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
12699 `\cite{Coffee}`), can be used without any further escaping (Albert
12702 * Textile reader and writer:
12704 + The `raw_tex` extension is no longer set by default. You can
12705 enable it with `textile+raw_tex`.
12709 + Support `equation`, `informalequation`, `inlineequation` elements with
12710 `mml:math` content. This is converted into LaTeX and put into a Pandoc
12713 * Revised `plain` output, largely following the style of Project
12716 + Emphasis is rendered with `_underscores_`, strong emphasis
12718 + Headings are rendered differently, with space to set them off,
12719 not with setext style underlines. Level 1 headers are ALL CAPS.
12720 + Math is rendered using unicode when possible, but without the
12721 distracting emphasis markers around variables.
12722 + Footnotes use a regular `[n]` style.
12726 + Horizontal rules are now a line across the whole page.
12727 + Prettier pipe tables. Columns are now aligned (#1323).
12728 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
12729 no longer emits any raw HTML, including span and div tags
12730 generated by Span and Div elements.
12731 + Use span with style for `SmallCaps` (#1360).
12735 + Autolinks now have class `uri`, and email autolinks have class
12736 `email`, so they can be styled.
12740 + Document formatting is carried over from `reference.docx`.
12741 This includes margins, page size, page orientation, header,
12742 and footer, including images in headers and footers.
12743 + Include abstract (if present) with `Abstract` style (#1451).
12744 + Include subtitle (if present) with `Subtitle` style, rather
12745 than tacking it on to the title (#1451).
12749 + Write empty span elements with an id attribute as org anchors.
12750 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
12754 + Put table captions above tables, to match the conventional
12755 standard. (Previously they appeared below tables.)
12756 + Use `\(..\)` instead of `$..$` for inline math (#1464).
12757 + Use `\nolinkurl` in email autolinks. This allows them to be styled
12758 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
12759 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
12760 curly quotes in the PDF output (#1364).
12761 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
12762 do not appear before the overlays in which their markers appear
12764 + Don't produce a `\label{..}` for a Div or Span element. Do produce
12765 a `\hyperdef{..}` (#1519).
12769 + If the metadata includes `page-progression-direction` (which can be
12770 `ltr` or `rtl`, the `page-progression-direction` attribute will
12771 be set in the EPUB spine (#1455).
12773 * Custom lua writers:
12775 + Custom writers now work with `--template`.
12776 + Removed HTML header scaffolding from `sample.lua`.
12777 + Made citation information available in lua writers.
12779 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
12780 adjacent `RawBlock`s when possible.
12784 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
12786 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
12789 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
12792 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
12795 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
12797 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
12798 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
12799 readers return a pair of a `Pandoc` document and a `MediaBag` with
12800 the media resources they contain. This can be extracted using
12801 `--extract-media`. Writers that incorporate media (PDF, Docx,
12802 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
12803 for resources in the `MediaBag` generated by the reader, in addition to
12804 the file system or web.
12806 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
12807 Renamed `readTeXMath'` to `texMathToInlines`.
12809 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
12810 `readers` now associates names of readers with `Reader`
12811 structures. This allows inclusion of readers, like the docx
12812 reader, that take binary rather than textual input.
12814 * `Text.Pandoc.Shared`:
12816 + Added `capitalize` (Artyom Kazak), and replaced uses of
12817 `map toUpper` (which give bad results for many languages).
12818 + Added `collapseFilePath`, which removes intermediate `.` and
12819 `..` from a path (Matthew Pickering).
12820 + Added `fetchItem'`, which works like `fetchItem` but searches
12821 a `MediaBag` before looking on the net or file system.
12822 + Added `withTempDir`.
12823 + Added `removeFormatting`.
12824 + Added `extractSpaces` (from HTML reader) and generalized its type
12825 so that it can be used by the docx reader (Matthew Pickering).
12827 + Added `normalizeInlines`, `normalizeBlocks`.
12828 + `normalize` is now `Pandoc -> Pandoc` instead of
12829 `Data a :: a -> a`. Some users may need to change their uses of
12830 `normalize` to the newly exported `normalizeInlines` or
12833 * `Text.Pandoc.Options`:
12835 + Added `writerMediaBag` to `WriterOptions`.
12836 + Removed deprecated and no longer used `readerStrict` in
12837 `ReaderOptions`. This is handled by `readerExtensions` now.
12838 + Added `Ext_compact_definition_lists`.
12839 + Added `Ext_epub_html_exts`.
12840 + Added `Ext_native_divs` and `Ext_native_spans`.
12841 This allows users to turn off the default pandoc behavior of
12842 parsing contents of div and span tags in markdown and HTML
12843 as native pandoc Div blocks and Span inlines.
12845 * `Text.Pandoc.Parsing`:
12847 + Generalized `readWith` to `readWithM` (Matthew Pickering).
12848 + Export `runParserT` and `Stream` (Matthew Pickering).
12849 + Added `HasQuoteContext` type class (Matthew Pickering).
12850 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
12851 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
12852 `applyMacros` (Matthew Pickering).
12853 + Added custom `token` (Matthew Pickering).
12854 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
12855 track of the ending tag we're waiting for when we're parsing inside
12857 + Added `stateMarkdownAttribute` to `ParserState`. This is used
12858 to keep track of whether the markdown attribute has been set in
12860 + Generalized type of `registerHeader`, using new type classes
12861 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
12862 Pickering). These allow certain common functions to be reused
12863 even in parsers that use custom state (instead of `ParserState`),
12864 such as the MediaWiki reader.
12865 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
12866 and generalized their types (Matthew Pickering).
12868 * `Text.Pandoc.Pretty`:
12871 + Added `blanklines`, which guarantees a certain number of blank lines
12878 + Fixed parsing of indented code in list items. Indented code
12879 at the beginning of a list item must be indented eight spaces
12880 from the margin (or edge of the container), or four spaces
12881 from the list marker, whichever is greater.
12882 + Fixed small bug in HTML parsing with `markdown_attribute`, which
12883 caused incorrect tag nesting for input like
12884 `<aside markdown="1">*hi*</aside>`.
12885 + Fixed regression with intraword underscores (#1121).
12886 + Improved parsing of inline links containing quote characters (#1534).
12887 + Slight rewrite of `enclosure`/`emphOrStrong` code.
12888 + Revamped raw HTML block parsing in markdown (#1330).
12889 We no longer include trailing spaces and newlines in the
12890 raw blocks. We look for closing tags for elements (but without
12891 backtracking). Each block-level tag is its own `RawBlock`;
12892 we no longer try to consolidate them (though `--normalize` will do so).
12893 + Combine consecutive latex environments. This helps when you have
12894 two minipages which can't have blank lines between them (#690, #1196).
12895 + Support smallcaps through span.
12896 `<span style="font-variant:small-caps;">foo</span>` will be
12897 parsed as a `SmallCaps` inline, and will work in all output
12898 formats that support small caps (#1360).
12899 + Prevent spurious line breaks after list items (#1137). When the
12900 `hard_line_breaks` option was specified, pandoc would formerly
12901 produce a spurious line break after a tight list item.
12902 + Fixed table parsing bug (#1333).
12903 + Handle `c++` and `objective-c` as language identifiers in
12904 github-style fenced blocks (#1318).
12905 + Inline math must have nonspace before final `$` (#1313).
12909 + Handle comments at the end of tables. This resolves the issue
12910 illustrated in <http://stackoverflow.com/questions/24009489>.
12911 + Correctly handle table rows with too few cells. LaTeX seems to
12912 treat them as if they have empty cells at the end (#241).
12913 + Handle leading/trailing spaces in `\emph` better.
12914 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
12915 so that we don't get things like `* hi *` in markdown output.
12916 Also applies to `textbf` and some other constructions (#1146).
12917 + Don't assume preamble doesn't contain environments (#1338).
12918 + Allow (and discard) optional argument for `\caption` (James Aspnes).
12922 + Fixed major parsing problem with HTML tables. Table cells were
12923 being combined into one cell (#1341).
12924 + Fixed performance issue with malformed HTML tables.
12925 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
12926 + Allow space between `<col>` and `</col>`.
12927 + Added `audio` and `source` in `eitherBlockOrInline`.
12928 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
12929 `blockTags` to `eitherBlockOrInline`.
12930 + `map` and `object` were mistakenly in both lists; they have been removed
12932 + Ignore `DOCTYPE` and `xml` declarations.
12934 * MediaWiki reader:
12936 + Don't parse backslash escapes inside `<source>` (#1445).
12937 + Tightened up template parsing.
12938 The opening `{{` must be followed by an alphanumeric or `:`.
12939 This prevents the exponential slowdown in #1033.
12940 + Support "Bild" for images.
12944 + Better handle elements inside code environments. Pandoc's document
12945 model does not allow structure inside code blocks, but at least this way
12946 we preserve the text (#1449).
12947 + Support `<?asciidoc-br?>` (#1236).
12951 + Fixed list parsing. Lists can now start without an intervening
12952 blank line (#1513).
12953 + HTML block-level tags that do not start a line are parsed as
12954 inline HTML and do not interrupt paragraphs (as in RedCloth).
12958 + Make tildes create inline code (#1345). Also relabeled `code` and
12959 `verbatim` parsers to accord with the org-mode manual.
12960 + Respect `:exports` header argument in code blocks (Craig Bosma).
12961 + Fixed tight lists with sublists (#1437).
12965 + Avoid excess whitespace in `nav.xhtml`. This should improve
12966 TOC view in iBooks (#1392).
12967 + Fixed regression on cover image.
12968 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
12969 because the metadata id was not correct. Now we derive the id from the
12970 actual cover image filename, which we preserve rather than using
12972 + Keep newlines between block elements. This allows
12973 easier diff-ability (#1424).
12974 + Use `stringify` instead of custom `plainify`.
12975 + Use `renderTags'` for all tag rendering. This properly handles tags
12976 that should be self-closing. Previously `<hr/>` would appear in EPUB
12977 output as `<hr></hr>` (#1420).
12978 + Better handle HTML media tags.
12979 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
12980 can have only one dc:date, so only the first one is used.
12984 + Correctly handle figures in notes. Notes can't contain figures in
12985 LaTeX, so we fake it to avoid an error (#1053).
12986 + Fixed strikeout + highlighted code (#1294).
12987 Previously strikeout highlighted code caused an error.
12991 + Improved detection of autolinks with URLs containing escapes.
12995 + Improved image embedding: `fetchItem'` is now used to get the
12996 images, and calculated image sizes are indicated in the RTF.
12997 + Avoid extra paragraph tags in metadata (#1421).
13001 + Deactivate "incremental" inside slide speaker notes (#1394).
13002 + Don't include empty items in the table of contents for
13003 slide shows. (These would result from creating a slide
13004 using a horizontal rule.)
13006 * MediaWiki writer:
13008 + Minor renaming of `st` prefixed names.
13012 + Double up emphasis and strong emphasis markers in intraword
13013 contexts, as required by asciidoc (#1441).
13017 + Avoid wrapping that might start a list, blockquote, or header (#1013).
13018 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
13019 + Don't use braced attributes for fenced code (#1416).
13020 If `Ext_fenced_code_attributes` is not set, the first class
13021 attribute will be printed after the opening fence as a bare word.
13022 + Separate adjacent lists of the same kind with an HTML comment (#1458).
13026 + Fixed treatment of data uris for images (#1062).
13030 + Use Compact style for empty table cells (#1353).
13031 Otherwise we get overly tall lines when there are empty
13032 table cells and the other cells are compact.
13033 + Create overrides per-image for `media/` in reference docx.
13034 This should be somewhat more robust and cover more types of images.
13035 + Improved `entryFromArchive` to avoid an unneeded parse.
13036 + Section numbering carries over from reference.docx (#1305).
13037 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
13038 we assign numbers based on the list marker styles.
13040 * `Text.Pandoc.Options`:
13042 + Removed `Ext_fenced_code_attributes` from `markdown_github`
13045 * `Text.Pandoc.ImageSize`:
13047 + Use default instead of failing if image size not found
13048 in exif header (#1358).
13049 + ignore unknown exif header tag rather than crashing.
13050 Some images seem to have tag type of 256, which was causing
13053 * `Text.Pandoc.Shared`:
13055 + `fetchItem`: unescape URI encoding before reading local file (#1427).
13056 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
13057 doing mime lookup, to improve mime type guessing.
13058 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
13059 other things are treated as relative URIs if `sourceURL` is `Just _`,
13060 otherwise as file paths on the local file system.
13061 + `fetchItem` now properly handles links without a protocol (#1477).
13062 + `fetchItem` now escapes characters not allowed in URIs before trying
13064 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
13066 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
13067 needed to resolve relative URLs when we fetch resources (#750).
13069 * `Text.Pandoc.Parsing`
13071 + Simplified `dash` and `ellipsis` (#1419).
13072 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
13073 + Generalized functions to use `ParsecT` (Matthew Pickering).
13074 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
13077### Template changes
13079 * Added haddock template.
13080 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
13081 be "advisory" in HTML5, but kindlegen seems to require them.
13082 * EPUB3: Put title page in section with `epub:type="titlepage"`.
13083 * LaTeX: Made `\subtitle` work properly (#1327).
13084 * LaTeX/Beamer: remove conditional around date (#1321).
13085 * LaTeX: Added `lot` and `lof` variables, which can be set to
13086 get `\listoftables` and `\listoffigures` (#1407). Note that
13087 these variables can be set at the command line with `-Vlot -Vlof`
13088 or in YAML metadata.
13090### Under the hood improvements
13092 * Rewrote normalize for efficiency (#1385).
13094 * Rewrote Haddock reader to use `haddock-library` (#1346).
13096 + This brings pandoc's rendering of haddock markup in line
13097 with the new haddock.
13098 + Fixed line breaks in `@` code blocks.
13099 + alex and happy are no longer build-depends.
13101 * Added `Text.Pandoc.Compat.Directory` to allow building against
13102 different versions of the `directory` library.
13104 + Added `Text.Pandoc.Compat.Except` to allow building against
13105 different versions of `mtl`.
13107 * Code cleanup in some writers, using Reader monad to avoid
13108 passing options parameter around (Matej Kollar).
13110 * Improved readability in `pandoc.hs`.
13112 * Miscellaneous code cleanups (Artyom Kazak).
13114 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
13117 * Changed `http-conduit` flag to `https`. Depend on `http-client`
13118 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
13119 depends on `conduit` via `yaml`.)
13121 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
13122 This change to highlighting-kate means that PHP fragments no longer need
13123 to start with `<?php`. It also fixes a serious bug causing failures with
13126 * Require latest `texmath`. This fixes `\tilde{E}` and allows
13127 `\left` to be used with `]`, `)` etc. (#1319), among many other
13130 * Require latest `zip-archive`. This has fixes for unicode path names.
13132 * Added tests for plain writer.
13134 * `Text.Pandoc.Templates`:
13136 + Fail informatively on template syntax errors.
13137 With the move from parsec to attoparsec, we lost good error
13138 reporting. In fact, since we weren't testing for end of input,
13139 malformed templates would fail silently. Here we revert back to
13140 Parsec for better error messages.
13141 + Use `ordNub` (#1022).
13145 + Made benchmarks compile again (Artyom Kazak).
13146 + Fixed so that the failure of one benchmark does not prevent others
13147 from running (Artyom Kazak).
13148 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
13149 + Changed benchmark to use only the test suite, so that benchmarks
13152 * Windows build script:
13154 + Add `-windows` to file name.
13155 + Use one install command for pandoc, pandoc-citeproc.
13156 + Force install of pandoc-citeproc.
13158 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
13159 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
13160 will extract it into a folder named `SOMETHING.pkg`, which it
13161 will interpret as a defective package (#1308).
13165 + Made headers for all extensions so they have IDs and can be
13166 linked to (Beni Cherniavsky-Paskin).
13167 + Fixed typos (Phillip Alday).
13168 + Fixed documentation of attributes (#1315).
13169 + Clarified documentation on small caps (#1360).
13170 + Better documentation for `fenced_code_attributes` extension
13172 + Documented fact that you can put YAML metadata in a separate file
13176## pandoc 1.12.4.2 (2014-05-14)
13178 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
13180 * Shared: `addMetaValue` now behaves slightly differently:
13181 if both the new and old values are lists, it concatenates their
13182 contents to form a new list.
13186 + Set `bibliography` in metadata from `\bibliography` or
13187 `\addbibresource` command.
13188 + Don't error on `%foo` with no trailing newline.
13192 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
13193 + Fix parsing of blank lines within blocks (Albert Krewinkel).
13194 + Support pandoc citation extension (Albert Krewinkel). This can
13195 be turned off by specifying `org-citation` as the input format.
13199 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
13200 other readers (Albert Krewinkel).
13202 * `Text.Pandoc.Parsing`:
13204 + Added `citeKey` (see above).
13205 + Added `HasLastStrPosition` type class and `updateLastStrPos`
13206 and `notAfterString` functions.
13208 * Updated copyright notices (Albert Krewinkel).
13210 * Added default.icml to data files so it installs with the package.
13214 + The binary is now built with options to ensure that it can be
13215 used with OSX 10.6+.
13216 + Moved OSX package materials to osx directory.
13217 + Added OSX package uninstall script, included in the zip container
13218 (thanks to Daniel T. Staal).
13220## pandoc 1.12.4 (2014-05-07)
13222 * Made it possible to run filters that aren't executable
13223 (#1096). Pandoc first tries to find the executable (searching
13224 the path if path isn't given). If it fails, but the file
13225 exists and has a `.py`, `.pl`, `.rb`, `.hs`, or `.php`
13226 extension, pandoc runs the filter using the appropriate
13227 interpreter. This should make it easier to use filters on
13228 Windows, and make it more convenient for everyone.
13230 * Added Emacs org-mode reader (Albert Krewinkel).
13232 * Added InDesign ICML Writer (mb21).
13234 * MediaWiki reader:
13236 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
13237 + Fixed bug in certain nested lists (#1213). If a level 2 list was
13238 followed by a level 1 list, the first item of the level 1 list
13240 + Handle table rows containing just an HTML comment (#1230).
13244 + Give better location information on errors, pointing to line
13245 numbers within included files (#1274).
13246 + LaTeX reader: Better handling of `table` environment (#1204).
13247 Positioning options no longer rendered verbatim.
13248 + Better handling of figure and table with caption (#1204).
13249 + Handle `@{}` and `p{length}` in tabular. The length is not actually
13250 recorded, but at least we get a table (#1180).
13251 + Properly handle `\nocite`. It now adds a `nocite` metadata
13252 field. Citations there will appear in the bibliography but not
13253 in the text (unless you explicitly put a `$nocite$` variable
13258 + Ensure that whole numbers in YAML metadata are rendered without
13259 decimal points. (This became necessary with changes to aeson
13260 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
13261 + Fixed regression on line breaks in strict mode (#1203).
13262 + Small efficiency improvements.
13263 + Improved parsing of nested `div`s. Formerly a closing `div` tag
13264 would be missed if it came right after other block-level tags.
13265 + Avoid backtracking when closing `</div>` not found.
13266 + Fixed bug in reference link parsing in `markdown_mmd`.
13267 + Fixed a bug in list parsing (#1154). When reading a raw list
13268 item, we now strip off up to 4 spaces.
13269 + Fixed parsing of empty reference link definitions (#1186).
13270 + Made one-column pipe tables work (#1218).
13274 + Better support for attributes. Instead of being ignored, attributes
13275 are now parsed and included in Span inlines. The output will be a bit
13276 different from stock textile: e.g. for `*(foo)hi*`, we'll get
13277 `<em><span class="foo">hi</span></em>` instead of
13278 `<em class="foo">hi</em>`. But at least the data is not lost.
13279 + Improved treatment of HTML spans (%) (#1115).
13280 + Improved link parsing. In particular we now pick up on attributes.
13281 Since pandoc links can't have attributes, we enclose the whole link in
13282 a span if there are attributes (#1008).
13283 + Implemented correct parsing rules for inline markup (#1175, Matthew
13285 + Use Builder (Matthew Pickering).
13289 + Better treatment of `formalpara`. We now emit the title (if present)
13290 as a separate paragraph with boldface text (#1215).
13291 + Set metadata `author` not `authors`.
13292 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
13293 Matthew Pickering).
13294 + Converted current meta information parsing in DocBook to a more
13295 extensible version which is aware of the more recent meta
13296 representation (Matthew Pickering).
13300 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
13302 + Treat processing instructions & declarations as block. Previously
13303 these were treated as inline, and included in paragraph tags in HTML
13304 or DocBook output, which is generally not what is wanted (#1233).
13305 + Updated `closes` with rules from HTML5 spec.
13306 + Use Builder (Matthew Pickering, #1162).
13310 + Remove duplicate `http` in PEP links (Albert Krewinkel).
13311 + Make rst figures true figures (#1168, CasperVector)
13312 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
13313 rST parser now supports: all built-in rST roles, new role definition,
13314 role inheritance, though with some limitations.
13315 + Use `author` rather than `authors` in metadata.
13316 + Better handling of directives. We now correctly handle field
13317 lists that are indented more than three spaces. We treat an
13318 `aafig` directive as a code block with attributes, so it can be
13319 processed in a filter (#1212).
13323 + Mark span contents with label if span has an ID (Albert Krewinkel).
13324 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
13325 + Handle line breaks in simple table cells (#1217).
13326 + Workaround for level 4-5 headers in quotes. These previously produced
13327 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
13328 This adds an `mbox{}` in these contexts to work around the problem.
13329 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
13330 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
13331 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
13332 ligature with LuaLaTeX but `\/` does.
13333 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
13335 * ConTeXt writer: Improved autolinks (#1270).
13339 + Improve handling of hard line breaks in Docbook writer
13340 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
13341 just for the newline character.
13342 + Don't let line breaks inside footnotes influence the enclosing
13343 paragraph (Neil Mayhew).
13344 + Distinguish tight and loose lists in DocBook output, using
13345 `spacing="compact"` (Neil Mayhew, #1250).
13347 * Docx writer: When needed files are not present in the user's
13348 `reference.docx`, fall back on the versions in the `reference.docx`
13349 in pandoc's data files. This fixes a bug that occurs when a
13350 `reference.docx` saved by LibreOffice is used. (#1185)
13354 + Include extension in epub ids. This fixes a problem with duplicate
13355 extensions for fonts and images with the same base name but different
13356 extensions (#1254).
13357 + Handle files linked in raw `img` tags (#1170).
13358 + Handle media in `audio` source tags (#1170).
13359 Note that we now use a `media` directory rather than `images`.
13360 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
13361 will both be incorporated into `content.opf` and the epub container.
13365 + Add colgroup around col tags (#877). Also affects EPUB writer.
13366 + Fixed bug with unnumbered section headings. Unnumbered section
13367 headings (with class `unnumbered`) were getting numbers.
13368 + Improved detection of image links. Previously image links with
13369 queries were not recognized, causing `<embed>` to be used instead
13372 * Man writer: Ensure that terms in definition lists aren't line wrapped
13377 + Use proper escapes to avoid unwanted lists (#980). Previously we used
13378 0-width spaces, an ugly hack.
13379 + Use longer backtick fences if needed (#1206). If the content contains a
13380 backtick fence and there are attributes, make sure longer fences are
13381 used to delimit the code. Note: This works well in pandoc, but github
13382 markdown is more limited, and will interpret the first string of three
13383 or more backticks as ending the code block.
13385 * RST writer: Avoid stack overflow with certain tables (#1197).
13387 * RTF writer: Fixed table cells containing paragraphs.
13391 + Correctly handle UTF-8 in custom lua scripts (#1189).
13392 + Fix bugs with lua scripts with mixed-case filenames and
13393 paths containing `+` or `-` (#1267). Note that `getWriter`
13394 in `Text.Pandoc` no longer returns a custom writer on input
13397 * AsciiDoc writer: Handle multiblock and empty table cells
13398 (#1245, #1246). Added tests.
13400 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
13402 * `Text.Pandoc.Shared`:
13404 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
13405 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
13406 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
13408 + `openURL`: set proxy with value of http_proxy env variable (#1211).
13409 Note: proxies with non-root paths are not supported, due to
13410 limitations in `http-conduit`.
13412 * `Text.Pandoc.PDF`:
13414 + Ensure that temp directories deleted on Windows (#1192). The PDF is
13415 now read as a strict bytestring, ensuring that process ownership will
13416 be terminated, so the temp directory can be deleted.
13417 + Use `/` as path separators in a few places, even on Windows.
13418 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
13419 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
13420 + Changes to error reporting, to handle non-UTF8 error output.
13422 * `Text.Pandoc.Templates`:
13424 + Removed unneeded datatype context (Merijn Verstraaten).
13426 + YAML objects resolve to "true" in conditionals (#1133).
13427 Note: If `address` is a YAML object and you just have `$address$`
13428 in your template, the word `true` will appear, which may be
13429 unexpected. (Previously nothing would appear.)
13431 * `Text.Pandoc.SelfContained`: Handle `poster` attribute in `video`
13434 * `Text.Pandoc.Parsing`:
13436 + Made `F` an instance of Applicative (#1138).
13437 + Added `stateCaption`.
13438 + Added `HasMacros`, simplified other typeclasses.
13439 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
13440 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
13441 + Changed the smart punctuation parser to return `Inlines`
13442 rather than `Inline` (Matthew Pickering).
13443 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
13444 from typeclasses of monads to typeclasses of states. This simplifies
13445 the instance definitions and provides more flexibility. Generalized
13446 type of `getOption` and added a default definition. Removed
13447 `askReaderOption`. Added `extractReaderOption`. Added
13448 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
13449 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
13450 `modifyHeaderMap`. Added `extractIdentifierList` and
13451 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
13452 for `getIdentifierList`, `putIdentifierList`, and
13453 `modifyIdentifierList`. The ultimate goal here is to allow different
13454 parsers to use their own, tailored parser states (instead of
13455 `ParserState`) while still using shared functions.
13457 * Template changes:
13459 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
13460 + LaTeX template: Add `linestretch` and `fontfamily` variables.
13461 + LaTeX template: Conditionalize author and date commands.
13462 + Beamer template: Consistent styles for figure and table captions
13464 + LaTeX and beamer template: Adjust widths correctly for oversized
13465 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
13466 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
13467 `upquote` only after `fontenc` (Yihui Xie).
13468 + Beamer template: Added caption package (#1200).
13469 + Beamer template: changes for better unicode handling (KarolS).
13470 + DocBook template: use `authorgroup` if there are authors.
13471 + revealjs template: Move `include-after` to end (certainlyakey).
13472 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
13474 * Bumped version bounds of dependencies.
13476 * Added a `--trace` command line option, for debugging backtracking
13477 bugs. So far this only works with the markdown reader.
13479 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
13481 * Updated travis script to test with multiple GHC versions.
13483 * Force failure of a Travis build if GHC produces warnings (Albert
13486 * Add `.editorconfig` (Albert Krewinkel).
13487 See <http://editorconfig.org/> for details.
13489 * Give more useful error message if '-t pdf' is specified (#1155).
13491 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
13493 * Allow `html4` as a synonym of `html` as a reader (it already works
13498 + Added an explanation of how to use YAML metadata to
13499 force items to appear in the bibliography without citations in
13500 the text (like LaTeX `\nocite`).
13501 + Added note to `--bibtex/--natbib`: not for use in making PDF
13502 (#1194, thanks to nahoj).
13503 + Added explanatory notes about `--natbib` and `--biblatex`.
13504 + Added specification of legal syntax for citation keys.
13505 + Fixed variable defaults documentation (Albert Krewinkel).
13507 * Removed copyright statements for files that have been removed
13508 (Albert Krewinkel).
13510 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
13511 They aren't needed at runtime. We keep README and COPYRIGHT in data
13512 to ensure that they'll be available on all systems on which pandoc
13515 * Use cabal sandboxes in Windows build script.
13517## pandoc 1.12.3.3 (2014-02-03)
13519 * To changes to source; recompiled tarball with latest alex and
13520 happy, so they will work with GHC 7.8.
13522## pandoc 1.12.3.2 (2014-02-03)
13524 * Bumped version bounds for blaze-html, blaze-markup.
13526 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
13529 * Fixed mediawiki ordered list parsing (#1122).
13531 * HTML reader: Fixed bug reading inline math with `$$` (#225).
13533 * Added support for LaTeX style literate Haskell code blocks in rST
13534 (Merijn Verstraaten).
13536## pandoc 1.12.3.1 (2014-01-14)
13538 * Relaxed version constraint on binary, allowing the use of binary 0.5.
13541## pandoc 1.12.3 (2014-01-10)
13543 * The `--bibliography` option now sets the `biblio-files` variable.
13544 So, if you're using `--natbib` or `--biblatex`, you can just use
13545 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
13547 * Don't run pandoc-citeproc filter if `--bibliography` is
13548 used together with `--natbib` or `--biblatex` (Florian Eitel).
13550 * Template changes:
13552 + Updated beamer template to include booktabs.
13553 + Added `abstract` variable to LaTeX template.
13554 + Put `header-includes` after `title` in LaTeX template (#908).
13555 + Allow use of `\includegraphics[size]` in beamer.
13556 This just required porting a macro definition from the default
13557 LaTeX template to the default beamer template.
13559 * `reference.docx`: Include `FootnoteText` style.
13560 Otherwise Word ignores the style, even when specified in the `pPr`.
13563 * `reference.odt`: Tidied `styles.xml`.
13565 * Relaxed version bounds for dependencies.
13567 * Added `withSocketsDo` around http conduit code in `openURL`,
13568 so it works on Windows (#1080).
13570 * Added `Cite` function to `sample.lua`.
13574 + Fixed regression in title blocks (#1089).
13575 If author field was empty, date was being ignored.
13576 + Allow backslash-newline hard line breaks in grid and
13577 multiline table cells.
13578 + Citation keys may now start with underscores, and may contain
13579 underscores adjacent to internal punctuation.
13583 + Add support for `Verb` macro (jrnold) (#1090).
13584 + Support babel-style quoting: `` "`..."' ``.
13586 * Properly handle script blocks in strict mode. (That is,
13587 `markdown-markdown_in_html_blocks`.) Previously a spurious
13588 `<p>` tag was being added (#1093).
13590 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
13595 + Factored out function for table cell creation.
13596 + Better treatment of footnotes in tables.
13597 Notes now appear in the regular sequence, rather than in the
13598 table cell. (This was a regression in 1.10.)
13600 * HTML reader: Parse name/content pairs from meta tags as metadata.
13603 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
13605 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
13607 * ODT writer: Use mathml for proper rendering of formulas.
13608 Note: LibreOffice's support for this seems a bit buggy. But
13609 it should be better than what we had before.
13611 * RST writer: Ensure no blank line after def in definition list (#992).
13613 * Markdown writer: Don't use tilde code blocks with braced attributes in
13614 `markdown_github` output. A consequence of this change is that the
13615 backtick form will be preferred in general if both are enabled. That
13616 is good, as it is much more widespread than the tilde form. (#1084)
13618 * Docx writer: Fixed problem with some modified reference docx files.
13619 Include `word/_rels/settings.xml.rels` if it exists, as well as other
13620 `rels` files besides the ones pandoc generates explicitly.
13624 + With `--toc`, headers no longer link to themselves (#1081).
13625 + Omit footnotes from TOC entries. Otherwise we get doubled
13626 footnotes when headers have notes!
13630 + Avoid duplicate notes when headings contain notes.
13631 This arose because the headings are copied into the metadata
13632 "title" field, and the note gets rendered twice. We strip the
13633 note now before putting the heading in "title".
13634 + Strip out footnotes from toc entries.
13635 + Fixed bug with `--epub-stylesheet`. Now the contents of
13636 `writerEpubStylesheet` (set by `--epub-stylesheet`)
13637 should again work, and take precedence over a stylesheet specified
13640 * `Text.Pandoc.Pretty`: Added `nestle`. API change.
13642 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
13644 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
13647 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
13648 we could only get size information for JFIF format, which led
13649 to squished images in Word documents. Closes #976.
13651 * Removed old `MarkdownTest_1.0.3` directory (#1104).
13654## pandoc 1.12.2.1 (2013-12-08)
13656 * Markdown reader: Fixed regression in list parser, involving
13657 continuation lines containing raw HTML (or even verbatim raw HTML).
13659## pandoc 1.12.2 (2013-12-07)
13661 * Metadata may now be included in YAML blocks in a markdown document.
13669 text: An investigation of metadata
13677 text: doi:10.234234.234/33
13678 publisher: My Press
13679 rights: (c) 2007 John Smith, CC BY-NC
13680 cover-image: img/mypic.jpg
13681 stylesheet: style.css
13684 Metadata may still be provided using `--epub-metadata`; it will
13685 be merged with the metadata in YAML blocks.
13689 + `meta` tags are now used instead of `opf` attributes for EPUB3.
13690 + Insert "svg" property as needed in opf (EPUB 3).
13691 + Simplify `imageTypeOf` using `getMimeType`.
13692 + Add properties attribute to `cover-image` item for EPUB 3.
13693 + Don't include node for `cover.xhtml` if no cover!
13694 + Ensure that same identifier is used throughout (#1044).
13695 If an identifier is given in metadata, we use that; otherwise
13696 we generate a random uuid.
13697 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
13698 Fixes an issue with Calibre putting the cover at the end of the book
13699 if the spine has `linear="no"`. Apparently this is best practice
13700 for other converters as well:
13701 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
13702 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
13703 + Allow partial dates: `YYYY`, `YYYY-MM`.
13705 * Markdown writer: Fix rendering of tight sublists (#1050).
13706 Previously a spurious blank line was included after a tight sublist.
13708 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
13709 This is reported to be necessary to avoid an error from recent
13710 versions of Libre Office when files contain more than one image
13711 Thanks to wmanley for reporting and diagnosing the problem.
13713 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
13714 Instead, let this be set in the template, using `\setupfloat`.
13715 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
13717 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
13719 * Fixed bug with markdown intraword emphasis. Closes #1066.
13721 * Docbook writer: Hierarchicalize block content in metadata.
13722 Previously headers just disappeared from block-level metadata
13723 when it was used in templates. Now we apply the 'hierarchicalize'
13724 transformation. Note that a block headed by a level-2 header will
13725 turn into a `<sect1>` element.
13727 * OpenDocument writer: Skip raw HTML (#1035).
13728 Previously it was erroneously included as verbatim text.
13730 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
13731 This allows better control of formatting, since the `<a>`
13732 tags have a distinguishing class (#1049).
13736 + Use mime type info returned by fetchItem.
13737 + Fixed core metadata (#1046).
13738 Don't create empty date nodes if no date given.
13739 Don't create multiple `dc:creator` nodes; instead separate by
13741 + Fix URL for core-properties in `_rels/.rels` (#1046).
13743 * Plain writer: don't print `<span>` tags.
13747 + Fix definition lists with internal links in terms (#1032).
13748 This fix puts braces around a term that contains an internal
13749 link, to avoid problems with square brackets.
13750 + Properly escape pdftitle, pdfauthor (#1059).
13751 + Use booktabs package for tables (thanks to Jose Luis Duran).
13753 * Updated beamer template. Now references should work properly
13754 (in a slide) when `--biblatex` or `--natbib` is used.
13758 + Parse contents of curly quotes or matched `"` as quotes.
13759 + Support `\textnormal` as span with class `nodecor`.
13760 This is needed for pandoc-citeproc.
13761 + Improved citation parsing. This fixes a run-time error that occurred
13762 with `\citet{}` (empty list of keys). It also ensures that empty keys
13763 don't get produced.
13765 * MediaWiki reader: Add automatic header identifiers.
13769 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
13771 + Recognize `svg` tags as block level content (thanks to MinRK).
13772 + Parse LaTeX math if appropriate options are set.
13776 + Yaml block must start immediately after `---`. If there's a blank
13777 line after `---`, we interpreted it as a horizontal rule.
13778 + Correctly handle empty bullet list items.
13779 + Stop parsing "list lines" when we hit a block tag.
13780 This fixes exponential slowdown in certain input, e.g.
13781 a series of lists followed by `</div>`.
13783 * Slides: Preserve `<div class="references">` in references slide.
13785 * `Text.Pandoc.Writer.Shared`:
13787 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
13788 attributes, leading to invalid HTML.
13789 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
13790 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
13791 encoded bytestring was returned. We now decode it so it's a proper
13794 * DocBook reader: Handle numerical attributes starting with decimal.
13795 Also use `safeRead` instead of `read`.
13797 * `Text.Pandoc.Parsing`:
13799 + Generalized type of `registerHeader`, using new type classes
13800 `HasReadeOptions`, `HasIdentifierList`, `HasHeaderMap`.
13801 These allow certain common functions to be reused
13802 even in parsers that use custom state (instead of `ParserState`),
13803 such as the MediaWiki reader.
13804 + Moved inlineMath, displayMath from Markdown reader to Parsing.
13805 Generalize their types and export them from Parsing. (API change.)
13807 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
13808 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
13809 in all the writers. Require `texmath >= 0.6.5.2`.
13811 * `Text.Pandoc.MIME`:
13813 + Add entry for `jfif`.
13814 + In looking up extensions, drop the encoding info.
13815 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
13817 * Templates: Changed how array variables are resolved. Previously if
13818 `foo` is an array (which might be because multiple values were set on
13819 the command line), `$foo$` would resolve to the concatenation of the
13820 elements of foo. This is rarely useful behavior. It has been changed
13821 so that the first value is rendered. Of course, you can still iterate
13822 over the values using `$for(foo)$`. This has the result that you can
13823 override earlier settings using `-V` by putting new values later on the
13824 command line, which is useful for many purposes.
13826 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
13828 * Allow "epub2" as synonym for "epub", "html4" for "html".
13830 * Don't look for slidy files in data files with `--self-contained`.
13832 * Allow `https:` command line arguments to be downloaded.
13834 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
13836## pandoc 1.12.1 (2013-10-20)
13838 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
13839 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
13840 "c": "foo"}`. This new format is easier to work with outside of Haskell.
13841 Incidentally, "t" stands for "tag", "c" for "contents".
13843 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
13844 when converting to markdown (#1027).
13848 + Ensure that preamble doesn't contribute to the text of
13850 + Fixed character escaping in `\url{}`. Previously `\~` wasn't handled
13851 properly, among others.
13852 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
13853 bibtex titles, since we need to know what was protected from
13854 titlecase conversions.
13858 + Specially escape non-ascii characters in labels.
13859 Otherwise we can get compile errors and other bugs when
13860 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
13861 + Add link anchors for code blocks with identifiers (#1025).
13863 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
13864 It allows fragments identifiers.
13868 + A Div element with class "notes" is treated as speaker
13869 notes. Currently beamer goes to `\note{}`, revealjs to
13870 `<aside class="notes">`, and the notes are simply suppressed in
13871 other formats (#925).
13872 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
13873 The old version caused a pause to be inserted before the first
13874 material on a slide. This has been fixed.
13875 + Removed data files for s5, slideous, slidy.
13876 Users of s5 and slideous will have to download the needed
13877 files, as has been documented for some time in the README.
13878 By default, slidy code will be sought on the web, as before.
13880 * HTML writer: Insert command to typeset mathjax only in slideous output
13883 * RST writer: Skip spaces after display math. Otherwise we get indentation
13884 problems, and part of the next paragraph may be rendered as part of the
13887 * OpenDocument writer: Fix formatting of strikeout code (#995),
13888 thanks to wilx. don't use `font-face-decls` variable.
13890 * Fixed test suite so it works with cabal sandboxes.
13892## pandoc 1.12.0.2 (2013-09-20)
13894 * Removed an unused dependency (`stringable`) from pandoc.cabal.
13895 This will help packagers, but users should not need to upgrade.
13897## pandoc 1.12.0.1 (2013-09-20)
13899 * Allow `--metadata` to be repeated for the same key to form a list.
13900 This also has the effect that `--bibliography` can be repeated,
13903 * Handle boolean values in `--metadata`. Note that anything not parseable
13904 as a YAML boolean or string is treated as a literal string.
13905 You can get a string value with "yes", or any of the strings interpretable
13906 as booleans, by quoting it:
13908 -M boolvalue=yes -M stringvalue='"yes"'
13910 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
13913 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
13914 in which docx files could not be read by some versions of Word
13915 and LibreOffice (#990).
13917 * Fixed a regression involving slide shows with bibliographies.
13918 The Div container around references messed up the procedure for carving
13919 a document into slides. So we now remove the surrounding Div in
13922 * More informative error message when a filter is not found in path.
13924 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
13925 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
13927 * Don't use unicode_collation in building OSX package:
13928 it adds something like 50MB of dependencies to the package.
13930 * Declare alex and happy as build-tools (#986).
13932## pandoc 1.12 (2013-09-15)
13936 * Much more flexible metadata, including arbitrary fields and structured
13937 values. Metadata can be specified flexibly in pandoc markdown using
13938 YAML metadata blocks, which may occur anywhere in the document:
13941 title: Here is my title.
13943 This is the abstract.
13947 and *inline markup*
13949 tags: [cat, dog, animal]
13952 Metadata fields automatically populate template variables.
13954 * Added `opml` (OPML) as input and output format. The `_note` attribute,
13955 used in OmniOutliner and supported by multimarkdown, is supported.
13956 We treat the contents as markdown blocks under a section header.
13958 * Added `haddock` (Haddock markup) as input format (David Lazar).
13960 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
13961 (Thanks to Jamie F. Olson for the initial patch.)
13962 Nested vertical stacks are used for hierarchical structure.
13963 Results for more than one level of nesting may be odd.
13965 * Custom writers can now be written in lua.
13967 pandoc -t data/sample.lua
13969 will load the script sample.lua and use it as a custom writer.
13970 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
13971 Note that pandoc embeds a lua interpreter, so lua need not be
13972 installed separately.
13974 * New `--filter/-F` option to make it easier to run "filters"
13975 (Pandoc AST transformations that operate on JSON serializations).
13976 Filters are always passed the name of the output format, so their
13977 behavior can be tailored to it. The repository
13978 <https://github.com/jgm/pandocfilters> contains
13979 a python module for writing pandoc filters in python, with
13980 a number of examples.
13982 * Added `--metadata/-M` option.
13983 This is like `--variable/-V`, but actually adds to metadata, not
13986 * Added `--print-default-data-file` option, which allows printing
13987 of any of pandoc's data files. (For example,
13988 `pandoc --print-default-data-file reference.odt` will print
13991 * Added syntax for "pauses" in slide shows:
13999 * New markdown extensions:
14001 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
14002 rather than being treated as hard line breaks or spaces. This is useful
14003 for some East Asian languages, where spaces aren't used between words,
14004 but text is separated into lines for readability.
14005 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
14006 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
14007 only. (Default for `markdown_github`.) (#807)
14008 + `lists_without_preceding_blankline`: Allow lists to start without
14009 preceding blank space. (Default for `markdown_github`.) (#972)
14011### Behavior changes
14013 * `--toc-level` no longer implies `--toc`.
14014 Reason: EPUB users who don't want a visible TOC may still want
14015 to set the TOC level for in the book navigation.
14017 * `--help` now prints in and out formats in alphabetical order, and
14018 says something about PDF output (#720).
14020 * `--self-contained` now returns less verbose output (telling you
14021 which URLs it is fetching, but not giving the full header). In
14022 addition, there are better error messages when fetching a URL fails.
14024 * Citation support is no longer baked in to core pandoc. Users who
14025 need citations will need to install and use a separate filter
14026 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
14027 `csl`, and `citation-abbreviations` from the metadata, though it
14028 may still be specified on the command line as before.
14030 * A `Cite` element is now created in parsing markdown whether or not
14031 there is a matching reference.
14033 * The `pandoc-citeproc` script will put the bibliography at the
14034 end of the document, as before. However, it will be put inside a `Div`
14035 element with class "references", allowing users some control
14036 over the styling of references. A final header, if any, will
14037 be included in the `Div`.
14039 * The markdown writer will not print a bibliography if the
14040 `citations` extension is enabled. (If the citations are formatted
14041 as markdown citations, it is redundant to have a bibliography,
14042 since one will be generated automatically.)
14044 * Previously we used to store the directory of the first input file,
14045 even if it was local, and used this as a base directory for finding
14046 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
14047 users. So we now look for images relative to the current
14048 working directory, even if the first file argument is in another
14049 directory. Note that this change may break some existing workflows.
14050 If you have been assuming that relative links will be interpreted
14051 relative to the directory of the first file argument, you'll need
14052 to make that the current directory before running pandoc. (#942)
14054 * Better error reporting in some readers, due to changes in `readWith`:
14055 the line in which the error occurred is printed, with a caret pointing
14058 * All slide formats now support incremental slide view for definition lists.
14060 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
14061 Parse `:<math>...</math>` as display math. These notations are used with
14062 the MathJax MediaWiki extension.
14064 * All writers: template variables are set automatically from metadata
14065 fields. However, variables specified on the command line with
14066 `--variable` will completely shadow metadata fields.
14068 * If `--variable` is used to set many variables with the same name,
14071 * Man writer: The `title`, `section`, `header`, and `footer` can now
14072 all be set individually in metadata. The `description` variable has been
14073 removed. Quotes have been added so that spaces are allowed in the
14074 title. If you have a title that begins
14076 COMMAND(1) footer here | header here
14078 pandoc will still parse it into a title, section, header, and
14079 footer. But you can also specify these elements explicitly (#885).
14083 + Added support for YAML metadata blocks, which can come anywhere
14084 in the document (not just at the beginning). A document can contain
14085 multiple YAML metadata blocks.
14086 + HTML span and div tags are parsed as pandoc Span and Div elements.
14090 + Allow simple tables to be printed as grid tables,
14091 if other table options are disabled. This means you can do
14092 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
14093 and all tables will render as grid tables.
14094 + Support YAML title block (render fields in alphabetical order
14095 to make output predictable).
14099 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
14100 structured metadata. (Note: existing code that pattern-matches
14101 on `Meta` will have to be revised.) Metadata can now contain
14102 indefinitely many fields, with content that can be a string,
14103 a Boolean, a list of `Inline` elements, a list of `Block`
14104 elements, or a map or list of these.
14106 * A new generic block container (`Div`) has been added to `Block`,
14107 and a generic inline container (`Span`) has been added to `Inline`.
14108 These can take attributes. They will render in HTML, Textile,
14109 MediaWiki, Org, RST and Markdown (with `markdown_in_html`
14110 extension) as HTML `<div>` and `<span>` elements; in other formats
14111 they will simply pass through their contents. But they can be
14112 targeted by scripts.
14114 * `Format` is now a newtype, not an alias for String.
14115 Equality comparisons are case-insensitive.
14117 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
14118 functions that are much faster than the SYB functions from
14119 `Text.Pandoc.Generic`. These functions are now used where possible
14120 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
14121 match the generic traversals `bottomUp` and `queryWith`.)
14123 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
14124 instances for the basic pandoc types. They use GHC generics and
14125 should be faster than the old JSON serialization using
14126 `Data.Aeson.Generic`.
14128 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
14129 This is a souped-up version of `readProcessWithErrorcode` that
14130 uses lazy bytestrings instead of strings and allows setting
14131 environment variables. (Used in `Text.Pandoc.PDF`.)
14133 * New module `Text.Pandoc.Readers.OPML`.
14135 * New module `Text.Pandoc.Writers.OPML`.
14137 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
14138 This is based on Haddock's own lexer/parser.
14140 * New module `Text.Pandoc.Writers.Custom`.
14142 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
14143 Either, for better error handling.
14145 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
14147 * Removed `stripTags` from `Text.Pandoc.XML`.
14149 * `Text.Pandoc.Templates`:
14151 + Simplified `Template` type to a newtype.
14153 + Changed type of `renderTemplate`: it now takes a JSON context
14154 and a compiled template.
14155 + Export `compileTemplate`.
14156 + Export `renderTemplate'` that takes a string instead of a compiled
14158 + Export `varListToJSON`.
14160 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
14164 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
14165 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
14166 `Text.Pandoc.JSON` should be used instead. (Compiling against
14167 pandoc-types instead of pandoc will also produce smaller executables.)
14168 * Removed the deprecated `jsonFilter` function.
14169 + Added `readJSON`, `writeJSON` to the API (#817).
14171 * `Text.Pandoc.Options`:
14173 + Added `Ext_lists_without_preceding_blankline`,
14174 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
14175 `Ext_yaml_metadataBlock` to `Extension`.
14176 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
14177 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
14178 first command-line argument is an absolute URL. (So, relative links
14179 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
14180 + All bibliography-related fields have been removed from
14181 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
14182 `readerReferences`, `readerCitationStyle`.
14184 * The `Text.Pandoc.Biblio` module has been removed. Users of the
14185 pandoc library who want citation support will need to use
14186 `Text.CSL.Pandoc` from `pandoc-citeproc`.
14190 * In markdown, don't autolink a bare URI that is followed by `</a>`
14193 * `Text.Pandoc.Shared`
14195 + `openURL` now follows redirects (#701), properly handles `data:`
14196 URIs, and prints diagnostic output to stderr rather than stdout.
14197 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
14198 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
14199 + Fixed `readDefaultDataFile` so it works on Windows.
14200 + Better error messages for `readDefaultDataFile`. Instead of
14201 listing the last path tried, which can confuse people who are
14202 using `--self-contained`, so now we just list the data file name.
14203 + URL-escape pipe characters. Even though these are legal, `Network.URI`
14204 doesn't regard them as legal in URLs. So we escape them first (#535).
14206 * Mathjax in HTML slide shows: include explicit "Typeset" call.
14207 This seems to be needed for some formats (e.g. slideous) and won't
14208 hurt in others (#966).
14210 * `Text.Pandoc.PDF`
14212 + On Windows, create temdir in working directory, since the system
14213 temp directory path may contain tildes, which can cause
14214 problems in LaTeX (#777).
14215 + Put temporary output directory in `TEXINPUTS` (see #917).
14216 + `makePDF` tries to download images that are not found locally,
14217 if the first argument is a URL (#917).
14218 + If compiling with `pdflatex` yields an encoding error, offer
14219 the suggestion to use `--latex-engine=xelatex`.
14221 * Produce automatic header identifiers in parsing textile, RST,
14222 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
14224 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
14225 before treating as a filename. This fixes `--self-contained` when used
14226 with CSS files that include web fonts using the method described here:
14227 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
14228 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
14230 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
14231 percent-encoding, or a `+` character, as final punctuation.
14233 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
14234 EPS images properly sized on conversion to Word.
14236 * Slidy: Use slidy.js rather than slidy.js.gz.
14237 Reason: some browsers have trouble with the gzipped js file,
14238 at least on the local file system (#795).
14242 + Properly handle blank line at beginning of input (#882).
14243 + Fixed bug in unmatched reference links. The input
14244 `[*infile*] [*outfile*]` was getting improperly parsed:
14245 "infile" was emphasized, but "*outfile*" was literal (#883).
14246 + Allow internal `+` in citation identifiers (#856).
14247 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
14248 + Do not generate blank title, author, or date metadata elements.
14249 Leave these out entirely if they aren't present.
14250 + Allow backtick code blocks not to be preceded by blank line (#975).
14254 + Correctly handle entities.
14255 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
14256 in code blocks, rather than printing them verbatim. Parse attributes
14257 on `<pre>` tag for code blocks.
14259 * HTML reader: Handle non-simple tables (#893). Column widths are read from
14260 `col` tags if present, otherwise divided equally.
14264 + Support alltt environment (#892).
14265 + Support `\textasciitilde`, `\textasciicircum` (#810).
14266 + Treat `\textsl` as emphasized text reader (#850).
14267 + Skip positional options after `\begin{figure}`.
14268 + Support `\v{}` for hacek (#926).
14269 + Don't add spurious ", " to citation suffixes.
14270 This is added when needed in pandoc-citeproc.
14271 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
14272 + Improved support for accented characters (thanks to Scott Morrison).
14273 + Parse label after section command and set id (#951).
14277 + Don't insert paragraphs where docutils doesn't.
14278 `rst2html` doesn't add `<p>` tags to list items (even when they are
14279 separated by blank lines) unless there are multiple paragraphs in the
14280 list. This commit changes the RST reader to conform more closely to
14281 what docutils does (#880).
14282 + Improved metadata. Treat initial field list as metadata when
14283 standalone specified. Previously ALL fields "title", "author",
14284 "date" in field lists were treated as metadata, even if not at
14285 the beginning. Use `subtitle` metadata field for subtitle.
14286 + Fixed 'authors' metadata parsing in reST. Semicolons separate
14291 + Allow space before table rows.
14292 + Fixed regression for `<ref>URL</ref>`.
14293 `<` is no longer allowed in URLs, according to the uri parser
14294 in `Text.Pandoc.Parsing`. Added a test case.
14295 + Correctly handle indented preformatted text without preceding
14296 or following blank line.
14297 + Fixed `|` links inside table cells. Improved attribute parsing.
14298 + Skip attributes on table rows. Previously we just crashed if
14299 rows had attributes, now we ignore them.
14300 + Ignore attributes on headers.
14301 + Allow `Image:` for images (#971).
14302 + Parse an image with caption in a paragraph by itself as a figure.
14306 + Don't use ligatures in escaping inline code.
14307 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
14308 wherein notes were numbered incorrectly in tables (#827).
14309 + Always create labels for sections. Previously the labels were only
14310 created when there were links to the section in the document (#871).
14311 + Stop escaping `|` in LaTeX math.
14312 This caused problems with array environments (#891).
14313 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
14314 `\` will cause major problems if unescaped.
14315 + Write id for code block to label attribute in LaTeX when listings
14316 is used (thanks to Florian Eitel).
14317 + Scale LaTeX tables so they don't exceed columnwidth.
14318 + Avoid problem with footnotes in unnumbered headers (#940).
14320 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
14321 to the slide if it is one of the header classes. It is recommended
14322 that your bibliography slide have this attribute:
14324 # References {.allowframebreaks}
14326 This causes multiple slides to be created if necessary, depending
14327 on the length of the bibliography.
14329 * ConTeXt writer: Properly handle tables without captions. The old output
14330 only worked in MkII. This should work in MkIV as well (#837).
14332 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
14336 + Fixed `--no-highlight` (Alexander Kondratskiy).
14337 + Don't convert to lowercase in email obfuscation (#839).
14338 + Ensure proper escaping in `<title>` and `<meta>` fields.
14342 + Support `--atx-headers` (Max Rydahl Andersen).
14343 + Don't print empty identifier blocks `([[]])` on headers (Max
14348 + Fixing wrong numbered-list indentation in open document format
14349 (Alexander Kondratskiy) (#369).
14350 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
14351 + Minor changes for ODF 1.2 conformance (#939). We leave the
14352 nonconforming `contextual-spacing` attribute, which is provided by
14353 LibreOffice itself and seems well supported.
14357 + Fixed rendering of display math in lists.
14358 In 1.11 and 1.11.1, display math in lists rendered as a new list
14359 item. Now it always appears centered, just as outside of lists,
14360 and in proper display math style, no matter how far indented the
14361 containing list item is (#784).
14362 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
14363 Previously we used `w:cr` (#873).
14364 + Use Compact style for Plain block elements, to
14365 differentiate between tight and loose lists (#775).
14366 + Ignore most components of `reference.docx`.
14367 We take the `word/styles.xml`, `docProps/app.xml`,
14368 `word/theme/theme1.xml`, and `word/fontTable.xml` from
14369 `reference.docx`, ignoring everything else. This should help
14370 with the corruption problems caused when different versions of
14371 Word resave the reference.docx and reorganize things.
14372 + Made `--no-highlight` work properly.
14376 + Don't add `dc:creator` tags if present in EPUB metadata.
14377 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
14378 + Don't put blank title page in reading sequence.
14379 Set `linear="no"` if no title block. Addresses #797.
14380 + Download webtex images and include as data URLs.
14381 This allows you to use `--webtex` in creating EPUBs.
14382 Math with `--webtex` is automatically made self-contained.
14383 + In `data/epub.css`, removed highlighting styles (which
14384 are no longer needed, since styles are added by the HTML
14385 writer according to `--highlighting-style`). Simplified
14387 + If resource not found, skip it, as in Docx writer (#916).
14391 + Properly handle characters above the 0000-FFFF range.
14392 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
14393 + Fixed regression with RTF table of contents.
14394 + Only autolink absolute URIs. This fixes a regression, #830.
14398 + Only autolink absolute URIs. This fixes a regression, #830.
14399 + Don't wrap attributes in fenced code blocks.
14400 + Write full metadata in MMD style title blocks.
14401 + Put multiple authors on separate lines in pandoc titleblock.
14402 Also, don't wrap long author entries, as new lines get treated
14405 * `Text.Pandoc.Templates`:
14407 + Fixed bug retrieving default template for markdown variants.
14408 + Templates can now contain "record lookups" in variables;
14409 for example, `author.institution` will retrieve the `institution`
14410 field of the `author` variable.
14411 + More consistent behavior of `$for$`. When `foo` is not a list,
14412 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
14413 So if `foo` resolves to "", no output should be produced.
14414 See pandoc-templates#39.
14416 * Citation processing improvements (now part of pandoc-citeproc):
14418 + Fixed `endWithPunct` The new version correctly sees a sentence
14419 ending in '.)' as ending with punctuation. This fixes a bug which
14420 led such sentences to receive an extra period at the end: '.).'.
14421 Thanks to Steve Petersen for reporting.
14422 + Don't interfere with Notes that aren't citation notes.
14423 This fixes a bug in which notes not generated from citations were
14424 being altered (e.g. first letter capitalized) (#898).
14425 + Only capitalize footnote citations when they have a prefix.
14426 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
14427 inserted before it before passing to citeproc-hs, so that bare numbers
14428 are treated as page numbers by default. A suffix not beginning with
14429 punctuation has a space added at the beginning (rather than a comma and
14430 space, as was done before for not-author-in-text citations).
14431 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
14432 properly, with '23' treated as a locator of type 'page'.
14433 + Many improvements to citation rendering, due to fixes in citeproc-hs
14434 (thanks to Andrea Rossato).
14435 + Warnings are issued for undefined citations, which are rendered
14437 + Fixed hanging behavior when locale files cannot be found.
14439### Template changes
14441 * DocBook: Use DocBook 4.5 doctype.
14443 * Org: '#+TITLE:' is inserted before the title.
14444 Previously the writer did this.
14446 * LaTeX: Changes to make mathfont work with xelatex.
14447 We need the mathspec library, not just fontspec, for this.
14448 We also need to set options for setmathfont (#734).
14450 * LaTeX: Use `tex-ansi` mapping for `monofont`.
14451 This ensures that straight quotes appear as straight, rather than
14452 being treated as curly. See #889.
14454 * Made `\includegraphics` more flexible in LaTeX template.
14455 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
14457 * LaTeX/Beamer: Added `classoption` variable.
14458 This is intended for class options like `oneside`; it may
14459 be repeated with different options. (Thanks to Oliver Matthews.)
14461 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
14463 * LaTeX: Added `biblio-style` variable (#920).
14465 * DZSlides: title attribute on title section.
14467 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
14469### Under-the-hood improvements
14471 * Markdown reader:Improved strong/emph parsing, using the strategy of
14472 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
14473 no backtracking, and no keeping track of nesting levels. It will give
14474 different results in some edge cases, but these should not affect normal
14477 * Added `Text.Pandoc.Compat.Monoid`.
14478 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
14479 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
14481 * Added `Text.Pandoc.Compat.TagSoupEntity`.
14482 This allows pandoc to compile with `tagsoup` 0.13.x.
14483 Thanks to Dirk Ullrich for the patch.
14485 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
14486 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
14487 handle simple math in bibliography fields.)
14489 * Added `Text.Pandoc.Writers.Shared` for shared functions used
14490 only in writers. `metaToJSON` is used in writers to create a
14491 JSON object for use in the templates from the pandoc metadata
14492 and variables. `getField`, `setField`, and `defField` are
14493 for working with JSON template contexts.
14495 * Added `Text.Pandoc.Asciify` utility module.
14496 This exports functions to create ASCII-only versions of identifiers.
14498 * `Text.Pandoc.Parsing`
14500 + Generalized state type on `readWith` (API change).
14501 + Specialize readWith to `String` input. (API change).
14502 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
14503 with `stateMeta` and `stateMeta'`.
14505 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
14506 bytestrings seemed to cause problems using pandoc on 64-bit Windows
14509 * Factored out `registerHeader` from markdown reader, added to
14510 `Text.Pandoc.Parsing`.
14512 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
14513 Reason: < 0.5 does not provide a monoid instance for Attribute,
14514 which is now needed by the HTML writer (#803).
14516 * Added `http-conduit` flag, which allows fetching https resources.
14517 It also brings in a large number of dependencies (`http-conduit`
14518 and its dependencies), which is why for now it is an optional flag
14521 * Added CONTRIBUTING.md.
14523 * Improved INSTALL instructions.
14525 * `make-windows-installer.bat`: Removed explicit paths for executables.
14527 * `aeson` is now used instead of `json` for JSON.
14529 * Set default stack size to 16M. This is needed for some large
14530 conversions, esp. if pandoc is compiled with 64-bit ghc.
14532 * Various small documentation improvements.
14533 Thanks to achalddave and drothlis for patches.
14535 * Removed comment that chokes recent versions of CPP (#933).
14537 * Removed support for GHC version < 7.2, since pandoc-types now
14538 requires at least GHC 7.2 for GHC generics.
14541## pandoc 1.11.1 (2013-03-17)
14545 + Fixed regression in which parentheses were lost in link URLs.
14546 Added tests. Closes #786.
14547 + Better handling of unmatched double quotes in `--smart` mode.
14548 These occur frequently in fiction, since it is customary not to
14549 close quotes in dialogue if the speaker does not change between
14550 paragraphs. The unmatched quotes now get turned into literal
14551 left double quotes. (No `Quoted` inline is generated, however.)
14552 Closes #99 (again).
14554 * HTML writer: Fixed numbering mismatch between TOC and sections.
14555 `--number-offset` now affects TOC numbering as well
14556 as section numbering, as it should have all along. Closes #789.
14558 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
14559 as markdown citations, even if `--bibliography` was specified, unless
14560 `citation` extension is disabled. Now, formatted citations are always
14561 printed if `--bibliography` was specified. If you want to reformat
14562 markdown keeping pandoc markdown citations intact, don't use
14563 `--bibliography`. Note that citations parsed from LaTeX documents will
14564 be rendered as pandoc markdown citations when `--bibliography` is not
14567 * ODT writer: Fixed regression leading to corrupt ODTs.
14568 This was due to a change in the `Show` instance for
14569 `Text.Pandoc.Pretty.Doc`. Closes #780.
14571 * Fixed spacing bugs involving code block attributes in
14572 RST reader and Markdown writer. Closes #763.
14574 * Windows package: Various improvements due to Fyodor Sheremetyev.
14576 + Automatically set installation path (Program Files or Local App Data).
14577 + Set system PATH environment variable when installing for all users.
14578 + Pandoc can installed for all users using the following command.
14579 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
14581 * Bumped QuickCheck version bound.
14583## pandoc 1.11 (2013-03-09)
14585 * Added `--number-offset` option. (See README for description.)
14587 * Added `--default-image-extension` option. (See README for description.)
14589 * `--number-sections` behavior change: headers with class `unnumbered`
14590 will not be numbered.
14592 * `--version` now reports the default data directory.
14594 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
14596 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
14598 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
14599 a field for `Attr` rather than just `String`. (API change.)
14601 * Added `markdown_github` as input format. This was an accidental
14604 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
14607 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
14611 + Fixed captions with longtable. Thanks to Joost Kremers.
14612 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
14616 + Load microtype after fonts. Microtype needs to know
14617 what fonts are being used. Thanks to dfc for the patch.
14618 + Set `secnumdepth` to 5 if `--number-sections` specified.
14619 This yields behavior equivalent to the other writers, numbering
14620 level 4 and 5 headers too. Closes #753.
14624 + Handle `<colgroup>` tag.
14625 + Preserve all header attributes.
14629 + Parse `\hrule` as `HorizontalRule`. Closes #746.
14630 + Parse starred variants of `\section` etc. as headers with
14631 attribute `unnumbered`.
14632 + Read optional attributes in `lstlisting` and `Verbatim` environments.
14633 We convert these to pandoc standard names, e.g. `numberLines`
14634 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
14635 + Handle language attribute for lstlistings.
14636 + Better support for Verbatim and minted environments. Closes #763.
14640 + `-` in an attribute context = `.unnumbered`. The point of this
14641 is to provide a way to specify unnumbered headers in non-English
14643 + Fixed bug parsing key/value attributes. Parsing failed if you
14644 had an unquoted attribute immediately before the final '}'.
14645 + Make backslash escape work in attributes.
14646 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
14647 pandoc will parse a MMD title block if it sees one, even if
14648 `pandoc_title_blocks` is enabled.
14649 + Refactoring: `litChar` now includes entities, so we don't need
14650 to use `fromEntities` e.g. on titles.
14651 + Allow spaces around borders in pipe tables. Closes #772.
14652 + Allow all punctuation in angle-bracket autolinks. Previously
14653 things like `----` were disallowed, because the uri parser
14654 treated them as trailing punctuation. Closes #768.
14655 + Make `implicit_header_references` work properly when
14656 headers are given explicit identifiers.
14657 + Check for tables before line blocks. Otherwise some pipe
14658 tables get treated as line blocks.
14659 + Allow `&` in emails (for entities).
14660 + Properly handle entities in titles and links. A markdown link
14661 `<http://göogle.com>` should be a link to `http://göogle.com`.
14666 + Handle attributes on headers.
14670 + Add `fig:` as title for images with captions.
14671 This is needed for them to be rendered as figures. Closes #766.
14672 + Never emit an empty paragraph. See #761.
14673 + Handle `\caption` for images in figures. Closes #766.
14674 + Parse `\section*`, etc. as unnumbered sections.
14678 + Support header attributes. The attributes go on
14679 the enclosing `section` or `div` tag if `--section-divs` is specified.
14680 + Fixed a regression (only now noticed) in html+lhs output.
14681 Previously the bird tracks were being omitted.
14685 + Omit lists with no items to avoid LaTeX errors.
14686 + Support line numbering with `--listings`.
14687 If `numberLines` class is present, we add `numbers=left`;
14688 if `startFrom` is present, we add `firstnumber=`. (#763)
14692 + Removed `\placecontent`. This produced a duplicate toc,
14693 in conjunction with `\placelist`.
14694 + Use `\title`, `\subject` etc. for headers with
14695 `unnumbered` class.
14699 + Support header attributes.
14703 + Use grid tables when needed, and if enabled. Closes #740.
14704 + Render citations as pandoc-markdown citations.
14705 Previously citations were rendered as citeproc-formatted citations
14706 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
14707 unless the `citations` extension is disabled.
14708 If you still want formatted citations in your markdown output,
14709 use `pandoc -t markdown-citations`.
14713 + Support `:number-lines:` in code blocks.
14717 + Better treatment of display math. Display math inside a
14718 paragraph is now put in a separate paragraph, so it will render
14719 properly (centered and without extra blank lines around it).
14720 Partially addresses #742.
14721 + Content types and document rels xml files are now created from
14722 scratch, rather than being taken over from `reference.docx`.
14723 This fixes problems that arise when you edit the `reference.docx`
14725 + We also now encode mime types for each individual image rather
14726 than using defaults. This should allow us to handle a wider
14727 range of image types (including PDF). Closes #414.
14728 + Changed style names in `reference docx`.
14729 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
14730 The old names got changed by Word when the `reference.docx` was
14731 edited. Closes #414.
14735 + Fix section numbering. Previously the numbering restarted from 1
14736 in each chapter (with `--number-sections`), though the numbers in
14737 the table of contents were correct.
14738 + Headers with "unnumbered" attribute are not numbered. (Nor do they
14739 cause an increment in running numbering.) Section numbers now work
14740 properly, even when there is material before the first numbered section.
14741 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
14742 but `linear` is set to `no` unless the `--toc` option is specified.
14743 Include `<guide>` element in OPF. This should allow the TOC to
14744 be usable in Kindles when converted with kindlegen. Closes #773.
14746 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
14747 This dramatically reduces the speed penalty that comes from enabling the
14748 `autolink_bare_uris` extension. The penalty is still substantial (in one
14749 test, from 0.33s to 0.44s), but nowhere near what it used to be.
14750 The RST reader is also much faster now, as it autodetects URIs.
14752 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
14753 with class "unnumbered". Unnumbered sections get `[]` for their
14756 * `Text.Pandoc.Pretty`:
14758 + Fixed `chomp` so it works inside `Prefixed` elements.
14759 + Changed `Show` instance so it is better for debugging.
14761 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
14763 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
14765 * Windows installer improvements:
14767 + The installer is now signed with a certificate (thanks to
14768 Fyodor Sheremetyev).
14769 + WiX is used instead of InnoSetup. The installer is now a
14771 + The version number is now auto-detected, and need not be
14772 updated separately.
14774 * OSX installer improvements:
14776 + The package and pandoc executable are now signed with a
14777 certificate (thanks to Fyodor Sheremetyev).
14778 + RTF version of license is used.
14779 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
14782 * Converted COPYING to markdown.
14784 * pandoc.cabal: Require latest versions of highlighting-kate,
14785 texmath, citeproc-hs, zip-archive.
14787## pandoc 1.10.1 (2013-01-23)
14789 * Markdown reader: various optimizations, leading to a
14790 significant performance boost.
14792 * RST reader: Allow anonymous form of inline links:
14793 `` `hello <url>`__ `` Closes #724.
14795 * Mediawiki reader: Don't require newlines after tables.
14796 Thanks to jrunningen for the patch. Closes #733.
14798 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
14799 when output is LaTeX, and applied when it is another format.
14800 Partially addresses #730.
14802 * Markdown and RST readers: Added parser to `block` that skips blank
14803 lines. This fixes a subtle regression involving grid tables with
14804 empty cells. Also added test for grid table with empty cells.
14807 * RST writer: Use `.. code:: language` for code blocks with language.
14810 * DocBook writer: Fixed output for hard line breaks, adding a newline
14811 between `<literallayout>` tags.
14813 * Markdown writer: Use an autolink when link text matches url.
14814 Previously we also checked for a null title, but this
14815 test fails for links produced by citeproc-hs in bibliographies.
14816 So, if the link has a title, it will be lost on conversion
14817 to an autolink, but that seems okay.
14819 * Markdown writer: Set title, author, date variables as before.
14820 These are no longer used in the default template, since we use
14821 titleblock, but we set them anyway for those who use custom templates.
14823 * LaTeX writer: Avoid extra space at start/end of table cell.
14824 Thanks to Nick Bart for the suggestion of using @{}.
14826 * `Text.Pandoc.Parsing`:
14828 + More efficient version of `anyLine`.
14829 + Type of `macro` has changed; the parser now returns `Blocks`
14830 instead of `Block`.
14832 * Relaxed old-time version bound, allowing 1.0.*.
14834 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
14835 should create a symlink as described in the README.
14837## pandoc 1.10.0.5 (2013-01-23)
14839 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
14840 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
14841 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
14843 * Markdown reader: Fixed bug with headerless grid tables.
14844 The 1.10 code assumed that each table header cell contains exactly one
14845 block. That failed for headerless tables (0) and also for tables with
14846 multiple blocks in a header cell. The code is fixed and tests provided.
14847 Thanks to Andrew Lee for pointing out the bug.
14849 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
14851 + Tilde code fences can again take a bare language string
14852 (`~~~ haskell`), not just curly-bracketed attributes
14853 (`~~~ {.haskell}`).
14854 + Backtick code blocks can take the curly-bracketed attributes.
14855 + Backtick code blocks don't *require* a language.
14856 + Consolidated code for the two kinds of fenced code blocks.
14858 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
14860 * Markdown writer: Use proportional font for email autolinks with
14861 obfuscation. Closes #714.
14863 * Corrected name of `blank_before_blockquote` in README. Closes #718.
14865 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
14866 The bug prevented an autolink at the end of a string (e.g.
14867 at the end of a line block line) from counting as a link. Closes #711.
14869 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
14870 This should work on Windows, unlike the TH solution with
14873 * Eliminated use of TH in test suite.
14875 * Added `Text.Pandoc.Data` (non-exported) to hold the association
14876 list of embedded data files, if the `embed_data_files` flag is selected.
14877 This isolates the code that needs special treatment with file-embed or
14880 * Changes to `make-windows-installer.bat`.
14882 + Exit batch file if any of the cabal-dev installs fail.
14883 + There's no longer any need to reinstall `highlighting-kate`.
14884 + Don't start with a `cabal update`; leave that to the user.
14885 + Force reinstall of pandoc.
14887 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
14890## pandoc 1.10.0.4 (2013-01-20)
14892 * Fixed bug with escaped % in LaTeX reader. Closes #710.
14894## pandoc 1.10.0.3 (2013-01-20)
14896 * Added further missing fb2 tests to cabal file.
14898## pandoc 1.10.0.2 (2013-01-20)
14900 * Added fb2 tests to cabal file's extra-source-files.
14902## pandoc 1.10.0.1 (2013-01-20)
14904 * Bump version bounds on test-framework packages.
14906## pandoc 1.10 (2013-01-19)
14910 * New input formats: `mediawiki` (MediaWiki markup).
14912 * New output formats: `epub3` (EPUB v3 with MathML),
14913 `fb2` (FictionBook2 ebooks).
14915 * New `--toc-depth` option, specifying how many levels of
14916 headers to include in a table of contents.
14918 * New `--epub-chapter-level` option, specifying the header
14919 level at which to divide EPUBs into separate files.
14920 Note that this normally affects only performance, not the
14921 visual presentation of the EPUB in a reader.
14923 * Removed the `--strict` option. Instead of using `--strict`,
14924 one can now use the format name `markdown_strict` for either input
14925 or output. This gives more fine-grained control that `--strict`
14926 did, allowing one to convert from pandoc's markdown to strict
14927 markdown or vice versa.
14929 * It is now possible to enable or disable specific syntax
14930 extensions by appending them (with `+` or `-`) to the writer
14931 or reader name. For example,
14933 pandoc -f markdown-footnotes+hard_line_breaks
14935 disables footnotes and enables treating newlines as hard
14936 line breaks. The literate Haskell extensions are now implemented
14937 this way as well, using either `+lhs` or `+literate_haskell`.
14938 For a list of extension names, see the README under
14939 "Pandoc's Markdown."
14941 * The following aliases have been introduced for specific
14942 combinations of markdown extensions: `markdown_phpextra`,
14943 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
14944 work just like regular reader and writer names, and can be modified
14945 with extension modifiers as described above. (Note that conversion
14946 from one markdown dialect to another does not work perfectly,
14947 because there are differences in markdown parsers besides
14948 just the extensions, and because pandoc's internal document model is
14949 not rich enough to capture all of the extensions.)
14951 * New `--html-q-tags` option. The previous default was to use `<q>`
14952 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
14953 Moreover, they are not a robust way of typesetting quotes, since
14954 some user agents don't support them, and some CSS resets (e.g.
14955 bootstrap) prevent pandoc's quotes CSS from working properly.
14956 We now just insert literal quote characters by default in both
14957 `html` and `html5` output, but this option is provided for
14958 those who still want `<q>` tags.
14960 * The markdown reader now prints warnings (to stderr) about
14961 duplicate link and note references. Closes #375.
14963 * Markdown syntax extensions:
14965 + Added pipe tables. Thanks to François Gannaz for the initial patch.
14966 These conform to PHP Markdown Extra's pipe table syntax. A subset
14967 of org-mode table syntax is also supported, which means that you can
14968 use org-mode's nice table editor to create tables.
14970 + Added support for RST-style line blocks. These are
14971 useful for verse and addresses.
14973 + Attributes can now be specified for headers, using the same
14974 syntax as in code blocks. (However, currently only the
14975 identifier has any effect in most writers.) For example,
14979 See [the header above](#foo).
14981 + Pandoc will now act as if link references have been defined
14982 for all headers without explicit identifiers.
14983 So, you can do this:
14987 Link to [My header].
14988 Another link to [it][My header].
14994 + Command macros now work everywhere, including non-math.
14995 Environment macros still not supported.
14996 + `\input` now works, as well as `\include`. TEXINPUTS is used.
14997 Pandoc looks recursively into included files for more included files.
14999### Behavior changes
15001 * The Markdown reader no longer puts the text of autolinks in a
15002 `Code` inline. This means that autolinks will no longer appear
15003 in a monospace font.
15005 * The character `/` can now appear in markdown citation keys.
15007 * HTML blocks in strict_markdown are no longer required to begin
15008 at the left margin. Technically this is required, according to
15009 the markdown syntax document, but `Markdown.pl` and other markdown
15010 processors are more liberal.
15012 * The `-V` option has been changed so that if there are duplicate
15013 variables, those specified later on the command line take precedence.
15015 * Tight lists now work in LaTeX and ConTeXt output.
15017 * The LaTeX writer no longer relien on the `enumerate` package.
15018 Instead, it uses standard LaTeX commands to change the list numbering
15021 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
15022 tables to be split over page boundaries.
15024 * The RST writer now uses a line block to render paragraphs containing
15025 linebreaks (which previously weren't supported at all).
15027 * The markdown writer now applies the `--id-prefix` to footnote IDs.
15030 * The plain writer no longer uses backslash-escaped line breaks
15031 (which are not very "plain").
15033 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
15034 Read bytestring and use `Text`'s decodeUtf8 instead of using
15035 `System.IO.hGetContents`. This way you get a message saying
15036 "invalid UTF-8 stream" instead of "invalid byte sequence."
15037 You are also told which byte caused the problem.
15039 * Docx, ODT, and EPUB writers now download images specified by a URL
15040 instead of skipping them or raising an error.
15044 + The default CSS now left-aligns headers by default, instead of
15045 centering. This is more consistent with the rest of the writers.
15046 + A proper multi-level table of contents is now used in `toc.ncx`.
15047 There is no longer a subsidiary table of contents at the beginning
15049 + Code highlighting now works by default.
15050 + Section divs are used by default for better semantic markup.
15051 + The title is used instead of "Title Page" in the table of contents.
15052 Otherwise we have a hard-coded English string, which looks
15053 strange in ebooks written in other languages. Closes #572.
15057 + Put mathjax in span with class "math". Closes #562.
15058 + Put citations in a span with class "citation." In HTML5, also include
15059 a `data-cite` attribute with a space-separated list of citation
15062 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
15063 This treats both `\r\n` and `\n` as `\n` on input, no matter
15064 what platform we're running on.
15066 * Citation processing is now done in the Markdown and LaTeX
15067 readers, not in `pandoc.hs`. This makes it easier for library users
15070### Template changes
15072 * HTML: Added css to template to preserve spaces in `<code>` tags.
15073 Thanks to Dirk Laurie.
15075 * Beamer: Remove English-centric strings in section pages.
15076 Section pages used to have "Section" and a number as well as the
15077 section title. Now they just have the title. Similarly for part
15078 and subsection. Closes #566.
15080 * LaTeX, ConTeXt: Added papersize variable.
15082 * LaTeX, Beamer templates: Use longtable instead of ctable.
15084 * LaTeX, Beamer templates: Don't require 'float' package for tables.
15085 We don't actually seem to use the '[H]' option.
15087 * Markdown, plain: Fixed titleblock so it is just a single string.
15088 Previously separate title, author, and date variables were used,
15089 but this didn't allow different kinds of title blocks.
15093 + Rationalized templates. Previously there were three different
15094 templates involved in epub production. There is now just one
15095 template, `default.epub` or `default.epub3`. It can now be
15096 overridden using `--template`, just like other templates.
15097 The titlepage is now folded into the default template.
15098 A `titlepage` variable selects it.
15099 + UTF-8, lang tag, meta tags, title element.
15101 * Added scale-to-width feature to beamer template
15105 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
15106 Previously header identifiers were autogenerated by the writers.
15107 Now they are added in the readers (either automatically or explicitly).
15109 * `Text.Pandoc.Builder`:
15111 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
15112 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
15113 custom Monoid instances for `Many Inline` and `Many Block. This
15114 allows `Many` to be made an instance of `Foldable` and `Traversable`.
15115 + The old `Listable` class has been removed.
15116 + The module now exports `isNull`, `toList`, `fromList`.
15117 + The old `Read` and `Show` instances have been removed; derived
15118 instances are now used.
15119 + Added `headerWith`.
15121 * The readers now take a `ReaderOptions` rather than a `ParserState`
15122 as a parameter. Indeed, not all parsers use the `ParserState` type;
15123 some have a custom state. The motivation for this change was to separate
15124 user-specifiable options from the accounting functions of parser state.
15126 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
15127 formerly in `Text.Pandoc.Shared`, and its associated
15128 data types. It also includes a new type `ReaderOptions`, which
15129 contains many options formerly in `ParserState`, and its associated
15132 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
15133 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
15134 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
15135 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
15136 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
15137 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
15138 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
15139 + `ParserState.stateIndentedCodeClasses` ->
15140 `ReaderOptions.readerIndentedCodeClasses`.
15141 + Added `ReaderOptions.readerCitationStyle`.
15143 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
15144 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
15145 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
15146 been renamed `writerEpubMetadata` for consistency.
15148 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
15149 longer stylesheet, fonts, reference files as separate parameters.
15151 * Removed `writerLiterateHaskell` from `WriterOptions`, and
15152 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
15153 by an extension (`Ext_literate_haskell`).
15155 * Removed deprecated `writerXeTeX`.
15157 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
15158 Strict is now handled through extensions.
15160 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
15161 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
15162 and `multimarkdownExtensions`, as well as the `Extensions` type.
15164 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
15167 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
15168 (thanks to Sergey Astanin).
15172 + Added `getReader`, `getWriter` to `Text.Pandoc`.
15173 + `writers` is now an association list `(String, Writer)`.
15174 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
15175 an `IOByteStringWriter`. ALL writers are now in the 'writers'
15176 list, including the binary writers and FB2 writer. This allows
15177 code in `pandoc.hs` to be simplified.
15178 + Changed type of `readers`, so all readers are in IO.
15179 Users who want pure readers can still get them form the reader
15180 modules; this just affects the function `getReader` that looks up
15181 a reader based on the format name. The point of this change is to
15182 make it possible to print warnings from the parser.
15184 * `Text.Pandoc.Parsing`:
15186 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
15187 No other module directly imports Parsec. This will make it easier
15188 to change the parsing backend in the future, if we want to.
15189 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
15190 + Export the type synonym `Parser`.
15191 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
15192 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
15193 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
15194 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
15195 + `ParserState` is no longer an instance of `Show`.
15196 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
15197 + Generalized type of `withQuoteContext`.
15198 + Added `guardEnabled`, `guardDisabled`, `getOption`.
15199 + Removed `failIfStrict`.
15200 + `lookupKeySrc` and `fromKey` are no longer exported.
15202 * `Data.Default` instances are now provided for `ReaderOptions`,
15203 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
15204 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
15205 of `defaultWriterOptions` (which is still defined). Closes #546.
15207 * `Text.Pandoc.Shared`:
15209 + Added `safeRead`.
15210 + Renamed `removedLeadingTrailingSpace` to `trim`,
15211 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
15212 + Count `\r` as space in `trim` functions.
15213 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
15215 + Removed `failUnlessLHS`.
15216 + Export `compactify'`, formerly in Markdown reader.
15217 + Export `isTightList`.
15218 + Do not export `findDataFile`.
15219 + `readDataFile` now returns a strict ByteString.
15220 + Export `readDataFileUTF8` which returns a String, like the
15221 old `readDataFile`.
15222 + Export `fetchItem` and `openURL`.
15224 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
15225 Removed `readImageSize`.
15227 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
15228 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
15231 * `Text.Pandoc.UTF8` is now an exposed module.
15233 * `Text.Pandoc.Biblio`:
15235 + csl parameter now a `String` rather than a `FilePath`.
15236 + Changed type of `processBiblio`. It is no longer in the IO monad.
15237 It now takes a `Maybe Style` argument rather than parameters for CSL
15238 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
15239 the style file and add abbreviations.)
15241 * Markdown reader now exports `readMarkdownWithWarnings`.
15243 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
15248 * Make `--ascii` work properly with `--self-contained`. Closes #568.
15252 + Fixed link parser to avoid exponential slowdowns. Closes #620.
15253 Previously the parser would hang on input like this:
15255 [[[[[[[[[[[[[[[[[[hi
15257 We fixed this by making the link parser parser characters
15258 between balanced brackets (skipping brackets in inline code spans),
15259 then parsing the result as an inline list. One change is that
15261 [hi *there]* bud](/url)
15263 is now no longer parsed as a link. But in this respect pandoc behaved
15264 differently from most other implementations anyway, so that seems okay.
15266 + Look for raw html/latex blocks before tables.
15267 Otherwise the following gets parsed as a table:
15278 + Added support for `:target:` on `.. image::` blocks
15280 + Field list fixes:
15282 - Fixed field lists items with body beginning after a new line
15284 - Allow any char but ':' in names of field lists in RST reader
15286 - Don't allow line breaks in field names.
15287 - Require whitespace after field list field names.
15288 - Don't create empty definition list for metadata field lists.
15289 Previously a field list consisting only of metadata fields (author,
15290 title, date) would be parsed as an empty DefinitionList, which is
15291 not legal in LaTeX and not needed in any format.
15293 + Don't recognize inline-markup starts inside words.
15294 For example, `2*2 = 4*1` should not contain an emphasized
15295 section. Added test case for "Literal symbols". Closes #569.
15296 + Allow dashes as separator in simple tables. Closes #555.
15297 + Added support for `container`, `compound`, `epigraph`,
15298 `rubric`, `highlights`, `pull-quote`.
15299 + Added support for `.. code::`.
15300 + Made directive labels case-insensitive.
15301 + Removed requirement that directives begin at left margin.
15302 This was (correctly) not in earlier releases; docutils doesn't
15303 make the requirement.
15304 + Added support for `replace::` and `unicode::` substitutions.
15305 + Ignore unknown interpreted roles.
15306 + Renamed image parser to `subst`, since it now handles all
15307 substitution references.
15311 + Allow newlines before pipes in table. Closes #654.
15312 + Fixed bug with list items containing line breaks.
15313 Now pandoc correctly handles hard line breaks inside list items.
15314 Previously they broke list parsing.
15315 + Implemented comment blocks.
15316 + Fixed bug affected words ending in hyphen.
15317 + Properly handle links with surrounding brackets.
15318 Square brackets need to be used when the link isn't surrounded by
15319 spaces or punctuation, or when the URL ending may be ambiguous.
15321 + Removed nullBlock. Better to know about parsing problems than
15322 to skip stuff when we get stuck.
15323 + Allow ID attributes on headers.
15324 + Textile reader: Avoid parsing dashes as strikeout.
15325 Previously the input
15332 would be parsed with strikeouts rather than dashes. This fixes
15333 the problem by requiring that a strikeout delimiting - not be
15334 followed by a -. Closes #631.
15335 + Expanded list of `stringBreakers`.
15336 This fixes a bug on input like "(_hello_)" which should
15337 be a parenthesized emphasized "hello".
15338 The new list is taken from the PHP source of textile 2.4.
15339 + Fixed autolinks. Previously the textile reader and writer
15340 incorrectly implemented RST-style autolinks for URLs and email
15341 addresses. This has been fixed. Now an autolink is done this way:
15342 `"$":http://myurl.com`.
15343 + Fixed footnotes bug in textile. This affected notes occurring
15344 before punctuation, e.g. `foo[1].`. Closes #518.
15348 + Better handling of citation commands.
15349 + Better handling of `\noindent`.
15350 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
15352 + Made `rawLaTeXInline` try to parse block commands as well. This
15353 is usually what we want, given how `rawLaTeXInline` is used in
15354 the markdown and textile readers. If a block-level LaTeX command
15355 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
15356 we can treat it as raw inline LaTeX.
15357 + Handle `\slash` command. Closes #605.
15358 + Basic `\enquote` support.
15359 + Fixed parsing of paragraphs beginning with a group. Closes #606.
15360 + Use curly quotes for bare straight quotes.
15361 + Support obeylines environment. Closes #604.
15362 + Guard against "begin", "end" in inlineCommand and
15364 + Better error messages for environments. Now it should tell you that
15365 it was looking for \end{env}, instead of giving "unknown parse error."
15369 + Added HTML 5 tags to list of block-level tags.
15370 + HTML reader: Fixed bug in `htmlBalanced`, which
15371 caused hangs in parsing certain markdown input using
15373 + Parse `<q>` as `Quoted DoubleQuote`.
15374 + Handle nested `<q>` tags properly.
15375 + Modified `htmlTag` for fewer false positives.
15376 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
15377 This makes it more useful in the wikimedia and markdown parsers.
15379 * DocBook reader: Support title in "figure" element. Closes #650.
15381 * MediaWiki writer:
15383 + Remove newline after `<br/>` in translation of `LineBreak`
15384 There's no particular need for a newline (other than making the
15385 generated MediaWiki source look nice to a human), and in fact
15386 sometimes it is incorrect: in particular, inside an enumeration, list
15387 items cannot have embedded newline characters. (Brent Yorgey)
15388 + Use `<code>` not `<tt>` for Code.
15390 * Man writer: Escape `-` as `\-`.
15391 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
15392 signs. That is preferable for use with command-line options. See
15393 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
15394 to Andrea Bolognani for bringing the issue to our attention.
15398 + Improved line block output. Use nonbreaking spaces for
15399 initial indent (otherwise lost in HTML and LaTeX).
15400 Allow multiple paragraphs in a single line block.
15401 Allow soft breaks w continuations in line blocks.
15402 + Properly handle images with no alt text. Closes #678.
15403 + Fixed bug with links with duplicate text. We now (a) use anonymous
15404 links for links with inline URLs, and (b) use an inline link instead
15405 of a reference link if the reference link would require a label that
15406 has already been used for a different link. Closes #511.
15407 + Fixed hyperlinked images. Closes #611. Use `:target:`
15408 field when you have a simple linked image.
15409 + Don't add `:align: center` to figures.
15411 * Texinfo writer: Fixed internal cross-references.
15412 Now we insert anchors after each header, and use `@ref` instead of `@uref`
15413 for links. Commas are now escaped as `@comma{}` only when needed;
15414 previously all commas were escaped. (This change is needed, in part,
15415 because `@ref` commands must be followed by a real comma or period.) Also
15416 insert a blank line in from of `@verbatim` environments.
15420 + Made --id-prefix work in DocBook as well as HTML.
15422 + Don't include empty captions in figures. Closes #581.
15426 + Use `\hspace*` for nonbreaking space after line break,
15427 since `~` spaces after a line break are just ignored.
15429 + Don't escape `_` in URLs or hyperref identifiers.
15430 + Properly escape strings inside `\url{}`. Closes #576.
15431 + Use `[fragile]` only for slides containing code rendered
15432 using listings. Closes #649.
15433 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
15434 highlighting-kate's macros, which redefine `|` as a short verbatim
15435 delimiter. Thanks to Björn Peemöller for raising this issue.
15436 + Use minipage rather than parbox for block containers in tables.
15437 This allows verbatim code to be included in grid tables.
15439 + Prevent paragraphs containing only linebreaks or spaces.
15443 + Included `highlighting-css` for code spans, too.
15444 Previously it was only included if used in a code block. Closes #653.
15445 + Improved line breaks with `<dd>` tags. We now put a newline between
15446 `</dd>` and `<dd>` when there are multiple definitions.
15447 + Changed mathjax cdn url so it doesn't use https. (This caused
15448 problems when used with `--self-contained`.) See #609.
15452 + `--number-sections` now works properly.
15453 + Don't strip meta and link elements in epub metadata.
15454 Patch from aberrancy. Closes #589.
15455 + Fixed a couple validation bugs.
15456 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
15457 of chapters in some readers, which apparently sort ch2 after ch10.
15460 * ODT writer: properly set title property (Arlo O'Keeffe).
15464 + Fixed bug with nested lists. Previously a list like
15471 would come out with a bullet instead of "2."
15472 Thanks to Russell Allen for reporting the bug.
15473 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
15474 This seems to fix a problem viewing pandoc-generated
15475 docx files in LibreOffice.
15476 + Use integer ids for bookmarks. Closes #626.
15477 + Added nsid to abstractNum elements. This helps when merging
15478 word documents with numbered or bulleted lists. Closes #627.
15479 + Use separate footnotes.xml for notes.
15480 This seems to help LibreOffice convert the file, even though
15481 it was valid docx before. Closes #637.
15482 + Use rIdNN identifiers for r:embed in images.
15483 + Avoid reading image files again when we've already processed them.
15484 + Fixed typo in `referenc.docx` that prevented image captions from
15485 working. Thanks to Huashan Chen.
15487 * `Text.Pandoc.Parsing`:
15489 + Fixed bug in `withRaw`, which didn't correctly handle the case
15490 where nothing is parsed.
15491 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
15492 though it still doesn't implement quoted strings in email addresses.
15493 + Revised URI parser. It now allows many more schemes, allows
15494 uppercase URIs, and better handles trailing punctuation and
15495 trailing slashes in bare URIs. Added many tests.
15496 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
15497 etc. parse properly. Formerly we had some English-centric heuristics,
15498 but they are no longer needed. Closes #698.
15500 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
15501 This fixes bug with Chinese commas in markdown and reST tables, and
15502 a bug that caused combining characters to be dropped.
15504 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
15506 * `Text.Pandoc.Biblio`:
15508 + Run `mvPunc` and `deNote` on metadata too.
15509 This fixed a bug with notes on titles using footnote styles.
15510 + Fixed bug in fetching CSL files from CSL data directory.
15512 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
15513 is provided. It should be the URL up to the path.
15515 * Fixed/simplified diff output for tests.
15516 Biblio: Make sure mvPunc and deNote run on metadata too.
15517 This fixed a bug with notes on titles using footnote styles.
15519### Under the hood improvements
15521 * We no longer depend on `utf8-string`. Instead we use functions
15522 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
15524 * Use `safeRead` instead of using `reads` directly (various modules).
15526 * "Implicit figures" (images alone in a paragraph) are now handled
15527 differently. The markdown reader gives their titles the prefix `fig:`; the
15528 writers look for this before treating the image as a figure. Though this
15529 is a bit of a hack, it has two advantages: (i) implicit figures can be
15530 limited to the markdown reader, and (ii) they can be deactivated by turning
15531 off the `implicit_figures` extension.
15533 * `catch` from `Control.Exception` is now used instead of the
15534 old Preface `catch`.
15536 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
15537 and `oneOfStrings` (which is now non-backtracking).
15539 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
15540 Now citeproc-hs is fixed upstream, so this is no longer needed.
15543 * Textile reader: Improved speed of `hyphenedWords`.
15544 This speeds up the textile reader by about a factor of 4.
15546 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
15547 better performance, and automatic normalization.
15549 * Major rewrite of markdown reader:
15551 + Use `Text.Pandoc.Builder` instead of lists. This also
15552 means that everything is normalized automatically.
15553 + Move to a one-pass parsing strategy, returning values in the reader
15554 monad, which are then run (at the end of parsing) against the final
15557 * In HTML writer, we now use `toHtml` instead of pre-escaping.
15558 We work around the problem that blaze-html unnecessarily escapes `'`
15559 by pre-escaping just the `'` characters, instead of the whole string.
15560 If blaze-html later stops escaping `'` characters, we can simplify
15561 `strToHtml` to `toHtml`. Closes #629.
15563 * Moved code for embedding images in RTFs from `pandoc.hs` to the
15564 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
15566 * Moved citation processing from `pandoc.hs` into the readers.
15567 This makes things more convenient for library users.
15569 * The man pages are now built by an executable `make-pandoc-man-pages`,
15570 which has its own stanza in the cabal file so that dependencies can be
15571 handled by Cabal. Special treatment in `Setup.hs` ensures that this
15572 executable never gets installed; it is only used to create the man pages.
15574 * The cabal file has been modified so that the pandoc library is used
15575 in building the pandoc executable. (This required moving `pandoc.hs`
15576 from `src` to `.`.) This cuts compile time in half.
15578 * The `executable` and `library` flags have been removed.
15580 * `-threaded` has been removed from ghc-options.
15582 * Version bounds of dependencies have been raised, and the
15583 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
15586 * We now require base >= 4.2.
15588 * Integrated the benchmark program into cabal. One can now do:
15590 cabal configure --enable-benchmarks && cabal build
15591 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
15593 The benchmark now uses README + testsuite, so benchmark results
15594 from older versions aren't comparable.
15596 * Integrated test suite with cabal.
15597 To run tests, configure with `--enable-tests`, then `cabal test`.
15598 You can specify particular tests using `--test-options='-t markdown'`.
15599 No output is shown unless tests fail. The Haskell test modules
15600 have been moved from `src/` to `tests/`.
15602 * Moved all data files and templates to the `data/` subdirectory.
15604 * Added an `embed_data_files` cabal flag. This causes all
15605 data files to be embedded in the binary, so that the binary
15606 is self-sufficient and can be relocated anywhere, copied on
15607 a USB key, etc. The Windows installer now uses this.
15608 (Since we no longer have the option to build the executable
15609 without the library, this is the only way to get a relocatable
15610 binary on Windows.)
15612 * Removed pcre3.dll from windows package.
15613 It isn't needed unless highlighting-kate is compiled with the
15614 `pcre-light` flag. By default, regex-prce-builtin is used.
15617## pandoc 1.9.4.5 (2012-10-21)
15619 * Raised version bounds on network, base64-bytestring, json,
15620 and template-haskell.
15622## pandoc 1.9.4.4 (2012-10-20)
15624 * Removed `tests` flag and made test suite into a proper cabal
15625 test suite, which can now be enabled using `--enable-tests`
15626 and run with `cabal test`.
15628 * Moved man page creation out of `Setup.hs` and into an
15629 executable built by Cabal, but never installed. This
15630 allows dependencies to be specified, and solves a problem
15631 with 1.9.4.3, which could only be installed if `data-default`
15632 had already been installed.
15634 * Updated `lhs-latex.tex` test for latest highlighting-kate
15635 representation of backticks.
15637## pandoc 1.9.4.3 (2012-10-20)
15639 * Removed `-threaded` from default compile flags.
15641 * Modified modules to compile with GHC 7.6 and latest version of time
15644## pandoc 1.9.4.2 (2012-06-29)
15646 * Don't encode/decode file paths if base >= 4.4.
15647 Prior to base 4.4, filepaths and command line arguments were treated
15648 as unencoded lists of bytes, not unicode strings, so we had to work
15649 around that by encoding and decoding them. This commit adds CPP
15650 checks for the base version that intelligibly enable encoding/decoding
15651 when needed. Fixes a bug with multilingual filenames when pandoc was
15652 compiled with ghc 7.4 (#540).
15654 * Don't generate an empty H1 after hrule slide breaks.
15655 We now use a slide-level header with contents `[Str "\0"]` to mark
15656 an hrule break. This avoids creation of an empty H1 in these
15657 contexts. Closes #484.
15659 * Docbook reader: Added support for "bold" emphasis. Thanks to mb21.
15661 * In make_osx_package.sh, ensure citeproc-hs is built with the
15662 embed_data_files flag.
15664 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
15666 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
15667 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
15669 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
15672 * Added webm to mime types. Closes #543.
15674 * Added some missing exports and tests to the cabal file
15675 (Alexander V Vershilov).
15677 * Compile with `-rtsopts` and `-threaded` by default.
15679## pandoc 1.9.4.1 (2012-06-08)
15681 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
15683 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
15684 variables. Make TOC links black.
15686 * LaTeX template improvements.
15688 + Don't print date unless one is given explicitly in the document.
15689 + Simplified templates.
15690 + Use fontenc [T1] by default, and lmodern.
15691 + Use microtype if available.
15695 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
15696 Motivation: `@item1 [50]` should be as close as possible to
15698 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
15699 beginning with a citation to be empty. Closes #531.
15701 * Fixed documentation on mixed lists. Closes #533.
15703## pandoc 1.9.4 (2012-06-03)
15705 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
15706 footnotes and captions. We now handle note citations by inserting
15707 footnotes during initial citation processing, and doing a separate
15708 pass later to remove notes inside notes.
15710 * Added 'zenburn' highlight style from highlighting-kate.
15712 * Added Slideous writer. Slideous is an HTML + javascript slide show
15713 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
15717 + Ensure we don't have extra blank lines at ends of cells.
15718 This can cause LaTeX errors, as they are interpreted as new paragraphs.
15719 + More consistent interblock spacing.
15720 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
15721 code in LaTeX. Closes #527.
15722 + Ensure that a Verbatim at the end of a footnote is followed by
15723 a newline. (Fixes a regression in the previous version.)
15724 + In default template, use black for internal links and TOC.
15725 Added commented-out code to use footnotes for links, as would
15726 be suitable in print output.
15728 * Beamer writer: When `--incremental` is used, lists inside
15729 a block quote should appear all at once. (This makes Beamer
15730 output consistent with the HTML slide show formats.)
15734 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
15735 to avoid gobbling spaces after the `%` sign.
15736 + Ensure space after `\stopformula`.
15740 + Use `:` form instead of `~` in definition lists, for better
15741 compatibility with other markdown implementations.
15742 + Don't wrap the term, because it breaks definition lists.
15743 + Use a nonzero space to prevent false recognition
15744 of list marker in ordered lists. Closes #516.
15746 * Org writer: Add space before language name. Closes #523.
15748 * Docx writer: Simplified bullet characters so they work properly
15749 with Word 2007. Closes #520.
15751 * LaTeX reader: Support `\centerline`.
15753 * RST reader: handle figures. Closes #522.
15755 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
15758## pandoc 1.9.3 (2012-05-12)
15760 * Added docbook reader (with contributions from Mauro Bieg).
15762 * Fixed bug in `fromEntities`. The previous version would turn
15763 `hi & low you know;` into `hi &`.
15767 + Don't skip nonbreaking spaces.
15768 Previously a paragraph containing just ` ` would be rendered
15769 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
15770 + Support `<col>` and `<caption>` in tables. Closes #486.
15774 + Don't recognize references inside delimited code blocks.
15775 + Allow list items to begin with lists.
15779 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
15780 + Control sequences can't be followed by a letter.
15781 This fixes a bug where `\begingroup` was parsed as `\begin`
15782 followed by `group`.
15783 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
15784 + Make `\label` and `\ref` sensitive to `--parse-raw`.
15785 If `--parse-raw` is selected, these will be parsed as raw latex
15786 inlines, rather than bracketed text.
15787 + Don't crash on unknown block commands (like `\vspace{10pt}`)
15788 inside `\author`; just skip them. Closes #505.
15792 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
15793 + Added support for LaTeX blocks and inlines (Paul Rivier).
15794 + Better conformance to RedCloth inline parsing (Paul Rivier).
15795 + Parse '+text+' as emphasized (should be underlined, but this
15796 is better than leaving literal plus characters in the output.
15798 * Docx writer: Fixed multi-paragraph list items. Previously they each
15799 got a list marker. Closes #457.
15803 + Added `--no-tex-ligatures` option to avoid replacing
15804 quotation marks and dashes with TeX ligatures.
15805 + Use `fixltx2e` package to provide `\textsubscript`.
15806 + Improve spacing around LaTeX block environments:
15807 quote, verbatim, itemize, description, enumerate.
15809 + Use blue instead of pink for URL links in latex/pdf output.
15811 * ConTeXt writer: Fixed escaping of `%`.
15812 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
15813 Inside URLs, `%` needs to be escaped as `\%`
15814 Thanks to jmarca and adityam for the fix. Closes #492.
15816 * Texinfo writer: Escape special characters in node titles.
15817 This fixes a problem pointed out by Joost Kremers. Pandoc used
15818 to escape an '@' in a chapter title, but not in the corresponding
15819 node title, leading to invalid texinfo.
15821 * Fixed document encoding in texinfo template.
15822 Resolves Debian Bug #667816.
15826 + Don't force delimited code blocks to be flush left.
15827 Fixes bug with delimited code blocks inside lists etc.
15828 + Escape `<` and `$`.
15830 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
15831 Previously we used `\href{\#ident}{text}`, which didn't work on
15832 all systems. Thanks to Dirk Laurie.
15834 * RST writer: Don't wrap link references. Closes #487.
15836 * Updated to use latest versions of blaze-html, mtl.
15839## pandoc 1.9.2 (2012-04-05)
15843 + Made `lstlisting` work as a proper verbatim environment.
15844 + Fixed bug parsing LaTeX tables with one column.
15848 + Use `{}` around `ctable` caption, so that formatting can be used.
15849 + Don't require eurosym package unless document has a €.
15851 * LaTeX template: Added variables for `geometry`, `romanfont`,
15852 `sansfont`, `mathfont`, `mainfont` so users can more easily
15857 + Run latex engine at least two times, to ensure
15858 that PDFs will have hyperlinked bookmarks.
15859 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
15861 * Texinfo writer: retain directories in image paths. (Peter Wang)
15863 * RST writer: Better handling of inline formatting, in accord
15864 with docutils' "inline markup recognition rules" (though we don't
15865 implement the unicode rules fully). Now `hi*there*hi` gets
15866 rendered properly as `hi\ *there*\ hi`, and unnecessary
15867 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
15871 + Parse `\ ` as null, not escaped space.
15872 + Allow `` :math:`...` `` even when not followed by blank
15873 or `\`. This does not implement the complex rule docutils follows,
15874 but it should be good enough for most purposes.
15875 + Add support for the rST default-role directive. (Greg Maslov)
15877 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
15880 * Markdown reader: Properly handle citations nested in other inline
15883 * Markdown writer: don't replace empty alt in image with "image".
15885 * DZSlides: Updated template.html and styles in default template.
15886 Removed bizarre CSS for `q` in dzslides template.
15888 * Avoid repeated `id` attribute in section and header in HTML slides.
15890 * README improvements: new instructions on internal links,
15891 removed misleading note on reST math.
15895 + Fixed Windows installer so that dzslides works.
15896 + Removed stripansi.sh.
15897 + Added .travis.yml for Travis continuous integration support..
15898 + Fixed upper bound for zlib (Sergei Trofimovich).
15899 + Fixed upper bound for test-framework.
15900 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
15903## pandoc 1.9.1.2 (2012-03-09)
15905 * Added `beamer+lhs` as output format.
15907 * Don't escape `<` in `<style>` tags with `--self-contained`.
15908 This fixes a bug which prevented highlighting from working
15909 when using `--self-contained`.
15911 * PDF: run latex engine three times if `--toc` specified.
15912 This fixes page numbers in the table of contents.
15914 * Docx writer: Added TableNormal style to tables.
15916 * LaTeX math environment fixes. `aligned` is now used instead of
15917 the nonexistent `aligned*`. `multline` instead of the nonexistent
15920 * LaTeX writer: Use `\textasciitilde` for literal `~`.
15922 * HTML writer: Don't escape contents of EQ tags with --gladtex.
15923 This fixes a regression from 1.8.
15925 * Use `<q>` tags for Quoted items for HTML5 output.
15926 The quote style can be changed by modifying the template
15927 or including a css file. A default quote style is included.
15929 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
15930 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
15932 * Updated LaTeX template for better language support.
15933 Use `polyglossia` instead of `babel` with xetex.
15934 Set `lang` as documentclass option.
15935 `\setmainlanguage` will use the last of a comma-separated
15936 list of languages. Thanks to François Gannaz.
15938 * Fixed default LaTeX template so `\euro` and `€` work. The
15939 `eurosym` package is needed if you are using pdflatex.
15941 * Fixed escaping of period in man writer (thanks to Michael Thompson).
15943 * Fixed list label positions in beamer.
15945 * Set `mainlang` variable in context writer.
15946 This parallels behavior of latex writer. `mainlang` is the last
15947 of a comma-separated list of languages in lang.
15949 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
15951 * Changed `-V` so that you can specify a key without a value.
15952 Such keys get the value `true`.
15954 * Fixed permissions on installed man pages - thanks Magnus Therning.
15956 * Windows installer: require XP or higher. The installer is
15957 now compiled on a Windows 7 machine, which fixes a problem
15958 using citation functions on Windows 7.
15960 * OSX package: Check for 64-bit Intel CPU before installing.
15963## pandoc 1.9.1.1 (2012-02-11)
15965 * Better handling of raw latex environments in markdown. Now
15971 turns into a raw latex block as expected.
15973 * Improvements to LaTeX reader:
15975 + Skip options after block commands.
15976 + Correctly handle `{\\}` in braced.
15977 + Added a needed 'try'.
15978 + Citations: add `, ` to suffix if it doesn't start with space or
15979 punctuation. Otherwise we get no space between the year and the
15980 suffix in author-date styles.
15982 * Added two needed data files for S5. This fixes a problem with
15983 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
15984 which was no longer being used.
15986 * Fixed some minor problems in `reference.docx`:
15987 name on "Date" style, `xCs` instead of `xIs`.
15989 * Fixed a problem creating docx files using a reference docx
15990 modified using Word. The problem seems to be that Word
15991 modifies `_rels/.rels`, changing the Type of the Relationship to
15992 `docProps/core.xml`. Pandoc now changes this back to the correct
15993 value if it has been altered, fixing the problem.
15995 * Fixed html5 template so it works properly with highlighting.
15997## pandoc 1.9.1 (2012-02-09)
16001 + Fixed regression in 1.9; properly handle escaped $ in latex math.
16002 + Put LaTeX verse environments in blockquotes.
16006 + Limit nesting of strong/emph. This avoids exponential lookahead
16007 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
16008 + Improved attributes syntax (in code blocks/spans): (1)
16009 Attributes can contain line breaks. (2) Values in key-value
16010 attributes can be surrounded by either double or single quotes, or
16011 left unquoted if they contain no spaces.
16013 * Headers no longer wrap in markdown or RST writers.
16015 * Added `stateMaxNestingLevel` to `ParserState`.
16016 We set this to 6, so you can still have `Emph` inside `Emph`,
16017 just not indefinitely.
16019 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
16021 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
16024 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
16026## pandoc 1.9.0.5 (2012-02-06)
16028 * Changed cabal file so that build-depends for the test program
16029 are not required unless the tests flag is used.
16031 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
16032 form ligatures (dashes) in code spans.
16034## pandoc 1.9.0.4 (2012-02-06)
16036 * Raised version bound on test-framework to avoid problems
16037 compiling tests on GHC 7.4.1.
16039 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
16040 so citations don't just disappear unless you process with
16041 citeproc. Ignore `\bibliographystyle`, `\nocite`.
16043 * Simplified tex2pdf; it will always run latex twice to
16044 resolve table of contents and hyperrefs.
16046## pandoc 1.9.0.3 (2012-02-06)
16048 * Require Cabal >= 1.10.
16050 * Tweaked cabal file to meet Cabal 1.10 requirements.
16052## pandoc 1.9.0.2 (2012-02-05)
16054 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
16057## pandoc 1.9 (2012-02-05)
16061 * Added a Microsoft Word `docx` writer. The writer includes support
16062 for highlighted code and for math (which is converted from TeX to OMML,
16063 Office's native math markup language, using texmath's new OMML module).
16064 A new option `--reference-docx` allows the user to customize the
16067 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
16069 * Better support for slide shows:
16071 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
16072 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
16074 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
16075 slide presentations.
16077 + New, flexible rules for dividing documents into sections and slides
16078 (see the "Structuring the slide show" in the User's Guide). These
16079 are backward-compatible with the old rules, but they allow slide
16080 shows to be organized into sections and subsections containing
16083 + A new `--slide-level` option allows users to override defaults
16084 and select a slide level below the first header level with content.
16086 * A new `--self-contained` option produces HTML output that does not
16087 depend on an internet connection or the presence of any external
16088 files. Linked images, CSS, and javascript is downloaded (or fetched
16089 locally) and encoded in `data:` URIs. This is useful for making portable
16090 `HTML slide shows. The --offline` option has been deprecated and is now
16091 `treated as a synonym or --self-contained`.
16093 * Support for PDF output:
16095 + Removed the old `markdown2pdf`.
16096 + `pandoc` can now create PDFs (assuming you have latex and a set of
16097 appropriate packages installed): just specify an output file with the
16099 + A new option `--latex-engine` allows you to specify `pdflatex`,
16100 `xelatex`, or `lualatex` as the processor.
16102 * Highlighting changes:
16104 + Syntax highlighting is now a standard feature; the `highlighting`
16105 flag is no longer needed when compiling.
16106 + A new `--no-highlight` option allows highlighting to be disabled.
16107 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
16108 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
16109 + A new `--highlight-style` option selects between various highlighting
16112 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
16114 * LaTeX `\include` and `\usepackage` commands are now processed,
16115 provided the files are in the working directory.
16117 * EPUB improvements:
16119 + Internal and external links now work in EPUB.
16120 + Raw HTML is allowed.
16121 + New `--epub-embed-font` option.
16122 + Customizable templates for EPUB pages offer more control over
16123 formatting: `epub-page.html`, `epub-coverimage.html`,
16124 `epub-titlepage.html`.
16126 * `--mathml` now works with DocBook.
16128 * Added support for math in RST reader and writer. Inline math uses the
16129 `` :math:`...` `` construct. Display math uses
16133 or if the math is multiline,
16139 These constructions are now supported now by `rst2latex.py`.
16141 * Github syntax for fenced code blocks is supported in pandoc's
16142 markdown. You can now write
16154 * Easier scripting: a new `toJsonFilter` function makes it easier to
16155 write Haskell scripts to manipulate the Pandoc AST.
16156 See [Scripting with pandoc](scripting.html#pandoc-1.9-changes).
16158### Behavior changes
16160 * Fixed parsing of consecutive lists in markdown.
16161 Pandoc previously behaved like Markdown.pl for consecutive
16162 lists of different styles. Thus, the following would be parsed
16163 as a single ordered list, rather than an ordered list followed
16164 by an unordered list:
16172 This change makes pandoc behave more sensibly, parsing this as
16173 two lists. Any change in list type (ordered/unordered) or in
16174 list number style will trigger a new list. Thus, the following
16175 will also be parsed as two lists:
16183 Since we regard this as a bug in Markdown.pl, and not something
16184 anyone would ever rely on, we do not preserve the old behavior
16185 even when `--strict` is selected.
16187 * Dashes work differently with `--smart`: `---` is always em-dash,
16188 and `--` is always en-dash. Pandoc no longer tries to guess when
16189 `-` should be en-dash. *Note:* This may change how existing documents
16190 look when processed with pandoc. A new option, `--old-dashes`,
16191 is provided for legacy documents.
16193 * The markdown writer now uses setext headers for levels 1-2.
16194 The old behavior (ATX headers for all levels) can be restored
16195 using the new `--atx-headers` option.
16197 * Links are now allowed in markdown image captions. They are also
16198 allowed in links, but will appear there as regular text. So,
16200 [link with [link](/url)](/url)
16204 <p><a href="/url">link with link</a></p>
16206 * Improved handling of citations using `citeproc-hs-0.3.4`.
16207 Added `--citation-abbreviations` option.
16209 * Citation keys can no longer end with a punctuation character.
16210 This means that `@item1.` will be parsed as a citation with key
16211 'item1', followed by a period, instead of a citation with key
16212 'item1.', as was the case previously.
16214 * In HTML output, citations are now put in a span with class `citation`.
16216 * The markdown reader now recognizes DocBook block and inline tags.
16217 It was always possible to include raw DocBook tags in a markdown
16218 document, but now pandoc will be able to distinguish block from
16219 inline tags and behave accordingly. Thus, for example,
16225 will not be wrapped in `<para>` tags.
16227 * The LaTeX parser has been completely rewritten; it is now much more
16228 accurate, robust, and extensible. However, there are two important
16229 changes in how it treats unknown LaTeX. (1) Previously, unknown
16230 environments became BlockQuote elements; now, they are treated
16231 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
16232 same as `xyz`. (2) Previously, arguments of unknown commands
16233 were passed through with their braces; now the braces are stripped
16236 * `--smart` is no longer selected automatically with `man` output.
16238 * The deprecated `--xetex` option has been removed.
16240 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
16241 instead. `html5` and `html5+lhs` are now separate output formats.
16243 * Single quotes are no longer escaped in HTML output. They do not
16244 need to be escaped outside of attributes.
16246 * Pandoc will no longer transform leading newlines in code
16247 blocks to `<br/>` tags.
16249 * The ODT writer now sizes images appropriately, using the image
16250 size and DPI information embedded in the image.
16252 * `--standalone` is once again implicitly for a non-text output format
16253 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
16254 and get a standalone ODT file.
16256 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
16259 * The HTML writer now uses `<del>` for strikeout.
16261 * In HTML output with `--section-divs`, the classes `section` and
16262 `level[1,2,..6]` are put on the `div` tags so they can be styled.
16263 In HTML 5 output with `--section-divs`, the classes
16264 `level[1,2,...6]` are put on `section` tags.
16266 * EPUB writer changes:
16268 + The `lang` variable now sets the language
16269 in the metadata (if it is not set, we default to the locale).
16270 + EPUB: UTF-8 is used rather than decimal entities.
16272 * Added `titleslide` class to title slide in S5 template.
16274 * In HTML, EPUB, and docx metadata, the date is normalized into
16275 YYYY-MM-DD format if possible. (This is required for validation.)
16277 * Attributes in highlighted code blocks are now preserved in HTML.
16278 The container element will have the classes, id, and key-value attributes
16279 you specified in the delimited code block. Previously these were stripped
16282 * The reference backlink in the HTML writer no longer has a special
16283 `footnoteBacklink` class.
16285 * The HTML template has been split into `html` and `html5` templates.
16287 * Author and date are treated more consistently in HTML templates.
16288 Authors are now `<h2>`, date `<h3>`.
16290 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
16292 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
16296 * Better support for combining characters and East Asian wide characters
16297 in markdown and reST.
16299 * Better handling of single quotes with `--smart`.
16300 Previously `D'oh l'*aide*` would be parsed with left and right single
16301 quotes instead of apostrophes. This kind of error is now fixed.
16303 * Highlighting: Use `reads` instead of `read` for better error handling.
16304 Fixes crash on `startNum="abc"`.
16306 * Added blank comment after directives in rst template.
16308 * Unescape entities in citation `refId`. The `refId`s coming
16309 from citeproc contain XML numeric entities, and these don't match with the
16310 citation keys parsed by pandoc. Solution is to unescape them.
16312 * HTML reader: Fixed bug parsing tables with both thead and tbody.
16316 + Better handling of escapes in link URLs and titles.
16317 + Fixed backslash escapes in reference links.
16318 + Fixed bug in table/hrule parsing, by checking that the top
16319 line of a table is not followed by a blank line. This bug caused
16320 slowdowns on some files with hrules and tables, as pandoc tried to
16321 interpret the hrules as the tops of multiline tables.
16322 + Fixed bug in code block attribute parser. Previously the ID attribute
16323 got lost if it didn't come first. Now attributes can come in any order.
16325 * RST reader: allow footnotes followed by newline without space characters.
16329 + Ignore empty groups {}, { }.
16330 + LaTeX reader: Handle `\@`.
16331 + LaTeX reader: Don't crash on commands like `\itemsep`.
16332 + LaTeX reader: Better handling of letter environments.
16334 * RST writer: Fixed bug involving empty table cells. isSimple was being
16335 calculated in a way that assumed there were no non-empty cells.
16339 + Made `--toc` work even without `--number-sections`.
16340 + Escape # in link URLs.
16341 + Use buffering for footnotes containing code blocks.
16342 + Changed 'descr' to 'description', fixed alignment.
16346 + Escape euro character.
16347 + Don't escape `~` inside `\href{...}`.
16348 + Escape `#` in href URLs.
16349 + Improved detection of book classes. We now check the
16350 `documentclass` variable, and if that is not set, we look through
16351 the template itself. Also, we have added the KOMA classes scrreprt
16352 and scrbook. You can now make a book using
16353 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
16354 + LHS files now set the "listings" variable, so that the definition
16355 of the `code` environment will be included in the template.
16356 + Links are colored blue by default (this can be changed by
16357 modifying `hyperref` settings in the template).
16358 + Added `lang` variable to LaTeX template.
16362 + Fixed bug in HTML template with html5 and mathml.
16363 + Don't use self-closing img, br, hr tags for HTML5.
16364 + Use `<section>` for footnotes if HTML5.
16365 + Update HTML templates to use Content-Style-Type meta tag.
16366 + Use separate variables for meta-date, meta-author.
16367 This makes footnotes work in author and date fields.
16368 + Use 'vertical-align:middle' in WebTeX math for better alignment.
16370 * S5/slidy writer: Make footnotes appear on separate slide at end.
16372 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
16373 META-INF/manifest.xml for ODT files will have everything it needs, so
16374 that ODT files modified by LibreOffice can be used as `--reference-odt`.
16376 * `Text.Pandoc.Templates`: Return empty string for json template.
16378 * `Text.Pandoc.Biblio`:
16380 + Expand citations recursively inside nested inlines.
16381 + Treat `\160` as space when parsing locator and suffix.
16382 This fixes a bug with "p. 33" when `--smart` is used. Previously
16383 the whole "p. 33" would be included in the suffix, with no locator.
16384 + Put whole author-in-text citation in a Cite. Previously just the
16385 date and other info went in the Cite.
16386 + Don't add comma+space to prefix if it ends in punctuation.
16388 * Updated chicago-author-date.csl. The old version did not work
16389 properly for edited volumes with no author.
16393 + Add date to EPUB titlepage and metadata.
16394 + Added TOC identifier in EPUB page template.
16395 + Don't generate superfluous file `cover-image.jpg`.
16397### Under the hood improvements
16399 * Modified `make_osx_package.sh` to use cabal-dev.
16400 Items are no longer installed as root.
16401 Man pages are zipped and given proper permissions.
16403 * Modified windows installer generator to use cabal-dev.
16405 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
16406 Setup.hs we now invoke 'runghc' in a way that points it to the correct
16407 package databases, instead of always falling back to the default user
16410 * Updated to work with GHC 7.4.1.
16412 * Removed dependency on old-time.
16414 * Removed dependency on dlist.
16416 * New slidy directory for "self-contained."
16418 * TeXMath writer: Use unicode thin spaces for thin spaces.
16420 * Markdown citations: don't strip off initial space in locator.
16424 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
16425 from the native `Inline` type in pandoc-types. Now we use `Str`
16426 elements with unicode.
16428 * Improvements to `Text.Pandoc.Builder`:
16430 + `Inlines` and `Blocks` are now newtypes (not synonyms for
16432 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
16433 and a new `Listable` class, which allows these to be manipulated
16434 to some extent like lists. Monoid append includes automatic
16436 + `+++` has been replaced by `<>` (mappend).
16438 * Use blaze-html instead of xhtml for HTML generation.
16439 This changes the type of `writeHtml`.
16441 * `Text.Pandoc.Shared`:
16443 + Added `warn` and `err`.
16444 + Removed `unescapeURI`, modified `escapeURI`.
16445 (See under [behavior changes], above.)
16447 * Changes in URI escaping: Previously the readers escaped URIs by
16448 converting unicode characters to octets and then percent encoding.
16449 Now unicode characters are left as they are, and `escapeURI` only
16450 percent-encodes space characters. This gives more readable
16451 URIs, and works well with modern user agents. URIs are no longer unescaped
16452 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
16454 * New module `Text.Pandoc.SelfContained`.
16456 * New module `Text.Pandoc.Docx`.
16458 * New module `Text.Pandoc.PDF`.
16460 * Added `writerBeamer` to `WriterOptions`.
16462 * Added `normalizeDate` to `Text.Pandoc.Shared`.
16464 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
16465 This is like `splitWithIndices`, but it is sensitive to distinctions
16466 between wide, combining, and regular characters.
16468 * `Text.Pandoc.Pretty`:
16470 + Added `chomp` combinator.
16471 + Added `beforeNonBreak` combinator. This allows you to include
16472 something conditionally on it being before a nonblank.
16473 Used for RST inline math.
16474 + Added `charWidth` function. All characters marked W or F in the unicode
16475 spec EastAsianWidth.txt get width 2.
16476 + Added `realLength`, based on `charWidth`. `realLength` is now
16477 used in calculating offsets.
16479 * New module `Text.Pandoc.Slides`, for common functions for breaking
16480 a document into slides.
16482 * Removed `Text.Pandoc.S5`, which is no longer needed.
16484 * Removed `Text.Pandoc.CharacterReferences`. Moved
16485 `characterReference` to `Text.Pandoc.Parsing`.
16486 `decodeCharacterReferences` is replaced by `fromEntities`
16487 in `Text.Pandoc.XML`.
16489 * Added `Text.Pandoc.ImageSize`. This is intened for use
16490 in `docx` and `odt` writers, so the size and dpi of images
16493 * Removed `writerAscii` in `WriterOptions`.
16495 * Added `writerHighlight` to `WriterOptions`.
16497 * Added `DZSlides` to `HTMLSlideVariant`.
16499 * `writeEPUB` has a new argument for font files to embed.
16501 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
16502 of whether we're parsing the position immediately after a regular
16503 (non-space, non-symbol) string, which is useful for distinguishing
16504 apostrophes from single quote starts.
16506 * `Text.Pandoc.Parsing`:
16508 + `escaped` now returns a `Char`.
16509 + Removed `charsInBalanced'`, added a character parser as
16510 a parameter of `charsInBalanced`. This is needed for
16511 proper handling of escapes, etc.
16514 * Added `toEntities` to `Text.Pandoc.XML`.
16516 * `Text.Pandoc.Readers.LaTeX`:
16518 + Export `handleIncludes`.
16519 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
16521 * Added `ToJsonFilter` class and `toJsonFilter` function to
16522 `Text.Pandoc`, deprecating the old `jsonFilter` function.
16524 * `Text.Pandoc.Highlighting`:
16526 + Removed `highlightHtml`, `defaultHighlightingCss`.
16527 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
16528 key functions from highlighting-kate.
16529 + Changed types of highlighting function. `highlight` returns a
16530 `Maybe`, not an `Either`.
16533## pandoc 1.8.2.1 (2011-08-01)
16535 * Adjusted Arbitrary instance to help avoid timeouts in tests.
16537 * Added `Tests.Writers.Markdown` to cabal file.
16539 * Relaxed version bounds on pandoc-types, test-framework.
16541## pandoc 1.8.2 (2011-07-30)
16543 * Added script to produce OS X package.
16545 * Made `templates` directory a git submodule. This should make it
16546 easier for people to revise their custom templates when the default
16549 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
16550 **Note:** If you have existing templates in `~/.pandoc/templates`, you
16551 must rename them to conform to the new scheme!
16553 * Default template improvements:
16555 + HTML: Display author and date after title.
16556 + HTML: Made table of contents more customizable. The container
16557 for the TOC is now in the template, so users can insert a header
16558 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
16559 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
16560 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
16561 hard-coding. If you want to put your slidy files in the slidy
16562 subdirectory, for example, you can do
16563 `pandoc -t slidy -V slidy-url=slidy -s`.
16564 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
16565 & writer). Closes #279.
16566 + LaTeX: Set `\emergencystretch` to prevent overfull lines.
16567 + LaTeX: Use different `hyperref` options for `xetex`, fixing
16568 problems with unicode bookmarks (thanks to CircleCode).
16569 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
16570 with `inputenc`. This covers fewer characters but is more
16571 robust with other packages, and `ucs` is unmaintained. Users
16572 who need better unicode support should use xelatex or lualatex.
16574 * If a template specified with `--template` is not found, look for it
16575 in `datadir`. Also, if no extension is provided, supply one based
16576 on the writer. So now you can put your `special.latex` template in
16577 `~/.pandoc/templates`, and use it from any directory via
16578 `pandoc -t latex --template special`.
16580 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
16582 * Fixed smart quotes bug, now handling `'...hi'` properly.
16586 + Partial support for labeled footnotes.
16587 + Improved accuracy of `simpleReferenceName` parser.
16591 + Substitute correct unicode characters for
16592 characters in the 128..159 range, which are often found even in
16593 HTML that purports to be UTF-8.
16595 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
16596 to the title, after a colon and linebreak). Closes #280.
16598 * Leaner `reference.odt`.
16600 * Added unexported module `Text.Pandoc.MIME` for use in
16603 * ODT writer: Construct `manifest.xml` based on archive contents.
16604 This fixes a bug in ODTs containing images. Recent versions of
16605 LibreOffice would reject these as corrupt, because `manifest.xml`
16606 did not contain a reference to the image files.
16610 + Make verbatim environments flush to avoid spurious
16611 blank lines. Closes #277.
16612 + Use `\texttt` and escapes insntead of `\verb!...!`, which
16613 is too fragile (doesn't work in command arguments).
16614 + Use `\enquote{}` for quotes if the template includes
16615 the `csquotes` package. This provides better support for
16616 local quoting styles. (Thanks to Andreas Wagner for the idea.)
16618 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
16619 margin, preventing spurious blank lines.
16623 + Use non-minimized version of `slidy.css` with `--offline`
16624 option, so users can more easily edit it.
16625 + Also fixed a bug in the CSS that prevented proper centering
16626 of title (now reported and fixed upstream).
16630 + Replaced `s5/default/slides.js.{comment,packed}` with
16631 new compressed `s5/default/slides.min.js`.
16632 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
16633 when `--offline` is specified. Using inline CSS didn't
16634 work with Chrome or Safari. This fixes offline
16635 S5 on those browsers.
16637 * HTML writer: Removed English title on footnote backlinks.
16638 This is incongrous in non-English documents.
16642 + Use CALS tables. (Some older docbook software does not work
16643 well with XHTML tables.) Closes #77.
16644 + Use `programlisting` tags (instead of `screen`) for code blocks.
16648 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
16649 of `-interaction=batchmode`, which essentially just ignored errors,
16650 leading to bad results. Better to know when something is wrong.
16651 + Fixed issues with non-UTF-8 output of `pdflatex`.
16652 + Better error reporting.
16654 * `--mathjax` now takes an optional URL argument. If it is not
16655 provided, pandoc links directly to the (secure) mathjax CDN,
16656 as now recommended (thanks to dsanson).
16658 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
16659 since the LaTeX writer now produces a file that can be processed by
16660 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
16662 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
16663 to be used to create the PDF.
16666## pandoc 1.8.1.2 (2011-07-16)
16668 * Added `--epub-cover-image` option.
16670 * Documented `--biblatex` and `--natbib` options.
16672 * Allow `--section-divs` with slidy output. Resolves Issue #296.
16674 * Disallow notes within notes in reST and markdown.
16675 These previously caused infinite looping and stack overflows.
16682 Note references are allowed in reST notes, so this isn't a full
16683 implementation of reST. That can come later. For now we need to
16684 prevent the stack overflows. Partially resolves Issue #297.
16686 * EPUB writer: Allow non-plain math methods.
16688 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
16689 `(@item1; @item2)` because the final paren was being parsed as part of
16692 * Changed URI parser so it doesn't include trailing punctuation.
16693 So, in RST, `http://google.com.` should be parsed as a link followed by a
16694 period. The parser is smart enough to recognize balanced parentheses, as
16695 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
16697 * Markdown+lhs reader: Require space after inverse bird tracks, so that
16698 HTML tags can be used freely at the left margin of a markdown+lhs document.
16699 Thanks to Conal Elliot for the suggestion.
16701 * Markdown reader: Fixed bug in footnote order (reported by CircleCode).
16704 + Fixed bug in in field lists with multi-line items at the
16706 + Added parentheses to RST `specialChars`, so
16707 `(http://google.com)` will be parsed as a link in parens.
16708 Resolves Issue #291.
16709 + Allow `|` followed by newline in RST line block.
16713 + Gobble option & space after linebreak `\\[10pt]`.
16716 + Make it possible to have colons after links. (qerub)
16717 + Make it possible to have colons after links. (Christoffer Sawicki)
16720 + Skip spaces after `<b>`, `<emph>`, etc.
16721 + Handle tbody, thead in simple tables. Closes #274.
16722 + Implicit `Para`s instead of `Plains` in some contexts.
16724 * OpenDocument writer: Use special `First paragraph` style for
16725 first paragraph after most non-paragraph blocks. This allows users to
16726 specify e.g. that only paragraphs after the first paragraph of a block are
16727 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
16729 * LaTeX writer: use `deVerb` on table and picture captions.
16730 Otherwise LaTeX complains about `\verb` inside command argument.
16731 Thanks to bbanier for reporting the bug.
16733 * Markdown writer: Insert HTML comment btw list and indented code block.
16734 This prevents the code block from being interpreted as part of the list.
16736 * EPUB writer: Add a meta element specify the cover.
16737 Some EPUB e-readers, such as the Nook, require a meta element inside the
16738 OPF metadata block to ensure the cover image is properly displayed.
16741 * HTML writer: Use embed tag for images with non-image extensions.
16742 (e.g. PDFs). Closes #264.
16744 * LaTeX writer: Improved tables.
16746 + More space between lines, top-align cells.
16747 + Use ctable package, which allows footnotes and
16748 provides additional options.
16749 + Made cell alignments work in multiline tables.
16750 + Closes #271, #272.
16752 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
16753 Also do this when copying image files into EPUBs and ODTs.
16756 * Changed to github issue tracker.
16758 * Added failing emph/strong markdown test case due to Perry Wagle.
16760 * Slidy improvements:
16761 + Updated to use Slidy2.
16762 + Fixed bug, unclosed div tag.
16763 + Added `duration` variable in template.
16764 Setting this activates the timer.
16765 + Use 'titlepage' instead of 'cover' for title div.
16768## pandoc 1.8.1.1 (2011-02-13)
16770 * `markdown2pdf`: Removed some debugging lines accidentally included
16771 in the 1.8.1 release. With those lines, the temp directory is created
16772 in the working directory, and it is not deleted. This fix restores
16773 the original behavior.
16775## pandoc 1.8.1 (2011-02-13)
16777 * Added `--ascii` option. Currently supported only in HTML writer,
16778 which it causes to use numerical entities instead of UTF-8.
16780 * EPUB writer: `--toc` now works to provide a table of contents
16781 at the beginning of each chapter.
16783 * LaTeX writer: Change figure defaults to `htbp`.
16784 This prevents "too many unprocessed floats." Resolves
16787 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
16790 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
16791 Tanimoto. Resolves Issue #286.
16793 * HTML writer: Put line breaks in section divs.
16795 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
16797## pandoc 1.8.0.3 (2011-02-05)
16799 * Fixed Source-repository stanza in cabal file.
16801## pandoc 1.8.0.2 (2011-02-05)
16805 + Stringify alt text instead of converting to HTML.
16806 + Break lines after block elements, not inside tags.
16807 HTML output now closely resembles that of tidy. Resolves Issue #134.
16809 * Markdown reader: Fixed bug in footnote block parser (pointed out
16810 by Jesse Rosenthal). The problem arose when the blank line
16811 at the end of a footnote block contained indenting spaces.
16813 * Shared: Improved 'normalize' function so it normalizes Spaces too.
16814 In normal form, Space elements only occur to separate two non-Space
16815 elements. So, we never have [Space], or [, ..., Space].
16819 + Improved Arbitrary instance.
16820 + Added timeout for test instances.
16824 + Added section on four-space rule for lists. Resolves Issue #283.
16825 + Clarified optional arguments on math options.
16827 * markdown2pdf: Fixed bug with output file extensions.
16828 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
16829 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
16831## pandoc 1.8.0.1 (2011-01-31)
16833 * Revised Interact.hs so that it works with the CPP macros
16834 in the UTF8 module.
16836 * Revised Setup.hs so that we don't call MakeManPage.hs unless
16837 the man pages are out of date.
16839## pandoc 1.8 (2011-01-30)
16843 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
16844 You can now write, for example,
16846 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
16848 and, when you process your document using `pandoc`, specifying
16849 a citation style using `--csl` and a bibliography using `--bibliography`,
16850 the citation will be replaced by an appropriately formatted
16851 citation, and a list of works cited will be added to the end
16854 This means that you can switch effortlessly between different citation
16855 and bibliography styles, including footnote, numerical, and author-date
16856 formats. The bibliography can be in any of the following formats: MODS,
16857 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
16858 See the README for further details.
16860 Citations are supported in the markdown reader, using a special
16861 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
16862 (Thanks to Nathan Gass for the natbib and biblatex support.)
16864 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
16865 the `textile` reader, an almost complete implementation of the textile
16866 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
16867 Resolves Issue #51.
16869 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
16871 * New `json` reader and writer, for reading and writing a JSON
16872 representation of the native Pandoc AST. These are much faster
16873 than the `native` reader and writer, and should be used for
16874 serializing Pandoc to text. To convert between the JSON representation
16875 and native Pandoc, use `encodeJSON` and `decodeJSON` from
16876 `Text.JSON.Generic`.
16878 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
16879 to write scripts that transform a JSON-encoded pandoc document.
16882 -- removelinks.hs - removes links from document
16884 main = interact $ jsonFilter $ bottomUp removeLink
16885 where removeLink (Link xs _) = Emph xs
16888 To use this to remove links while translating markdown to LaTeX:
16890 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
16892 * Attributes are now allowed in inline `Code` elements, for example:
16894 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
16896 The attribute syntax is the same as for delimited code blocks.
16897 `Code` inline has an extra argument place for attributes, just like
16898 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
16899 is compiled with highlighting support. Resolves Issue #119.
16901 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
16902 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
16903 scripts to transform Pandoc documents. Scripts can now change
16904 how each element is rendered in each output format.
16906 * You can now define LaTeX macros in markdown documents, and pandoc
16907 will apply them to TeX math. For example,
16909 \newcommand{\plus}[2]{#1 + #2}
16912 yields `3+4`. Since the macros are applied in the reader, they
16913 will work in every output format, not just LaTeX.
16915 * LaTeX macros can also be used in LaTeX documents (both in math
16916 and in non-math contexts).
16918 * A new `--mathjax` option has been added for displaying
16919 math in HTML using MathJax. Resolves issue #259.
16921 * Footnotes are now supported in the RST reader. (Note, however,
16922 that unlike docutils, pandoc ignores the numeral or symbol used in
16923 the note; footnotes are put in an auto-numbered ordered list.)
16924 Resolves Issue #258.
16926 * A new `--normalize` option causes pandoc to normalize the AST
16927 before writing the document. This means that, for example,
16928 `*hi**there*` will be rendered as `<em>hithere</em>`
16929 instead of `<em>hi</em><em>there</em>`. This is not the default,
16930 because there is a significant performance penalty.
16932 * A new `--chapters` command-line option causes headers
16933 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
16934 Resolves Issue #265.
16936 * In DocBook output, `<chapter>` is now used for top-level
16937 headers if the template contains `<book>`. Resolves Issue #265.
16939 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
16940 the LaTeX writer to use the listings package for code blocks.
16941 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
16942 Millon for the markdown2pdf patch.)
16944 * `markdown2pdf` now supports `--data-dir`.
16946 * URLs in autolinks now have class "url" so they can be styled.
16948 * Improved prettyprinting in most formats. Lines will be wrapped
16949 more evenly and duplicate blank lines avoided.
16951 * New `--columns` command-line option sets the column width for
16952 line wrapping and relative width calculations for tables.
16954 * Made `--smart` work in HTML, RST, and Textile readers, as well
16957 * Added `--html5` option for HTML5 output.
16959 * Added support for listings package in LaTeX reader
16960 (Puneeth Chaganti).
16962 * Added support for simple tables in the LaTeX reader.
16964 * Added support for simple tables in the HTML reader.
16966 * Significant performance improvements in many readers and writers.
16968### API and program changes
16970 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
16971 auxiliary package, `pandoc-types`. This will make it possible for other
16972 programs to supply output in Pandoc format, without depending on the whole
16975 * Added `Attr` field to `Code`.
16977 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
16978 `RawBlock` and `RawInline`.
16980 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
16981 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
16982 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
16984 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
16986 * `Text.Pandoc` now exports association lists `readers` and `writers`.
16988 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
16989 `readNative` can now read full pandoc documents, block lists, blocks,
16990 inline lists, or inlines. It will interpret `Str "hi"`
16991 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
16992 This should make testing easier.
16994 * Removed deprecated `-C/--custom-header` option.
16995 Use `--template` instead.
16997 * `--biblio-file` has been replaced by `--bibliography`.
16998 `--biblio-format` has been removed; pandoc now guesses the format
16999 from the file extension (see README).
17001 * pandoc will treat an argument as a URI only if it has an
17002 `http(s)` scheme. Previously pandoc would treat some
17003 Windows pathnames beginning with `C:/` as URIs.
17005 * The `--sanitize-html` option and the `stateSanitize` field in
17006 `ParserState` have been removed. Sanitization is better done in the
17007 resulting HTML using `xss-sanitize`, which is based on pandoc's
17008 sanitization, but improved.
17010 * pandoc now adds a newline to the end of its output in fragment
17011 mode (= not `--standalone`).
17013 * Added support for `lang` in `html` tag in the HTML template,
17014 so you can do `pandoc -s -V lang=es`, for example.
17016 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
17017 a boolean argument that selects between "inline" and
17020 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
17021 Images are embedded in RTF output when possible (png, jpeg).
17022 Resolves Issue #275.
17024 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
17025 `pretty` package. Changed all writers that used
17026 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
17028 * Rewrote `writeNative` using the new prettyprinting module. It is
17029 now much faster. The output has been made more consistent and compressed.
17030 `writeNative` is also now sensitive to writerStandalone`, and will simply
17031 `print a block list if writerStandalone` is False.
17033 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
17034 blocks and concatenate them, so a separate module is no longer needed.
17036 * `Text.Pandoc.Shared`:
17038 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
17040 + Added `normalize`.
17041 + Removed unneeded prettyprinting functions:
17042 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
17043 `BlockWrapper`, `wrappedBlocksToDoc`.
17044 + Made `splitBy` take a test instead of an element.
17045 + Added `findDataFile`, refactored `readDataFile`.
17046 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
17047 + Fixed `inlineListToIdentifier` to treat `\160` as ' '.
17049 * `Text.Pandoc.Readers.HTML`:
17051 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
17052 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
17053 `htmlBlockElement`, `htmlComment`
17054 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
17057 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
17058 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
17061 * Ellipses are no longer allowed to contain spaces.
17062 Previously we allowed '. . .', ' . . . ', etc. This caused
17063 too many complications, and removed author's flexibility in
17064 combining ellipses with spaces and periods.
17066 * Allow linebreaks in URLs (treat as spaces). Also, a string of
17067 consecutive spaces or tabs is now parsed as a single space. If you have
17068 multiple spaces in your URL, use `%20%20`.
17070 * `Text.Pandoc.Parsing`:
17072 + Removed `refsMatch`.
17073 + Hid `Key` constructor.
17074 + Removed custom `Ord` and `Eq` instances for `Key`.
17075 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
17076 + Generalized type on `readWith`.
17078 * Small change in calculation of relative widths of table columns.
17079 If the size of the header > the specified column width, use
17080 the header size as 100% for purposes of calculating
17081 relative widths of columns.
17083 * Markdown writer now uses some pandoc-specific features when `--strict`
17084 is not specified: `\` newline is used for a hard linebreak instead of
17085 two spaces then a newline. And delimited code blocks are used when
17086 there are attributes.
17088 * HTML writer: improved gladTeX output by setting ENV appropriately
17089 for display or inline math (Jonathan Daugherty).
17091 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
17095 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
17096 + `\index{}` commands are skipped.
17098 * Added `fontsize` variable to default LaTeX template.
17099 This makes it easy to set the font size using `markdown2pdf`:
17100 `markdown2pdf -V fontsize=12pt input.txt`.
17102 * Fixed problem with strikeout in LaTeX headers when using
17103 hyperref, by adding a command to the default LaTeX template
17104 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
17107 * The `COLUMNS` environment variable no longer has any effect.
17109### Under-the-hood improvements
17111 * Pandoc now compiles with GHC 7. (This alone leads to a
17112 significant performance improvement, 15-20%.)
17114 * Completely rewrote HTML reader using tagsoup as a lexer. The
17115 new reader is faster and more accurate. Unlike the
17116 old reader, it does not get bogged down on some input
17117 (Issues #277, 255). And it handles namespaces in tags
17120 * Replaced `escapeStringAsXML` with a faster version.
17122 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
17123 for a significant performance boost.
17125 * Improved performance of all readers by rewriting parsers.
17127 * Simplified Text.Pandoc.CharacterReferences by using
17128 entity lookup functions from TagSoup.
17130 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
17131 from `System.IO` if base >= 4.2. This gives support for
17132 windows line endings on windows.
17134 * Remove duplications in documentation by generating the
17135 pandoc man page from README, using `MakeManPage.hs`.
17137 * README now includes a full description of markdown syntax,
17138 including non-pandoc-specific parts. A new `pandoc_markdown`
17139 man page is extracted from this, so you can look up markdown
17140 syntax by doing `man pandoc_markdown`.
17142 * Completely revised test framework (with help from Nathan Gass).
17143 The new test framework is built when the `tests` Cabal flag is set. It
17144 includes the old integration tests, but also some new unit and quickcheck
17145 tests. Test output has been much improved, and you can now specify a glob
17146 pattern after `cabal test` to indicate which tests should be run;
17147 for example `cabal test citations` will run all the citation tests.
17149 * Added a shell script, `stripansi.sh`, for filtering ANSI control
17150 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
17152 * Added `Interact.hs` to make it easier to use ghci while developing.
17153 `Interact.hs` loads `ghci` from the `src` directory, specifying
17154 all the options needed to load pandoc modules (including
17155 specific package dependencies, which it gets by parsing
17156 dist/setup-config).
17158 * Added `Benchmark.hs`, testing all readers + writers using criterion.
17160 * Added `stats.sh`, to make it easier to collect and archive
17161 benchmark and lines-of-code stats.
17163 * Added upper bounds to all cabal dependencies.
17165 * Include man pages in extra-source-files. This allows users to
17166 install pandoc from the tarball without needing to build the man
17171 * Filenames are encoded as UTF8. Resolves Issue #252.
17173 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
17174 were just parsed literally, leading to problems in some output formats.
17175 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
17176 Resolves Issue #270.
17178 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
17179 Spaces at end of line were not being stripped properly,
17180 resulting in unintended LineBreaks.
17184 + Allow HTML comments as inline elements in markdown.
17185 So, `aaa <!-- comment --> bbb` can be a single paragraph.
17186 + Fixed superscripts with links: `^[link](/foo)^` gets
17187 recognized as a superscripted link, not an inline note followed by
17189 + Fixed regression, making markdown reference keys case-insensitive again.
17190 Resolves Issue #272.
17191 + Properly handle abbreviations (like `Mr.`) at the end of a line.
17192 + Better handling of intraword underscores, avoiding exponential
17193 slowdowns in some cases. Resolves Issue #182.
17194 + Fixed bug in alignments in tables with blank rows in the header.
17198 + Field lists now allow spaces in field names, and
17199 block content in field values. (Thanks to Lachlan Musicman
17200 for pointing out the bug.)
17201 + Definition list items are now always `Para` instead of
17202 `Plain`, matching behavior of `rst2xml.py`.
17203 + In image blocks, the description is parsed properly and
17204 used for the alt attribute, not also the title.
17205 + Skip blank lines at beginning of file. Resolves
17210 + Improved parsing of preamble.
17211 Previously you'd get unexpected behavior on a document that
17212 contained `\begin{document}` in, say, a verbatim block.
17213 + Allow spaces between `\begin` or `\end` and `{`.
17214 + Support `\L` and `\l`.
17215 + Skip comments inside paragraphs.
17219 + Escape strings in `\href{..}`.
17220 + In nonsimple tables, put cells in `\parbox`.
17222 * OpenDocument writer: don't print raw TeX.
17226 + Fixed bug in `Image`. URI was getting unescaped twice!
17227 + Avoid printing extra blank lines at the end if there are
17228 no notes or references.
17230 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
17231 This avoids unwanted interpretation as an optional argument.
17233 * ConTeXt writer: Fixed problem with inline code. Previously
17234 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
17235 If it contains neither, use `\type{}`; otherwise use `\mono{}`
17236 with an escaped version of the string.
17238 * `:` now allowed in HTML tags. Resolves Issue #274.
17242## pandoc 1.6 (2010-07-24)
17244+ New EPUB and HTML Slidy writers. (Issue #122)
17246 - [EPUB] is a standard ebook format, used in Apple's iBooks for
17247 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
17248 reader, and many other devices, and by online ebook readers like
17249 [bookworm]. (Amazon's Kindle uses a different format, MobiPocket,
17250 but EPUB books can easily be converted to Kindle format.) Now you
17251 can write your book in markdown and produce an ebook with a single
17252 command! I've put up a short [tutorial here].
17253 - [Slidy], like S5, is a system for producing HTML+javascript slide shows.
17255+ All input is assumed to be UTF-8, no matter what the locale and ghc
17256 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
17257 Also, a BOM, if present, is stripped from the input.
17259+ Markdown now supports grid tables, whose cells can contain
17260 arbitrary block elements. (Issue #43)
17262+ Sequentially numbered example lists in markdown with `@` marker.
17264+ Markdown table captions can begin with a bare colon and no longer need
17265 to include the English word "table." Also, a caption can now occur
17266 either before or after the table. (Issue #227)
17268+ New command-line options:
17270 - `--epub-stylesheet` allows you to specify a CSS file that will
17271 be used to style your ebook.
17272 - `--epub-metadata` allows you to specify metadata for the ebook.
17273 - `--offline` causes the generated HTML slideshow to include all
17274 needed scripts and stylesheets.
17275 - `--webtex` causes TeX math to be converted to images using the
17276 Google Charts API (unless a different URL is specified).
17277 - `--section-divs` causes div tags to be added around each section
17278 in an HTML document. (Issue #230, 239)
17280+ Default behavior of S5 writer in standalone mode has changed:
17281 previously, it would include all needed scripts and stylesheets
17282 in the generated HTML; now, only links are included unless
17283 the `--offline` option is used.
17285+ Default behavior of HTML writer has changed. Between 1.2 and 1.5,
17286 pandoc would enclose sections in div tags with identifiers on the
17287 div tags, so that the sections can be manipulated in javascript.
17288 This caused undesirable interactions with raw HTML div tags. So,
17289 starting with 1.6, the default is to put the identifiers directly
17290 on the header tags, and not to include the divs. The `--section-divs`
17291 option selects the 1.2-1.5 behavior.
17295 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
17296 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
17297 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
17298 `writerIncludeAfter`.
17299 - Added `headerShift` to `Text.Pandoc.Shared`.
17300 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
17301 to a new module, `Text.Pandoc.Parsing`.
17302 - Added `stateHasChapters` to `ParserState`.
17303 - Added `HTMLSlideVariant`.
17304 - Made `KeyTable` a map instead of an association list.
17305 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`, `docDate`).
17306 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord` instances.
17307 - Reference keys now have a type of their own (`Key`), with its
17308 own `Ord` instance for case-insensitive comparison.
17309 - Added `Text.Pandoc.Writers.EPUB`.
17310 - Added `Text.Pandoc.UUID`.
17311 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
17312 Removed `saveOpenDocumentAsODT`, added `writeODT`.
17313 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
17314 Removed `prettyPandoc`.
17315 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
17316 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
17317 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
17318 To write S5, you now use `writeHtml` with `writerSlideVariant`
17319 set to `S5Slides` or `SlidySlides`.
17321+ Template changes. If you use custom templates, please update them,
17322 particularly if you use syntax highlighting with pandoc. The old HTML
17323 templates hardcoded highlighting CSS that will no longer work with
17324 the most recent version of highlighting-kate.
17326 - HTML template: avoid empty meta tag if no date.
17327 - HTML template: Use default highlighting CSS from highlighting-kate
17328 instead of hard-coding the CSS into the template.
17329 - HTML template: insert-before text goes before the title, and
17330 immediately after the `<body>` tag, as documented. (Issue #241)
17331 - Added slidy and s5 templates.
17332 - Added amssymb to preamble of latex template. (github Issue 1)
17334+ Removed excess newlines at the end of output. Note: because output
17335 will not contain an extra newline, you may need to make adjustments
17336 if you are inserting pandoc's output into a template.
17338+ In S5 and slidy, horizontal rules now cause a new slide, so you
17339 are no longer limited to one slide per section.
17341+ Improved handling of code in man writer. Inline code is now monospace,
17342 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
17344+ HTML reader parses `<tt>` as Code. (Issue #247)
17346+ html+lhs output now contains bird tracks, even when compiled without
17347 highlighting support. (Issue #242)
17349+ Colons are now no longer allowed in autogenerated XML/HTML identifiers,
17350 since they have a special meaning in XML.
17352+ Code improvements in ODT writer. Remote images are now replaced with
17353 their alt text rather than a broken link.
17355+ LaTeX reader improvements:
17357 - Made latex `\section`, `\chapter` parsers more forgiving of whitespace.
17358 - Parse `\chapter{}` in latex.
17359 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
17360 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
17361 for use in markdown reader.
17362 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
17363 in markdown document.
17365+ LaTeX writer: images are automatically shrunk if they would extend
17366 beyond the page margin.
17368+ Plain, markdown, RST writers now use unicode for smart punctuation.
17370+ Man writer converts math to unicode when possible, as in other writers.
17372+ `markdown2pdf` can now recognize citeproc options.
17374+ Command-line arguments are converted to UTF-8. (Issue #234)
17376+ `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
17377 This allows it to handle a wider range of formulas. Also, if a formula
17378 cannot be converted, it is left in raw TeX; formulas are no longer
17379 partially converted.
17381+ Unicode curly quotes are left alone when parsing smart quotes. (Issue #143)
17383+ Cabal file changes:
17385 - Removed parsec < 3 restriction.
17386 - Added 'threaded' flag for architectures where GHC lacks a threaded
17388 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
17389 - Require highlighting-kate 0.2.7.
17391+ Use explicit imports from `Data.Generics`. Otherwise we have a
17392 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
17394+ New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
17396[EPUB]: http://en.wikipedia.org/wiki/EPUB
17397[Slidy]: http://www.w3.org/Talks/Tools/Slidy
17398[bookworm]: http://bookworm.oreilly.com/
17399[tutorial here]: http://johnmacfarlane.net/pandoc/epub.html
17401## pandoc 1.5.1.1 (2010-03-29)
17403+ Fixed header identifiers (uniqueIdent in Shared) so they
17404 work as advertized in README and are guaranteed to be
17405 valid XHTML names. Thanks to Xyne for reporting the bug.
17407## pandoc 1.5.1 (2010-03-23)
17409+ Fixed treatment of unicode characters in URIs.
17410+ Revised Setup.hs so it works with debian's build process.
17411+ Fixed bug in OpenDocument writer that led to invalid
17412 XML for some input.
17414## pandoc 1.5.0.1 (2010-03-21)
17416+ HTML writer: Fixed error in math writer (with MathML option)
17417 that caused an infinite loop for unparsable MathML.
17419## pandoc 1.5 (2010-03-20)
17421+ Moved repository to [github](http://github.com/jgm/pandoc).
17422+ New `--mathml` option, for display of TeX math as MathML.
17423+ New `--data-dir` option, allowing users to specify a data
17424 directory other than `~/.pandoc`. Files placed in this directory
17425 will be used instead of system defaults.
17426+ New `--base-header-level` option. For example, `--base-header-level=2`
17427 changes level 1 headers to level 2, level 2 to level 3, etc.
17428+ New 'plain' output format: plain text without pictures, hyperlinks,
17429 inline formatting, or anything else that looks even vaguely
17431+ Titles and authors in title blocks can now span multiple lines,
17432 as long as the continuation lines begin with a space character.
17433+ When given an absolute URI as a parameter, pandoc will fetch
17434 the content via HTTP.
17435+ The HTML reader has been made much more forgiving. It no
17436 longer requires well-formed xhtml as input.
17437+ `html2markdown` has been removed; it is no longer necessary, given
17438 the last two changes. `pandoc` can be used by itself to convert
17439 web pages to markdown or other formats.
17440+ `hsmarkdown` has also been removed. Use `pandoc --strict` instead.
17441 Or symlink pandoc's executable to `hsmarkdown`; `pandoc` will then
17442 behave like `hsmarkdown` used to.
17443+ An image in a paragraph by itself is now rendered as a figure
17444 in most writers, with the alt text as the caption.
17445+ Incomplete support for reST tables (simple and grid). Thanks to
17446 Eric Kow. Colspans and rowspans not yet supported.
17447+ In mediawiki, links with relative URLs are now formatted as wikilinks.
17448 Also, headers have been promoted: `= head =` is now level 1 instead of
17450+ The markdown reader now handles "inverse bird tracks" when parsing
17451 literate haskell. These are used for haskell example code that
17452 is not part of the literate program.
17453+ The `-B` and `-A` options now imply `-s` and no longer work in
17455+ Headerless tables are now printed properly in all writers.
17456 In addition, tbody, thead, and cols are used in HTML and Docbook
17458+ Improved build system; removed obsolete Makefile.
17459+ In LaTeX writer, `\chapter` is now used instead of `\section`.
17460 when the documentclass is book, report, or memoir.
17461+ Many small bug fixes. See [changelog] for details.
17463## pandoc 1.4 (2010-01-02)
17465+ New template system replaces old headers, giving users much
17466 more control over pandoc's output in `--standalone` mode.
17467 Added `--template` and `--variable` options. The `--print-default-header`
17468 option is now `--print-default-template`. See README under
17469 "Templates" for details.
17470+ The old `--custom-header` option should still work, but it has
17472+ New `--reference-odt` option allows users to customize styles
17474+ Users may now put custom templates, s5 styles, and a reference
17475 ODT in the `~/.pandoc` directory, where they will override system
17476 defaults. See README for details.
17477+ Unicode is now used whenever possible in HTML and XML output. Entities
17478 are used only where necessary (`>`, `<`, `"`, `&`).
17479+ Authors and dates may now include formatting and notes.
17480+ Added `--xetex` option for `pandoc` and `markdown2pdf`.
17481+ Windows installer now includes highlighting support and
17482 `markdown2pdf` and `hsmarkdown` wrappers.
17483+ Pandoc no longer requires Template Haskell, which should make
17485+ Pandoc can now be built on GHC 6.12, as well as earlier versions.
17486+ See README for other small improvements and bug fixes.
17488## pandoc 1.3 (2009-12-10)
17490+ Added `--id-prefix` option to help prevent duplicate
17491 identifiers when you're generating HTML fragments.
17492+ Added `--indented-code-classes` option, which specifies
17493 default highlighting syntax for indented code blocks.
17494+ `--number-sections` now affects HTML output.
17495+ Improved syntax for markdown definition lists.
17496+ Better looking simple tables.
17497+ Markdown tables without headers are now possible.
17498+ New hard line break syntax: backslash followed by newline.
17499+ Improved performance of markdown reader by ~10% by eliminating the
17500 need for a separate parsing pass for notes.
17501+ Improved syntax highlighting for literate Haskell.
17502+ Support for "..code-block" directive in RST reader.
17503+ Windows binary now includes highlighting support.
17504+ Many bug fixes and small improvements. See [changelog]
17507## pandoc 1.2.1 (2009-07-18)
17509+ Improved the efficiency of the markdown reader's
17510 abbreviation parsing (should give a big performance
17511 boost with `--smart`).
17512+ HTML writer now wraps sections in divs with unique
17513 identifiers, for easier manipulation.
17514+ Improved LaTeX reader's coverage of math modes.
17515+ Added a portable Haskell version of markdown2pdf (thanks
17516 to Paolo Tanimoto).
17517+ Made `--strict` compatible with `--standalone` and `--toc.`
17518+ Many other small improvements and bug fixes.
17519 See [changelog] for details.
17521## pandoc 1.2 (2009-03-01)
17523+ Added support for literate Haskell. lhs support is triggered by
17524 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
17525 Haskell LaTeX. '.lhs' files are treated by default as literate
17527+ Added `--email-obfuscation` option.
17528+ Brought citeproc support up to date for citeproc-hs-0.2.
17529+ Many bugs fixed. See [changelog] for details.
17531## pandoc 1.1 (2008-11-06)
17533+ New `--jsmath` option supporting use of pandoc with [jsMath].
17534+ Classes on HTML table output for better CSS styling.
17535+ Windows installer no longer requires admin privileges.
17536+ Many bugs fixed. See [changelog] for details.
17538## pandoc 1.0 (2008-09-13)
17540+ New writers for MediaWiki, GNU Texinfo (thanks to Peter Wang),
17541 OpenDocument XML (thanks to Andrea Rossato), and ODT (OpenOffice
17543+ New [delimited code blocks](README.html#delimited-code-blocks),
17544 with optional syntax highlighting.
17545+ Reorganized build system: pandoc can now be built using standard
17546 Cabal tools. It can be compiled on Windows without Cygwin.
17547 The tests can also be run without perl or unix tools.
17548+ LaTeXMathML replaces ASCIIMathML for rendering math in HTML.
17549+ Support for "displayed" math.
17550+ Common abbreviations are now handled more intelligently, with
17551 a non-breaking space (and not a sentence-ending space) after
17553+ Code is -Wall clean.
17554+ Many bug fixes and small improvements. See [changelog] for
17557## pandoc 0.46 (2008-01-08)
17559+ Added a `--sanitize-html` option (and a corresponding parameter
17560 in `ParserState` for those using the pandoc libraries in programs).
17561 This option causes pandoc to sanitize HTML (in HTML or Markdown
17562 input) using a whitelist method. Possibly harmful HTML elements
17563 are replaced with HTML comments. This should be useful in the
17564 context of web applications, where pandoc may be used to convert
17565 user input into HTML.
17566+ Made -H, -A, and -B options cumulative: if they are specified
17567 multiple times, multiple files will be included.
17568+ Many bug fixes and small improvements. See [changelog] for full
17571## pandoc 0.45 (2007-12-09)
17573+ Many bug fixes and structural improvements. See [changelog] for
17575+ Improved treatment of math. Math is now rendered using unicode
17576 by default in HTML, RTF, and DocBook output. For more accurate
17577 display of math in HTML, `--gladtex`, `--mimetex`, and `--asciimathml`
17578 options are provided. See the [User's Guide](README.html#math) for
17580+ Removed support for box-style block quotes in markdown.
17581+ More idiomatic ConTeXt output.
17582+ Text wrapping in ConTeXt and LaTeX output.
17583+ Pandoc now correctly handles all standard line endings
17585+ New `--no-wrap` option that disables line wrapping and minimizes
17586 whitespace in HTML output.
17587+ Build process is now compatible with both GHC 6.8 and GHC 6.6.
17588 GHC and GHC_PKG environment variables may be used to specify
17589 which version of the compiler to use, when multiple versions are
17592## pandoc 0.44 (2007-09-03)
17594 [ John MacFarlane ]
17596 * Fixed bug in HTML writer: when --toc was used, anchors were put around
17597 headers, which is invalid XHTML (block content within inline element).
17598 Now the anchors are put inside the header tags. Resolves Issue #23.
17600 * Added xmlns attribute to html element in html writer tests.
17601 This attribute is added by more recent versions of the
17602 xhtml library (>= 3000), and is required for valid XHTML.
17606 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
17607 command instead of 'runhaskell', which, on some platforms (such as s390,
17608 alpha, m68k), throws the following error:
17610 runhaskell Setup.hs configure --prefix=/usr
17611 ghc-6.6.1: not built for interactive use
17613 This causes a serious FTBFS bug. Closes: #440668.
17615## pandoc 0.43 (2007-09-02)
17617 [ John MacFarlane ]
17619 * The focus of this release is performance. The markdown parser
17620 is about five times faster than in 0.42, based on benchmarks
17621 with the TextMate manual.
17623 * Main.hs: Replaced CRFilter and tabFilter with single function
17624 tabFilter, which operates on the whole string rather than breaking
17625 it into lines, and handles dos-style line-endings as well as tabs.
17627 * Added separate LaTeX reader and native reader tests; removed
17630 * Text.Pandoc.Shared:
17632 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
17633 + General code cleanup (to elimante warnings when compiling with -Wall.)
17634 + Added 'wrapped' function, which helps wrap text into paragraphs,
17635 using the prettyprinting library.
17636 + Rewrote charsInBalanced and charsInBalanced'.
17637 - Documented restriction: open and close must be distinct characters.
17638 - Rearranged options for greater efficiency.
17639 - Bug fix: Changed inner call to charsInBalanced inside
17640 charsInBalanced' to charsInBalanced'.
17641 + anyLine now requires that the line end with a newline (not eof).
17642 This is a harmless assumption, since we always add newlines to the
17643 end of a block before parsing with anyLine, and it yields a 10% speed
17645 + Removed unnecessary 'try' in anyLine.
17646 + Removed unneeded 'try' from romanNumeral parser.
17647 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
17648 + Removed unneeded 'try' in parseFromString.
17649 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
17651 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
17652 'try' is not automatically applied to the 'end' parser. Added
17653 'try' in calls to 'enclosed' where needed. Slight speed increase.
17657 + Replaced individual wrapping routines in RST, Man, and Markdown
17658 writers with 'wrapped' from Text.Pandoc.Shared.
17659 + Rewrote LaTeX writer to use the prettyprinting library,
17660 so we get word wrapping, etc.
17661 + Modified latex writer tests for new latex writer using prettyprinter.
17662 + Fixed bug in LaTeX writer: autolinks would not cause
17663 `\usepackage{url}` to be put in the document header. Also, changes
17664 to state in enumerated list items would be overwritten.
17665 + In Markdown writer, escape paragraphs that begin with ordered list
17666 markers, so they don't get interpreted as ordered lists.
17668 * Text.Pandoc.Reades.LaTeX:
17670 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
17671 numeral after "enum" in "setcounter" would consist entirely of
17672 "i"s. 'enumiv' is legitimate.
17673 + LaTeX command and environment names can't contain numbers.
17674 + Rearranged order of parsers in inline for slight speed improvement.
17675 + Added '`' to special characters and 'unescapedChar'.
17677 * Text.Pandoc.Readers.RST:
17679 + Removed unneeded try's in RST reader; also minor code cleanup.
17681 + Rearranged parsers in inline (doubled speed).
17683 * Text.Pandoc.Readers.Markdown:
17685 + Skip notes parsing if running in strict mode. (This yields a nice
17686 speed improvement in strict mode.)
17687 + Simplify autolink parsing code, using Network.URI to test for
17688 URIs. Added dependency on network library to debian/control and
17690 + More perspicuous definition of nonindentSpaces.
17691 + Removed unneeded 'try' in 'rawLine'.
17692 + Combined linebreak and whitespace into a new whitespace parser, to
17693 avoid unnecessary reparsing of space characters.
17694 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
17695 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
17696 + Use lookAhead in parsers for setext headers and definition lists
17697 to see if the next line begins appropriately; if not, don't waste
17698 any more time parsing.
17699 + Don't require blank lines after code block. (It's sufficient to
17700 end code block with a nonindented line.)
17701 + Changed definition of 'emph': italics with '_' must not
17702 be followed by an alphanumeric character. This is to help
17703 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
17704 `[LC<em>TYPE]:my</em>type`.
17705 + Improved Markdown.pl-compatibility in referenceLink: the two parts
17706 of a reference-style link may be separated by one space, but not
17707 more... [a] [link], [not] [a link].
17708 + Fixed markdown inline code parsing so it better accords with
17709 Markdown.pl: the marker for the end of the code section is a clump
17710 of the same number of `'s with which the section began, followed
17711 by a non-` character. So, for example,
17712 ` h ``` i ` -> `<code>h ``` i</code>`.
17713 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
17714 rules are slightly different.
17715 + Rewrote 'para' for greater efficiency.
17716 + Rewrote link parsers for greater efficiency.
17717 + Removed redundant 'referenceLink' in definition of inline (it's
17718 already in 'link').
17719 + Refactored escapeChar so it doesn't need 'try'.
17720 + Refactored hrule for performance in Markdown reader.
17721 + More intelligent rearranging of 'inline' so that most frequently
17722 used parsers are tried first.
17723 + Removed tabchar parser, as whitespace handles tabs anyway.
17725 * Text.Pandoc.CharacterReferences:
17728 + Removed unnecessary 'try's for a speed improvement.
17729 + Removed unnecessary '&' and ';' from the entity table.
17733 + Makefile: Get VERSION from cabal file, not Main.hs.
17734 + Modified MacPorts Portfile:
17735 - Depend on haddock
17736 - Build and install libraries and library documentation in
17737 addition to pandoc executable
17738 - Added template item for md5 sum in Portfile.in.
17739 - Incorporated changes from MacPorts repository (r28278).
17740 + FreeBSD port: Don't try to generate distinfo in Makefile.
17741 It can be made using 'make makesum' in FreeBSD.
17742 + Make both freebsd and macports targets depend on tarball.
17744 * Website and documentation:
17746 + Updated INSTALL instructions.
17747 + Added pandocwiki demo to website.
17748 + Removed local references to Portfile, since pandoc is now in the
17749 MacPorts repository.
17751## pandoc 0.42 (2007-08-26)
17753 [ John MacFarlane ]
17755 * Main.hs: Use utf8 conversion on the extra files loaded with
17756 the -H, -C, -B, and -A options. This fixes problems with unicode
17757 characters in these files.
17759 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
17760 Text.Pandoc.Readers.HTML and without it we get a linking error when
17765 + Added new rule for enhanced markdown ordered lists: if the list
17766 marker is a capital letter followed by a period (including a
17767 single-letter capital roman numeral), then it must be followed by
17768 at least two spaces. The point of this is to avoid accidentally
17769 treating people's initials as list markers: a paragraph might begin,
17770 "B. Russell was an English philosopher," and this shouldn't be
17771 treated as a list. Documented change in README.
17772 + Blocks that start with "p. " and a digit are no longer treated
17773 as ordered lists (it's a page number).
17774 + Added a needed 'try' to listItem.
17775 + Removed check for a following setext header in endline.
17776 A full test is too inefficient (doubles benchmark time), and the
17777 substitute we had before is not 100% accurate.
17778 + Don't use Code elements for autolinks if --strict specified.
17780 * LaTeX writer: When a footnote ends with a Verbatim environment, the
17781 close } of the footnote cannot occur on the same line or an error occurs.
17782 Fixed this by adding a newline before the closing } of every footnote.
17785 + Removed incorrect "{}" around style information in HTML tables.
17786 Column widths now work properly in HTML.
17787 + If --strict option is specified (and --toc is not), don't include
17788 identifiers in headers, for better Markdown compatibility.
17792 + Separated $(web_dest) and website targets.
17793 + In website, index.txt is now constructed from template index.txt.in.
17794 + Added freebsd target to Markefile. This creates the freebsd Makefile
17795 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
17796 from the repository.
17797 + Added macport target to Makefile. Portfile is built from template
17799 + Removed OSX package targets. (Too many difficulties involving
17800 dependencies on dynamic libraries.)
17801 + More complete INSTALL instructions for all architectures.
17804 + Added a programming demo, pandocwiki.
17808 * Do not forget to close pandoc's ITP. Closes: #391666
17810## pandoc 0.41 (2007-08-19)
17812 [ John MacFarlane ]
17814 * Fixed bugs in HTML reader:
17815 + Skip material at end *only if* `</html>` is present (previously,
17816 only part of the document would be parsed if an error was
17817 found; now a proper error message is given).
17818 + Added new constant eitherBlockOrInline with elements that may
17819 count either as block-level or as inline. Modified isInline and
17820 isBlock to take this into account.
17821 + Modified rawHtmlBlock to accept any tag (even an inline tag):
17822 this is innocuous, because rawHtmlBlock is tried only if a regular
17823 inline element can't be parsed.
17824 + Added a necessary 'try' in definition of 'para'.
17826 * Fixed bug in markdown ordered list parsing. The problem was that
17827 anyOrderedListStart did not check for a space following the
17828 ordered list marker. So in 'A.B. 2007' the parser would be
17829 expecting a list item, but would not find one, causing an error.
17830 Fixed a similar bug in the RST reader. Resolves Issue #22.
17832 * Refactored RST and Markdown readers using parseFromString.
17834 * LaTeX reader will now skip anything after \end{document}.
17836 * Fixed blockquote output in markdown writer: previously, block
17837 quotes in indented contexts would be indented only in the first
17840 * Added note to INSTALL about variations in versions of the xhtml
17841 library that can lead to failed tests (thanks to Leif LeBaron).
17843## pandoc 0.4 (2007-01-16)
17845 [ John MacFarlane ]
17847 * Added two new output formats: groff man pages and ConTeXt. By
17848 default, output files with extensions ".ctx" and ".context" are
17849 assumed to be ConTeXt, and output files with single-digit extensions
17850 are assumed to be man pages.
17852 * Enhanced ordered lists (documented in README, under Lists):
17853 + The OrderedList block element now stores information about
17854 list number style, list number delimiter, and starting number.
17855 + The readers parse this information when possible.
17856 + The writers use this information to style ordered lists.
17857 + The enhancement can be disabled using the --strict option.
17859 * Added support for tables (with a new Table block element). Two kinds
17860 of tables are supported: a simple table with one-line rows, and a
17861 more complex variety with multiline rows. All output formats are
17862 supported, but only markdown tables are parsed at the moment. The
17863 syntax is documented in README.
17865 * Added support for definition lists (with a new DefinitionList block
17866 element). All output and input formats are supported. The syntax is
17867 documented in README.
17869 * Added support for superscripts and subscripts (with new Superscript
17870 and Subscript inline elements). All input and output
17871 formats. The syntax is documented in README.
17873 * Added support for strikeout (with a new Strikeout inline element).
17874 All input and output formats are supported. Thanks to Bradley Kuhn,
17875 who contributed a patch. The syntax is documented in README. Resolves
17878 * Added a --toc|--table-of-contents option. This causes an automatically
17879 generated table of contents (or an instruction that creates one) to
17880 be inserted at the beginning of the document. Not supported in S5,
17881 DocBook, or man page writers.
17883 * Modified the -m|--asciimathml option:
17885 + If an optional URL argument is provided, a link is inserted
17886 instead of the contents of the ASCIIMathML.js script.
17887 + Nothing is inserted unless the document actually contains
17890 * Removed Blank block element as unnecessary.
17892 * Removed Key and Note blocks from the Pandoc data structure. All
17893 links are now stored as explicit links, and note contents are
17894 stored with the (inline) notes.
17896 + All link Targets are now explicit (URL, title) pairs; there
17897 is no longer a 'Ref' target.
17898 + Markdown and RST parsers now need to extract data from key and
17899 note blocks and insert them into the relevant inline elements.
17900 Other parsers have been simplified, since there is no longer any need
17901 to construct separate key and note blocks.
17902 + Markdown, RST, and HTML writers need to construct lists of
17903 notes; Markdown and RST writers need to construct lists of link
17904 references (when the --reference-links option is specified); and
17905 the RST writer needs to construct a list of image substitution
17906 references. All writers have been rewritten to use the State monad
17907 when state is required.
17908 + Several functions (generateReference, keyTable,
17909 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
17910 used by them) have been removed from Text.Pandoc.Shared, since
17911 they are no longer needed. New functions and data structures
17912 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
17913 added. The functions inTags, selfClosingTag, inTagsSimple, and
17914 inTagsIndented have been moved to the DocBook writer, since that
17915 is now the only module that uses them. NoteTable is now exported
17916 in Text.Pandoc.Shared.
17917 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
17918 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
17919 + Added writerNotes and writerReferenceLinks to WriterOptions.
17921 * Added Text.Pandoc module that exports basic readers, writers,
17922 definitions, and utility functions. This should export everything
17923 needed for most uses of Pandoc libraries. The haddock documentation
17924 includes a short example program.
17926 * Text.Pandoc.ASCIIMathML is no longer an exported module.
17928 * Added Text.Pandoc.Blocks module to help in printing markdown
17929 and RST tables. This module provides functions for working with
17930 fixed-width blocks of text--e.g., placing them side by side, as
17933 * Refactored to avoid reliance on Haskell's Text.Regex library, which
17934 (a) is slow, and (b) does not properly handle unicode. This fixed
17935 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
17937 + Replaced 'gsub' with a general list function 'substitute'
17938 that does not rely on Text.Regex.
17939 + Rewrote extractTagType in HTML reader so that it doesn't use
17941 + In Markdown reader, replaced email regex test with a custom email
17942 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
17943 with a custom function isSelfClosingTag.
17944 + Modified Docbook writer so that it doesn't rely on Text.Regex for
17945 detecting 'mailto' links.
17946 + Removed escapePreservingRegex and reamped entity-handling
17947 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
17948 avoid reliance on Text.Regex (see below on character reference
17951 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
17953 * Changed handling of XML entities. Entities are now parsed (and unicode
17954 characters returned) in the Markdown and HTML readers, rather than being
17955 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
17956 instead of entities for characters above 128. This makes the HTML and
17957 DocBook output much more readable and more easily editable.
17959 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
17960 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
17961 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
17962 Moved both functions to Text.Pandoc.Writers.Docbook.
17963 + Added characterReference parser to Text.Pandoc.CharacterReferences.
17964 This parses a string and return a unicode character.
17965 + Rewrote decodeCharacterReferences to use the new parser instead of
17967 + Added new charRef parser for Markdown and HTML, which replaces the
17968 old 'entity' parser. Added '&' as a special character in Markdown reader.
17969 + Modified HTML and Markdown readers to call decodeEntities on all raw
17970 strings (e.g. authors, dates, link titles), to ensure that no
17971 unprocessed entities are included in the native representation of
17972 the document. (In the HTML reader, most of this work is done by a
17973 change in extractAttributeName.)
17974 + In XML and Markdown output, escape unicode nonbreaking space as ' ',
17975 since a unicode non-breaking space is impossible to distinguish visually
17976 from a regular space. (Resolves Issue #3.)
17977 + Removed encodeEntitiesNumerical.
17978 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
17979 slight performance boost over the old association list.
17980 + Removed unneeded decodeEntities from 'str' parser in HTML and
17983 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
17984 fromUTF8, for clarity.
17986 * Replaced old haskell98 module names replaced by hierarchical module
17987 names, e.g. List by Data.List. Removed haskell98 from dependencies
17988 in pandoc.cabal, and added mtl (needed for state monad). Substituted
17991 * Refactored and cleaned up character escaping in writers, using
17992 backslashEscapes and escapeStringUsing functions.
17994 * Instead of adding `\n\n` to the end of an input string in Main.hs,
17995 this is now done in the readers. This makes the libraries behave
17996 the way you'd expect from the pandoc program. Resolves Issue #10.
17998 * URLs and email addresses in autolinks are now typeset as Code.
18000 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
18001 doesn't display the whole output unless there's a line ending.
18003 * Major code cleanup in all modules, for greater consistency, concision,
18008 + Fixed several bugs (extractTagType, attribute parsing).
18009 + Remove Null blocks in lists of blocks when possible.
18010 + Allow HTML comments as raw HTML inline.
18014 + Ordered list items may no longer begin with uppercase letters, or
18015 letters greater than 'n'. (This prevents first initials and page
18016 reference, e.g. 'p. 400', from being parsed as beginning lists.)
18017 Also, numbers beginning list items may no longer end with ')',
18018 which is now allowed only after letters. Note: These changes
18019 may cause documents to be parsed differently. Users should take
18021 + Changed autoLink parsing to conform better to Markdown.pl's
18022 behavior. `<google.com>` is not treated as a link, but
18023 `<http://google.com>`, `<ftp://google.com>`, and
18024 `<mailto:google@google.com>` are.
18025 + Cleaned up handling of embedded quotes in link titles. Now these are
18026 stored as a '"' character, not as '"'.
18027 + Use lookAhead parser for the 'first pass' (looking for reference keys),
18028 instead of parsing normally, then using setInput to reset input. This
18029 yields a slight performance boost.
18030 + Fixed several bugs in smart quote recognition.
18031 + Fixed bug in indentSpaces (which didn't properly handle
18032 cases with mixed spaces and tabs).
18033 + Consolidated 'text', 'special', and 'inline' into 'inline'.
18034 + Fixed bug which allowed URL and title to be separated by multiple blank
18035 lines in links and reference keys. They can be on separate lines but
18036 can't have blank lines between them.
18037 + Correctly handle bracketed text inside inline footnotes and links,using
18038 new function inlinesInBalanced. Resolves Issue #14.
18039 + Fixed bug in footnotes: links in footnotes were not being
18040 processed. Solution: three-stage parse. First, get all the
18041 reference keys and add information to state. Next, get all the
18042 notes and add information to state. (Reference keys may be needed
18043 at this stage.) Finally, parse everything else.
18044 + Replaced named constants like 'emphStart' with literals.
18045 + Removed an extra occurrence of escapedChar in definition of inline.
18049 + Allow the URI in a RST hyperlink target to start on the line
18050 after the reference key.
18051 + Added 'try' in front of 'string', where needed, or used a different
18052 parser. This fixes a bug where ````` would not be correctly parsed as
18054 + Fixed slow performance in parsing inline literals in RST reader. The
18055 problem was that ``#`` was seen by 'inline' as a potential link or image.
18056 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
18058 + Use lookAhead instead of getInput/setInput in RST reader. Removed
18059 unneeded getState call, since lookAhead automatically saves and
18060 restores the parser state.
18061 + Allow hyperlink target URIs to be split over multiple lines, and
18062 to start on the line after the reference. Resolves Issue #7.
18063 + Fixed handling of autolinks.
18067 + Replaced `choice [(try (string ...), ...]` idiom with `oneOfStrings`,
18069 + Added clauses for tilde and caret. Tilde is `\ensuremath{\sim}`, and
18070 caret is `\^{}`, not `\^` as before.
18071 + Added parsing for `\url`.
18072 + Parse `\texttt{}` as code, provided there's nothing fancy inside.
18076 + Modified HTML writer to use the Text.XHtml library. This results
18077 in cleaner, faster code, and it makes it easier to use Pandoc in
18078 other projects, like wikis, which use Text.XHtml. Two functions are
18079 now provided, writeHtml and writeHtmlString: the former outputs an
18080 Html structure, the latter a rendered string. The S5 writer is also
18081 changed, in parallel ways (writeS5, writeS5String).
18082 + The Html header is now written programmatically, so it has been
18083 removed from the 'headers' directory. The S5 header is still
18084 needed, but the doctype and some of the meta declarations have
18085 been removed, since they are written programmatically. This change
18086 introduces a new dependency on the xhtml package.
18087 + Fixed two bugs in email obfuscation involving improper escaping
18088 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
18090 + Fixed another bug in email obfuscation: If the text to be obfuscated
18091 contains an entity, this needs to be decoded before obfuscation.
18092 Thanks to thsutton for the patch. Resolves Issue #15.
18093 + Changed the way the backlink is displayed in HTML footnotes.
18094 Instead of appearing on a line by itself, it now generally
18095 appears on the last line of the note. (Exception: when the
18096 note does not end with a Plain or Para block.) This saves space
18098 + Added automatic unique identifiers to headers:
18099 - The identifier is derived from the header via a scheme
18100 documented in README.
18101 - WriterState now includes a list of header identifiers and a table
18102 of contents in addition to notes.
18103 - The function uniqueIdentifiers creates a list of unique identifiers
18104 from a list of inline lists (e.g. headers).
18105 - This list is part of WriterState and gets consumed by blockToHtml
18106 each time a header is encountered.
18107 + Include CSS for .strikethrough class in header only if strikethrough
18108 text appears in the document.
18109 + If the 'strict' option is specified, elements that do not appear in
18110 standard markdown (like definition lists) are passed through as
18112 + Simplified treatment of autolinks, using pattern matching instead of
18117 + Links in markdown output are now printed as inline links by default,
18118 rather than reference links. A --reference-links option has been added
18119 that forces links to be printed as reference links. Resolves Issue #4.
18120 + Use autolinks when possible. Instead of `[site.com](site.com)`,
18125 + Rewrote to use the State monad. The preamble now includes only those
18126 packages that are actually required, given the document's content.
18127 Thus, for example, if strikeout is not used, ulem is not required.
18128 Modified LaTeXHeader accordingly.
18129 + Modified LaTeX writer to insert `\,` between consecutive quotes.
18130 + Removed unused function tableRowColumnWidths.
18131 + Simplified code for escaping special characters.
18132 + Leave extra blank line after `\maketitle`.
18133 + Include empty `\author{}` when no author specified to avoid LaTeX
18135 + Include fancyvrb code in header only if needed -- that is, only
18136 if there is actually code in a footnote.
18137 + Use `\url{}` for autolinks.
18138 + Include [mathletters] option in ucs package, so that basic unicode
18139 Greek letters will work correctly.
18141 * RST writer: Force blank line before lists, so that sublists will
18142 be handled correctly.
18144 * Docbook writer: Fixed a bug: email links with text, like
18145 [foo](me@bar.baz), were being incorrectly treated as autolinks.
18147 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
18148 Text.Pandoc.Shared.
18150 * Text.Pandoc.Shared:
18152 + Added defaultWriterOptions.
18153 + Added writerTableOfContents to WriterOptions.
18154 + Added writerIgnoreNotes option to WriterOptions. This is needed
18155 for processing header blocks for a table of contents, since notes on
18156 headers should not appear in the TOC.
18157 + Added prettyprinting for native Table format.
18158 + Removed some unneeded imports.
18159 + Moved escape and nullBlock parsers from
18160 Text.ParserCombinators.Pandoc, since the latter is for
18161 general-purpose parsers that don't depend on Text.Pandoc.Definition.
18162 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
18163 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
18164 writer, because HTML writer now uses these in constructing a table
18166 + Added clauses for new inline elements (Strikeout, Superscript,
18167 Subscript) to refsMatch.
18168 + Removed backslashEscape; added new functions escapeStringUsing and
18170 + Moved failIfStrict from markdown reader, since it is now used also
18171 by the HTML reader.
18172 + Added a 'try' to the definition of indentSpaces.
18173 + In definition of 'reference', added check to make sure it's not a note
18175 + Added functions: camelCaseToHyphenated, toRomanNumeral,
18176 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
18177 charsInBalanced', withHorizDisplacement, romanNumeral
18178 + Fixed a bug in the anyLine parser. Previously it would parse an empty
18179 string "", but it should fail on an empty string, or we get an error
18180 when it is used inside "many" combinators.
18181 + Removed followedBy' parser, replacing it with the lookAhead parser from
18183 + Added some needed 'try's before multicharacter parsers, especially in
18185 + Removed the 'try' from the 'end' parser in 'enclosed', so that
18186 'enclosed' behaves like 'option', 'manyTill', etc.
18187 + Added lineClump parser, which parses a raw line block up to and
18188 including any following blank lines.
18189 + Renamed parseFromStr to parseFromString.
18190 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
18191 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
18193 + Removed unneeded 'try' in blanklines.
18194 + Removed endsWith function and rewrote calling functions to use
18195 isSuffixOf instead.
18196 + Added >>~ combinator.
18197 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
18200 * Refactored runtests.pl; added separate tests for tables.
18204 + Added -asxhtml flag to tidy in html2markdown. This will
18205 perhaps help the parser, which expects closing tags.
18206 + Modified markdown2pdf to run pdflatex a second time if --toc or
18207 --table-of-contents was specified; otherwise the table of
18208 contents won't appear.
18209 + Modified markdown2pdf to print a helpful message if the 'ulem'
18210 LaTeX package is required and not found.
18212 * Changes to build process:
18214 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
18216 + Removed cabalize and Pandoc.cabal.in. The repository now contains
18217 pandoc.cabal itself.
18218 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
18219 likes the cabal file to have the same name as the tarball.
18220 + Expanded and revised the package description in pandoc.cabal.
18221 Revised the package synopsis.
18222 + The tarball built by 'make tarball' now contains files built from
18223 templates (including man pages and shell scripts), so pandoc can
18224 be built directly using Cabal tools, without preprocessing.
18225 + Executable binaries are now stripped before installing.
18226 + Man pages are now generated from markdown sources, using pandoc's
18228 + Use HTML version of README (instead of RTF) in Mac OS X installer.
18229 + Instead of testing for the existence of a pandoc symlink in build-exec,
18234 + Updated README and man pages with information on new features.
18235 + Updated INSTALL instructions with some useful clarifications and
18237 + Updated web content.
18239 * Added FreeBSD port.
18245 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
18246 libghc6-xhtml-dev. Removed libghc6-html-dev.
18247 + Suggest texlive-latex-recommended | tetex-extra instead of
18248 tetex-bin. This brings in fancyvrb and unicode support.
18251## pandoc 0.3 (2007-01-05)
18253 [ John MacFarlane ]
18255 * Changes in pandoc options:
18257 + Allow options to follow or precede arguments.
18258 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
18259 + Added '--strict' option.
18260 + Added '-o/--output' option.
18261 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
18262 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
18263 error conditions. This is helpful for writing wrappers.
18264 + Added copyright message to '-v' output, modeled after FSF messages.
18265 + Reformatted usage message so that it doesn't wrap illegibly.
18266 + Removed extra blanks after '-h' and '-D' output.
18268 * Added docbook writer.
18270 * Added implicit setting of default input and output format based
18271 on input and output filename extensions. These defaults are
18272 overridden if explicit input and output formats are specified using
18273 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
18276 * Allow ordered list items to begin with (single) letters, as well
18277 as numbers. The list item marker may now be terminated either by
18278 '.' or by ')'. This extension to standard markdown is documented
18281 * Revised footnote syntax. (See README for full details.) The
18282 '[^1]' format now standard in markdown extensions is supported,
18283 as are inline footnotes with this syntax: `^[My note.]`.
18284 The earlier footnote syntax `^(1)` is no longer supported.
18286 * Improved HTML representation of footnotes. All footnotes
18287 are now auto-numbered and appear in an ordered list at the
18288 end of the HTML document. Since the default appearance is now
18289 acceptable, the old footnote styles have been removed from the
18294 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
18295 These readers ran 'runParser' on processed chunks of text to handle
18296 embedded block lists in lists and quotation blocks. But then
18297 any changes made to the parser state in these chunks was lost,
18298 as the state is local to the parser. So, for example, footnotes
18299 didn't work in quotes or list items. The fix: instead of calling
18300 runParser on some raw text, use setInput to make it the input, then
18301 parse it, then use setInput to restore the input to what it was
18302 before. This is shorter and more elegant, and it fixes the problem.
18303 + Fixed bug in notFollowedBy' combinator (adding 'try' before
18304 'parser'). Adjusted code that uses this combinator accordingly.
18305 + Fixed bug in RTF writer that caused improper indentation on
18306 footnotes occurring in indented blocks like lists.
18307 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
18308 and date are parsed correctly. Everything else in the preamble
18310 + Modified escapedChar in LaTeX reader to allow a `\` at the end of a
18311 line to count as escaped whitespace.
18312 + Modified LaTeX reader to produce inline links rather than reference
18313 links. Otherwise, links in footnotes aren't handled properly.
18314 + Fixed handling of titles in links in Markdown reader, so that
18315 embedded quotation marks are now handled properly.
18316 + Fixed Markdown reader's handling of embedded brackets in links.
18317 + Fixed Markdown reader so that it only parses bracketed material
18318 as a reference link if there is actually a corresponding key.
18319 + Revised inline code parsing in Markdown reader to conform to
18320 markdown standard. Now any number of `s can begin inline code,
18321 which will end with the same number of `s. For example, to
18322 have two backticks as code, write ``` `` ```. Modified Markdown
18323 writer accordingly.
18324 + Fixed bug in text-wrapping routine in Markdown and RST writers.
18325 Now LineBreaks no longer cause wrapping problems.
18326 + Supported hexadecimal numerical entity references as well as
18328 + Fixed bug in Markdown reader's handling of underscores and other
18329 inline formatting markers inside reference labels: for example,
18330 in '[A_B]: /url/a_b', the material between underscores was being
18331 parsed as emphasized inlines.
18332 + Changed Markdown reader's handling of backslash escapes so that
18333 only non-alphanumeric characters can be escaped. Strict mode
18334 follows Markdown.pl in only allowing a select group of punctuation
18335 characters to be escaped.
18336 + Modified HTML reader to skip a newline following a `<br>` tag.
18337 Otherwise the newline will be treated as a space at the beginning
18340 * Made handling of code blocks more consistent. Previously, some
18341 readers allowed trailing newlines, while others stripped them.
18342 Now, all readers strip trailing newlines in code blocks. Writers
18343 insert a newline at the end of code blocks as needed.
18345 * Modified readers to make spacing at the end of output more consistent.
18347 * Minor improvements to LaTeX reader:
18349 + `\thanks` now treated like a footnote.
18350 + Simplified parsing of LaTeX command arguments and options.
18351 commandArgs now returns a list of arguments OR options (in
18352 whatever order they appear). The brackets are included, and
18353 a new stripFirstAndLast function is provided to strip them off
18354 when needed. This fixes a problem in dealing with \newcommand
18355 and \newenvironment.
18357 * Revised RTF writer:
18359 + Default font is now Helvetica.
18360 + An `\f0` is added to each `\pard`, so that font resizing works
18363 * Moved handling of "smart typography" from the writers to the Markdown
18364 and LaTeX readers. This allows great simplification of the writers
18365 and more accurate smart quotes, dashes, and ellipses. DocBook can
18366 now use `<quote>`. The '--smart' option now toggles an option in
18367 the parser state rather than a writer option. Several new kinds
18368 of inline elements have been added: Quoted, Ellipses, Apostrophe,
18371 * Changes in HTML writer:
18373 + Include title block in header even when title is null.
18374 + Made javascript obfuscation of emails even more obfuscatory,
18375 by combining it with entity obfuscation.
18377 * Changed default ASCIIMathML text color to black.
18381 + Added --strip-trailing-cr option to diff in runtests.pl, for
18382 compatibility with Windows.
18383 + Added regression tests with footnotes in quote blocks and lists.
18385 * Makefile changes:
18387 + osx-pkg target creates a Mac OS X package (directory). New osx
18388 directory contains files needed for construction of the package.
18389 + osx-dmg target creates a compressed disk image containing the package.
18390 + win-pkg target creates Windows binary package.
18391 + tarball target creates distribution source tarball.
18392 + website target generates pandoc's website automatically, including
18393 demos. New 'web' directory contains files needed for construction
18394 of the website (which will be created as the 'pandoc' subdirectory
18396 + Makefile checks to see if we're running Windows/Cygwin; if so,
18397 a '.exe' extension is added to each executable in EXECS.
18399 * Removed all wrappers except markdown2pdf and html2markdown.
18401 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
18402 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
18403 option and disables other options.
18405 * Added code to html2markdown that tries to determine the character
18406 encoding of an HTML file, by parsing the "Content-type" meta tag.
18408 + If the encoding can't be determined, then if the content is local,
18409 the local encoding is used; if it comes from a URL, UTF-8 is used
18411 + If input is from STDIN, don't try to determine character encoding.
18412 + Encoding can be specified explicitly using '-e' option.
18414 * Improved warning messages in wrappers:
18416 + Print warning if iconv not available
18417 + More user-friendly error messages in markdown2pdf, when
18422 + Renamed 'Text/Pandoc/HtmlEntities' module to
18423 'Text/Pandoc/Entities'. Also changed function names so as
18424 not to be HTML-specific.
18425 + Refactored SGML string escaping functions from HTML and Docbook
18426 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
18427 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
18429 + Removed splitBySpace and replaced it with a general, polymorphic
18431 + Refactored LaTeX reader for clarity (added isArg function).
18432 + Converted some CR's to LF's in src/ui/default/print.css.
18433 + Added license text to top of source files.
18434 + Added module data for haddock to source files.
18435 + Reformatted code for consistency.
18437 * Rewrote documentation and man pages. Split README into INSTALL
18440 * Split LICENSE into COPYING and COPYRIGHT.
18442 * Removed TODO, since we now maintain ToDo on the wiki.
18444 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
18449 * Revamped build process to conform to debian standards and created
18450 a proper debian package. Closes: #391666.
18452 * Modified build process to support GHC 6.6.
18454 + The package can still be compiled using GHC 6.4.2, though because
18455 of dependencies the "make deb" target works only with GHC 6.6+.
18456 + The script 'cabalize' is used to create an appropriate
18457 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
18460 * Refactored template processing (fillTemplates.pl).
18462 * Modified wrapper scripts to make them more robust and portable.
18463 To avoid code duplication and ensure consistency, wrappers are
18464 generated via a templating system from templates in src/wrappers.
18466 + Wrappers now accept multiple filenames, when appropriate.
18467 + Spaces and tabs allowed in filenames.
18468 + getopts shell builtin is used for portable option parsing.
18469 + Improved html2markdown's web grabber code, making it more robust,
18470 configurable and verbose. Added '-e', '-g' options.
18473## pandoc 0.2 (2006-08-14)
18475 * Fixed unicode/utf-8 translation
18477## pandoc 0.1 (2006-08-14)
18479 * 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