git.iko.soy/typeable/pandoc
on 2.11.0.2 help sign in
typeable/pandoc/changelog.md
18288 lines 786 kB history raw
1# Revision history for pandoc
3## pandoc 2.11.0.2 (2020-10-15)
5 * Fix handling of `xdata` in bibtex/biblatex bibliographies (#6752).
7 * Fix some small typos in the API documentation (#6751, Michael Hoffmann).
9 * Require citeproc 0.1.0.2. This fixes a regression from pandoc-citeproc
10 involving spacing between components of a reference in certain styles
11 (e.g. `cell.csl`).
13 * Fix typos in comments, doc strings, error messages, and tests
14 (Albert Krewinkel, #6738).
16## pandoc 2.11.0.1 (2020-10-13)
18 * LaTeX reader: support more acronym commands (#6746):
19 `\acl`, `\aclp`, and capitalized versions of already
20 supported commands.
22 * Commonmark reader: add `pipe_table` extension *after* defaults (#6739).
23 Otherwise we get bad results for non-table, non-paragraph
24 lines containing pipe characters.
26 * Markdown writer: Fix autolinks rendering for gfm (#6740).
27 Previously, autolinks rendered as raw HTML, due to the
28 `class="uri"` added by pandoc's markdown reader.
30 * LaTeX writer:
32 + Escape option values in lstlistings environment (#6742).
33 + Fix handling of `lang` `pt-BR` (#2953). For polyglossia we now
34 use `\setmainlanguage[variant=brazilian]{portuguese}` and for babel
35 `\usepackage[shorthands=off,main=brazilian]{babel}`.
37 * Depend on latest citeproc (0.1.0.1).
39 + This fixes the citation number issue with ieee.csl and other
40 styles that do not explicitly sort bibliographies (#6741). (Pandoc
41 was numbering them by their order in the bibliography file,
42 rather than the order cited, as required by the CSL spec.)
43 + Fixes groupin/collapsing with citation items with prefixes.
45 * default.latex: fix `CSLReference` macro definition.
47 * Fix MANUAL.txt CSL JSON conversion examples.
49 * Fix spelling errors in changelog, MANUAL.txt, `doc/org.md` (#6738).
52## pandoc 2.11 (2020-10-11)
54 * Add `--citeproc` (`-C`) option to trigger built-in citation processing.
55 It is no longer necessary to use the external `pandoc-citeproc`
56 filter. `--citeproc` behaves like a filter and can be positioned
57 relative to other filters as they appear on the command line.
59 The new built-in citation processing uses the citeproc library,
60 a reimplementation of CSL citation processing that fixes many
61 of the shortcomings of pandoc-citeproc. In general, citation
62 processing should work much the same as it did with pandoc-citeproc,
63 but with greater fidelity to CSL styles and better performance.
64 (The tests from the pandoc-citeproc package have been carried
65 over to pandoc.) The following differences should be noted:
67 - At this point, only some of the writers (HTML, ms, LaTeX) properly
68 interpret CSL display styles. You should get decent output in
69 all formats (at least as good as with pandoc-citeproc), but
70 indentation and block-alignment may not be right.
72 - pandoc-citeproc searches the `~/.csl` directory for `.csl`
73 styles. Pandoc instead searches the `csl` subdirectory of
74 the pandoc user data directory (e.g., `~/.pandoc/csl` or
75 `~/.local/share/pandoc/csl`). Users who already keep
76 CSL styles in `~/.csl` may find it convenient to add a
77 symlink.
79 - Some of the bibliography formats supported by pandoc-citeproc (via
80 hs-bibutils) are no longer supported: Copac, EndNote,
81 ISI, MEDLINE, MODS, and RIS. If you use one of these formats,
82 you may use the `bibutils` utility to convert to BibLaTeX.
83 We now support only BibTeX, BibLaTeX, CSL JSON,
84 and pandoc's YAML/Markdown analogue of CSL JSON.
86 - pandoc-citeproc would always retrieve the independent parent
87 of a dependent style by doing an HTTP request. pandoc will
88 now first seek the independent parent locally (in the resource
89 path or in the `csl` subdirectory of the pandoc user data
90 directory) before resorting to HTTP. In addition, you may
91 omit the `.csl` extension, e.g. `--csl zoology`.
93 - Using the `--bibliography` option (or including
94 `bibliography` in YAML metadata) no longer triggers
95 citation processing implicitly: one must always use the
96 `--citeproc` option if citation processing is wanted.
98 * Add `csljson` as and input and output format. This allows pandoc
99 to convert between `csljson` and other bibliography formats
100 (e.g. `-f csljson -t markdown -s` or `-f bibtex -t csljson`),
101 and to generate formatted versions of CSL JSON bibliographies
102 (e.g., `pandoc -f csljson --citeproc pl.json -o pl.pdf`).
104 * Added `bibtex`, `biblatex` as input formats. This allows pandoc
105 to convert between BibLaTeX and BibTeX and other bibliography formats,
106 and to generated formatted versions of BibTeX/BibLaTeX bibliographies
107 (e.g., `pandoc -f biblatex --citeproc pl.bib -o pl.pdf`).
109 * Raise informative errors when YAML metadata parsing fails (#6730).
110 Previously the command would succeed, returning empty metadata,
111 with no errors or warnings.
113 * Sort languages in `--list-highlight-languages` output (#6718,
114 Albert Krewinkel). Languages were previously sorted by their
115 long name, which leads to unexpected results).
117 * Add CSS to default HTML template (#6601, Mauro Bieg). This
118 greatly improves the default typography in pandoc's HTML
119 output. The CSS is sensitive to a number of variables
120 (e.g. `mainfont`, `fontsize`, `linestretch`): see the manual for
121 details. To restore the earlier, more spartan output, you can
122 disable this with `-M document-css=false`.
124 * Support `--toc-depth` option for ODT writer (#6696, niszet).
126 * Fix issues with Windows UNC paths with some options (#5127).
128 * Remove `fenced_code_blocks` and `backtick_code_blocks` from allowed
129 `commonmark` and `gfm` extensions. These shouldn't really be counted
130 as extensions, because they can't be disabled in commonmark.
131 Adjust markdown writer to check for the commonmark variant in addition
132 to extensions.
134 * Add these extensions to `gfm` and `commonmark`:
135 `fenced_code_blocks`, `backtick_code_blocks`, `fenced_code_attributes`.
136 These can't really be disabled in the reader, but they need to be enabled
137 in the writer or we just get indented code.
139 * Make sure proper set of extensions is recognized for `commonmark_x`.
141 * Allow `gfm_auto_identifiers`, `ascii_identifiers` extensions for `docx`.
143 * Markdown reader:
145 + Add `Maybe FilePath` parameter to `yamlToMeta` [API change].
146 + Export `yamlToRefs` [API change], a version of `yamlToMeta`
147 specialized to references.
148 + Set `citationNoteNum` accurately in citations.
149 + Revise abbreviation support. Don't insert a nonbreaking space after a
150 potential abbreviation if it comes right before a note or citation.
151 This causes problems for citeproc's moving of note citations.
153 * LaTeX reader:
155 + Support missing siunitx commands (#6658).
156 + Support `squared`, `cubed`, `tothe` in siunitx (#6657).
157 + Improved uncertainty handling in slunitx.
158 + Factored out siunitx stuff into separate unexposed module.
159 + Fix improper empty cell filtering (#6689, Christian Despres).
160 + Fix parsing of "show name" in `\newtheorem` (#6734).
161 Previously we were just treating it as a string and
162 ignoring accents and formatting.
163 + Prevent wrong nesting of `\multirow` and `\multicolumn` table
164 cells (#6603, Laurent P. René de Cotret).
165 + Table cell parser not consuming spaces correctly (#6596,
166 Laurent P. René de Cotret).
167 + Change `SIRange` to `SIrange` (#6617, Emerson Harkin).
168 + Allow blank lines inside `\author` (#6324).
170 * DocBook reader:
172 + Don't squelch space at end of emphasis and other inline elements;
173 instead, move it outside the element (#6719).
174 + Implement table cell alignment (#6698, Nils Carlson).
175 + Implement column span support for tables (#6492, Nils Carlson).
176 + Update list of block level tags (#6610).
179 * JATS reader:
181 + Don't squelch space at end of emphasis and other inline elements;
182 instead, move it outside the element (#6719).
184 * RST reader:
186 + Apply `.. class::` directly to following Header rather than creating
187 a surrounding Div (#6699).
189 * Docx reader:
191 + Allow empty dates in comments and tracked changes (#6726, Diego
192 Balseiro).
194 * Markdown writer:
196 + Be less aggressive about using quotes for YAML values,
197 allowing e.g. a quotation mark or bracket as long as it's not at the
198 beginning of the line.
199 + Use double quotes for YAML metadata (#6727).
200 + Sort YAML metadata keys in Markdown output case-insensitive.
203 * Asciidoc writer:
205 + Support asciidoctor's block figures (#6538, argent0).
207 * LaTeX writer:
209 + Fix spacing issue with list in definition list.
210 When a list occurs at the beginning of a definition list definition,
211 it can start on the same line as the label, which looks bad.
212 Fix that by starting such lists with an `\item[]`.
214 * HTML writer:
216 + Support intermediate table headers (#5314, Albert Krewinkel).
217 + Support attributes on all table elements (Albert Krewinkel).
218 + Render table footers if present (#6314, Albert Krewinkel).
219 + Fix addition of `doc-biblioentry` role.
220 + Support colspans and rowspans in HTML tables (#6312, Albert Krewinkel).
222 * ICML writer:
224 + Support internal document links (#5541, Leonard Rosenthol).
225 + Changed default link state to invisible (#6676, Leonard Rosenthol).
227 * Docx writer:
229 + Better handle list items whose contents are lists (#5948, Michael
230 Hoffmann). If the first element of a bulleted or ordered list is
231 another list, then that first item would previously disappear if the
232 target format is docx.
233 + Separate adjacent tables (#4315). Word combines adjacent tables,
234 so to prevent this we insert an empty paragraph between two
235 adjacent tables.
237 * Org writer:
239 + Don't force blank line after headings (#6554).
241 * OpenDocument writer:
243 + Implement table cell alignment (#6700 Nils Carson, Mauro Bieg).
244 + New table cell support with row and column spans (#6682, Nils Carson).
245 + Syntax highlighting for inline code (#6711, niszet).
247 * Add Text.Pandoc.Citeproc module, exporting `processCitations`
248 [API change]. This depends on several other, unexported
249 modules under Text.Pandoc.Citeproc.
251 * Add module Text.Pandoc.Writers.CslJson, exporting `writeCslJson`.
252 [API change]
254 * Add module Text.Pandoc.Readers.CslJson, exporting `readCslJson`.
255 [API change]
257 * Add module Text.Pandoc.Readers.BibTeX, exporting `readBibTeX` and
258 `readBibLaTeX`. [API change]
260 * Text.Pandoc.Filter: Add `CiteprocFilter` constructor to Filter.
261 [API change] This runs the processCitations transformation.
262 We need to treat it like a filter so it can be placed
263 in the sequence of filter runs (after some, before others).
264 In FromYAML, this is parsed from `citeproc` or `{type: citeproc}`,
265 so this special filter may be specified either way in a defaults file
266 (or by `citeproc: true`, though this gives no control of positioning
267 relative to other filters).
269 * Add new exported module Text.Pandoc.Writers.AnnotatedTable [API change]
270 (#6655, Christian Despres). This module (which should generally
271 be imported qualified to avoid name conflicts) provides a
272 `Table` type that mirrors the structure of a pandoc `Table`,
273 but with added inferred information so that the writers do not have to
274 lay out tables themselves. The `toTable` and `fromTable` functions convert
275 between an annotated `Table` and a regular pandoc `Table`. In addition to
276 producing a `Table` with coherent and well-formed annotations, the
277 `toTable` function also normalizes its input table like the table
278 builder does. Tests ensure that `toTable` normalizes tables exactly
279 like the table builder, and that its annotations are coherent.
281 * Text.Pandoc.Logging:
283 + Remove unused `CouldNotParseYamlMetadata` constructor for `LogMessage`
284 [API change].
285 + Add `CiteprocWarning` constructor to `LogMessage` [API change].
287 * Text.Pandoc.Readers.Metadata: export `yamlBsToRefs` [API change].
288 These allow specifying an id filter so we parse only references
289 that are used in the document.
291 * Text.Pandoc.Parsing:
293 + Export ParseError [API change].
294 + Add `stateInNote` and `stateNoteNumber` to `ParserState`
295 [API change]. These are used to populate note numbers for citation
296 processing.
298 * Fix apparent typos in sample.lua (#6729, William Lupton).
299 Also make the writer less aggressive in escaping quotes.
301 * Text.Pandoc.Options:
303 + `defaultMathJaxURL`: use `tex-chtml-full` instead of `tex-mml-chtml`
304 (#6599, Kolen Cheung). This drops the MathML support (which we
305 don't need for HTML math rendering) and includes the full JavaScript,
306 which makes it possible to use `--self-contained` (though there may
307 still be issues if the required math fonts aren't available). This
308 change should also reduce latency in pages with lots of formulas.
309 + Add `/tex-chtml-full.js` to `defaultMathJaxURL` (#6593) Previously we
310 added this in processing command line options, but not in processing
311 defaults files, which was inconsistent.
313 * epub.css: Fix cover page selectors and add note explaining their use
314 (#6649, a-vrma).
316 * Add data files needed for Text.Pandoc.Citeproc: these include
317 `default.csl` in the data directory and a `citeproc` directory that
318 is only used at compile-time for biblatex localizations. Note that we've
319 added `file-embed` as a mandatory rather than a conditional
320 dependency, because of the biblatex localization files.
322 * Lua filters:
324 + Add SimpleTable for backwards compatibility (#6575, Albert Krewinkel).
325 A new type `SimpleTable` is made available to Lua filters. It is
326 similar to the `Table` type in pandoc versions before 2.10;
327 conversion functions from and to the new Table type are provided.
328 Old filters using tables now require minimal changes and can use, e.g.,
330 if PANDOC_VERSION > {2,10,1} then
331 pandoc.Table = pandoc.SimpleTable
332 end
334 and
336 function Table (tbl)
337 tbl = pandoc.utils.to_simple_table(tbl)
338 …
339 return pandoc.utils.from_simple_table(tbl)
340 end
342 to work with the current pandoc version.
344 + Make `attr` argument optional in `Table` constructor (Albert Krewinkel).
345 This changes the Lua API. It is highly unlikely for this change to affect
346 existing filters, since the documentation for the new Table constructor
347 (and type) was incomplete and partly wrong before. The Lua API is now
348 more consistent, as all constructors for elements with attributes now
349 take attributes as the last parameter.
351 * MANUAL.txt:
353 * Add a dedicated Citations section which consolidates the information
354 the manual used to contain about citation processing, and incorporates
355 some information formerly found in the pandoc-citeproc man page.
356 + Add note about lualatex using `selnolig`.
357 + Remove duplicate `seriespage` (#6568, Blake Eryx).
358 + Remove lists of support extensions for markdown variants (#6604).
359 Instead, offer the advice to use `--list-extensions=FORMAT`.
360 + Fix position of attributes in header (Albert Krewinkel).
361 + Delete obsolete section on compact and loose lists (#6684).
364 * doc/lua-filters.md:
366 + Add info on how to debug Lua filters (#6732, Ian Max Andolina).
367 + Document Underline type and constructor (Albert Krewinkel).
368 + Document `body` field (Albert Krewinkel).
369 + Add missing header attribute
370 + Add missing Link.title field (Albert Krewinkel).
371 + Make the setting-the-date example conditional (the-solipsist).
372 This makes the example a bit more realistic.
373 + Remove outdated link table example.
375 * doc/org.md:
377 + Add section on tables (Albert Krewinkel).
378 + Add section on handling of unknown directives (Albert Krewinkel).
380 * CONTRIBUTING.md: fix typo (#6584, Dmitry Volodin).
382 * Use golden test framework for command tests. This means that
383 `--accept` can be used to update expected output.
385 * Use the `smart` extension when generating pandoc's man page (#6613).
387 * Release-candidate: don't build windows i386.
388 So far we haven't been able to figure out how to get
389 stack to use a 32-bit ghc.
391 * Use `null` instead of deprecated `Builder.isNull`.
393 * Makefile:
395 + Fix macospkg target to fetch target from S3 artifacts.
396 + Fix pandoc-templates target to include all partials.
398 * Remove duplicated dependency in pandoc.cabal (#6591, Felix Yan).
400 * Sort build depends in pandoc.cabal alphabetically (#6691,
401 Albert Krewinkel).
403 * Add .travis.yml for macos release candidate build (#6622).
404 We need to build the release candidate on Travis rather
405 than GitHub actions, because GH has macos 10.15, and
406 binaries compiled on that OS will not work with 10.13.
407 This build is only triggered on `rc/*` branches.
409 * Remove instructions for building pandoc-citeproc from CI and
410 release binary build instructions. We will no longer distribute
411 pandoc-citeproc.
413 * Fix math rendering in trypandoc (this broke after
414 commit d8ad766d17603784b86fc5c2e1b22864125d04d1).
416 * Use latest versions of skylighting, commonmark (#6589),
417 comonmark-extensions, commonmark-pandoc, texmath.
419 * Relax version bounds for hslua, hslua-module-text, bytestring.
421 * Use released pandoc-types 1.22. This changes the JSON
422 encoding slightly for the new table types introduced
423 in 1.21, so they're more consistent with the rest.
424 Developers of libraries for pandoc filters will want
425 to take note.
427 * Fix hlint suggestions, update hlint.yaml (#6680, Christian Despres).
429 * Code cleanup (#6678, Joseph C. Sible).
431 * Add haddocks to functions in Text.Pandoc.Writers.Shared (Albert
432 Krewinkel).
434 * Remove duplicate `tshow` definition.
436 * Linux release candidate build: use ghc-musl container. This simplifies
437 our build process (over using a customized alpine container).
440## pandoc 2.10.1 (2020-07-23)
442 * Add `commonmark_x` output format. This is `commonmark` with a number
443 of useful pandoc extensions enabled.
445 * Many more extensions now work with `commonmark` and `gfm`.
447 * Add generic `attributes` extension. This allows attributes to
448 be added to any block or inline element in a uniform way. Since
449 the Pandoc AST doesn't include attributes on each element type,
450 the attributes will sometimes be added by creating a surrounding
451 Div or Span container. Currently this extension is only
452 compatible with the `commonmark` and `gfm` readers.
454 To add an attribute to a block-level element, e.g. a paragraph,
455 put it before the block:
456 ```
457 {#mypara}
458 This is a paragraph.
459 ```
460 Multiple attributes may be used and will be combined:
461 ```
462 {#mypara}
463 {.blue .warning key="val"}
464 This is a paragraph.
465 ```
466 To add an attribute to an inline-level element, put it
467 immediately after the element:
468 ```
469 *emphasized text*{.special}
470 ```
472 * Support `--number-sections` for docx output (#1413).
474 * LaTeX reader:
476 + Support `\SIRange` reader (#6418, Emerson Harkin).
477 + Support table col-span and row-span (#6311, Laurent P. René de Cotret).
478 Supports `\multirow` and `\multicolumn`.
479 + Support amsthm: `\newtheorem`, `\theoremstyle`, and theorem and
480 proof environments, including labels and references. The only thing
481 that is unsupported is the second optional argument, which causes
482 numbering to be reset after the specified series is incremented.
483 + Moved some code to T.P.LaTeX.Parsing. We need to reduce the size
484 of the LaTeX reader to ease compilation on resource-limited systems.
486 * RST reader:
488 + Fix csv tables with multiline cells (#6549).
489 + Fix spurious newlines in some attributes from directives.
490 + Avoid extra newline in included code blocks.
492 * Commonmark reader:
494 + Switch from cmark-gfm to commonmark-hs for commonmark and gfm
495 parsing. This avoids depending on a C library
496 and allows us to support more pandoc extensions for
497 `commonmark` and `gfm`.
499 * DocBook reader:
501 + Parse releaseinfo as metadata (#6542).
503 * Docx reader:
505 + Only use `bCs/iCs` on runs with `rtl` or `cs` property (#6514, Nikolay
506 Yakimov).
507 + Code cleanup/refactoring (Nikolay Yakimov).
509 * Org reader (Albert Krewinkel):
511 + Respect export setting which disables entities
512 MathML-like entities, e.g., `\alpha`, can be disabled with the
513 `#+OPTION: e:nil` export setting (Albert Krewinkel).
514 + Respect export setting disabling footnotes. Footnotes can be removed
515 from the final document with the `#+OPTION: f:nil` export setting.
516 + Respect tables-excluding export setting. Tables can be removed from
517 the final document with the `#+OPTION: |:nil` export setting.
519 * Markdown writer:
521 + Move `asciify` out of `escapeString`. Otherwise `unsmartify`
522 doesn't catch quotes that have already been turned to entities.
523 + Add `writeCommonmark` (new exported function, API change).
524 + Use unicode super/subscript characters when possible if the
525 `superscript` or `subscript` extension or `raw_html` aren't available.
526 + Render caption as following paragraph when `table_caption` extension
527 is not enabled.
528 + Use numerical labels for reference links that are longer
529 than 999 characters or contain square brackets, for conformity
530 with commonmark (#6560).
532 * Commonmark writer:
534 + Instead of using cmark-gfm, use `writeCommonmark` from the
535 Markdown writer. This function calls the markdown writer
536 with appropriate extensions and a few small modifications
537 (e.g. not requiring backslashes before spaces inside
538 super/subscripts). With this change `comonmark` and
539 `gfm` output can be used with a wider selection of
540 extensions.
542 * Jira writer: keep image caption as alt attribute (#6529, Albert
543 Krewinkel).
545 * HTML writer:
547 + Improve alt-text/caption handling for HTML5 (#6491, Albert Krewinkel).
548 Screen readers read an image's `alt` attribute and the figure caption,
549 both of which come from the same source in pandoc. The figure caption is
550 hidden from screen readers with the `aria-hidden` attribute. This
551 improves accessibility. For HTML4, where `aria-hidden` is not allowed,
552 pandoc still uses an empty `alt` attribute to avoid duplicate contents.
554 * Ms writer:
556 + Fix code highlighting with blank lines. Previously blank lines
557 were simply omitted from highlighted code.
558 + Escape starting periods in ms writer code blocks (#6505, Michael
559 Hoffmann). If a line of ms code block output starts with a period (.),
560 it should be prepended by `\&` so that it is not interpreted as a roff
561 command.
563 * Text.Pandoc.Extensions:
565 + Add `raw_markdown` extension (which only affects `ipynb`
566 input).
567 + Trim down `githubMarkdownExtensions`.
568 Previously it included all of the following, which make
569 sense for the legacy `markdown_github` but not for `gfm`,
570 since they are part of base commonmark and thus
571 can't be turned off in `gfm`:
573 - `Ext_all_symbols_escapable`
574 - `Ext_backtick_code_blocks`
575 - `Ext_fenced_code_blocks`
576 - `Ext_space_in_atx_header`
577 - `Ext_intraword_underscores`
578 - `Ext_lists_without_preceding_blankline`
579 - `Ext_shortcut_reference_links`
581 These have been removed from `githubMarkdownExtensions`, though
582 they're still turned on for legacy `markdown_github`.
583 + Add `Ext_attributes` constructor for `Extension` [API change].
585 * LaTeX template: use selnolig to selectively suppress ligatures with
586 lualatex (#6534).
588 * Benchmark bytestring readers (Nikolay Yakimov).
590 * Documentation:
592 + Update using-the-pandoc-api.md (favonia).
593 + Fix Typos in lua-filters.md (tajmone).
594 + Rewrite Raw HTML/TeX section in MANUAL.txt to avoid duplicate
595 headings for the extensions.
596 + Fix typo in MANUAL.txt (Benjamin Wuethrich).
597 + Remove duplicate 'titlepage' in MANUAL.txt (Blake Eryx).
598 + CONTRIBUTING.md: Advertise the official nightlies in GitHub actions.
599 Replaces #6500, thanks to @ickc.
603## pandoc 2.10 (2020-06-29)
605 * Use pandoc-types 1.21. This adds two things:
607 + A native Underline constructor for Inline (#6277, Vaibhav Sagar).
608 + More expressive types for tables (#1024, Christian Despres).
609 Tables can now take attributes; and rowspans and colspans,
610 column headers, multiple row headers, table head and foot
611 can all be represented. (Note, however, that reader and
612 writer support for these features is still lacking, so
613 most users won't see any differences in table conversion
614 yet. These changes just lay the foundation for further
615 improvements.)
617 * Support new Underline element in readers and writers (#6277,
618 Vaibhav Sagar).
620 * Support new Table type (Christian Despres).
621 The Builder.simpleTable now only adds a row to the TableHead
622 when the given header row is not null. This uncovered an
623 inconsistency in the readers: some would unconditionally
624 emit a header filled with empty cells, even if the header
625 was not present. Now every reader has the conditional
626 behaviour. Only the XWiki writer depended on the header row
627 being always present; it now pads its head as necessary.
629 * Add an option to disable certificate validation (#6156, Cédric Couralet,
630 Cécile Chemin, Juliette Fourcot). This commit adds the option
631 `--no-check-certificate`, which disables certificate checking when
632 resources are fetched by HTTP.
634 * Unify defaults and markdown metadata parsers (#6328, Nikolay
635 Yakimov). Clean up code in Text.Pandoc.Readers.Metadata and
636 properly handle errors in `yamlToMeta`. This fixes parsing
637 of Boolean fields in metadata withinin defaults files and reduces
638 code duplication.
640 * Docbook reader:
642 + Implement `<procedure>` (#6442, Mathieu Boespflug).
643 + Implement `<phrase>` (#6438, Mathieu Boespflug).
644 + Treat envar and systemitem like code (#6435, Mathieu Boespflug).
645 + Implement `<replaceable>` (#6437, Mathieu Boespflug)
646 + Map `<simplesect>` to unnumbered section (#6436, Mathieu Boespflug).
648 * JATS reader:
650 + Handle "label" element in section title (#6288).
651 + Parse abstract element into metadata field of same name
652 (#6480, Albert Krewinkel).
654 * Jira reader (Albert Krewinkel):
656 + Resolve multiple parsing problems, including issues with empty
657 table cells, faulty recognition of closing emphasis characters, and
658 parsing of image attributes (#6212, #6219, #6220).
659 + Two consecutive markup chars are now parsed verbatim (#6343);
660 styled text must not be empty.
661 + Newlines are no longer allowed within styled text (#6325).
662 + Links to anchors are now parsed as links (#6407).
663 + Retain image attributes (#6234). Jira images attributes as in
664 `!image.jpg|align=right!` are retained as key-value pairs. Thumbnail
665 images, such as `!example.gif|thumbnail!`, are marked by a
666 `thumbnail` class in their attributes.
667 + Use Underline for inserted text (#6237). Previously, the span was
668 marked with the non-standard class `inserted`.
669 + Improve icon conversion for `(/)`, `(x)`, `(!)`, `(?)`
670 `(+)`, `(-)`, `(off)`, `(*)`. (#6236, #6264).
671 + Support citations, attachment links, and user links (#6231, #6238,
672 #6239).
673 + Resolve parsing issues of blockquote, color (#6233, #6235).
675 * HTML reader:
677 + Parse attributes into table attributes.
678 + Support `<bdo>` (#5794, Tristan de Cacqueray).
679 + Add `summary` to list of block-level HTML tags (#6385).
680 This improves support for summary/details inside Markdown.
681 NOTE: you need to include a blank line before the closing
682 `</details>`, if you want the last part of the content to
683 be parsed as a paragraph.
684 + Fix parsing unclosed th elements in a table (#6247).
686 * Commonmark reader: Implement `implicit_figures` extension (#6350).
688 * Markdown Reader:
690 + Fix inline code in lists (#6284, Nikolay Yakimov).
691 Previously inline code containing list markers was sometimes
692 parsed incorrectly.
693 + Don't require blank line after grid table (#6481).
694 This allows grid tables to be enclosed in fenced divs with no
695 intervening blank lines.
697 * LaTeX reader:
699 + Don't parse beyond `\end{document}` (#6380).
700 This required some internal changes to `\subfile` handling.
701 + Better handling of `\lettrine`. SmallCaps instead of Span
702 for the part after the initial capital. Ensure that both
703 arguments are parsed, so that in Markdown both
704 are treated as raw LateX. (Closes #6258.)
706 * Org reader (Albert Krewinkel):
708 + Recognize images with uppercase extensions (#6472).
709 + Keep unknown keyword lines as raw org. The lines of unknown
710 keywords, like `#+SOMEWORD: value` are no longer read as metadata,
711 but kept as raw `org` blocks. This ensures that more information
712 is retained when round-tripping org-mode files; additionally,
713 this change makes it possible to support non-standard org
714 extensions via filters.
715 + Unify keyword handling. Handling of export settings and other
716 keywords (like `#+LINK`) has been combined and unified.
717 + Support `LATEX_HEADER_EXTRA` and `HTML_HEAD_EXTRA`
718 settings. These export settings are treated like their non-extra
719 counterparts, i.e., the values are added to the `header-includes`
720 metadata list.
721 + Allow multiple `#+SUBTITLE` export settings. The values of all
722 lines are read as inlines and collected in the `subtitle`
723 metadata field.
724 + Read `#+INSTITUTE` values as text with markup. The value is
725 stored in the `institute` metadata field and used in the
726 default beamer presentation template.
727 + The behavior of the `#+AUTHOR` and `#+KEYWORD` export
728 settings has changed: Org now allows multiple such lines
729 and adds a space between the contents of each line. Pandoc
730 now always parses these settings as meta inlines; setting
731 values are no longer treated as comma-separated lists.
732 Note that a Lua filter can be used to restore the previous
733 behavior.
734 + Read description lines as inlines (#6485). `#+DESCRIPTION` lines
735 are now treated as text with markup. If multiple such
736 lines are given, then all lines are read and separated by soft
737 linebreaks.
738 + Honor tex export option (#4070). The `tex` export option can be set
739 with `#+OPTION: tex:nil` and allows three settings:
740 `t` (the default) causes LaTeX fragments to be parsed as TeX or added
741 as raw TeX. `nil` removes all LaTeX fragments from the document.
742 `verbatim` treats LaTeX as text.
745 * RST reader:
747 + Pass arbitrary attributes through in code blocks (#6465).
748 Exceptions: name (which becomes the id), class (which becomes the
749 classes), and number-lines (which is treated specially to fit
750 with pandoc highlighting).
751 + Handle `date::` directive (#6276).
753 * Textile reader: support `pre.` for code blocks (#6454).
755 * Ipynb reader:
757 + Implement `raw_markdown` extension (#5408). Specifying
758 `-f ipynb+raw_markdown` will cause Markdown cells
759 to be represented as raw Markdown blocks, instead of being
760 parsed. This is not what you want when going from `ipynb`
761 to other formats, but it may be useful when going from `ipynb`
762 to Markdown or to `ipynb`, to avoid semantically insignificant
763 changes in the contents of the Markdown cells that might
764 otherwise be introduced.
765 + Handle application/pdf output as image (#6430).
766 + Properly handle image/svg+xml as an image (#6430).
768 * Docx reader:
770 + Distinguish between docx parsing and docx container unpacking errors.
772 * MediaWiki reader:
774 + Fix `gfm_auto_identifiers` so that `-` is not replaced by `_` (#6335).
776 * Vimwiki reader:
778 + Add nested syntax highlighting (#6256, Vlad Hanciuta).
779 Nested syntaxes are specified like this:
780 ```
781 {{{sql
782 SELECT * FROM table
783 }}}
784 ```
785 The preformatted code block parser has been extended to check if the
786 first attribute of the block is not a `key=value` pair, and in that
787 case it will be considered as a class.
790 * Jira writer (Albert Krewinkel):
792 + Always escape braces (#6478). Braces are now always escaped, even
793 within words or when surrounded by whitespace. Jira and
794 Confluence treat braces specially.
795 + Convert Underline to inserted text (`+inserted+`).
796 + Add image attributes (#6234). Image attributes are added
797 to the output as image parameters. If the image has a
798 class "thumbnail", then a thumbnail image is generated;
799 all other attributes are discarded in this case.
801 * LaTeX writer:
803 + Ensure that `-M csquotes` works even in fragment mode (#6265).
804 + Escape `^` specially for listings (#6460).
805 + Create hypertarget for links with identifier (#6360).
806 + Distinguish between single and double quotes when using enquote
807 package (#6457, dbecher-ito).
808 + Add support for customizable alignment of columns in beamer (#6331,
809 andrebauer).
810 + Add support for customizable alignment of columns in beamer
811 (#4805, #4150, andrebauer).
813 * HTML writer:
815 + Use CSS in favor of `<br>` for display math (#6372)
816 Some CSS to ensure that display math is
817 displayed centered and on a new line is now included
818 in the default HTML-based templates; this may be
819 overridden if the user wants a different behavior.
821 * Org writer:
823 + Clean-up Div handling (Albert Krewinkel).
825 * Docx writer:
827 + Enable column and row bands for tables (#6371).
828 This change will not have any effect with the default style.
829 However, it enables users to use a style (via a reference.docx)
830 that turns on row and/or column bands.
832 * OpenDocument (and ODT) writer:
834 + Add custom-style "Abstract" in metadata abstract.
835 This ensures that the abstract is rendered with style Abstract.
836 + Enable custom-style attribute on a Div.
837 This allows you to apply a custom style to contained paragraphs.
839 * DocBook writer:
841 + Add id of figure to enclosed image.
842 + Add personname element to docbook author (#6244).
844 * FB2 writer:
846 + Properly handle cover-image containing spaces (#6391).
848 * Markdown writer:
850 + Ensure consistent padding for pipe tables (#6240).
851 + Avoid unnecessary escapes before intraword `_` when
852 `intraword_underscores` extension is enabled (#6296).
854 * RST writer:
856 + Properly handle images with same alt text (#6194).
857 Previously we created duplicate references for these in rendering RST.
859 * AsciiDoc writer:
861 + Add blank line after Div (#6308).
863 * Haddock Writer:
865 + Support Haddock tables (Joe Hermaszewski).
866 See this PR on Haddock for details on the table format:
867 <https://github.com/haskell/haddock/pull/718>.
869 * PowerPoint writer (Jesse Rosenthal):
871 + Write math input verbatim in speaker notes (#6301).
872 OMML in speaker notes would lead to corrupt PowerPoint output. We now
873 output the OMML verbatim as LaTeX in the speaker notes.
875 * LaTeX template: Make polyglossia package options list-aware
876 (#6444, Frederik Elwert).
878 * Reveal.js template:
880 + Update template for reveal.js 4.0.0 (#6390, Salim B).
881 + Update template with newly available options (#6347, Jake Zimmerman).
882 + Use CDN version of revealjs v4 by default (#6408).
884 * opendocument template: Add abstract and subtitle to opendocument
885 template (#6369).
887 * reference.odt: clean up styles. Add Abstract.
888 Change Author, Date to centered paragraphs with no character
889 styling.
891 * epub.css: wrap overlong lines in highlighted code blocks (#6242).
892 This fixes a problem in iBooks v2.4 with our earlier
893 horizontally scrolling code blocks. The problem seems to
894 be a bug in iBooks, not pandoc, but since iBooks is a major
895 target we're changing pandoc's default behavior so that
896 pandoc-produced epubs work on that platform.
898 * Text.Pandoc.PDF:
900 + Use `--enable-local-file-access` in invoking `wkhtmltopdf` (#6474).
901 `wkhtmltopdf` changed in recent versions to require this for
902 access to local files. This fixes PDF via HTML5 with `--css`.
903 + Send verbose output to stderr, not stdout (#6483).
905 * Text.Pandoc.MIME: Fix MIME type for TrueType fonts in EPUBs
906 (#6464, Michael Reed).
908 * Text.Pandoc.Shared:
910 + `makeSections`: omit number attribute when unnumbered class
911 is present (#6339). Previously the attribute was included but given
912 an empty value, and this caused the table of contents creation
913 functions in Text.Pandoc.Writers.Shared to think these items had
914 numbers, which meant that they were included in the TOC even if the
915 `unlisted` class was used.
916 + Deprecate `underlineSpan` in Shared in favor of
917 `Text.Pandoc.Builder.underline` (Vaibhav Sagar).
918 + `renderTags'`: use self-closing tag for col element (#6295).
920 * Text.Pandoc.UUID: Fix `getRandomUUID`, which previously would
921 return the same value twice in a row. Make `getRandomUUID`
922 polymorphic in PandocMonad. Remove `getUUID` (#6228, Joseph C. Sible).
924 * Text.Pandoc.Class: Generalize `PandocIO` functions to `MonadIO`.
926 * Fixed Katex standalone script (#6399, Lucas Escot).
927 Global macros are now persistent when using the HTML Writer with the
928 `--katex` option.
930 * Lua subsystem (Albert Krewinkel):
932 + Use new type PandocLua for all pandoc Lua operations (API change).
933 The new type `PandocLua` is an instance of the `PandocMonad` typeclass
934 and can thus be used in a way similar to `PandocIO`.
935 + Use PandocError for exceptions in Lua subsystem (API change).
936 The PandocError type is used throughout the Lua subsystem. All Lua
937 functions throw an exception of this type if an error occurs. The
938 `LuaException` type is removed and no longer exported from
939 `Text.Pandoc.Lua`. In its place, a new constructor `PandocLuaError`
940 is added to PandocError.
942 * Lua filters: improve error messages for failing filters (#6332,
943 Albert Krewinkel). Print the Lua error properly instead of
944 displaying their `show` string.
946 * Use latest skylighting. This fixes a bug with lua multiline
947 comments (and may improve handling of other syntaxes as well).
948 IT also adds `aria-hidden="true"` to the empty a elements, which
949 helps people who use screen readers.
951 * Use latest texmath.
953 * Require latest doctemplates 0.8.2.
954 This adds support for template pipes `first`, `rest`,
955 `last`, `allbutlast`.
957 * Revert 0e48a02 and dependency on base-noprelude, which hasn't
958 been updated for ghc 8.10 (see #6187).
960 * Dependency adjustments:
962 + Allow haddock-library 1.9.x.
963 + Allow hslua 1.1 (#6243, Felix Yan).
964 + Allow base64-bytestring 1.1.
965 + Use latest jira-wiki-markup.
966 + Allow http-client 0.7.
967 + Allow tasty 1.3.x.
968 + Allow aeson 1.5 (#6400, Felix Yan).
969 + Remove unused dependency `vector` (#6462, Laurent P. René de Cotret).
970 + Bump QuickCheck upper bound.
972 * Significant code cleanup and simplification (Joseph C. Sible, #6223,
973 #6209, #6225, #6229, #6226, #6340).
975 * Remove unnecessary hlint ignores (#6341, Joseph C. Sible).
977 * Remove obsolete RelaxedPolyRec extension (#6487, Nikolay Yakimov).
979 * trypandoc improvements (Mike Tzou):
981 + Add standalone option to the command text (#6210).
982 + Update third party libraries.
984 * MANUAL.txt:
986 + Clarify template partial naming (#6476, Mauro Bieg).
987 + Describe `jira` as "Jira/Confluence wiki markup" (#6351, Albert
988 Krewinkel). In the past, Jira's wiki markup was also used by -- and
989 could be imported into -- Atlassian Confluence.
990 + Add link to print-css.rocks (#6272, Mauro Bieg).
991 + Clarify pipe table column width adjustment (#6254).
992 + Fix ATX header syntax.
993 + Fix misleading note about image size conversions (#6353).
994 + Update links to reveal.js documentation (#6386, Salim B).
995 + Separate adjacent verbatim code blocks (#6307, tom-audm).
997 * org.md:
999 + Document behavior of `smart` extension (#4387, Albert Krewinkel).
1000 + Describe all supported export options in detail.
1002 * lua-filters.md:
1004 + Fix description of BulletList Lua type (Levi Gruspe).
1005 + Use pandoc.system module in TikZ example (Albert
1006 Krewinkel). Showcase temporary directory handling with
1007 `with_temporary_directory` and `with_working_directory`.
1009 * INSTALL.md: fix FreeBSD port link (#6422, Mo).
1010 The FreeBSD port was renamed from pandoc to hs-pandoc in 2010.
1011 The old pandoc port is still at version 1.5.1.1
1013 * Propagate `(DY)LD_LIBRARY_PATH` in tests (#6376, Lila).
1015 * Bump `cabal-version` to 2.2 (#6377).
1017 * Make it possible to compile using Stack on NixOS (#6439, Mathieu
1018 Boespflug).
1020 * CI action to check for commit message length (Nikolay Yakimov, #6398).
1023## pandoc 2.9.2.1 (2020-03-23)
1025 * Markdown reader: Fix table alignment when heading begins with t (#6153).
1026 Due to a typo (`t` instead of `\t`) we were center aligning column
1027 headings that begin with a lowercase `t`!
1029 * Text.Pandoc.Readers.Roff:
1031 + Fix parsing of `\.` in man/ms readers (#6175).
1032 Previously due to a typo it was being parsed as `` ` ``.
1033 + Fix parsing of `\'` in man/ms readers (#6175). It was being parsed
1034 as a backtick.
1036 * Jira reader (Albert Krewinkel):
1038 + Fix parsing of tables without preceding blankline (#6198).
1039 A bug was fixed which caused faulty parsing if a table was not
1040 preceded by a newline and the first table cell had no space
1041 after the initial `|` characters.
1042 + Fix parsing of strikeout, emphasis (#6196). A bug was fixed which
1043 caused non-emphasized text containing digits and/or non-special
1044 symbols (like dots) to sometimes be parsed incorrectly.
1045 + Support colored inline text, indented lists (#6183, #6184).
1047 * Ms writer:
1049 + Fix definition lists so indent even when paragraph indent is
1050 set to 0 (as is the default). Also ensure indent for display math
1051 that falls back to TeX.
1052 + Use `.QS/.QE` instead of `.RS/.RE` for block quotes.
1054 * EPUB writer: fix regression on detection of front/back/bodymatter
1055 (#6170). This bug caused sections with epub:type `dedication` to be
1056 misplaced in bodymatter instead of frontmatter as specified
1057 in the manual. The same problem would affect other epub:types.
1058 The pattern matching needed to be changed with the use of
1059 `makeSection`.
1061 * AsciiDoc writer: remove redundant `otherwise` guard in
1062 `inlineToAsciiDoc` (#6146, Ryan Scott).
1064 * Text.Pandoc.Class:
1066 + Fix missing import when data files are not embedded (Albert Krewinkel).
1067 + Subdivide Text.Pandoc.Class into small unexported modules
1068 and ensure that all functions have Haddock documentation (#6106,
1069 Albert Krewinkel).
1070 + Finer grained imports of Text.Pandoc.Class submodules (#6203, Albert
1071 Krewinkel).
1073 * Text.Pandoc.XML: Add to list of HTML5 attributes:
1074 `allow`, `autocapitalize`, `decoding`, `enterkeyhint`,
1075 `imagesizes`, `imagesrcset`, `loading`.
1077 * Use implicit Prelude (#6187, Albert Krewinkel).
1078 The previous behavior was introduced as a fix for #4464. It seems that
1079 this change alone did not fix the issue, and `stack ghci` and `cabal
1080 repl` only work with GHC 8.4.1 or newer, as no custom Prelude is loaded
1081 for these versions. Given this, it seems cleaner to revert to the
1082 implicit Prelude.
1084 * Always use custom prelude (#6187, Albert Krewinkel).
1085 Previously, the custom prelude was used only with older GHC versions, as
1086 a workaround for problems with ghci. The ghci problems are resolved by
1087 replacing package `base` with `base-noprelude`, allowing for consistent
1088 use of the custom prelude across all GHC versions.
1090 * Remove outdated checks for no longer supported base versions
1091 (Albert Krewinkel).
1093 * PDF via wkhtmltopdf: put user-specified options last (#6171).
1094 Certain options (e.g. `cover`) need to come after flags on
1095 the command line.
1097 * Text.Pandoc.App: set resource path at the beginning so it can affect
1098 things like include-in-header (#5982).
1100 * Change macOS release candidate CI process so that notarized
1101 packages can be produced (#6169).
1103 * Make MANUAL more explicit about nonbreaking space handling by
1104 `all_symbols_escapable` (#6154, Fabien Schurter).
1106 * trypandoc (Mike Tzou):
1108 + Add checkbox for standalone option (#6189).
1109 + Use strict mode for JavaScript code (#6188).
1110 + Fetch resources over https (#6188).
1111 + Remove unnecessary attributes on style, script elements (#6188).
1113 * Use details tag to make GitHub releases changelog collapsible.
1115 * Update filter code in doc/filters.md so it works with latest pandoc
1116 (#6185).
1118 * linux/Dockerfile: upgrade to alpine 3.11 (#6180, Albert Krewinkel).
1119 This is used to build the static linux binaries.
1122## pandoc 2.9.2 (2020-02-15)
1124 * Add `csv` as an input format (#6100). The CSV table is converted into a
1125 pandoc simple table. A new module Text.Pandoc.Readers.CSV
1126 exports `readCSV` [API change].
1128 * Introduce new format variants for JATS writer (#6014, Albert Krewinkel):
1130 - `jats_archiving` for the "Archiving and Interchange Tag Set",
1131 - `jats_publishing` for the "Journal Publishing Tag Set", and
1132 - `jats_articleauthoring` for the "Article Authoring Tag Set."
1134 The `jats` output format is now an alias for `jats_archiving`.
1135 The module Text.Pandoc.Writers.JATS now exports
1136 `writeJatsArchiving`, `writeJatsPublishing`, and
1137 `writeJatsArticleAuthoring`, as well as the legacy
1138 `writeJATS` [API change].
1140 * `--defaults`: Support `bibliography` and `csl` fields.
1141 Move `addMeta` from Text.Pandoc.App.CommandLineOptions to
1142 Text.Pandoc.App.Opt (internal change).
1144 * Add timing info for filters in `--verbose` mode (#6112).
1145 When verbose mode is specified (verbosity == INFO), print a
1146 notice when running a filter and when a filter completes (including
1147 timing).
1149 * LaTeX reader:
1151 + Allow `&` in LaTeX citation keys (#6110).
1152 + Improve caption and label parsing.
1153 + Don't emit empty Span elements for labels.
1154 + Put tables with labels in a surrounding Div.
1155 + Resolve `\ref` to table numbers (#6137).
1156 + Skip comments in more places where this is needed (#6114).
1157 + Allow beamer overlays for all commands in all raw tex (#6043).
1158 This affects parsing of raw tex in LaTeX and in Markdown and
1159 other formats.
1160 + Improve parsing of raw environments (#6034). If parsing fails
1161 in a raw environment (e.g. due to special characters like unescaped
1162 `_`), try again as a verbatim environment, which is less sensitive to
1163 special characters. This allows us to capture special environments
1164 that change catcodes as raw tex when `-f latex+raw_tex` is used.
1166 * RST reader:
1168 + Add highlight directive (#6140, Lucas Escot).
1170 * MediaWiki writer:
1172 + Prevent triple `[[[` which confuses MediaWiki (#6119).
1174 * HTML reader:
1176 + Don't parse `data-id` as `id` attribute. And similarly don't
1177 parse any `data-X` as `X` when `X` is a valid HTML attribute.
1179 * Org reader:
1181 + Simplify parsing of sub- and superscripts (#6127, Albert Krewinkel).
1182 Speeds up parsing of single-word, markup-less sub- and superscripts.
1184 * LaTeX writer:
1186 + Group biblatex citations even with prefix and suffix (#5849, Ethan
1187 Riley). Previously biblatex citations were only grouped if there
1188 was no prefix. This patch allows them to be grouped in subgroups split
1189 by prefixes and suffixes, which allows better citation sorting.
1190 + Fix regression in handling of columns in beamer slides (#6033).
1191 Columns in title slides were causing problems with
1192 slide division.
1193 + Fix duplicate frame classes in LaTeX/Beamer output (#6107).
1195 * HTML writer:
1197 + Fix duplicate attributes on headings (#6062), regression from 2.7.x.
1198 + Fix `--number-offset` with HTML TOC. Eventually it would be worth
1199 adding a parameter to `makeSections` so this could be done at that
1200 level; then it would also affect other writers that construct
1201 TOC manually.
1202 + reveal.js: restore old behavior for 2D nesting (#6032).
1203 The fix to #6030 actually changed behavior, so that the
1204 2D nesting occurred at slide level N-1 and N, instead of
1205 at the top-level section. This commit restores the v2.7.3 behavior.
1206 If there are more than 2 levels, the top level is horizontal
1207 and the rest are collapsed to vertical.
1208 + reveal.js: ensure that pauses work even in title slides (#5819).
1210 * Markdown writer:
1212 + Fix regression: spurious dots in markdown_mmd metadata output (#6133).
1214 * Docx writer:
1216 + Fix regression with Compact style on tight lists (#6072).
1217 Starting in 2.8, the docx writer no longer distinguishes between tight
1218 and loose lists, since the Compact style is omitted. This is a
1219 side-effect of the fix to #5670, as explained in the changelog. This
1220 patch fixes the problem by extending the exception currently offered to
1221 Plain blocks inside tables to Plain blocks inside list items.
1223 * Jira writer:
1225 + Fix output of table headers (Albert Krewinkel, #6035).
1227 * Add Text.Pandoc.Image with unexported svgToPng.
1229 * Text.Pandoc.XML: Export `html5Attributes`, `html4Attributes`,
1230 `rdfaAttributes` (formerly unexported in Text.Pandoc.Writers.HTML).
1231 [API change]
1233 * Text.Pandoc.Shared: Export a new function `findM` (#6125,
1234 Joseph C. Sible).
1236 * Text.Pandoc.Logging: Add `RunningFilter`, `FilterCompleted`
1237 constructors to LogMessage [API change].
1239 * Text.Pandoc.CSV: fix bug in CSV parser; previously an extra blank record
1240 would sometimes be inserted at the end.
1242 * LaTeX template: add space option to xeCJK with PassOptionsToPackage
1243 (#6002). Otherwise we can get a clash with documentclasses that
1244 already load the package.
1246 * Lua filters:
1248 + Allow filtering of element lists (#6038, Albert Krewinkel). Lists of
1249 Inline and Block elements can now be filtered via `Inlines` and
1250 `Blocks` functions, respectively. This is helpful if a filter
1251 conversion depends on the order of elements rather than a single
1252 element. For example, the following filter can be used to remove all
1253 spaces before a citation:
1255 function isSpaceBeforeCite (spc, cite)
1256 return spc and spc.t == 'Space'
1257 and cite and cite.t == 'Cite'
1258 end
1260 function Inlines (inlines)
1261 for i = #inlines-1,1,-1 do
1262 if isSpaceBeforeCite(inlines[i], inlines[i+1]) then
1263 inlines:remove(i)
1264 end
1265 end
1266 return inlines
1267 end
1269 + Add methods `insert`, `remove`, and `sort` to pandoc.List
1270 (Albert Krewinkel). Example of use:
1272 local numbers = pandoc.List {2, 3, 1}
1273 numbers:sort() -- numbers is now {1, 2, 3}
1274 + Make `pandoc.List` a callable constructor (Albert Krewinkel).
1275 It is now possible to construct a new List via
1276 `pandoc.List()` instead of `pandoc.List:new()`.
1277 + Add tests for pandoc.List module (Albert Krewinkel).
1279 * Text.Pandoc.App.CommandLineOptions: Change `setVariable` to use `Text`
1280 instead of `String`. This avoids some unnecessary unpacking.
1282 * Use versioned directory for windows release zipfile.
1283 Also remove old `make-windows-installer.bat`, superseded by GitHub
1284 actions workflow, and modify `pandoc.wxs` for new paths.
1286 * Extensive code cleanup (#6141, #6128, #6129, #6130, #6123,
1287 #6105, 6102, #6117, #6124, #6115, #6116, #6111, Joseph C. Sible).
1289 * Fix hlint warnings (Albert Krewinkel).
1291 * Use latest doclayout, doctemplates (#6031). The new version of
1292 doclayout fixes a memory leak that affected `--include-in-header` with
1293 large files (and possibly other cases involving extremely long lines).
1295 * Use latest texmath.
1297 * Use latest skylighting and fix test suite (#6086).
1299 * sample.lua: Fix typo in descriptive comments (#6136, Caleb Maclennan).
1300 Fix typo in error message (#6135).
1302 * Add Docker and GH Actions instructions/links to INSTALL.md.
1304 * Update filter documentation (#6065). Improve cabal v2 instructions.
1305 Remove example using pandoc API directly (we have other
1306 docs for that and it was outdated).
1308 * Lua filter docs:
1310 + Cross-link constructors and types (Albert Krewinkel).
1311 Thanks to @bpj for the idea.
1312 + Sort pandoc.List methods alphabetically (Albert Krewinkel).
1313 + Unify, fix anchors and internal links (#6061, Albert Krewinkel).
1314 Links and anchors now follow consistent conventions, like
1315 lowercase-only anchor names. This breaks some links to specific
1316 sections in the document, but will make it much easier to link
1317 documentation in the future.
1318 + Clarify filter function execution order (#6059, Albert Krewinkel).
1320 * In docs, update URLs and use `https:` wherever possible (#6090,
1321 Salim B).
1323## pandoc 2.9.1.1 (2020-01-05)
1325 * Markdown reader:
1327 + Fix parsing bug affected indented code after raw HTML (#6009, #5360).
1329 * LaTeX writer:
1331 + Fix regression in beamer slide structure with certain slide levels
1332 (#6030).
1333 + Allow framebreaks for beamer's TOC (Heiko Schlittermann, #6012)
1334 + Properly handle unnumbered headings level 4+ (#6018).
1335 Previously the `\paragraph` command was used instead of
1336 `\paragraph*` for unnumbered level 4 headings.
1338 * HTML writer:
1340 + Fix revealjs slide structure regression with certain slide levels
1341 (#6030).
1342 + Add newlines to make slide show output more readable.
1344 * Org writer:
1346 + Remove extra spaces from table cells (Albert Krewinkel, #6024).
1348 * JATS template: Update JATS dtd (Arfon Smith, #6020). Use the archiving
1349 and interchange DTD rather than the more restrictive journal publishing
1350 DTD (which doesn't permit ext-link as a valid child).
1352 * Text.Pandoc.PDF: Fix `runTeXProgram` so that the input source is always
1353 overwritten (#6027). Previously it wasn't overridden if the file already
1354 existed, which led to bad results on subsequent runs when
1355 `pdf-engine-opt=-output-directory=` was used to specify an explicit temp
1356 dir.
1358 * Text.Pandoc.BCP47: Change `getLang` to handle block-level contents
1359 (#6008). Some readers (e.g. RST) will populate the `lang` metadata field
1360 with block-level content. `getLang` has been modified to handle this.
1361 Previously in these cases the LaTeX writer would not properly set the
1362 "main language" of the document.
1364 * Fix `test/tables.org` (Albert Krewinkel).
1366 * Use HTTPS in copyright message (Felix Yan, #6010)
1369## pandoc 2.9.1 (2019-12-23)
1371 * Add Jira reader (Albert Krewinkel, #5556).
1373 * Jira writer: use jira-wiki-markup renderer (Albert Krewinkel,
1374 #5926). The following improvements are included in this change:
1376 + non-jira raw blocks are fully discarded instead of showing
1377 as blank lines;
1378 + table cells can contain multiple blocks;
1379 + unnecessary blank lines are removed from the output;
1380 + markup chars within words are properly surrounded by
1381 braces;
1382 + preserving soft linebreaks via `--wrap=preserve` is
1383 supported.
1385 Note that backslashes are rendered as HTML entities, as there
1386 appears no alternative to produce a plain backslash if it is
1387 followed by markup. This may cause problems when used with
1388 confluence, where rendering seems to fail in this case.
1390 * Fix regression with `--number-sections`. Starting with 2.8,
1391 `--number-sections` also had the effect of `--section-divs`,
1392 even if `--section-divs` was not specified.
1394 * Improved table of contents generation in markdown, RTF,
1395 commonmark, better handling cases where section headings are
1396 enclosed in divs.
1398 * Ensure that later default file values for `variable` replace
1399 earlier ones (5988).
1401 * HTML reader: Add `nav` to list of block-level tags.
1403 * Org reader (Albert Krewinkel):
1405 + Wrap named table in Div, using name as id (#5984).
1406 Tables which are given a name via `#+NAME:` or `#+LABEL:`
1407 are wrapped in an additional Div, with the name set as the
1408 Div's ID.
1409 + Report parsing errors properly.
1410 + Fix parsing problem for colons in headline (#5993).
1412 * Text.Pandoc.PDF: Ensure UTF8 when printing source in
1413 `--verbose` mode, avoiding an error on platforms that
1414 default to something other than UTF-8 (#5997).
1416 * Text.Pandoc.Templates: Strip directory before trying to find
1417 partial in data files (#5987).
1419 * Text.Pandoc.Shared: Improve `makeSections` so we don't get
1420 doubled "number" attributes in EPUB output (or anywhere
1421 else) (#5986).
1423 * Added tests for `--toc` and `--section-divs`.
1425 * Text.Pandoc.MIME: Added glsl MIME type for WebGL maps (#6000,
1426 Jared Lander).
1428 * MANUAL: A bit clearer explanation for `--base-header-level`.
1429 We now say exactly how to translate between the deprecated
1430 `--base-header-level` and `--shift-heading-level-by`.
1432 * lua-filters.md:
1434 + Remove spurious dot in title (#5996, Mauro Bieg).
1435 + Replace metadata example with image centering (#6004,
1436 Albert Krewinkel). Thanks to @efx for proposing this filter.
1439## pandoc 2.9 (2019-12-11)
1441 * Text.Pandoc.Templates [API change]
1443 + Add Monad wrappers `WithDefaultPartials` and `WithPartials`.
1444 Wrapping these around an instance of `PandocMonad` gives
1445 us different instances of `TemplateMonad`, with different
1446 search behavior in retrieving partials.
1447 To compile a template and limit partial search to pandoc's
1448 data files, use `runWithDefaultPartials (compileTemplate ...)`.
1449 To compile a template and allow partials to be found locally
1450 (either on the file system or via HTTP, in the event that
1451 the main template has an absolute URL), ue
1452 `runWithPartials (compileTemplate ...)`.
1453 + Export `getTemplate`, which seeks a template locally,
1454 or via HTTP if the template has an absolute URL, falling
1455 back to the data files if not found.
1456 + Export `compileDefaultTemplate` -- does `getDefaultTemplate`
1457 and compiles the result, raising an error on failure.
1459 * Text.Pandoc.Class [API change]
1461 + Remove `TemplateMonad` instances for `PandocIO` and `PandocPure`.
1462 These were too limiting and caused a bug whereby a local
1463 partial could be used even when the default template was requested.
1464 We now rely on instances provided in the Templates module.
1466 * Text.Pandoc.App.OutputSettings: Simplify template retrieval code.
1468 * ConTeXt template: Adjust to title formatting (#5949, Denis Maier).
1469 Add `\setupinterlinespace` to `title`, `subtitle`, `date` and `author`
1470 elements: otherwise longer titles that run over multiple lines will look
1471 squashed as `\tfd` etc. won't adapt the line spacing to the font size.
1473 * reveal.js template: Add title-slide-attributes variable (#5981,
1474 Frederik Elwert).
1476 * More informative JSON parse error (#5973).
1478 * Use external emojis package (forked from pandoc). Removed emoji data
1479 in Text.Pandoc.Emoji.
1481 * Fix regression in `makeSections` (#5965).
1482 Previously `hierarchicalize` (the ancestor of `makeSections`) would put
1483 header attributes on the containing Div. In 2.8 this behavior changed,
1484 which broke some tools depending on pandoc. Here we roll back this change,
1485 so that attributes again migrate from the header to the containing Div when
1486 `makeSections` is run. Note that attributes are retained on the header as
1487 well (unlike before) -- with the exception of the `id` attribute, which of
1488 course cannot be duplicated.
1490 * Fix `--toc-depth` regression in 2.8 (#5967).
1492 * Use doctemplates 0.8. Rename template 'filters' as 'pipes'
1493 to avoid confusion with the other notion of filter used by pandoc.
1495 * Fix README.md so that relative links from manual become absolute.
1496 Previously they'd be broken links when viewed on GitHub or Hackage.
1497 So we add the base URL for the pandoc manual.
1499 * Document display math syntax in manual.
1501## pandoc 2.8.1 (2019-12-05)
1503 * Add `ascii_identifiers` as a supported extension for `markdown`.
1504 This fixes a regression in 2.8.
1506 * Fix regression with behavior of `--variable` (#5962).
1507 Previously `-Vfoo=1 -Vfoo=2` would produce a list value for foo;
1508 with 2.8 it produced just `2`. This commit restores the earlier
1509 behavior.
1511 * Roll back part of of `--shift-heading-level-by` change (#5957).
1512 With positive heading shifts, starting in 2.8 this option
1513 caused metadata titles to be removed and changed to regular
1514 headings. This behavior is incompatible with the old
1515 behavior of `--base-header-level` and breaks old workflows,
1516 so we have rolled back the change. Note that there is now an
1517 asymmetry in positive and negative heading level shifts:
1518 With positive shifts, the metadata title stays the same and
1519 does not get changed to a heading in the body, while with
1520 negative shifts, a heading can be converted into the
1521 metadata title.
1523 * Text.Pandoc.Shared: Fix `makeSections` so it doesn't turn
1524 column Divs into sections.
1526 * HTML writer: add task-list class to ul if all elements are
1527 task list items. This will allow styling unordered task
1528 lists in a way that omits the bullet.
1530 * HTML-based templates: Add CSS to suppress bullet on unordered task lists.
1532 * ConTeXt template: Fix `\startcslreferences` and use ConTeXt syntax
1533 conventions (#5945, Denis Maier). The old version had a too large
1534 a skip at the beginning of the reference list.
1536 * LaTeX template: keep the `\author{}` command even if author is not
1537 specified (#5961, Yihui Xie). Avoids a LaTeX warning.
1539 * Generate Emoji module with TH.
1541 + Add Text.Pandoc.Emoji.TH.
1542 + Replace long literal list in Text.Pandoc.Emoji with one-liner
1543 generating it from `emoji.json` using TH.
1544 + Add Makefile target to download `emoji.json`.
1545 + Remove `tools/emoji.hs`.
1547 * Increase GC allocation space for compilation in cabal.project.
1549 * Clean up manual on PDF generation backend options (#5940).
1551 * Update release checklist to include code signing step and update
1552 Windows release-candidate builds (#5950).
1555## pandoc 2.8.0.1 (2019-11-26)
1557 * List `pdf` in `--list-output-formats`.
1558 * EPUB writer: Fix regression with `--css` (#5937). In 2.8 `--css`
1559 would not have an effect on EPUB output.
1560 * RST writer: Use grid tables for one-column tables, since
1561 simple tables clash with heading syntax in this case (#5936).
1562 * Add unexported module Text.Pandoc.Readers.Metadata (see #5914).
1563 * Use doctemplates 0.7.2, which adds the `nowrap` filter to
1564 templates.
1565 * Update default man template using `nowrap` for .TH heading (#5929).
1566 * HTML templates: Add support for `toc-title` variable (#5930,
1567 Alexandre Franke).
1568 * Remove `grffile` (LaTeX package) requirement in MANUAL.txt
1569 (#5927, Ian Max Andolina).
1570 * Use skylighting 0.8.3.
1572## pandoc 2.8 (2019-11-22)
1574 * Improvements in templates system (from doctemplates):
1576 + Pandoc templates now support a number of new features that
1577 have been added in doctemplates: notably, `elseif`, `it`,
1578 partials, filters, and syntax to control nesting and reflowing of
1579 text. These changes make pandoc more suitable out of the
1580 box for generating plain-text documents from data in YAML
1581 metadata. It can create enumerated lists and even tabular
1582 structures.
1583 + We now used templates parameterized on doclayout Doc types.
1584 The main impact of this change is better reflowing of
1585 content interpolated into templates. Previously,
1586 interpolated variables were rendered independently and
1587 interpolated as strings, which could lead to overly long
1588 lines. Now the templates interpolated as Doc values which
1589 may include breaking spaces, and reflowing occurs after
1590 template interpolation rather than before.
1591 + Remove code from the LaTeX, Docbook, and JATS writers that
1592 looked in the template for strings to determine whether it
1593 is a book or an article, or whether csquotes is used. This
1594 was always kludgy and unreliable.
1595 + Change template code to use new API for doctemplates.
1597 * Add `--defaults`/`-d` option. This adds the ability to specify
1598 a collection of default values for options in a YAML file. For
1599 example, one might define a set of defaults for letters,
1600 and then do `pandoc -d letter myletter.md -o myletter.pdf`.
1601 See the documentation of this feature in MANUAL.txt.
1603 * Raise error on unsupported extensions (#4338).
1605 * The `--list-extensions[=FORMAT]` option now lists only
1606 extensions that affect the given FORMAT.
1608 * Add `-L` option as shortcut for `--lua-filter`.
1610 * Add `--shift-heading-level-by` option and deprecate
1611 `--base-heading-level` (#5615). The new option does
1612 everything the old one does, but also allows negative shifts.
1613 It also promotes the document metadata (if not null) to a
1614 level-1 heading with a +1 shift, and demotes an initial
1615 level-1 heading to document metadata with a -1 shift. This
1616 supports converting documents that use an initial level-1
1617 heading for the document title.
1619 * Allow `--metadata-file` to be used repeatedly to include
1620 multiple metadata files (Owen McGrath, #5702). Values in
1621 files specified first will be overridden by those in later
1622 files.
1624 * `--ascii` now uses numerical hex character references (#5718).
1626 * Allow PDF output to stdout (#5751). PDF output now behaves like other
1627 binary formats: it will not be output to the terminal, but can be
1628 sent to stdout using either `-o -` or a pipe. The intermediate format
1629 will be determined based on the setting of `--pdf-engine`.
1631 * Make some writers sensitive to 'unlisted' class on headings (#1762).
1632 If this is present on a heading with the 'unnumbered' class,
1633 the heading won't appear in the TOC. This class has no
1634 effect if 'unnumbered' is not also specified. This affects HTML-based
1635 writers (including slide shows and EPUB), LateX (including beamer), RTF,
1636 and PowerPoint. Other writers do not yet support `unlisted`.
1638 * Fix `gfm_auto_identifiers` behavior with emojis (#5813). Note that
1639 we also now use emoji names for emojis when `ascii_identifiers`
1640 is enabled.
1642 * When `--ipynb-output` is used with the default "best" format, strip
1643 ANSI escape codes for non-ipynb output (#5633). These cause problems
1644 in many formats, including LaTeX.
1646 * Don't look for template files remotely for remote input (#5579).
1647 Previously pandoc would look for the template at a remote URL when a
1648 URL was used for the input file, instead of taking it from the
1649 data directory.
1651 * Allow combining `-Vheader-includes` and `--include-in-header` (#5904).
1652 Previously `header-includes` set as a variable would be
1653 clobbered by material included using `--include-in-header`.
1655 * Change merge behavior for metadata. Previously, if a document
1656 contained two YAML metadata blocks that set the same field, the
1657 conflict would be resolved in favor of the first. Now it is resolved
1658 in favor of the second (due to a change in pandoc-types).
1659 This makes the behavior more uniform with other things in pandoc
1660 (such as reference links and `--metadata-file`).
1662 * Don't add a newline to fragment output if there's already one.
1664 * Change exit codes and document in MANUAL.txt:
1666 + `PandocAppError` was 1, is now 4
1667 + `PandocOptionError` was 2, is now 6
1668 + `PandocMakePDFError` was 65, is now 66
1670 * Switch to new pandoc-types and use Text instead of String [API change].
1671 (Christian Despres, #5884).
1673 * HTML reader:
1675 + Better handling of `<q>` with cite attribute (#5798, Ole Martin Ruud).
1676 If a `<q>` tag has a `cite` attribute, we interpret it as a Quoted
1677 element with an inner Span.
1678 + Add support for HTML `<samp>` element (#5792, Amogh Rathore).
1679 The `<samp>` element is parsed as Code with class `sample`.
1680 + Add support for HTML `<var>` element (#5799, Amogh Rathore).
1681 The `<var>` element is parsed as Code with class `variable`.
1682 + Add support for `<mark>` elements (Florian B, #5797). Parse
1683 `<mark>` elements from HTML as Spans with class `mark`.
1684 + Add support for `<kbd>` elements, parsing them as Span with class
1685 `kbd` (Daniele D'Orazio, #5796).
1686 + Add support for `<dfn>`, parsing this as a Span with class `dfn`
1687 (#5882, Florian Beeres).
1689 * Markdown reader:
1691 + Headers: don't parse content over newline boundary (#5714).
1692 + Handle inline code more eagerly within lists (Brian Leung, #5627).
1693 + Removed some needless lookaheads.
1694 + Don't parse footnote body unless extension enabled.
1695 + Fix small super/subscript issue (#5878). Superscripts and subscripts
1696 cannot contain spaces, but newlines were previously allowed
1697 (unintentionally). This led to bad interactions in some cases
1698 with footnotes. With this change newlines are also not allowed inside
1699 super/subscripts.
1700 + Use `take1WhileP` for `str`, table row. This yields a small but
1701 measurable performance improvement.
1704 * LaTeX reader:
1706 + Fix parsing of optional arguments that contain braced text (#5740).
1707 + Don't try to parse includes if `raw_tex` is set (#5673).
1708 When the `raw_tex` extension is set, we just carry through
1709 `\usepackage`, `\input`, etc. verbatim as raw LaTeX.
1710 + Properly handle optional arguments for macros (#5682).
1711 + Fix `\\` in `\parbox` inside a table cell (#5711).
1712 + Improve `withRaw` so it can handle cases where the token string is
1713 modified by a parser (e.g. accent when it only takes part of a Word
1714 token) (#5686). This fixes a bug that caused the ends of
1715 certain documents to be dropped.
1716 + Handle `\passthrough` macro used by latex writer (#5659).
1717 + Support tex `\tt` command (#5654).
1718 + Search for image with list of extensions like latex does, if an
1719 extension is not provided (#4933).
1720 + Handle `\looseness` command values better (#4439).
1721 + Add `mbox` and `hbox` handling (Vasily Alferov, #5586).
1722 When `+raw_tex` is enabled, these are passed through literally.
1723 Otherwise, they are handled in a way that emulates LaTeX's behavior.
1724 + Properly handle `\providecommand` and `\provideenvironment` (#5635).
1725 They are now ignored if the corresponding command or environment
1726 is already defined.
1727 + Support epigraph command in LaTeX Reader (oquechy, #3523).
1728 + Ensure that expanded macros in raw LaTeX end with a space
1729 if the original did (#4442).
1730 + Treat `ly` environment from lilypond as verbatim (Urs Liska, #5671).
1731 + Add `tikzcd` to list of special environments (Eigil Rischel).
1732 This allows it to be processed by filters, in the same way that
1733 one can do for `tikzpicture`.
1735 * Roff reader:
1737 + Better support for `while`.
1738 + More improvements in parsing conditionals.
1739 + Fix problem parsing comments before macro.
1740 + Improve handling of groups.
1741 + Better parsing of groups (#5410). We now allow groups
1742 where the closing `\\}` isn't at the beginning of a line.
1744 * RST reader:
1746 + Keep `name` property in `imgAttr` (Brian Leung, #5619).
1747 + Fixed parsing of indented blocks (#5753). We were requiring
1748 consistent indentation, but this isn't required by RST.
1749 + Use title, not admonition-title, for admonition title.
1750 This puts RST reader into alignment with docbook reader.
1751 + Don't strip final underscore from absolute URI (#5763).
1752 + Avoid spurious warning when resolving links to internal anchors
1753 ending with `_` (#5763).
1755 * Org reader:
1757 + Accept `ATTR_LATEX` in block attributes (Albert Krewinkel, #5648).
1758 Attributes for LaTeX output are accepted as valid block attributes;
1759 however, their values are ignored.
1760 + Modify handling of example blocks (Brian Leung, #5717).
1761 + Allow the `-i` switch to ignore leading spaces (Brian Leung).
1762 + Handle awkwardly-aligned code blocks within lists (Brian Leung).
1763 Code blocks in Org lists must have their `#+BEGIN_` aligned in a
1764 reasonable way, but their other components can be
1765 positioned otherwise.
1766 + Fix parsing of empty comment lines (#5856, Albert Krewinkel).
1767 Comment lines in Org-mode can be completely empty.
1769 * Muse reader (Alexander Krotov):
1771 + Add RTL support (#5551).
1772 + Do not allow closing asterisks to be followed by `*`.
1773 + Do not split series of asterisks into symbols and emphasis (#5821).
1774 + Do not terminate emphasis on `*` not followed by space.
1776 * DokuWiki reader:
1778 + Parse markup inside monospace ('') (#5916, Alexander Krotov).
1780 * Docx reader:
1782 + Move style-parsing-specific code to a new unexported module,
1783 Text.Pandoc.Readers.Docx.Parse.Styles (Nikolay Yakimov).
1784 + Move StyleMap to docx writer (Nikolay Yakimov).
1785 + Only use LTR when it is overriding BiDi setting (#5723, Jesse
1786 Rosenthal). The left-to-right direction setting in docx is used
1787 in the spec only for overriding an explicit right-to-left setting.
1788 We only process it when it happens in a paragraph set with BiDi.
1789 This is especially important for docs exported from Google Docs,
1790 which explicitly (and unnecessarily) set `rtl=0` for every paragraph.
1791 + Fix list number resumption for sublists (#4324).
1792 The first list item of a sublist should not resume numbering
1793 from the number of the last sublist item of the same level,
1794 if that sublist was a sublist of a different list item.
1796 * Docbook reader:
1798 + Richer parse for admonitions (Michael Peyton Jones, #1234).
1799 Instead of parsing admonitions as blockquotes, we now parse
1800 them as Divs with an appropriate class. We also handle titles
1801 for admonitions as a nested Div with the "title" class.
1802 + Fix nesting of chapters and sections (#5864, Florian Klink,
1803 Félix Baylac-Jacqué).
1804 + Fix bug with entities in mathphrase element (#5885).
1806 * MediaWiki reader:
1808 + Skip optional `{{table}}` template (#5757).
1810 * LaTeX reader:
1812 + Fix dollar-math parsing to ensure that space is left between a
1813 control sequence and a following letter (#5836).
1814 + In `untokenize`, ensure space between control sequence
1815 and following letter (#5836).
1816 + Don't omit macro definitions defined in the preamble.
1817 These were formerly omitted (though they still affected macro
1818 resolution if `latex_macros` was set). Now they are included in
1819 the document body.
1820 + Parse macro definitions as raw LaTeX when `latex_macros` is
1821 disabled. (When `latex_macros` is enabled, we omit them, since
1822 pandoc is applying the macros itself.)
1823 + Fix a hang/memory leak in certain circumstances (#5845).
1824 + Text.Pandoc.Readers.LaTeX.Parsing: add `[Tok]` parameter to
1825 `rawLaTeXParser`. This allows us to repeat retokenizing
1826 unnecessarily in e.g. `rawLaTeXBlock`.
1827 + Add KOMA-Script metadata commands (#5910, Andrew Dunning).
1828 Add all titling commands to existing definition for `\dedication`.
1829 + Parse `\micro` siunitx unit command (#5921, Jose Luis Duran).
1831 * Markdown writer:
1833 + Ensure proper nesting when we have long ordered list markers (#5705).
1834 + Make `plain` output plainer (#5741). Previously we used the following
1835 Project Gutenberg conventions for plain output: extra space before and
1836 after level 1 and 2 headings, all-caps for strong emphasis,
1837 underscores surrounding regular emphasis. Now these
1838 conventions are used only when the `gutenberg` extension is
1839 enabled. By default, Strong and Emph are rendered without
1840 special formatting, and headings are rendered without
1841 special formatting, and with only one blank line following.
1842 To restore the former behavior, use `-t plain+gutenberg`.
1843 + Prefer using raw_attribute when enabled (#4311).
1844 The `raw_attribute` will be used to mark raw bits, even HTML
1845 and LaTeX, and even when `raw_html` and `raw_tex` are
1846 enabled, as they are by default. To get the old behavior,
1847 disable `raw_attribute` in the writer.
1848 + Prefer `pipe_tables` to raw HTML even when we must
1849 lose width information (#2608, #4497).
1850 + Improve escaping in list items (#5918).
1852 * AsciiDoc writer:
1854 + Don't include `+` in code blocks for regular asciidoc.
1855 This is asciidoctor-specific.
1856 + Handle admonitions (#5690).
1858 * LaTeX writer:
1860 + Add thin space when needed in LaTeX quote ligatures (#5684).
1861 + Use `\hspace{0pt}` for 0-width space U+200B (#5756).
1862 + Use `cslreferences` environment for csl bibliographies.
1863 This allows bibliographies to receive special formatting.
1864 The template now contains definition of this environment (enabled
1865 only when CSL is used). It also defines a `\cslhangindent` length.
1866 This is set to 2em by default when the bibliography style specifies
1867 a hanging indent. To override the length, you can use e.g.
1868 `\setlength{\cslhangindent}{7em}` in header-includes.
1869 See jgm/pandoc-citeproc#410.
1870 + Strip off `{}` around locator for biblatex/natbib output (#5722).
1871 + Fix line breaks at start of paragraph (#3324).
1872 Previously we just omitted these. Now we render them
1873 using `\hfill\break` instead of `\\`. This is a revision
1874 of a PR by @sabine (#5591) who should be credited with the idea.
1875 + We no longer look in the template or header-includes to see if a
1876 book or article documentclass is used, or to see whether the
1877 `csquotes` package is used. To use `csquotes` for LaTeX, set
1878 `csquotes` in your variables or metadata. To specify a book
1879 style, use the `documentclass` variable or
1880 `--top-level-division`.
1881 + Fix horizontal rule (#5801). We change to use 0.5pt rather than
1882 `\linethickness`, which apparently only ever worked "by accident"
1883 and no longer works with recent updates to texlive.
1885 * ConTeXt writer:
1887 + Add option to include source files in ConTeXt PDFs (Tristan
1888 Stenner, #5578). The metadata field or variable
1889 (`includesource`) can be set to attach the source documents
1890 to the resulting PDF.
1891 + Customizable type of PDF/A for the ConTeXt writer (Karl
1892 Pettersson, #5608). The `pdfa` variable may now be set in metadata.
1893 Also updated color profile settings in accordance with ConTeXt wiki,
1894 and made ICC profile and output intent for PDF/A customizable
1895 using `pdfaiccprofile` and `pdfaintent`.
1896 + Unit tests: adjust code property to avoid an irrelevant
1897 failure involving inline code with two consecutive newlines.
1898 + Set `csl-hanging-indent` variable if needed.
1899 + Use special environment for CSL references.
1900 + Use braces, not start/stop, for inline language tags.
1901 This prevents unwanted gobbling of spaces.
1903 * HTML writer:
1905 + Use numeric character references with `--ascii` (#5718).
1906 Previously we used named character references with html5 output.
1907 But these aren't valid XML, and we aim to produce html5 that is
1908 also valid XHTML (polyglot markup). (This is also needed for epub3.)
1909 + Ensure that line numbers in code blocks get id-prefix (#5650).
1910 + Ensure TeX formulas are rendered correctly (Philip Pesca,
1911 #5658). The web service passed in to `--webtex` may render
1912 formulas using inline or display style by default.
1913 Prefixing formulas with the appropriate command ensures
1914 they are rendered correctly.
1915 + Render inline formulas correctly with `--webtex` (Philip
1916 Pesca, #5655). We add `\textstyle` to the beginning of the
1917 formula to ensure it will be rendered in inline style.
1918 + Pass through `aria-` attributes to HTML5 (#5642).
1919 + Render a Quoted element with an inner Span with
1920 `cite` attribute using a `<q>` tag (#5798, Ole Martin Ruud).
1921 + Render a Span with class `mark` using the `<mark>` element
1922 (Florian Beeres, #5797).
1923 + Render Span with class `dfn` using `<dfn>` element
1924 (Florian Beeres, #5882).
1925 + Render Span with class `kbd` using `<kbd>` element (Daniele
1926 D'Orazio, #5796).
1927 + Render Code with class `variable` using `<var>` element
1928 (Amogh Rathore, #5799).
1929 + Render Code with class `sample` using `<samp>` element
1930 (Amogh Rathore, #5799).
1932 * EPUB writer:
1934 + Improve splitting into chapters (#5761), using `makeSection`.
1935 + Avoid issuing warning multiple times when title not set (see #5760).
1936 + Use svg tag wrapper for cover image (#5638). In addition, the
1937 code generating the image has been moved to the template, to make it
1938 more customizable. NOTE: Those who use custom EPUB
1939 templates will need to adjust their templates, adding the
1940 code to generate the cover image. (Previously this was just
1941 inserted into 'body'.)
1942 + Improve toChapters, making it work better if there are Divs
1943 around sections.
1944 + Add support for EPUB2 covers (blmage, #3992).
1945 + Do not override existing "fileN" medias when writing to EPUB format
1946 (blmage, #4206).
1947 + Ensure that `lang` variable is set on all chapters (so that it
1948 will add an `xml:lang` attribute on the `html` element).
1950 * RST writer:
1952 + Removed remnants of `admonition-title`.
1953 + Fix handling of `:align:` on figures and images (#4420).
1954 When the image has the `align-right` (etc.) class, we now use
1955 an `:align:` attribute.
1956 + Improve spacing for tables with no width information (#5899).
1957 If a simple table would be too wide, we use a grid table.
1958 + Fix backslash escaping after strings (Albert Krewinkel, #5906).
1959 The check whether a complex inline element following a string must
1960 be escaped, now depends on the last character of the string instead
1961 of the first.
1962 + Ensure there's a blank line before tables (#5898).
1964 * Dokuwiki writer:
1966 + Handle mixed lists without HTML fallback (#5107).
1968 * XWiki writer:
1970 + Fix multiline table (Zihang Chen, #5683).
1972 * Muse writer:
1974 + Add RTL support (Alexander Krotov, #5551).
1976 * Man writer:
1978 + Suppress non-absolute link URLs (#5770). Absolute URLs are
1979 still printed in parentheses following the link text, but relative
1980 URLs are suppressed (just as internal links starting with '#'
1981 always have been).
1982 + Improved definition list term output. Now we boldface code but
1983 not other things. This matches the most common style in man pages
1984 (particularly option lists).
1986 * Ms writer:
1988 + Use `.LP` instead of `.PP` for line block (#5588).
1989 + Use boldface for definition terms in DefinitionLists.
1991 * JATS writer:
1993 + Do not emit empty `<fn-group>` (Mauro Bieg, #5595).
1994 + Update template to v1.1dtd (#5632, Arfon Smith).
1995 + Update `data/jats.csl` to avoid commas between editor
1996 name-part elements. (#5629)
1997 + Add `abstract` to template (Mauro Bieg).
1999 * TEI writer:
2001 + Don't strip hash from internal links (#5922).
2003 * Jira writer:
2005 + Remove escapeStringForJira for code blocks (Jan-Otto Kröpke).
2006 + Remove extraneous newline after single-line block quotes
2007 (#5858, Albert Krewinkel).
2008 + Improve escaping of special characters, using backslash escapes
2009 instead of HTML entities (#5858, Albert Krewinkel).
2011 * OpenDocument writer:
2013 + Avoid duplicate attributes (#4634). We use the innermost
2014 attribute in nested cases.
2015 + If `native_numbering` extension is set, use native OpenDocument
2016 enumeration for figures and tables (Nils Carlson).
2017 + Place caption before table (#5681, Dmitry Pogodin).
2019 * ODT writer:
2021 + Add a test for MathML formulas in ODT documents (blmage).
2022 + Improve the parsing of frames in ODT documents (blmage).
2024 * Docx writer:
2026 + Make handling of styles more robust in localized versions
2027 of Word (Nikolay Yakimov, #5523, #5052, #5074). We now use
2028 style names, not ids, for assigning semantic meaning, since
2029 the ids can change depending on the locale. Style name
2030 comparisons are case-insensitive, since those are
2031 case-insensitive in Word. Since docx style names can have
2032 spaces in them, and pandoc-markdown classes can't, anywhere
2033 when style name is used as a class name, spaces are
2034 replaced with ASCII dashes `-`. Code styles, i.e. "Source
2035 Code" and "Verbatim Char" now honor style inheritance. Docx
2036 Reader now honours "Compact" style (used in
2037 Pandoc-generated docx). The side-effect is that "Compact"
2038 style no longer shows up in docx+styles output. Styles
2039 inherited from "Compact" will still show up.
2040 + Re-use Readers.Docx.Parse for StyleMap (#5766, Nikolay Yakimov).
2041 + Internal improvements and code simplification (Nikolay Yakimov).
2042 + Preserve built-in styles in DOCX with custom style (Ben Steinberg,
2043 #5670). This change prevents custom styles on divs and spans
2044 from overriding styles on certain elements inside them, like
2045 headings, blockquotes, and links. On those elements, the
2046 "native" style is required for the element to display correctly.
2047 This change also allows nesting of custom styles; in order to do so,
2048 it removes the default "Compact" style applied to Plain blocks,
2049 except when inside a table.
2050 + Add `proofState` to list of elements carried over from
2051 settings.xml in the reference.docx (Krystof Beuermann, #5703).
2052 + Change order of `ilvl` and `numId` in `document.xml` (Agustín
2053 Martín Barbero, #5645). Also, make list para properties go first.
2054 This reordering of properties shouldn't be necessary but
2055 it seems Word Online does not understand the docx correctly otherwise.
2057 * PowerPoint writer:
2059 + Code formatting is now context dependent (Jeroen de Haas, #5573).
2060 This commit alters the way in which the Powerpoint writer treats
2061 inline code and code blocks. Inline code is now formatted at
2062 the same size as the surrounding text. Code blocks are now given
2063 a margin and font size according to their level.
2064 Furthermore this commit allows changing the font with which code is
2065 formatted via the `monofont` option.
2066 + Start numbering at appropriate numbers (Jesse Rosenthal, #5709).
2067 Starting numbers for ordered lists were previously ignored. Now
2068 we specify the number if it is something other than 1.
2070 * Text.Pandoc.Parsing:
2072 + Add `manyChar`, `many1Char`, `manyTillChar`, `many1TillChar`,
2073 `many1Till`, `manyUntil`, `mantyUntilChar`: these are like their
2074 unsuffixed counterparts but pack some or all of their output
2075 (Christian Despres, #5884).
2076 + Add `stateAllowLineBreaks` to `ParserState` [API change].
2077 + Fix inline parsing in grid table cells (#5708).
2078 + Change type of `setLastStrPos` so it takes a `Maybe SourcePos`
2079 rather than a `SourcePos` [API change].
2080 + Make `parseFromString'` and `gridTableWith` and
2081 `gridTableWith'` polymorphic in the parser state,
2082 constraining it with `HasLastStrPosition` [API change].
2083 + `parseFromString'`: reset `stateLastStrPos` to `Nothing` before parse.
2084 + Rename takeWhileP -> take1WhileP and clean it up.
2085 (It doesn't match the empty sequence.)
2087 * Text.Pandoc.PDF:
2089 + For PDFs via HTML, ensure temp file is deleted even if the pdf
2090 program is not found (#5720).
2091 + Better detection of a Cygwin environment (#5451).
2092 + Don't assume tex log file is UTF8-encoded (#5872).
2093 Fall back to latin1 if it can't be read as UTF-8.
2095 * Text.Pandoc.Extensions:
2097 + Export new function `getAllExtensions`, which returns the
2098 extensions that affect a given format (whether enabled by default
2099 or not) [API change].
2100 + Change type of `parseFormatSpec` from
2101 `Either ParseError (String, Extensions -> Extensions)`
2102 to `Either ParseError (String, [Extension], [Extension])`
2103 [API change].
2104 + Add `Ext_gutenberg` constructor to `Extension` [API change].
2105 + Add `Ext_native_numbering` constructor to `Extension` [API change]
2106 (Nils Carlson).
2108 * Text.Pandoc.Readers, Text.Pandoc.Writers:
2110 + Change type of `getReader` and `getWriter` so they return
2111 a value in the PandocMonad instance rather than an Either
2112 [API change]. Exceptions for unknown formats and unsupported
2113 extensions are now raised by these functions.
2115 * Text.Pandoc.App
2117 + Change `optMetadataFile` type from `Maybe FilePath` to `[FilePath]`
2118 (Owen McGrath, #5702) [API change].
2120 * Text.Pandoc.Logging:
2122 + Add `CouldNotDeduceFormat` constructor to `LogMessage` [API change].
2123 Issue this warning when we're falling back to markdown or
2124 html because we don't recognize the extension of the input or
2125 output files.
2126 + Clarify warning for missing title (#5760).
2127 + Add `UnusualConversion` constructor to `LogMessage` [API change]
2128 (Mauro Bieg, #5736). Emit warning on `-f latex -o out.pdf`.
2130 * Lua filters:
2132 + Improve function documentation (Albert Krewkinkel).
2133 + Traverse nested blocks and inlines in correct order (Albert
2134 Krewinkel, #5667). Traversal methods are updated to use the new
2135 Walk module so that sequences with nested Inline (or Block) elements
2136 are traversed in the order in which they appear in the linearized
2137 document.
2138 + New unexported module `Text.Pandoc.Lua.Walk` (Albert Krewinkel).
2139 Lua filters must be able to traverse sequences of AST
2140 elements and to replace elements by splicing sequences back
2141 in their place. Special `Walkable` instances can be used for
2142 this; those are provided in a new module
2143 `Text.Pandoc.Lua.Walk`.
2144 + `Attr` values can now be given as normal Lua tables (Albert
2145 Krewinkel, #5744). This can be used as a convenient alternative
2146 to constructing `Attr` values with `pandoc.Attr`. Identifiers
2147 are taken from the `id` field, classes must be given as
2148 space separated words in the `class` field. All remaining fields
2149 are included as attributes. With this change, the following lines
2150 now create equal elements:
2151 ```
2152 pandoc.Span('test', {id = 'test', class = 'a b', check = 1})
2153 pandoc.Span('test', pandoc.Attr('test', {'a','b'}, {check = 1}))
2154 ```
2155 This also works when using the *attr* setter:
2156 ```
2157 local span = pandoc.Span 'text'
2158 span.attr = {id = 'test', class = 'a b', check = 1}
2159 ```
2160 Furthermore, the *attributes* field of AST elements can now be a
2161 plain key-value table even when using the `attributes` accessor:
2162 ```
2163 local span = pandoc.Span 'test'
2164 span.attributes = {check = 1} -- works as expected now
2165 ```
2166 + Export `make_sections`, remove `hierarchicalize`. Lua filters that
2167 use `hierarchicalize` will need to be rewritten to use
2168 `make_sections`.
2169 + Add a `clone()` method to all AST elements (Albert Krewinkel, #5568).
2170 + Fix Lua function names in pandoc.system (niszet). Change
2171 `get_current_directory` to `get_working_directory` and
2172 `with_temp_directory` to `with_temporary_directory`, to
2173 conform to the manual.
2175 * Text.Pandoc.Error:
2177 + Add constructors `PandocUnknownReaderError`,
2178 `PandocUnknownWriterError`, `PandocUnsupportedExtensionError`.
2179 [API change].
2180 + Better message for `PandocShouldNeverHappenError`.
2181 + Better message for `PandocTemplateError`.
2183 * Text.Pandoc.Emoji:
2185 + Update emoji list (#5666). Done using new `tools/emojis.hs`,
2186 which uses the list from the gem GitHub uses. Future updates
2187 can be done with this tool.
2189 * Text.Pandoc.PDF:
2191 + Pass value of `--dpi` to `rsvg-convert` when converting SVG to PDF
2192 in the process of creating a PDF (#5721).
2194 * Text.Pandoc.Shared:
2196 + Replace `Element` and `makeHierarchical` with `makeSections`.
2197 Now that we have Divs, we can use them to represent the
2198 structure of sections, and we don't need a special Element type.
2199 `makeSections` reorganizes a block list, adding Divs with class
2200 `section` around sections, and adding numbering if needed.
2201 This change also fixes some longstanding issues recognizing section
2202 structure when the document contains Divs (#3057, see also #997).
2203 + Remove `Element` type [API change]
2204 + Remove `makeHierarchicalize` [API change]
2205 + Add `makeSections` [API change]
2206 + Export `deLink` [API change]
2207 + Make `filterIpynbOutput` strip ANSI escapes from code in output
2208 for non-ipynb formats, when the default "best" option is used with
2209 `--ipynb-output` (#5633).
2210 + Fix `camelCaseToHyphenated` so it handles `ABCDef` better.
2211 + Improve `isTight` (#5857). If a list has an empty item,
2212 this should not count against its being a tight list.
2213 + Export `htmlSpanLikeElements` [API change] (Daniele D'Orazio, #5796).
2214 This is a mapping of HTML span-like elements that are internally
2215 represented as a Span with a single class.
2216 + Change the implementation of `htmlSpanLikeElements` to retain
2217 classes and attributes (#5882, Florian Beeres).
2219 * Text.Pandoc.Slides: recognize content in Divs when determining
2220 slide level.
2222 * Text.Pandoc.SelfContained:
2224 + Omit content-type on type attribute for `<style>` (#5725).
2225 It doesn't seem to be valid for HTML5, and as a result Chrome
2226 ignores the style element.
2228 * Text.Pandoc.Pretty has been removed [API change].
2229 We now use the new external doclayout module instead.
2231 * Text.Pandoc.Writers.Shared:
2233 + Remove `metaToJSON`, `metaToJSON'` [API change].
2234 + Modify `addVariablesToContext`, `defField`, `setField`, `getField`,
2235 `resetField` to work with Context rather than JSON values. [API change]
2236 + Export new function `endsWithPlain` [API change].
2237 + Change `gridTables` so it does better at keeping the widths of
2238 columns (#4320) and does better at figuring out column widths
2239 when no widths are given (#5899).
2241 * Text.Pandoc.Options
2243 + Change type of `writerTemplate` to `Maybe Template` instead
2244 of `Maybe String`.
2245 + Change To/FromJSON instances for `HTMLMathMethod`, `CiteMethod`,
2246 `ObfuscationMethod`, `TrackChanges`, `WrapOption`,
2247 `TopLevelDivision`, `ReferenceLocation`, `HTMLSlideVariant` (#5790).
2248 In each case we use lowercase (or hyphenated lowercase) for
2249 constructors to line up more closely with command-line option
2250 values. This is a breaking change for those who manually decode or
2251 encode JSON for these data types (e.g. for `ReaderOptions` or
2252 `WriterOptions`).
2254 * Text.Pandoc.Filters:
2256 + Add `FromYAML` instance for `Filter`.
2257 + `applyFilters`: Add and apply filters in order (not reversed)
2258 This changes `applyFilters` from Text.Pandoc.Filter so
2259 that it does a left fold rather than a right fold, applying
2260 the filters in the order listed.
2262 * Text.Pandoc.XML:
2264 + Change `toEntities` to emit numerical hex character references
2265 (#5718).
2267 * Text.Pandoc.Highlighting:
2269 + Add additional listings languages (Wandmalfarbe).
2271 * Text.Pandoc.MediaBag:
2273 + Some of the types using Strings were switched to use FilePath instead
2274 (Christian Despres, #5884).
2276 * Text.Pandoc.Templates:
2278 + Don't import/export `varListToJSON` [API change]. It is removed in
2279 doctemplates >= 0.3.
2280 + Change type of `renderTemplate'` [API change]. Return value is
2281 now Text rather than being polymorphic. This makes room for
2282 upcoming removal of the `TemplateTarget` class from doctemplates.
2284 * Text.Pandoc.App.Opt [API changes]:
2286 + More convenient To/FromJSON instances. Make the field names
2287 like `strip-empty-paragraphs` rather than `optStripEmptyParagraphs`.
2288 Anyone who is using JSON serialization of Opt will need to adjust
2289 things accordingly.
2290 + Change `optHighlightStyle` to a `Maybe String` instead of
2291 `Maybe Style`. Do the parsing/loading of themes later, after
2292 option parsing.
2293 + Remove `optBaseHeaderLevel` from `Opt`. We now just use
2294 `optShiftHeadingLevelBy`, to avoid redundancy.
2295 + Change `optShiftHeadingLevel` to `optShiftHeadingLevelBy` to
2296 match the option.
2297 + Custom FromJSON instance for `LineEnding`, so either `CRLF`
2298 or `crlf` will work.
2299 + Change `optVariables` from `[(String, String)]` to `Context Text`.
2300 + Change `optMetadata` to `Meta`, to allow structured values.
2301 The current behavior of the `--metadata` option stays the same.
2302 + Rename `optReader`, `optWriter` as `optFrom`, `optTo`.
2303 + Add `FromYAML` instances to `Opt` and to all subsidiary types.
2304 + Rename `optMetadataFile` to `optMetadataFiles`.
2305 + Rename `optPDFEngineArgs` to `optPDFEngineOpts`.
2306 + Rename `optWrapText` to `optWrap`.
2307 + Add `IpynbOutput` enumerated type: use this instead of
2308 a string for `optIpynbOutput`.
2309 + Change optInputFiles to a `Maybe [FilePath]` (#5888) [API change].
2310 `Nothing` means: nothing specified.
2311 `Just []` means: an empty list specified (e.g. in defaults).
2312 + List fields in Opt so they aren't reversed (#5881) [API change].
2313 Previously `optIncludeInHeader`, etc. were in reverse order.
2314 + The `sourcefile` variable is now always a list. It used to be
2315 sometimes a string, sometimes a list (when there was more than one).
2317 * Template changes:
2319 + default.latex: added code for `cslreferences` environment,
2320 to be used for pandoc-citeproc references. A `csl-hanging-indent`
2321 variable (set automatically if there is a `hanging-ident`
2322 class on the references Div) controls whether contents of this
2323 environment receive a hanging indent.
2324 + default.latex: Add `space` as default option for xeCJK, so that
2325 spaces between words are preserved (#5855, jeongminkim-islab).
2326 This is necessary for Korean.
2327 + default.latex: Remove include of `grffile` (#5848).
2328 This package used to be needed for proper handling of image filenames
2329 containing periods (in addition to the period before the extension).
2330 It no longer works with the latest LaTeX kernel and graphicx,
2331 so we have removed it. Future versions of graphicx will handle
2332 these filenames without the need for `grffile`.
2333 + default.context: add a saner default for page numbers.
2334 Previously they appeared centered at the top of the page;
2335 now we put them centered at the bottom, unless the `pagenumbering`
2336 variable is set.
2337 + default.context: define a start-stop-pair `cslreferences` to
2338 allow for hanging indents in the bibliography (#5875, Denis Maier).
2339 + default.ms: update defaults. Use Palatino font, use slightly
2340 wider interparagraph space, don't indent paragraphs,
2341 and put page numbers on the bottom. This brings ms output
2342 closer to default LaTeX output.
2343 + default.revealjs: add navigationMode (Mauro Bieg, #5657).
2344 + default.muse: handle multiple authors better.
2345 + docbook4, docbook5 templates: add indentation to body.
2346 + HTML-based templates: use `styles.html` partial to avoid
2347 code duplication.
2348 + HTML-based templates: change indentation of styles in template.
2350 * reference.docx (#5820):
2352 + Change Block Text (block quote) style so that the same font
2353 is used as in the body text, and the block text is indented
2354 left and right.
2355 + All headings now have a uniform color.
2356 + Level-1 headings no longer set `w:themeShade="B5"`.
2357 + Level-2 headings are now 14 point rather than 16 point.
2358 + Level-3 headings are now 12 point rather than 14 point.
2359 + Level-4 headings are italic rather than bold.
2361 * epub.css: Add CSS for hanging-indent div to support pandoc-citeproc's
2362 new hanging indents.
2364 * pandoc.cabal:
2366 + Repeat ghc-options in all stanzas.
2367 + Remove conditionals for ghc < 8 (Albert Krewinkel, #5693).
2368 + Compile with `-Wcpp-undef` and `-fhide-source-paths` when possible
2369 (Albert Krewinkel).
2370 + Add cabal.project to extra-source-files (Albert Krewinkel).
2371 + Add dependency on skylighting-core (#5729). Even though it shouldn't
2372 be needed, some tools require it.
2373 + Require latest pandoc-types, texmath, skylighting, haddock-library.
2374 + Ensure TemplateHaskell is added to other-extensions when it is
2375 used (Vanessa McHale, #5728).
2376 + Remove `derive_json_via_th` flag; always use TH. This cuts down
2377 on code duplication and reduces the chance for errors. See #4083.
2379 * Makefile:
2381 + Add ghci target.
2382 + Add ghcid target.
2383 + Remove references to obsolete flag (#5694).
2385 * Benchmarks: fix failure on ipynb.
2387 * Use MathJax 3 (zorkow).
2389 * KaTeX math: respect `classoption=fleqn` variable,
2390 bump KaTeX version to 0.11.1 (#5815, Mauro Bieg).
2392 * Fix redundant constraint compiler warnings (Pete Ryland, #5625).
2394 * Use throwError instead of fail when appropriate.
2396 * Use Prelude.fail to avoid ambiguity with fail from GHC.Base.
2398 * Add `diff-zip.sh` to tools (John MacFarlane, Agustín Martín Barbero).
2399 This is intended to make it easier to test differences in zip
2400 containers, like epub, docx, or odt.
2402 * Add `.gitattributes` (#5747). This ensures that the golden files
2403 in `test/fb2/reader/` don't have newlines converted. This should fix
2404 a test failure on GitHub CI with Windows.
2406 * Reorder options in `--help`.
2408 * Revise code for HsYAML-0.2.0.0 (@vijayphoenix, #5704).
2410 * Remove blank line in code example in Haddocks (Leif Metcalf, #5679).
2412 * Fix trypandoc with `getReader`/`getWriter` changes.
2414 * Allow building pandoc with GHC 8.8.
2416 * linux tarball: add architecture `-amd64` to filename.
2417 Now it will be: `pandoc-VERSION-linux-ARCH.tar.gz`.
2419 * MANUAL.txt:
2421 + Add section for exit codes.
2422 + Document some pptx limitations in slide show section:
2423 No incremental display (#5689). No pause with `. . .` (#5701).
2424 + reveal.js flags (Mauro Bieg, #5653).
2425 + Document addition of `data-` prefix to unknown attributes in HTML5.
2426 + Link to YAML spec (Mauro Bieg, #5687).
2427 + Fix capitalization of "Linux" (#5859, Marcus Stollsteimer).
2428 + Use a table for exit codes.
2429 + Put all template variable docs into one section.
2430 + Use ATX headers consistently.
2431 + Add fuller documentation of templates (#5779), including
2432 new template syntax, partials, etc.
2433 + Add documentation for the variable `hyperrefoptions` (Wandmalfarbe).
2434 + Clarify when macro definitions are passed as raw latex.
2435 In Markdown input, they are always passed through. In LaTeX, only if
2436 `latex_macros` is disabled.
2437 + Clarify that `--dpi` provides a default and doesn't override
2438 dpi values specified in the images themselves (#5721).
2439 + Document how to use custom writers with `--standalone` (#5866).
2440 + Clarify `--preserve-tabs` default.
2442 * INSTALL.md:
2444 + Fix instructions for libicu.
2445 + Add Void Linux instructions (Volodymyr Kozachnyskyi).
2447 * CONTRIBUTING.md:
2449 + Add information on tests (Agustín Martín Barbero, #5652).
2450 + Add information about command test naming to CONTRIBUTING (Florian B).
2452 * Fix typos in changelog and comments (#5896, Brian Wignall).
2454 * doc/lua-filters.md:
2456 + Fix mistakes in mediabag module docs (#5851, Albert Krewinkel).
2457 + Improve metadata replacement example in lua-filters doc (#5851).
2458 + Mention which Lua version is shipped with pandoc (Albert Krewinkel,
2459 #5892).
2461## pandoc 2.7.3 (2019-06-11)
2463 * Add `jira` (Atlassian's Jira wiki markup) as output format (#2497,
2464 Albert Krewinkel).
2466 * Add `tex_math_dollars` to `multimarkdownExtensions` (#5512).
2467 This form is now supported in multimarkdown,
2468 in addition to `tex_math_double_backslash`.
2470 * Fix `--self-contained` so it works when output format has extensions.
2471 Previously if you used `--self-contained` with `html-smart` or
2472 `html+smart`, it wouldn't work.
2474 * Add template variable `curdir` with working directory
2475 from which pandoc is run (#5464).
2477 * Markdown reader: don't create implicit reference for empty header
2478 (#5549).
2480 * Muse reader: allow images inside link descriptions (Alexander Krotov).
2482 * HTML reader: epub related fixes.
2484 + With epub extensions, check for `epub:type` in addition to `type`.
2485 + Fix problem with noteref parsing which caused block-level
2486 content to be eaten with the noteref.
2487 + Rename `pAnyTag` to `pAny`.
2488 + Refactor note resolution.
2489 + Trim definition list terms (Alexander Krotov).
2491 * LaTeX reader:
2493 + Add braces when resolving `\DeclareMathOperator`
2494 (#5441). These seem to be needed for xelatex but not pdflatex.
2495 + Allow newlines in `\mintinline`.
2496 + Pass through unknown listings language as class (#5540).
2497 Previously if the language was not in the list of languages supported
2498 by listings, it would not be added as a class, so highlighting
2499 would not be triggered.
2500 + `rawLaTeXInline`: Include trailing `{}`s in raw latex commands (#5439).
2501 This change affects the markdown reader and other readers that allow raw
2502 LaTeX. Previously, trailing `{}` would be included for unknown
2503 commands, but not for known commands. However, they are sometimes used
2504 to avoid a trailing space after the command. The chances that a `{}`
2505 after a LaTeX command is not part of the command are very small.
2507 * MediaWiki reader: handle multiple attributes in table row (#5471,
2508 chinapedia).
2510 * Docx reader: Add support for `w:rtl` (#5545). Elements with this
2511 property are put into Span inlines with `dir="rtl"`.
2513 * DocBook reader: Issue `IgnoredElement` warnings.
2515 * Org reader (Albert Krewinkel):
2517 + Fix planning elements in headers level 3 and higher
2518 (#5494). Planning info is now always placed before
2519 the subtree contents. Previously, the planning info was placed after
2520 the content if the header's subtree was converted to a list, which
2521 happens with headers of level 3 and higher per default.
2522 + Omit, but warn about unknown export options. Unknown export
2523 options are properly ignored and omitted from the output.
2524 + Prefer plain symbols over math symbols (#5483).
2525 Symbols like `\alpha` are output plain and unemphasized, not as math.
2526 + Recognize emphasis after TODO/DONE keyword (#5484).
2528 * FB2 reader:
2530 + Skip unknown elements rather than throwing errors (#5560).
2531 Sometimes custom elements are used (e.g. `id` element
2532 inside `author`); previously the reader would halt with an error.
2533 Now it skips the element and issues an `IgnoredElement` warning.
2534 + Parse notes (#5493, Alexander Krotov).
2535 + Internal improvements (Alexander Krotov).
2537 * OpenDocument writer: Roll back automatic figure/table numbering
2538 (#5474). This was added in pandoc 2.7.2, but it makes it impossible
2539 to use pandoc-crossref. So this has been rolled back for now,
2540 until we find a good solution to make this behavior optional
2541 (or a creative way to let pandoc-crossref and this feature
2542 to coexist).
2544 * New module Text.Pandoc.Writers.Jira, exporting `writeJira` [API
2545 change] (Albert Krewinkel).
2547 * EPUB writer:
2549 + Don't include 'landmarks' if there aren't any.
2550 Previously we could get an empty ol element, which caused
2551 validation errors with epubcheck.
2552 + Ensure unique ids for styleesheets in content.opf (#5463).
2553 + Make stylesheet link compatible with kindlegen (#5466,
2554 Eric Schrijver). Pandoc omitted `type="text/css"` from both
2555 `<style>` and `<rel="stylesheet">` elements in all templates, which
2556 is valid according to the spec. However, Amazon’s kindlegen software
2557 relies on this attribute on `<link>` elements when detecting
2558 stylesheets to include.
2560 * HTML writer:
2562 + Output video and audio elements depending on file
2563 extension of the image path (Mauro Bieg).
2564 + Emit empty alt tag in figures (#5518, Mauro Bieg).
2565 The same text is already in the <figcaption> and
2566 screen-readers would read it twice, see #4737.
2567 + Don't add variation selector if it's already there.
2568 This fixes round-trip failures.
2569 + Prevent gratuitous emojification on iOS (#5469).
2570 iOS chooses to render a number of Unicode entities, including '↩', as
2571 big colorful emoji. This can be defeated by appending Unicode
2572 VARIATION SELECTOR-15'/'VARIATION SELECTOR-16'. So we now append this
2573 character when escaping strings, for both '↩' and '↔'. If other
2574 characters prove problematic, they can simply be added to
2575 `needsVariationSelector`. + Add `class="heading"` to level 7+ Headers
2576 rendered as `<p>` elements (#5457).
2578 * RST writer: treat Span with no attributes as transparent (#5446).
2579 Previously an Emph inside a Span was being treated as
2580 nested markup and ignored. With this patch, the Span
2581 is just ignored.
2583 * LaTeX writer:
2585 + Include inline code attributes with `--listings` (#5420).
2586 + Don't produce columns environment unless beamer (#5485).
2587 + Fix footnote in image caption. Regression: the fix for #4683 broke
2588 this case.
2589 + Don't highlight code in headings (#5574). This causes
2590 compilation errors.
2591 + Use `\mbox` to get proper behavior inside `\sout` (#5529).
2593 * EPUB writer: Fix document section assignments (#5546).
2594 For example, introduction should go in bodymatter, not frontmatter, and
2595 epigraph, conclusion, and afterward should go in bodymatter, not
2596 backmatter. For the full list of assignments, see the manual.
2598 * Markdown writer:
2600 + Add backslashes to avoid unwanted interpretation of
2601 definition list terms as other kinds of block (#554).
2602 + Ensure the code fence is long enough (#5519).
2603 Previously too few backticks were used when the code block
2604 contained an indented line of backticks. (Ditto tildes.)
2605 + Handle labels with integer names (Jesse Rosenthal, #5495).
2606 Previously if labels had integer names, it could produce a conflict
2607 with auto-labeled reference links. Now we test for a conflict and
2608 find the next available integer. This involves adding a new state
2609 variable `stPrevRefs` to keep track of refs used in other document
2610 parts when using `--reference-location=block|section`
2612 * Textile writer: fix closing tag for math output (Albert Krewinkel).
2613 Opening and closing tag for math output match now.
2615 * Org writer: always indent src blocks content by 2 spaces (#5440, Albert
2616 Krewinkel). Emacs always uses two spaces when indenting the content of
2617 src blocks, e.g., when exiting a `C-c '` edit-buffer. Pandoc used to
2618 indent contents by the space-equivalent of one tab, but now always uses
2619 two spaces, too.
2621 * Asciidoc writer:
2623 + Use `` `+...+` `` form for inline code.
2624 The old `` `a__b__c` `` yields emphasis inside code in asciidoc.
2625 To get a pure literal code span, use `` `+a__b__c+` ``.
2626 + Use proper smart quotes with asciidoctor (#5487).
2627 Asciidoctor has a different format for smart quotes.
2628 + Use doubled ## when necessary for spans (#5566).
2629 + Ensure correct nesting of strong/emph (#5565): strong
2630 must be the outer element.
2632 * JATS writer:
2634 + Wrap elements with p when needed (#5570). The JATS spec restricts
2635 what elements can go inside `fn` and `list-item`. So we wrap other
2636 elements inside `<p specific-use="wrapper">` when needed.
2637 + Properly handle footnotes (#5511) according to "best practice."
2638 (Group them at the end in `<fn-group>` and use `<xref>` elements
2639 to link them.)
2640 + Fix citations with PMID so they validate (#5481). This includes
2641 an update to data/jats.csl.
2642 + Ensure validity of `<pub-date>` by parsing the date and
2643 extracting year, month, and day, as expected. Also add an
2644 iso-8601-date attribute automatically.
2645 + Don't use `<break>` element for LineBreak. It is only
2646 allowed in a few special contexts, and not in `<p>` elements.
2647 + Don't make `<string-name>` a child of `<string>`, which is illegal.
2649 * FB2 writer:
2651 + Do not wrap note references into `<sup>` and brackets
2652 (Alexander Krotov). Existing FB2 readers, such as FBReader, already
2653 display links with type="note" as a superscript.
2654 + Use genre metadata field (#5478).
2656 * Muse writer: do not escape empty line after `<br>` (Alexander Krotov).
2658 * Add unicode code point in "Missing character" warning (#5538).
2659 If the character isn't in the console font, the message is pretty useless,
2660 so we show the code point for anything non-ASCII.
2662 * Lua: add Version type to simplify comparisons (Albert Krewinkel).
2663 Version specifiers like `PANDOC_VERSION` and `PANDOC_API_VERSION` are
2664 turned into `Version` objects. The objects simplify version-appropriate
2665 comparisons while maintaining backward-compatibility.
2666 A function `pandoc.types.Version` is added as part of the newly
2667 introduced module `pandoc.types`, allowing users to create version
2668 objects in scripts.
2670 * pandoc lua module (Albert Krewinkel):
2672 - Fix deletion of nonexistent attributes (#5569).
2673 - Better tests for Attr and AttributeList.
2675 * pandoc.mediabag lua module (Albert Krewinkel):
2677 + Add function `delete` for deleting a single item.
2678 + Add function `empty` for removing all entries.
2679 + Add function `items` for iterating over mediabag.
2681 * Text.Pandoc.Class: Fix handling of `file:` URL scheme in
2682 `downloadOrRead` (#5517, Mauro Bieg). Previously `file:/`
2683 URLs were handled wrongly and pandoc attempted to make HTTP
2684 requests, which failed.
2686 * Text.Pandoc.MIME: add `mediaCategory` [API change] (Mauro Bieg).
2688 * Text.Pandoc.Shared:
2690 + Add `onlySimpleTableCells` [API change]
2691 (Mauro Bieg) and use this to consolidate simple-table detection
2692 (#5524). This fixes an inconsistency in the HTML reader, which did not
2693 treat tables with `<p>` inside cells as simple.
2694 + `metaToJSON`: treat digits starting with 0 as a string, not a number
2695 (#5479). This fixes a regression in YAML metadata in pandoc 2.7.2.
2697 * Text.Pandoc.Logging: Add `IgnoredElement` constructor for
2698 `LogMessage`. `SkippedConetnt` doesn't work for some XML-based
2699 readers which don't have access to parsec source positions.
2701 * Text.Pandoc.Asciify: Add Turkish undotted-i (#5433, Mauro Bieg).
2703 * Improve output of Lua tests (#5499, Albert Krewinkel).
2704 This makes use of tasty-lua, a package to write tests in Lua
2705 and integrate the results into Tasty output. Test output becomes
2706 more informative: individual tests and test groups become visible
2707 in test output. Failures are reported with helpful error messages.
2709 * Lua: add `pandoc.system` module (#5468, Albert Krewinkel).
2710 The `system` Lua module provides utility functions to interact with the
2711 operating- and file system. E.g.
2712 `print(pandoc.system.get_current_directory())`
2713 or
2714 ```lua
2715 pandoc.system.with_temporary_directory('tikz', function (dir)
2716 -- write and compile a TikZ file with pdflatex
2717 end)
2718 ```
2720 * LaTeX template: Add pdflang to hypersetup if lang is set (#5443).
2722 * beamer template: Fix using Beamer with geometry (#5505, Daniel Maslowski).
2723 Beamer already loads geometry, so we need to use the `\geometry`
2724 command to set geometry options.
2726 * EPUB2/3 templates: Move inline styles to default epub.css (#5466).
2727 NOTE: Those who use a custom CSS stylesheet with EPUB should
2728 add these lines:
2730 code{ white-space: pre-wrap; }
2731 span.smallcaps{ font-variant: small-caps; }
2732 span.underline{ text-decoration: underline; }
2733 q { quotes: "“" "”" "‘" "’"; }
2734 div.column{ display: inline-block; vertical-align: top; width: 50%; }
2736 * reveal.js template:
2738 + Updates for revealjs 3.8.0 (#5435, ebiim).
2739 + Remove reference to head.min.js (#5448, Winnie Hellmann).
2740 NOTE: users will need to update reveal.js to at least 3.8.0
2741 for their presentations generated with this version of pandoc
2742 to work correctly.
2744 * Text.Pandoc.PDF:
2746 + Replace `</>` with literal `/` (#5451).
2747 We use forward-slash for a directory separator in tmpDir,
2748 even on Windows (because that's what tex likes). So we
2749 should not put a backslash between the tmpDir and the
2750 filename on Windows. This is harmless enough in normal
2751 Windows setups, but it breaks on Cygwin.
2752 Thanks to @cc2x for noticing and diagnosing the problem.
2753 + Allow use of `-output-directory` in `--pdf-engine-opt` (#5462).
2754 This is currently possible with `mklatex` and `-outdir`, but
2755 was not yet possible with xelatex and `-output-directory`.
2756 + For PDF via ms/pdfroff, make TOC appear at beginning and in
2757 PDF bookmarks (#5553). Previously the TOC appeared at the end
2758 of the document, and was not bookmarked. To keep it at the end,
2759 add `--pdf-engine-opt=--no-toc-relocation` to your command line.
2761 * Fix broken links in documents (#5473, Shim Myeongseob).
2762 Also, use absolute links to pandoc.org when possible, so that
2763 the links can be followed by people viewing these documents
2764 on GitHub.
2766 * Improved sample lua tikz filter in lua-filters docs (#5445,
2767 Matthew Doty). There are three changes:
2769 + It only processes elements which begin with `\begin{tikzpicture}`
2770 + It uses pdf2svg instead of imagemagick to preserve fidelity
2771 + The images produced have transparent backgrounds
2773 * MANUAL.txt:
2775 + Add note about `title-meta`, `author-meta`, `date-meta` (#5486).
2776 + Fix typo (#5489, Christian Krause).
2778 * add test/tables.xwiki to git and pandoc.cabal (#5498, Mauro Bieg).
2780 * Disable missing-home-modules warning in `stack.yaml`.
2781 Otherwise `stack ghci` fails.
2784## pandoc 2.7.2 (2019-04-05)
2786 * Add XWiki writer (#1800, Derek Chen-Becker).
2787 Add `Text.Pandoc.Writers.XWiki`, exporting `writeXWiki` [API change].
2789 * Dokuwiki Reader: parse single curly brace (#5416, Mauro Bieg).
2791 * Vimwiki reader: improve handling of internal links (#5414).
2792 We no longer append `.html` to link targets, and we add a title
2793 `wikilink`. This mirrors behavior of other wiki readers. Generally
2794 the `.html` extension is not wanted. It may be important for output
2795 to HTML in certain circumstances, but it can always be added using a
2796 filter that matches on links with title `wikilink`.
2798 If your workflow requires the current behavior, here is a lua filter
2799 that will add the `.html` extension:
2801 ```lua
2802 function Link(el)
2803 if el.title == 'wikilink' then
2804 el.target = el.target .. ".html"
2805 end
2806 return el
2807 end
2808 ```
2809 * ipynb reader:
2811 + Use format `ipynb` for raw cell where no format given.
2812 + Avoid introducing spurious `.0` on integers in metadata.
2814 * Markdown reader: fenced div takes priority over setext header.
2816 * HTML reader: read `data-foo` attribute into `foo` (#5392).
2817 The HTML writer adds the `data-` prefix for HTML5 for nonstandard
2818 attributes. But the attributes are represented in the AST without
2819 the `data-` prefix, so we should strip this when reading HTML.
2821 * LaTeX reader: Improve autolink detection (#5340).
2823 * PowerPoint writer (Jesse Rosenthal):
2825 + Expand builtin reference doc to model all layouts.
2826 The previous built-in reference doc had only title and content
2827 layouts. Add in a section-header slide and a two-content slide, so
2828 users can more easily modify it to build their own templates.
2829 + Always open up in slide view. When editing a
2830 template/reference-doc, the user might be in Master view, but when
2831 producing a slide show, it is assumed that slide view will be
2832 desired.
2833 + Remove `handoutsMasterList` from template presentation.xml
2834 + Fix numerous errors in templating (#5402). Previously, some templates
2835 produced by Office 365 (MacOS) would not render with `--reference-doc`
2836 correctly. We now apply correct shapes for content, and build
2837 shape trees correctly.
2838 + Make default placeholder type for template lookup.
2839 + Apply speaker notes to metadata slide if applicable.
2840 + Test for speaker notes after breaking header.
2841 + Correctly handle notes after section-title header.
2842 Previously, if notes came after a section-title header (ie, a level-1
2843 header in a slide-level=2 presentation), they would go on the next
2844 slide. This keeps them on the slide with the header.
2845 + Internal improvements.
2847 * ipynb writer:
2849 + Use format `ipynb` for raw cell where no format given.
2850 According to nbformat docs, this is supposed to render in every
2851 format. We don't do that, but we at least preserve it as a raw
2852 block in markdown, so you can round-trip.
2853 + Consolidate adjacent raw blocks. Sometimes pandoc creates two
2854 HTML blocks, e.g. one for the open tag and one for a close tag.
2855 If these aren't consolidated, only one will show up in output cell.
2856 + Fixed carry-over of nbformat from metadata.
2857 + Preserve `nbformat_minor` if it's given. This helps with round-tripping.
2859 * LaTeX writer:
2861 + Avoid inadvertently creating ?` or !` ligatures (#5407).
2862 These are upside down ? and !, resp.
2863 + Fix footnotes in table caption and cells (#5367). This fixes a
2864 bug wherein footnotes appeared in the wrong order, and with
2865 duplicate numbers, when in table captions and cells.
2866 We now use regular `\footnote` commands, even in the table
2867 caption and the minipages containing cells. Apparently
2868 longtable knows how to handle this.
2870 * HTML writer: Don't add data- prefix to RDFa attributes (#5403).
2872 * JATS writer: Ensure that plain strings go inside `<pub-id>` tag (#5397).
2874 * Markdown writer:
2876 + Better rendering of numbers (#5398). If the number is integral,
2877 we render it as an integral not a float.
2878 + Proper rendering of empty map in YAML metadata (#5398). Should
2879 be `{}`, not empty string.
2880 + Properly escape attributes in Markdown writer (#5369).
2881 + Be sure implicit figures work in list contexts (#5368).
2882 Previously they would sometimes not work: e.g., when they
2883 occurred in final paragraphs in lists that were originally
2884 parsed as Plain and converted later using PlainToPara.
2886 * Docx writer: Use `w:br` without attributes for line breaks (#5377).
2887 We previously added the attribute `type="textWrapping"`, but
2888 this causes problems on Word Online.
2890 * LaTeX template (Andrew Dunning):
2892 + Ensure correct heading/table order (#5365). Improve workaround
2893 (#1658) for tables following headings. The new solution works whether
2894 or not the `indent` variable is enabled.
2895 + Remove `subparagraph` variable. The default is now to use run-in
2896 style for level 4 and 5 headings (`\paragraph` and `\subparagraph`).
2897 To get the previous default behavior (where these were formatted as
2898 blocks, like `\subsubsection`), set the `block-headings` variable.
2899 + Add pandoc to PDF metadata (#5388).
2900 + Group graphics-related code (#5389).
2901 + Move `\setstretch` after front matter (#5179). Ensures that
2902 `\maketitle`, `\tableofcontents`, and so forth are not affected by
2903 changes to line spacing.
2905 * Update data/jats.csl to avoid commas between name-part elements
2906 (#5397).
2908 * Add support for golang (`go`) with `--listings` (#5427).
2910 * Text.Pandoc.Shared - improve `metaToJSON` behavior with numbers.
2911 We now do a better job marshalling numbers from MetaString
2912 or MetaInlines into JSON Number.
2914 * Text.Pandoc.Writers.Shared: `metaValueToJSON`: use Number Values for
2915 integers. Pandoc's MetaValue doesn't have a distinguished number type,
2916 so numbers are put in MetaStrings. If the MetaString consists
2917 entirely of digits, we convert it to a Number. We should probably
2918 consider adding a MetaNumber constructor to MetaValue, for better
2919 round-tripping with JSON etc. This change aids round-tripping in
2920 ipynb metadata fields, like `toc_depth`.
2922 * Text.Pandoc.Class: `fetchItem`: don't treat UNC paths as
2923 protocol-relative URLs (#5127). These are paths beginning `//?/UNC/...`.
2925 * Text.Pandoc.ImageSize: Improve `pdfSize` so it handles
2926 a wider range of PDFs (#4322, with help from Richard Davis).
2928 * Text.Pandoc.Pretty: avoid stack overflow by using strict sum (#5401).
2930 * Fix harmless error in file-scope code (#5422).
2932 * MANUAL.txt:
2934 + Improve 'header' and 'heading' usage (#5423, Andrew
2935 Dunning). The term 'header' was being used where 'heading'
2936 is more appropriate.
2937 + Add paragraph on options affecting markdown in ipynb.
2939 * stack.yaml - remove -Wmissing-home-modules
2940 This seems to cause problems with stack ghci. Remove RTS options.
2942 * Add ghc-options to cabal.project.
2944 * appveyor.yml - use ghc 8.6.4. Fixes segfault issues on Windows (#5037).
2946 * linux build process: Remove clone of pandoc-citeproc (#5366).
2947 It wasn't being used; cabal.project specifies the version to use.
2949## pandoc 2.7.1 (2019-03-14)
2951 * Add tectonic as an option for --pdf-engine (#5345, Cormac Relf).
2952 Runs tectonic on STDIN instead of a temporary .tex file, so that it
2953 looks in the working directory for `\include` and `\input` like the rest
2954 of the engines. Allows overriding the output directory
2955 args with `--pdf-engine-opt=--outdir --pdf-engine-opt="$DIR"`.
2957 * Allow `-o/--output` to be used with `--print-default-data-file`,
2958 `--print-highlighting-style`, `--print-default-template`.
2959 Note that `-o` must occur BEFORE the `--print*` command on the command
2960 line (this is documented, #5357).
2962 * LaTeX reader:
2964 + Support `\underline`, `\ul`, `\uline` (#5359, Paul
2965 Tilley). These are parsed as a Span with class `underline`, as
2966 with other readers.
2967 + Ensure that `\Footcite` and `\Footcites` get put in a note.
2969 * ipynb reader:
2971 + Remove sensitivity to `raw_html`, `raw_tex` extensions.
2972 We now include every output format. Pruning is handled by
2973 `--ipynb-output`.
2974 + Better handling of cell metadata. We now include even complex cell
2975 metadata in the Div's attributes (as JSON, in complex cases, or
2976 as plain strings in simple cases).
2978 * ipynb writer:
2980 + Recurse into native divs for output cell data (#5354).
2981 + Render cell metadata fields from div attributes.
2983 * Docx writer: avoid extra copy of abstractNum and num elements
2984 in numbering.xml. This caused pandoc-produced docx files to
2985 be uneditable using Word Online (#5358).
2987 * Markdown writer: improve handling of raw blocks/inline.
2988 We now emit raw content using `raw_attribute` when no more
2989 direct method is available. Use of `raw_attribute` can be
2990 forced by disabling `raw_html` and `raw_tex`.
2992 * LaTeX writer: Add classes for frontmatter support (#5353, Andrew Dunning)
2993 and remove frontmatter from `scrreprt`.
2995 * LaTeX template:
2997 + Improve readability (#5363, Andrew Dunning).
2998 + Robust section numbering removal (#5351, Andrew Dunning).
2999 Ensures that section numbering does not reappear with custom
3000 section levels. See <https://tex.stackexchange.com/questions/473653/>.
3001 + Better handling of front/main/backmatter (#5348).
3002 In pandoc 2.7 we assumed that every class with chapters would accept
3003 `\frontmatter`, `\mainmatter`, and `\backmatter`. This is not so (e.g.
3004 report does not). So pandoc 2.7 breaks on report class by including an
3005 unsupported command. Instead of the `book-class` variable, we use two
3006 variables, `has-chapters` and `has-frontmatter`, and set these
3007 intelligently in the writer.
3009 * Text.Pandoc.Shared: Improve `filterIpynbOutput`. Ensure that
3010 images are prioritized over text. `best` should include everything
3011 for ipynb.
3013 * Tests.Old: specify `--data-dir=../data` to ensure tests can find
3014 data files even if they haven't been installed. Remove old
3015 `pandoc_datadir` environment variable, which hasn't done anything for a
3016 long time.
3018 * MANUAL.txt: Add recommendation to use `raw_attribute` with ipynb (#5354).
3020 * Use cmark-gfm-hs 0.1.8 (note that 0.1.7 is buggy).
3022 * Use latest pandoc-citeproc, texmath.
3025## pandoc 2.7 (2019-03-03)
3027 * Use XDG data directory for user data directory (#3582). Instead of
3028 `$HOME/.pandoc`, the default user data directory is now
3029 `$XDG_DATA_HOME/pandoc`, where `XDG_DATA_HOME` defaults to
3030 `$HOME/.local/share` but can be overridden by setting the
3031 environment variable. If this directory is missing, then
3032 `$HOME/.pandoc` is searched instead, for backwards compatibility.
3033 However, we recommend moving local pandoc data files from
3034 `$HOME/.pandoc` to `$HOME/.local/share/pandoc`. On Windows the
3035 default user data directory remains the same.
3037 * Slide show formats behavior change: content under headers
3038 less than slide level is no longer ignored, but included in
3039 the title slide (for HTML slide shows) or in a slide after
3040 the title slide (for beamer). This change makes possible
3041 2D reveal.js slideshows with content in the top slide on
3042 each stack (#4317, #5237).
3044 * Add command line option `--ipynb-output=all|none|best` (#5339).
3045 Output cells in ipynb notebooks often contain several different
3046 versions of an output, with different MIME types, e.g. an HTML
3047 table and a plain-text fallback. Specifying `--ipynb-output=best`
3048 (the default) ensures that the best version for the output format
3049 is used. `all` includes all versions, and `none` suppresses them
3050 all, leaving output cells empty.
3052 * `asciidoctor` is now an output format separate from `asciidoc`,
3053 to accommodate some minor implementation-specific differences
3054 (currently just in the treatment of display math).
3056 * Add `latexmk` as an option for `--pdf-engine` (#3195).
3057 Note that you can use `--pdf-engine-opt=-outdir=bar` to specify
3058 a persistent temp directory.
3060 * Markdown reader:
3062 + Improve tight/loose list handling (#5285). Previously the
3063 algorithm allowed list items with a mix of Para and Plain, which
3064 is never wanted.
3065 + Add newline when parsing blocks in YAML (#5271). Otherwise last
3066 block gets parsed as a Plain rather than a Para. This is a
3067 regression in pandoc 2.x. This patch restores pandoc 1.19
3068 behavior.
3069 + Make `yamlToMeta` respect extensions (#5272, Mauro Bieg).
3070 This adds a `ReaderOptions` parameter to `yamlToMeta` [API change].
3071 + Fix bug parsing fenced code blocks (#5304). Previously parsing
3072 would break if the code block contained a string of backticks of
3073 sufficient length followed by something other than end of line.
3075 * LaTeX reader: don't let `\egroup` match `{`. `braced` now actually
3076 requires nested braces. Otherwise some legitimate command and
3077 environment definitions can break.
3079 * Docx reader (Jesse Rosenthal):
3081 + Rename `getDocumentPath` as `getDocumentXmlPath`.
3082 + Use field notation for setting `ReaderEnv`.
3083 + Figure out `document.xml` path once at the beginning of parsing, and
3084 add it to the environment, so we can avoid repeated lookups.
3085 + Dynamically determine main document xml path (#5277).
3086 The desktop Word program places the main document file in
3087 `word/document.xml`, but the online word places it in
3088 `word/document2.xml`. This file path is actually stated in the root
3089 `_rels/.rels` file, in the `Relationship` element with an
3090 `http://../officedocument` type.
3091 + Fix paths in archive to prevent Windows failure (#5277).
3092 Some paths in archives are absolute (have an opening slash) which, for
3093 reasons unknown, produces a failure in the test suite on MS
3094 Windows. This fixes that by removing the leading slash if it exists.
3095 + Add comments to aid code readability.
3096 + Trim space inside the last inline (#5273).
3097 + Unwrap sdt elements in footnotes and comments (#5302).
3099 * Muse reader (Alexander Krotov):
3101 + Test that block level markup does not break `<verbatim>`.
3102 + Add secondary note support.
3104 * ipynb reader: handle images referring to attachments. Previously
3105 we didn't strip off the attachment: prefix, so even though the
3106 attachment was available in the mediabag, pandoc couldn't find it.
3108 * JATS reader:
3110 + Fix parsing of figures (#5321). This ensures that a figure
3111 containing a single image is parsed as a pandoc "implicit
3112 figure" (i.e., a Para with a single Image whose title attribute
3113 begins with `fig:`). More complex figures will still be parsed
3114 as divs.
3115 + Support `fig-group` block element (#5317).
3116 + Handle citations with multiple references (#5310). The `rid`
3117 attribute can have a space-separated list of ids.
3119 * AsciiDoc Writer: Add `writeAsciiDoctor` [API change, Tarik Graba].
3120 Handle display math appropriately for Asciidoctor.
3122 * JATS writer: wrap figure caption in `<p>` to fix validation (#5290,
3123 Mauro Bieg).
3125 * HTML writer:
3127 + Implement WAI-ARIA roles for (end)notes, citations, and
3128 bibliography (#4213). Note that doc-biblioref is only used when
3129 link-citations produces links, since it belongs on links.
3130 + Include content (including speaker notes) in title slides
3131 (#4317, #5237).
3133 * ipynb writer:
3135 + Ensure final newline.
3136 + Only include metadata under `jupyter` field.
3137 + Don't create attachments for images with absolute URIs,
3138 including data: URIs (#5303).
3139 + Keep plain text fallbacks in output even if a richer format is
3140 included (#5293). We don't know what output format will be needed.
3141 See the `--ipynb-output` command line option for a way to control
3142 what formats are included in the output.
3144 * Markdown writer: use `markdown="1"` when appropriate for Divs:
3145 when `native_divs` and `markdown_in_html_blocks` are disabled
3146 but `raw_html` and `markdown_attribute` are enabled.
3148 * LaTeX writer:
3150 + Use right fold for `escapeString`. This is more elegant than
3151 the explicit recursive code we were using.
3152 + Avoid `{}` after control sequences when escaping.
3153 `\ldots{}.` doesn't behave as well as `\ldots.` with the latex
3154 ellipsis package. This patch causes pandoc to avoid emitting
3155 the `{}` when it is not necessary. Now `\ldots` and other
3156 control sequences used in escaping will be followed by either
3157 a `{}`, a space, or nothing, depending on context.
3158 + For beamer, include contents under headers superordinate to
3159 slidelevel (#4317). Currently we keep the fancy title slide, and
3160 add a new slide with the same title and whatever content was
3161 under the header.
3163 * Powerpoint writer (Jesse Rosenthal): support underlines.
3164 Use span with single class "underline" as in docx writer.
3166 * Muse writer: escape secondary notes (Alexander Krotov).
3168 * FB2 writer: add section identifiers support (#5229, John KetzerX).
3170 * Make `--fail-if-warnings` work for PDF output (#5343).
3172 * Lua filters (Albert Krewinkel):
3174 + Load module `pandoc` before calling `init.lua` (#5287). The file
3175 `init.lua` in pandoc's data directory is run as part of pandoc's
3176 Lua initialization process. Previously, the `pandoc` module was
3177 loaded in `init.lua`, and the structure for marshaling was
3178 set up after. This allowed simple patching of element
3179 marshaling, but made using `init.lua` more difficult. Now, all
3180 required modules are now loaded before calling `init.lua`. The
3181 file can be used entirely for user customization. Patching
3182 marshaling functions, while discouraged, is still possible via
3183 the `debug` module.
3184 + All Lua modules bundled with pandoc, i.e., `pandoc.List`,
3185 `pandoc.mediabag`, `pandoc.utils`, and `text` are re-exported from the
3186 `pandoc` module. They are assigned to the fields `List`, `mediabag`,
3187 `utils`, and `text`, respectively.
3189 * Text.Pandoc.Lua (Albert Krewinkel):
3191 + Split `StackInstances` into smaller Marshaling modules.
3192 + Get `CommonState` from Lua global. This allows more control over
3193 the common state from within Lua scripts.
3195 * LaTeX template:
3197 + Support the `subject` metadata variable (#5289, Pascal Wagler).
3198 + Add `\frontmatter`, `\mainmatter`, `\backmatter`
3199 for book classes (#5306).
3201 * epub3 template: Add titlepage class to section (#5269).
3203 * HTML5 template: Add ARIA role `doc-toc` for table of contents (#4213).
3205 * Make `--metadata-file` use selected extensions (#5279, #5272, Mauro Bieg).
3207 * Text.Pandoc.Shared:
3209 + Remove `withTempDir` [API change].
3210 + Add new exported function `defaultUserDataDirs` [API change].
3211 + Add `filterIpynbOutput` [API change].
3212 + `compactify`: Avoid lists with a mix of Plain and Para elements
3213 (#5285).
3215 * Text.Pandoc.Translations: reorder alphabetically and remove `Author`
3216 (#5334, Mauro Bieg).
3218 * Text.Pandoc.Extensions:
3220 + More carefully groom ipynb default extensions.
3221 + Add `all_symbols_escapable` to `githubMarkdownExtensions`.
3223 * Text.Pandoc.PDF:
3225 + Use system temp directory when possible (#1192). Previously we
3226 created temp dirs in the working directory, partly (a) because
3227 there were problems using the system temp directory on Windows,
3228 when their pathnames included tildes, and partly (b) because
3229 programs like `epstopdf.pl` would not be allowed to write to
3230 directories outside the working directory in restricted mode. We
3231 now (a) use the system temp dir except when the path includes
3232 tildes, and (b) set `TEXMFOUTPUT` when creating the PDF, so that
3233 subsidiary programs can use the system temp directory. This
3234 addresses problems that occurred when pandoc was used in a
3235 synced directory (such as Dropbox).
3236 + Change types of subsidiary functions to PandocIO, to allow
3237 warnings to be threaded through (#5343).
3239 * Text.Pandoc.MIME: add WebP (#5267, Mauro Bieg).
3241 * Tests: avoid calling `findPandoc` multiple times.
3243 * Old tests: remove need for temp files by using `pipeProcess`.
3245 * Added simple ipynb reader/writer tests (#5274).
3247 * Rearrange `--help` output in a more rational way, with common
3248 options at the beginning and options grouped by function (#5336).
3250 * trypandoc: Add JATS and other missing formats (Arfon Smith, #5291).
3252 * Add missing copyright notices and remove license boilerplate (#4592,
3253 Albert Krewinkel).
3255 * Use latest basement/foundation on 32bit windows.
3257 * Use latest skylighting (#5328). Custom syntax definitions no
3258 longer try to load `language.dtd`.
3260 * Require texmath 0.11.2.1
3262 * Use latest pandoc-citeproc (0.16.1.1).
3264 * MANUAL.txt:
3266 + Clarify variable substitution indentation in templates (#5338,
3267 Agustín Martín Barbero).
3268 + Reorder custom-styles section (#5324, Mauro Bieg).
3270## pandoc 2.6 (2019-01-30)
3272 * Support ipynb (Jupyter notebook) as input and output format.
3274 + Add `ipynb` as input and output format (extension `.ipynb`).
3275 + Added Text.Pandoc.Readers.Ipynb [API change].
3276 + Added Text.Pandoc.Writers.Ipynb [API change].
3277 + Add `PandocIpynbDecodingError` constructor to Text.Pandoc.Error.Error
3278 [API change].
3279 + Depend on ipynb library.
3280 + Note: there is no template for ipynb.
3282 * Add DokuWiki reader (#1792, Alexander Krotov). This adds
3283 Text.Pandoc.Readers.DokuWiki [API change], and adds `dokuwiki`
3284 as an input format.
3286 * Implement task lists (#3051, Mauro Bieg). Added `task_lists`
3287 extension. Task lists are supported from markdown and gfm input.
3288 They should work, to some degree, in all output formats, though in
3289 most formats you'll get a bullet list with a unicode character for
3290 the box. In HTML, you get checkboxes and in LaTeX/PDF output, a
3291 box is used as the list marker. API changes:
3293 + Added constructor `Ext_task_lists` to `Extension`.
3294 + Added `taskListItemFromAscii` and `taskListItemToAscii` to
3295 Text.Pandoc.Shared.
3297 * Allow some command line options to take URL in addition to FILE.
3298 `--include-in-header`, `--include-before-body`, `--include-after-body`.
3300 * HTML reader:
3302 + Handle empty `start` attribute (see #5162).
3303 + Treat `textarea` as a verbatim environment (#5241) and preserve
3304 spacing.
3306 * RST reader:
3308 + Change treatment of `number-lines` directive (Brian Leung,
3309 #5207). Directives of this type without numeric inputs should
3310 not have a `startFrom` attribute; with a blank value, the
3311 writers can produce extra whitespace.
3312 + Removed superfluous `sourceCode` class on code blocks (#5047).
3313 + Handle `sourcecode` directive as synonynm for `code` (#5204).
3315 * Markdown reader:
3317 + Remove `sourceCode` class for literate Haskell code blocks
3318 (#5047). Reverse order of `literate` and `haskell` classes on
3319 code blocks when parsing literate Haskell, so `haskell` is
3320 first.
3321 + Treat `<textarea>` as a verbatim environment (#5241).
3323 * Org reader:
3325 + Handle `minlevel` option differently (#5190, Brian Leung).
3326 When `minlevel` exceeds the original minimum level observed in
3327 the file to be included, every heading should be shifted
3328 rightward.
3329 + Allow for case of `:minlevel == 0` (#5190).
3330 + Fix treatment of links to images (#5191, Albert Krewinkel).
3331 Links with descriptions which are pointing to images are no
3332 longer parsed as inline images, but as links.
3333 + Add support for #+SELECT_TAGS (Brian Leung).
3334 + Separate filtering logic from conversion function (Brian Leung).
3336 * TWiki reader: Fix performance issue with underscores (#3921).
3338 * MediaWiki reader: use `_` instead of `-` in auto-identifiers (#4731).
3339 We may not still be exactly matching mediawiki's algorithm.
3341 * LaTeX reader:
3343 + Remove `sourceCode` class for literate Haskell code blocks
3344 (#5047). Reverse order of `literate` and `haskell` classes on
3345 code blocks when parsing literate Haskell, so `haskell` is
3346 first.
3347 + Support `\DeclareMathOperator` (#5149).
3348 + Support `\inputminted` (#5103).
3349 + Support `\endinput` (#5233).
3350 + Allow includes with dots like `cc_by_4.0`. Previously the `.0`
3351 was interpreted as a file extension, leading pandoc not to add
3352 `.tex` (and thus not to find the file). The new behavior matches
3353 tex more closely.
3355 * Man reader:
3357 + Use `mapLeft` from Shared instead of defining own.
3359 * Docx reader (Jesse Rosenthal):
3361 + Handle level overrides (#5134).
3363 * Docx writer:
3365 + Support custom properties (#3024, #5252, Agustín Martín Barbero).
3366 Also supports additional core properties: `subject`, `lang`,
3367 `category`, `description`.
3368 + Make Level into a real type, instead of an alias for a tuple
3369 (Jesse Rosenthal).
3371 * ICML writer (Mauro Bieg):
3373 + Support custom-styles (#5137, see #2106).
3374 + Support unnumbered headers (#5140).
3376 * Texinfo writer: Use header identifier for anchor if present (#4731).
3377 Previously we were overwriting an existing identifier with a new one.
3379 * Org writer: Preserve line-numbering for example and code blocks
3380 (Brian Leung).
3382 * Man/Ms writers: Don't escape `-` as `\-`. The `\-` gets rendered
3383 in HTML and PDF as a unicode minus sign.
3385 * Ms writer: Ensure we have a newline after .EN in display math (#5251).
3387 * RST writer: Don't wrap simple table header lines (#5128).
3389 * Asciidoc writer: Shorter delimiters for tables, blockquotes
3390 (#4364). This matches asciidoctor reference docs.
3392 * Dokuwiki writer: Remove automatic `:` prefix before internal image
3393 links (#5183, Damien Clochard). This prevented users from making
3394 relative image links.
3396 * Zimwiki writer: remove automatic colon prefix before internal
3397 images (#5183, Damien Clochard).
3399 * MediaWiki writer: fix caption, use 'thumb' instead of 'frame'
3400 (#5105). Captions used to have the word 'caption' prepended; this
3401 has been removed. Also, 'thumb' is used instead of 'frame' to
3402 allow images to be resized.
3404 * reveal.js writer:
3406 + Ensure that we don't get > 2 levels of section nesting,
3407 even with slide level > 2 (#5168).
3408 + If slide level == N but there is no N-level header, make
3409 sure the next header with level > N gets treated as a slide
3410 and put in a section, rather than remaining loose (#5168).
3412 * Markdown writer:
3414 + Make `plain` RawBlocks pass through in `plain` output.
3415 + Include needed whitespace after HTML figure (#5121).
3416 We use HTML for a figure in markdown dialects that can't
3417 represent it natively.
3419 * Commonmark writer:
3421 + Fix handling of SoftBreak with `hard_line_breaks` (#5195).
3422 + Implement `--toc` (`writerTableOfContents`)
3423 in commonmark/gfm writers (#5172).
3425 * EPUB writer:
3427 + Ensure that picture transforms are done on metadata too.
3428 + Small fixes to `nav.xhtml`:
3429 Add 'landmarks' id attribute to the landmarks nav.
3430 Replace old default CSS removing numbers from ol.toc li
3431 with new rules that match `nav#toc ol, nav#landmarks ol`.
3432 We keep the `toc` class on `ol` for backwards compatibility.
3434 * LaTeX writer:
3436 + Make raw content marked `beamer` pass through in `beamer`
3437 output (pandoc/lua-filters#40).
3438 + Beamer: avoid duplicated `fragile` property in some cases
3439 (#5208).
3440 + Add `#` special characters for listings (#4939).
3441 This character needs special handling in `\lstinline`.
3443 * RTF writer: use `toTableOfContents` from Shared to replace
3444 old duplicated code.
3446 * Pptx writer:
3448 + Support custom properties. Also supports additional core
3449 properties: `subject`, `category`, `description` (#5252,
3450 Agustín Martín Barbero).
3451 + Use `toTableOfContents` from Shared to replace old duplicated code.
3453 * ODT writer (Augustín Martín Barbero):
3455 + Fix typo in custom properties (#2839).
3456 + Improve standard properties, including the following core
3457 properties: `generator` (Pandoc/VERSION), `description`, `subject`,
3458 `keywords`, `initial-creator` (from authors), `creation-date`
3459 (actual creation date) (#5252).
3461 * Custom writers:
3463 + Allow '-' in filenames for custom lua writers (#5187).
3464 + sample.lua: add `SingleQuoted`, `DoubleQuoted` (#5104).
3465 + sample.lua: Add a missing `>` (MichaWiedenmann).
3467 * reveal.js template: Add `zoomKey` config (#4249).
3469 * HTML5 template: Remove unnecessary type="text/css" on style and
3470 link for HTML5 (#5146).
3472 * LaTeX template (Andrew Dunning, except where noted):
3474 + Prevent fontspec from scaling `mainfont` to match the default
3475 font, Latin Modern. A main font set to 12pt could
3476 previously appear between 11pt to 13pt depending on its design.
3477 To return to the earlier rendering, use `-V
3478 mainfontoptions="Scale=MatchLowercase"` (#5212, #5218).
3479 + Display monospaced fonts without TeX ligatures when using
3480 `--pdf-engine=lualatex`. It now matches the behaviour of other
3481 engines (#5212, #5218).
3482 + Remove the deprecated `romanfont` variable. The functionality of
3483 `mainfont` is identical (#5218).
3484 + Render `\subtitle` with the standard document classes.
3485 Previously, `subtitle` only appeared when using the KOMA-Script
3486 classes or Beamer (#5213, #5244).
3487 + Use Babel instead of Polyglossia for LuaLaTeX. This avoids
3488 several language selection problems, notably with retaining
3489 French spacing conventions when switching to a verbatim
3490 environment or another language; and in printing Greek text
3491 without hyphenation (#5193).
3492 + Use the [`xurl`](https://ctan.org/pkg/xurl) package if
3493 available, improving the appearance of URLs by allowing them to
3494 break at additional points (#5193).
3495 + Use [`bookmark`](https://ctan.org/pkg/bookmark) if available
3496 to correct heading levels in PDF bookmarks: see the [KOMA-Script
3497 3.26 release notes](https://komascript.de/release3.26) (#5193).
3498 + Require the [`xcolor`](https://ctan.org/pkg/xcolor) package to
3499 avoid a possible error when using additional packages alongside
3500 footnotes in tables (#5193, closes #4861).
3501 + Remove obsolete `fixltx2e` package, which has no functionality
3502 with TeX Live 2015 or later (#5193).
3503 + Allow multiple `fontfamilies.options` (#5193, closes #5194).
3504 + Restrict `institute` variable to Beamer (#5219).
3505 + Use [`footnotehyper`](https://ctan.org/pkg/footnotehyper)
3506 package if available to make footnotes in tables compatible
3507 with `hyperref` (#5234).
3508 + Number parts and chapters in book classes only if the
3509 `numbersections` variable is set, for consistency with other
3510 output formats. To return to the previous behaviour, use
3511 `-V numbersections -V secnumdepth=0` (#5235).
3512 + Reindent file (#5193).
3513 + Use built-in parskip handling with KOMA-Script classes (#5143, Enno).
3514 + Set default listings language for lua, assembler (#5227, John
3515 MacFarlane). Otherwise we get an error when trying to compile code
3516 with lua or assembler code. To change the default dialect
3517 (currently 5.3 for lua and x86masm for assembler), you can use
3518 `--include-in-header` to inject something like
3519 `\lstset{defaultdialect=[5.2]Lua}`.
3521 * Text.Pandoc.Readers: Changed types of `readJSON`; it now runs
3522 in an instance of PandocMonad, like the other readers and
3523 writers. [API change]
3525 * Text.Pandoc.Writers: Changed types of `writeJSON`; it now runs
3526 in an instance of PandocMonad, like the other readers and
3527 writers. [API change]
3529 * Text.Pandoc.Error: Added `PandocUTF8DecodingError` constructor
3530 for `PandocError`. [API change]
3532 * Text.Pandoc.Writers.Shared - add `toTableOfContents`. [API change]
3533 This is refactored out from the Markdown writer.
3534 It can be used in other writers to create a table of contents.
3536 * Improve error messages for UTF-8 decoding errors. Now we give
3537 the filename and byte offset (#4765).
3539 * Text.Pandoc.XML: Strip out illegal XML characters in
3540 `escapeXMLString` (#5119).
3542 * Text.Pandoc.Process: update `pipeProcess` (Albert Krewinkel).
3543 The implementation of `pipeProcess` was rewritten to fix sporadic
3544 failures caused by prematurely closed pipes.
3546 * Use `safeRead` instead of `read` everywhere in the code
3547 (John MacFarlane, Mauro Bieg, #5162, #5180).
3549 * Text.Pandoc.SelfContained: Decompress `.svgz` when
3550 converting to `data:` URI (#5163, Alexander Krotov).
3552 * Text.Pandoc.Parsing: Remove unused `HasHeaderMap`
3553 (#5175, Alexander Krotov). [API change]
3555 * Normalize Windows paths to account for change in ghc 8.6 (#5127).
3556 When pandoc is compiled with ghc 8.6, Windows paths are treated
3557 differently, and paths beginning `\\server` no longer work.
3558 This commit rewrites such patsh to `\\?\UNC\server` which works.
3559 The change operates at the level of argument parsing, so it
3560 only affects the command line program.
3562 * Simplify/fix reading of `--metadata` values on command line
3563 to avoid problems relating to hvr/HsYAML#7 (#5177).
3565 * data/pandoc.lua: auto-fix nested constructor arguments (Albert
3566 Krewinkel). Incorrect types to pandoc element constructors are
3567 automatically converted to the correct types when possible. This was
3568 already done for most constructors, but conversions are now also done
3569 for nested types (like lists of lists).
3571 * Removed custom Setup.hs, use build-type: simple. The only thing we
3572 gained from the custom build was automatic installation of the man
3573 page when using 'cabal install'. But custom builds cause problems,
3574 e.g., with cross-compilation. Installation of the man page is
3575 better handled by packagers. Note to packagers (e.g. Debian): it
3576 may be necessary to add a step installing the man page with the
3577 next release.
3579 * Allow latest http-client, tasty, zip-archive, Glob.
3581 * Require skylighting >= 0.7.5, adding support for sml, J,
3582 typescript.
3584 * Tests: Cleaned up `findPandoc` in `Tests.Helpers`, so it
3585 works well with cabal v2.
3587 * INSTALL.md:
3589 + Use button for installer links (John MacFarlane, Mauro Bieg,
3590 #5167).
3591 + Fix links and bump required stack version (max).
3592 + Improve installation notes on associated software (Andrew
3593 Dunning). Includes explanation of how to install related tools
3594 with package managers (since the method of installing
3595 `rsvg-convert` is not obvious).
3597 * doc/org.md: improve documentation of org features (Albert
3598 Krewinkel).
3600 * doc/lua-filters.md: use 3rd level headers for module fields.
3602 * MANUAL:
3604 + Clarify automatic identifiers (#5201). We remove
3605 non-alphanumerics. This includes, e.g., emojis.
3606 + Fix example for Div with id (Geoffrey Ely).
3607 + Update list of LaTeX packages used.
3608 + Make it clear that `hard_line_breaks` works in `gfm` (see #5195).
3609 + Mention `raw_attribute` in documentation for `raw_html` and
3610 `raw_tex` (#5240, thanks to @eiro).
3611 + Clarify that `$sep$` must come right before `$endfor$` in templates
3612 (#5243, Lev Givon).
3613 + Document metadata support for docx, odt, pptx writers (Agustín
3614 Martín Barbero).
3615 + Reorganize template variables (#5249, Andrew Dunning).
3616 Add additional headings to categorize variables, and
3617 alphabetize when there is large number; add more examples.
3618 + Document `date-meta` template variable (#5260, Tristan Stenner).
3620 * trypandoc: Fix CSS and viewport.
3622## pandoc 2.5 (2018-11-27)
3624 * Text.Pandoc.App: split into several unexported submodules (Albert
3625 Krewinkel): Text.Pandoc.App.FormatHeuristics,
3626 Text.Pandoc.App.Opt, Text.Pandoc.App.CommandLineOptions,
3627 Text.Pandoc.App.OutputSettings. This is motivated partly by the
3628 desire to reduce recompilations when something is modified,
3629 since App previously depended on virtually every other module.
3631 * Text.Pandoc.Extensions
3633 + Semantically, `gfm_auto_identifiers` is now a modifier of
3634 `auto_identifiers`; for identifiers to be set, `auto_identifiers` must
3635 be turned on, and then the type of identifier produced depends on
3636 `gfm_auto_identifiers` and `ascii_identifiers` are set. Accordingly,
3637 `auto_identifiers` is now added to `githubMarkdownExtensions` (#5057).
3638 + Remove `ascii_identifiers` from `githubMarkdownExtensions`.
3639 GitHub doesn't seem to strip non-ascii characters any more.
3641 * Text.Pandoc.Lua.Module.Utils (Albert Krewinkel)
3643 + Test AST object equality via Haskell (#5092). Equality of Lua
3644 objects representing pandoc AST elements is tested by unmarshalling
3645 the objects and comparing the result in Haskell.
3646 A new function `equals` which performs this test has been added to the
3647 `pandoc.utils` module.
3648 + Improve stringify. Meta value strings (MetaString)
3649 and booleans (MetaBool) are now converted to the literal string and the
3650 lowercase boolean name, respectively. Previously, all values of these
3651 types were converted to the empty string.
3653 * Text.Pandoc.Parsing: Remove Functor and Applicative constraints where Monad
3654 already exists (Alexander Krotov).
3656 * Text.Pandoc.Pretty: Don't render BreakingSpace at end of line
3657 or beginning of line (#5050).
3659 * Text.Pandoc.Readers.Markdown
3661 + Fix parsing of citations, quotes, and underline emphasis
3662 after symbols. Starting with pandoc 2.4, citations, quoted inlines,
3663 and underline emphasis were no longer recognized after certain
3664 symbols, like parentheses (#5099, #5053).
3665 + In pandoc 2.4, a soft break after an abbreviation would be
3666 relocated before it to allow for insertion of a nonbreaking
3667 space after the abbreviation. This behavior is here reverted.
3668 A soft break after an abbreviation will remain, and no nonbreaking
3669 space will be added. Those who care about this issue should take care not
3670 to end lines with an abbreviation, or to insert nonbreaking spaces
3671 manually.
3673 * Text.Pandoc.Readers.FB2: Do not throw error for unknown elements in
3674 `<body>` (Alexander Krotov). Some libraries include custom elements
3675 in their FB2 files.
3677 * Text.Pandoc.Readers.HTML
3679 + Allow `tfoot` before body rows (#5079).
3680 + Parse `<small>` as a Span with class "small" (#5080).
3681 + Allow thead containing a row with `td` rather than `th` (#5014).
3683 * Text.Pandoc.Readers.LaTeX
3685 + Cleaned up handling of dimension arguments. Allow decimal points,
3686 preceding space.
3687 + Don't allow arguments for verbatim, etc.
3688 + Allow space before bracketed options.
3689 + Allow optional arguments after `\\` in tables.
3690 + Improve parsing of `\tiny`, `\scriptsize`, etc. Parse as raw,
3691 but know that these font changing commands take no arguments.
3693 * Text.Pandoc.Readers.Muse
3695 + Trim whitespace before parsing grid table cells (Alexander Krotov).
3696 + Add grid tables support (Alexander Krotov).
3698 * Text.Pandoc.Shared
3700 + For bibliography match Div with id `refs`, not class `references`.
3701 This was a mismatch between pandoc's docx, epub, latex, and markdown
3702 writers and the behavior of pandoc-citeproc, which actually looks for a
3703 div with id `refs` rather than one with class `references`.
3704 + Exactly match GitHub's identifier generating algorithm (#5057).
3705 + Add parameter for `Extensions` to `uniqueIdent` and
3706 `inlineListToIdentifier` (#5057). [API change]
3707 This allows these functions to be sensitive to the settings of
3708 `Ext_gfm_auto_identifiers` and `Ext_ascii_identifiers`, and allows us to
3709 use `uniqueIdent` in the CommonMark reader, replacing custom code. It
3710 also means that `gfm_auto_identifiers` can now be used in all formats.
3712 * Text.Pandoc.Writers.AsciiDoc
3714 + Use `.`+ as list markers to support nested ordered lists (#5087).
3715 + Support list number styles (#5089).
3716 + Render Spans using `[#id .class]#contents#` (#5080).
3718 * Text.Pandoc.Writers.CommonMark
3720 + Respect `--ascii` (#5043, quasicomputational).
3721 + Make sure `--ascii` affects quotes, super/subscript.
3723 * Text.Pandoc.Writers.Docx
3725 + Fix bookmarks to headers with long titles (#5091).
3726 Word has a 40 character limit for bookmark names. In addition, bookmarks
3727 must begin with a letter. Since pandoc's auto-generated identifiers may
3728 not respect these constraints, some internal links did not work. With
3729 this change, pandoc uses a bookmark name based on the SHA1 hash of the
3730 identifier when the identifier isn't a legal bookmark name.
3731 + Add bookmarks to code blocks (Nikolay Yakimov).
3732 + Add bookmarks to images (Nikolay Yakimov).
3733 + Refactor common bookmark creation code into a function (Nikolay Yakimov).
3735 * Text.Pandoc.Writers.EPUB: Handle calibre metadata (#5098).
3736 Nodes of the form
3738 <meta name="calibre:series" content="Classics on War and Politics"/>
3740 are now included from an epub XML metadata file. You can also include
3741 this information in your YAML metadata, like so:
3743 calibre:
3744 series: Classics on War and Policitics
3746 In addition, ibooks-specific metadata can now be included via an XML
3747 file. (Previously, it could only be included via YAML metadata, see
3748 #2693.)
3750 * Text.Pandoc.Writers.HTML: Use plain `"` instead of `&quot;` outside of
3751 attributes.
3753 * Text.Pandoc.Writers.ICML: Consolidate adjacent strings, inc. spaces.
3754 This avoids splitting up the output unnecessarily into separate elements.
3756 * Text.Pandoc.Writers.LaTeX: Don't emit `[<+->]` unless beamer output, even
3757 if `writerIncremental` is True (#5072).
3759 * Text.Pandoc.Writers.Muse (Alexander Krotov).
3761 + Output tables as grid tables if they have multi-line cells.
3762 + Indent simple tables only on the top level.
3763 + Output tables with one column as grid tables.
3764 + Add support for `--reference-location`.
3765 + Internal improvements.
3767 * Text.Pandoc.Writers.OpenDocument: Fix list indentation (Nils Carlson,
3768 #5095). This was a regression in pandoc 2.4.
3770 * Text.Pandoc.Writers.RTF: Fix warnings for skipped raw inlines.
3772 * Text.Pandoc.Writers.Texinfo: Add blank line before `@menu` section (#5055).
3774 * Text.Pandoc.XML: in `toHtml5Entities`, prefer shorter entities
3775 when there are several choices for a particular character.
3777 * data/abbreviations
3779 + Add additional abbreviations (Andrew Dunning)
3780 Many of these borrowed from the Chicago Manual of Style 10.42,
3781 'Scholarly abbreviations'.
3783 * Templates
3785 + Asciidoc template: add :lang: to title header is lang is set in
3786 metadata (#5088).
3788 * pandoc.cabal: Add cabal flag `derive_json_via_th` (Albert Krewinkel)
3789 Disabling the flag will cause derivation of ToJSON and FromJSON
3790 instances via GHC Generics instead of Template Haskell. The flag is
3791 enabled by default, as deriving via Generics can be slow (see #4083).
3793 * trypandoc:
3795 + Tweaked drop-down lists.
3796 + Put link to site in footer.
3797 + Preselect output format.
3798 + Update on change of in or out format.
3799 + Add man input format.
3801 * MANUAL.txt:
3803 + Fix outdated description of latex_macros extension.
3804 + Clarified placement of bibliography.
3805 + Added "A note on security."
3806 + Fix note on curly brace syntx for locators.
3807 + Document new explicit syntax for citeproc locators.
3808 + Remove confusing cross-links for some extensions.
3809 + Don't put pandoc in code ticks in heading.
3810 + Document that `--ascii` works for gfm and commonmark too.
3811 + Add `man` to `--from` options.
3813 * doc/customizing-pandoc.md: various improvements (Mauro Bieg).
3816## pandoc 2.4 (2018-11-03)
3818### New features
3820 * New input format `man` (Yan Pashkovsky, John MacFarlane).
3822### Behavior changes
3824 * `--ascii` is now implemented in the writers, not in Text.Pandoc.App,
3825 via the new `writerPreferAscii` field in `WriterOptions`.
3826 Now the `write*` functions for Docbook, HTML, ICML, JATS, LaTeX,
3827 Ms, Markdown, and OPML are sensitive to `writerPreferAscii`.
3828 Previously the to-ascii translation was done in Text.Pandoc.App,
3829 and thus not available to those using the writer functions
3830 directly.
3832 * `--ascii` now works with Markdown output. HTML5 character reference
3833 entities are used.
3835 * `--ascii` now works with LaTeX output. 100% ASCII output can't be
3836 guaranteed, but the writer will use commands like `\"{a}` and `\l`
3837 whenever possible, to avoid emitting a non-ASCII character.
3839 * For HTML5 output, `--ascii` now uses HTML5 character reference
3840 entities rather than numerical entities.
3842 * Improved detection of format based on extension (in Text.Pandoc.App).
3843 We now ensure that if someone tries to convert a file for a
3844 format that has a pandoc writer but not a reader, it won't just
3845 default to markdown.
3847 * Add viz. to abbreviations file (#5007, Nick Fleisher).
3849 * AsciiDoc writer: always use single-line section headers,
3850 instead of the old underline style (#5038). Previously the single-line
3851 style would be used if `--atx-headers` was specified, but
3852 now it is always used.
3854 * RST writer: Use simple tables when possible (#4750).
3856 * CommonMark (and gfm) writer: Add plain text fallbacks. (#4528,
3857 quasicomputational). Previously, the writer would unconditionally
3858 emit HTML output for subscripts, superscripts, strikeouts (if the
3859 strikeout extension is disabled) and small caps, even with
3860 `raw_html` disabled. Now there are plain-text (and, where
3861 possible, fancy Unicode) fallbacks for all of these corresponding
3862 (mostly) to the Markdown fallbacks, and the HTML output is only
3863 used when `raw_html` is enabled.
3865 * Powerpoint writer: support raw openxml (Jesse Rosenthal, #4976).
3866 This allows raw openxml blocks and inlines to be used in the pptx
3867 writer. Caveats: (1) It's up to the user to write
3868 well-formed openxml. The chances for corruption, especially with
3869 such a brittle format as pptx, is high. (2) Because of
3870 the tricky way that blocks map onto shapes, if you are using
3871 a raw block, it should be the only block on a slide
3872 (otherwise other text might end up overlapping it). (3) The
3873 pptx ooxml namespace abbreviations are different from the
3874 docx ooxml namespaces. Again, it's up to the user to get it
3875 right. Unzipped document and ooxml specification should be
3876 consulted.
3878 * With `--katex` in HTML formats, do not use the autorenderer (#4946).
3879 We no longer surround formulas with `\(..\)` or `\[..\]`. Instead,
3880 we tell katex to convert the contents of span elements with
3881 class "math". Since math has already been identified, this
3882 avoids wasted time parsing for LaTeX delimiters. Note, however,
3883 that this may yield unexpected results if you have span elements
3884 with class "math" that don't contain LaTeX math.
3885 Also, use latest version of KaTeX by default (0.9.0).
3887 * The man writer now produces ASCII-only output, using groff escapes,
3888 for portability.
3890 * ODT writer:
3892 + Add title, author and date to metadata; any remaining
3893 metadata fields are added as `meta:user-defined` tags.
3894 + Implement table caption numbering (#4949, Nils Carlson).
3895 Captioned tables are numbered and labeled with format "Table 1:
3896 caption", where "Table" is replaced by a translation, depending
3897 on the value of `lang` in metadata. Uncaptioned tables are not
3898 enumerated.
3899 + OpenDocument writer: Implement figure numbering in captions (#4944,
3900 Nils Carlson). Figure captions are now numbered 1, 2, 3, ...
3901 The format in the caption is "Figure 1: caption" and so on
3902 (where "Figure" is replaced by a translation, depending on the
3903 value of `lang` in the metadata). Captioned figures are numbered
3904 consecutively and uncaptioned figures are not enumerated. This
3905 is necessary in order for LibreOffice to generate an
3906 Illustration Index (Table of Figures) for included figures.
3908 * RST reader: Pass through fields in unknown directives as div attributes
3909 (#4715). Support `class` and `name` attributes for all directives.
3911 * Org reader: Add partial support for `#+EXCLUDE_TAGS` option. (#4284,
3912 Brian Leung). Headers with the corresponding tags should not
3913 appear in the output.
3915 * Log warnings about missing title attributes now include a
3916 suggestion about how to fix the problem (#4909).
3918 * Lua filter changes (Albert Krewinkel):
3920 + Report traceback when an error occurs. A proper Lua traceback is
3921 added if either loading of a file or execution of a filter
3922 function fails. This should be of help to authors of Lua filters
3923 who need to debug their code.
3925 + Allow access to pandoc state (#5015). Lua filters and custom
3926 writers now have read-only access to most fields of pandoc's
3927 internal state via the global variable `PANDOC_STATE`.
3929 + Push ListAttributes via constructor (Albert Krewinkel).
3930 This ensures that ListAttributes, as present in OrderedList elements,
3931 have additional accessors (viz. `start`, `style`, and `delimiter`).
3933 + Rename ReaderOptions fields, use snake_case. Snake case is used
3934 in most variable names, using camelCase for these fields was an
3935 oversight. A metatable is added to ensure that the old field
3936 names remain functional.
3938 + Iterate over AST element fields when using `pairs`. This makes
3939 it possible to iterate over all ield names of an AST element by
3940 using a generic `for` loop with pairs`:
3942 for field_name, field_content in pairs(element) do
3943 ...
3944 end
3946 Raw table fields of AST elements should be considered an
3947 implementation detail and might change in the future. Accessing
3948 element properties should always happen through the fields
3949 listed in the Lua filter docs.
3951 Note that the iterator currently excludes the `t`/`tag` field.
3953 + Ensure that MetaList elements behave like Lists. Methods usable
3954 on Lists can also be used on MetaList objects.
3956 + Fix MetaList constructor (Albert Krewinkel). Passing a MetaList
3957 object to the constructor `pandoc.MetaList` now returns the
3958 passed list as a MetaList. This is consistent with the
3959 constructor behavior when passed an (untagged) list.
3961 * Custom writers: Custom writers have access to the global variable
3962 `PANDOC_DOCUMENT`(Albert Krewinkel, #4957). The variable contains
3963 a userdata wrapper around the full pandoc AST and exposes two
3964 fields, `meta` and `blocks`. The field content is only
3965 marshaled on-demand, performance of scripts not accessing the
3966 fields remains unaffected.
3968### API changes
3970 * Text.Pandoc.Options: add `writerPreferAscii` to `WriterOptions`.
3972 * Text.Pandoc.Shared:
3974 + Export `splitSentences`. This was previously duplicated in the Man and
3975 Ms writers.
3976 + Add `ToString` typeclass (Alexander Krotov).
3978 * New exported module Text.Pandoc.Filter (Albert Krewinkel).
3980 * Text.Pandoc.Parsing
3982 + Generalize `gridTableWith` to any `Char` Stream (Alexander Krotov).
3983 + Generalize `readWithM` from `[Char]` to any `Char` Stream
3984 that is a `ToString` instance (Alexander Krotov).
3986 * New exposed module Text.Pandoc.Filter (Albert Krewinkel).
3988 * Text.Pandoc.XML: add `toHtml5Entities`.
3990 * New exported module Text.Pandoc.Readers.Man (Yan Pashkovsky, John
3991 MacFarlane).
3993 * Text.Pandoc.Writers.Shared
3995 + Add exported functions `toSuperscript` and
3996 `toSubscript` (quasicomputational, #4528).
3997 + Remove exported functions `metaValueToInlines`,
3998 `metaValueToString`. Add new exported functions
3999 `lookupMetaBool`, `lookupMetaBlocks`, `lookupMetaInlines`,
4000 `lookupMetaString`. Use these whenever possible for uniformity
4001 in writers (Mauro Bieg, #4907). (Note that
4002 removed function `metaValueToInlines` was in previous
4003 released versions.)
4004 + Add `metaValueToString`.
4006 * Text.Pandoc.Lua
4008 + Expose more useful internals (Albert Krewinkel):
4010 - `runFilterFile` to run a Lua filter from file;
4011 - data type `Global` and its constructors; and
4012 - `setGlobals` to add globals to a Lua environment.
4014 This module also contains `Pushable` and `Peekable` instances
4015 required to get pandoc's data types to and from Lua. Low-level
4016 Lua operation remain hidden in Text.Pandoc.Lua.
4018 + Rename `runPandocLua` to `runLua` (Albert Krewinkel).
4020 + Remove `runLuaFilter`, merging this into Text.Pandoc.Filter.Lua's
4021 `apply` (Albert Krewinkel).
4023### Bug fixes and under-the-hood improvements
4025 * Text.Pandoc.Parsing
4027 + Make `uri` accept any stream with Char tokens (Alexander Krotov).
4028 + Rewrite `uri` without `withRaw` (Alexander Krotov).
4029 + Generalize `parseFromString` and `parseFromString'` to any
4030 streams with Char token (Alexander Krotov)
4031 + Rewrite `nonspaceChar` using `noneOf` (Alexander Krotov)
4033 * Text.Pandoc.Shared: Reimplement `mapLeft` using `Bifunctor.first`
4034 (Alexander Krotov).
4036 * Text.Pandoc.Pretty: Simplify `Text.Pandoc.Pretty.offset`
4037 (Alexander Krotov).
4039 * Text.Pandoc.App
4041 + Work around HXT limitation for --syntax-definition with windows
4042 drive (#4836).
4043 + Always preserve tabs for man format. We need it for tables.
4044 + Split command line parsing code into a separate unexported
4045 module, Text.Pandoc.App.CommandLineOptions (Albert Krewinkel).
4047 * Text.Pandoc.Readers.Roff: new unexported module for tokenizing
4048 roff documents.
4050 * New unexported module Text.Pandoc.RoffChar, provided character
4051 escape tables for roff formats.
4053 * Text.Pandoc.Readers.HTML: Fix `htmlTag` and `isInlineTag` to
4054 accept processing instructions (#3123, regression since 2.0).
4056 * Text.Pandoc.Readers.JATS: Use `foldl'` instead of `maximum` to
4057 account for empty lists (Alexander Krotov).
4059 * Text.Pandoc.Readers.RST: Don't allow single-dash separator in
4060 headerless table (#4382).
4062 * Text.Pandoc.Readers.Org: Parse empty argument array in inline src
4063 blocks (Brian Leung).
4065 * Text.Pandoc.Readers.Vimwiki:
4067 + Get rid of `F`, `runF` and `stateMeta'` in favor of `stateMeta`
4068 (Alexander Krotov).
4069 + Parse `Text` without converting to `[Char]` (Alexander Krotov).
4071 * Text.Pandoc.Readers.Creole: Parse `Text` without converting to
4072 `[Char]` (Alexander Krotov).
4074 * Text.Pandoc.Readers.LaTeX
4076 + Allow space at end of math after `\` (#5010).
4077 + Add support for `nolinkurl` command (#4992, Brian Leung).
4078 + Simplified type on `doMacros'`.
4079 + Tokenize before pulling tokens, rather than after (#4408). This
4080 has some performance penalty but is more reliable.
4081 + Make macroDef polymorphic and allow in inline context.
4082 Otherwise we can't parse something like `\lowercase{\def\x{Foo}}`.
4083 I have actually seen tex like this in the wild.
4084 + Improved parsing of `\def`, `\let`. We now correctly parse:
4085 ```
4086 \def\bar{hello}
4087 \let\fooi\bar
4088 \def\fooii{\bar}
4089 \fooi +\fooii
4091 \def\bar{goodbye}
4092 \fooi +\fooii
4093 ```
4094 + Improve parsing of `\def` argspec.
4095 + Skip `\PackageError` commands (see #4408).
4096 + Fix bugs omitting raw tex (#4527). The default is `-raw_tex`,
4097 so no raw tex should result unless we explicitly say `+raw_tex`.
4098 Previously some raw commands did make it through.
4099 + Moved `isArgTok` to Text.Pandoc.Readers.LaTeX.Parsing.
4100 + Moved `babelLangToBCP`, `polyglossiaLangToBCP` to new module,
4101 Text.Pandoc.Readers.LaTeX.Lang (unexported).
4102 + Simplified accent code using unicode-transforms.
4103 New dependency on unicode-transforms package for normalization.
4104 + Allow verbatim blocks ending with blank lines (#4624).
4105 + Support `breq` math environments: `dmath`, `dgroup`, `darray`.
4106 This collects some of the general-purpose code from the LaTeX reader,
4107 with the aim of making the module smaller.
4109 * Text.Pandoc.Readers.Markdown
4111 + Fix awkward soft break movements before abbreviations (#4635).
4112 + Add updateStrPos in a couple places where needed.
4114 * Text.Pandoc.Readers.Docx: Trigger bold/italic with bCs, iCs
4115 (#4947). These are variants for "complex scripts" like Arabic
4116 and are now treated just like b, i (bold, italic).
4118 * Text.Pandoc.Readers.Muse (Alexander Krotov)
4120 + Try to parse lists before trying to parse table.
4121 This ensures that tables inside lists are parsed correctly.
4122 + Forbid whitespace after opening and before closing markup
4123 elements.
4124 + Parse page breaks.
4125 + Simplify `museToPandocTable` to get rid of partial functions.
4126 + Allow footnotes to start with empty line.
4127 + Make sure that the whole text is parsed.
4128 + Allow empty headers. Previously empty headers caused parser to
4129 terminate without parsing the rest of the document.
4130 + Allow examples to be indented with tabs.
4131 + Remove indentation from examples indicated by `{{{` and `}}}`.
4132 + Fix parsing of empty cells.
4133 + Various changes to internals.
4134 + Rewrite some parsers in applicative style.
4135 + Avoid tagsoup dependency.
4136 + Allow table caption to contain `+`.
4138 * Text.Pandoc.Writers.LaTeX
4140 + Add newline if math ends in a comment (#4880). This prevents the
4141 closing delimiter from being swalled up in the comment.
4142 + With `--listings`, don't pass through org-babel attributes (#4889).
4143 + With `--biblatex`, use `\autocite` when possible (#4960).
4144 `\autocites{a1}{a2}{a3}` will not collapse the entries. So, if
4145 we don't have prefixes and suffixes, we use instead
4146 `\autocite{a1,a2,a3}`.
4147 + Fix description lists contining highlighted code (#4662).
4149 * Text.Pandoc.Writers.Man
4151 + Don't wrap `.SH` and `.SS` lines (#5019).
4152 + Avoid unnecessary `.RS`/`.RE` pair in definition lists with
4153 one paragraph definitions.
4154 + Moved common groff functions to Text.Pandoc.Writers.Groff.
4155 * Fix strong/code combination on man (should be `\f[CB]` not
4156 `\f[BC]`, see #4973).
4157 + Man writer: use `\f[R]` instead of `\f[]` to reset font
4158 (Alexander Krotov, #4973).
4159 + Move `splitSentences` to Text.Pandoc.Shared.
4161 * Text.Pandoc.Writers.Docx
4163 + Add framework for custom properties (#3034). So far, we don't
4164 actually write any custom properties, but we have the
4165 infrastructure to add this.
4167 + Handle tables in table cells (#4953). Although this is not
4168 documented in the spec, some versions of Word require a `w:p`
4169 element inside every table cell. Thus, we add one when the
4170 contents of a cell do not already include one (e.g. when a table
4171 cell contains a table).
4173 * Text.Pandoc.Writers.AsciiDoc: Prevent illegal nestings.
4174 Adjust header levels so that n+1 level headers are only
4175 found under n level headers, and the top level is 1.
4177 * Text.Pandoc.Writers.OpenDocument: Improve bullet/numbering
4178 alignment (#4385). This change eliminates the large gap we used
4179 to have between bullet and text, and also ensures that numbers
4180 in numbered lists will be right-aligned.
4182 * Text.Pandoc.Writers.ZimWiki
4184 + Number ordered list items sequentially, rather than always
4185 with 1 (#4962).
4186 + Remove extra indentation on lists (#4963).
4188 * Text.Pandoc.Writers.EPUB: Use metadata field `css` instead of
4189 `stylesheet` (Mauro Bieg, #4990).
4191 * Text.Pandoc.Writers.Markdown: Ensure blank between raw block and
4192 normal content (#4629). Otherwise a raw block can prevent a
4193 paragraph from being recognized as such.
4195 * Text.Pandoc.Writers.Ms
4197 + Removed old `escapeBar`. We don't need this now that we use
4198 `@` for math delim.
4199 + Moved common code to Text.Pandoc.Writers.Roff and to
4200 Text.Pandoc.RoffChar.
4201 + Move `splitSentences` to Text.Pandoc.Shared (to avoid duplication
4202 with the man writer).
4204 * Text.Pandoc.Writers.Muse (Alexander Krotov).
4206 + Add support for grid tables.
4207 + Fix Muse writer style.
4208 + Use `length` instead of `realLength` to calculate definition
4209 indentation. Muse parsers don't take character width into
4210 account when calculating indentation.
4211 + Do not insert newline before lists.
4212 + Use lightweight markup after `</em>` tag.
4214 * New unexported module Text.Pandoc.Writers.Roff, providing functions
4215 useful for all roff format writers (man, ms).
4217 * Text.Pandoc.Lua
4219 + Move globals handling to separate module Text.Pandoc.Lua.Global
4220 (Albert Krewinkel).
4222 + Lua filter internals: push Shared.Element as userdata (Albert
4223 Krewinkel). Hierarchical Elements were pushed to Lua as plain
4224 tables. This is simple, but has the disadvantage that marshaling
4225 is eager: all child elements will be marshaled as part of the
4226 object. Using a Lua userdata object instead allows lazy access
4227 to fields, causing content marshaling just (but also each time)
4228 when a field is accessed. Filters which do not traverse the full
4229 element contents tree become faster as a result.
4231### Default template changes
4233 * LaTeX template:
4235 + Add variable `hyperrefoptions` (#4925, Mathias Walter).
4236 + Add variable `romanfont`, `romanfontoptions` (#4665, OvidiusCicero).
4238 * AsciiDoc template: use single-line style for title.
4240 * revealjs template: Fix typo in the socket.io javascript plugin (#5006,
4241 Yoan Blanc).
4243 * Text.Pandoc.Lua.Util: add missing docstring to `defineHowTo`
4244 (Albert Krewinkel).
4246 * data/pandoc.lua: add datatype ListAttributes (Albert Krewinkel)
4248 * data/sample.lua: replace custom pipe function with pandoc.utils.pipe
4249 (Albert Krewinkel).
4251### Documentation improvements
4253 * INSTALL.md
4255 + Add chromeos install instructions (#4958) (Evan Pratten).
4256 + Add note about TinyTeX.
4258 * MANUAL.txt
4260 + Change `groff` -> `roff`.
4261 + Implement `--ascii` for Markdown writer.
4262 + Clarify LaTeX image dimensions output (Mauro Bieg).
4264 * doc/customizing-pandoc.md: added skeleton (Mauro Bieg, #3288).
4266 * doc/getting-started.md: Added title to test1.md to avoid warning.
4268 * doc/lua-filters.md: merge type references into main document,
4269 fix description of Code.text (Albert Krewinkel).
4271### Build infrastructure improvements
4273 * Makefile
4275 + Makefile: added quick-cabal, full-cabal targets.
4276 + Make .msi download targets insensitive to order of appveyor builds.
4278 * Update benchmarks for ghc 8.6.1.
4280 * pandoc.cabal:
4282 + Enable more compiler warnings (Albert Krewinkel).
4283 + Make base lower bound 4.8.
4284 + Bump upper bound for QuickCheck.
4285 + Bump upper bound for binary.
4286 + Updated version bounds for containers and haddock-library (#4974).
4287 + Added docx/docPropos/custom.xml to cabal data-files.
4288 + Require skylighting 0.7.4 (#4920).
4289 + New dependency on unicode-transforms package for normalization.
4291 * Improved .travis.yml testing and test with GHC 8.6.1 (Albert Krewinkel).
4293 * Added `tools/changelog-helper.sh`.
4295 * Added test/grofftest.sh for testing the man reader on real man pages.
4297## pandoc 2.3.1 (2018-09-28)
4299 * RST reader:
4301 + Parse RST inlines containing newlines (#4912, Francesco Occhipinti).
4302 This eliminates a regression introduced after pandoc 2.1.1, which
4303 caused inline constructions containing newlines not to be recognized.
4304 + Fix bug with internal link targets (#4919). They were gobbling up
4305 indented content underneath.
4307 * Markdown reader: distinguish autolinks in the AST. With this change,
4308 autolinks are parsed as Links with the `uri` class. (The same is true
4309 for bare links, if the `autolink_bare_uris` extension is enabled.)
4310 Email autolinks are parsed as Links with the `email` class. This
4311 allows the distinction to be represented in the AST.
4313 * Org reader:
4315 + Force inline code blocks to honor export options (Brian Leung).
4316 + Parse empty argument array in inline src blocks (Brian Leung).
4318 * Muse reader (Alexander Krotov):
4320 + Added additional tests.
4321 + Do not allow code markup to be followed by digit.
4322 + Remove heading level limit.
4323 + Simplify `<literal>` tag parsers
4324 + Parse Text instead of String. Benchmark shows 7% improvement.
4325 + Get rid of HTML parser dependency.
4326 + Various code improvements.
4328 * ConTeXt writer: change `\` to `/` in Windows image paths (#4918).
4329 We do this in the LaTeX writer, and it avoids problems.
4330 Note that `/` works as a LaTeX path separator on Windows.
4332 * LaTeX writer:
4334 + Add support for multiprenote and multipostnote arguments
4335 with `--biblatex` (Brian Leung, #4930). The multiprenotes occur before
4336 the first prefix of a multicite, and the multipostnotes follow the
4337 last suffix.
4338 + Fix a use of `last` that might take empty list. If you ran with
4339 `--biblatex` and have an empty document (metadata but no blocks),
4340 pandoc would previously raise an error because of the use of
4341 `last` on an empty list.
4343 * RTF writer: Fix build failure with ghc-8.6.1 caused by missing
4344 MonadFail instance (Jonas Scholl).
4346 * ODT Writer: Improve table header row style handling (Nils Carlson).
4347 This changes the way styles for cells in the header row
4348 and normal rows are handled in ODT tables.
4349 Previously a new (but identical) style was generated for
4350 every table, specifying the style of the cells within the table.
4351 After this change there are two style definitions for table cells,
4352 one for the cells in the header row, one for all other cells.
4353 This doesn't change the actual styles, but makes post-processing
4354 changes to the table styles much simpler as it is no longer
4355 necessary to introduce new styles for header rows and there are
4356 now only two styles where there was previously one per table.
4358 * HTML writer:
4360 + Don't add `uri` class to presumed autolinks. Formerly the `uri`
4361 class was added to autolinks by the HTML writer, but it had to
4362 guess what was an autolink and could not distinguish
4363 `[http://example.com](http://example.com)` from
4364 `<http://example.com>`. It also incorrectly recognized
4365 `[pandoc](pandoc)` as an autolink. Now the HTML writer
4366 simply passes through the `uri` attribute if it is present,
4367 but does not add anything.
4368 + Avoid adding extra section nestings for revealjs.
4369 Previously revealjs title slides at level (slidelevel - 1)
4370 were nested under an extra section element, even when
4371 the section contained no additional (vertical) content.
4372 That caused problems for some transition effects.
4373 + Omit unknown attributes in EPUB2 output. For example,
4374 `epub:type` attributes should not be passed through,
4375 or the epub produced will not validate.
4377 * JATS writer: remove 'role' attribute on 'bold' and 'sc' elements (#4937).
4378 The JATS spec does not allow these.
4380 * Textile writer: don't represent `uri` class explicitly
4381 for autolinks (#4913).
4383 * Lua filters (Albert Krewinkel):
4385 + Cleanup filter execution code.
4386 + Better error on test failure.
4388 * HTML, Muse reader tests: reduce time taken by round-trip test.
4390 * Added cabal.project.
4392 * MANUAL: `epub:type` is only useful for epub3 (Maura Bieg).
4394 * Use hslua v1.0.0 (Albert Krewinkel).
4396 * Fix `translations/ru` to use modern Russian orthography
4397 (Ivan Trubach).
4399 * Build Windows binary using ghc 8.6.1 and cabal new-build. This
4400 fixes issues with segfaults in the 32-bit Windows binaries (#4283).
4402## pandoc 2.3 (2018-09-16)
4404 * Add `--metadata-file` option (Mauro Bieg, #1960), which allows
4405 users to specify metadata in a YAML file, regardless of the
4406 input format (#1960).
4408 * Text.Pandoc.Writers.Shared: export `isDisplayMath` (API change).
4410 * Text.Pandoc.Readers.Markdown: export `yamlToMeta` (API change,
4411 Mauro Bieg).
4413 * Text.Pandoc.Readers.LaTeX.Types:
4415 + New type `ArgSpec` (API change).
4416 + Second parameter of `Macro` constructor is now `[ArgSpec]` instead of
4417 `Int` (API change).
4419 * Markdown reader:
4421 + Use `tex` instead of `latex` for raw tex-ish content. We can't
4422 always tell if it's LaTeX, ConTeXt, or plain TeX. Better just to
4423 use `tex` always. Note that if `context` or `latex` specifically
4424 is desired, you can still force that in a markdown document by
4425 using the raw attribute. Note that this change may affect some
4426 filters, if they assume that raw tex parsed by the Markdown reader
4427 will be RawBlock (Format `latex`). In most cases it should be
4428 trivial to modify the filters to accept `tex` as well.
4429 + Refactor and reorganize YAML code (Mauro Bieg).
4430 + Make `example_lists` work for interrupted lists
4431 without `startnum` (#4908).
4433 * HTML reader:
4435 + Parse `<script type="math/tex` tags as math (#4877).
4436 These are used by MathJax in some configurations.
4437 + Extract spaces inside links instead of trimming them
4438 (Alexander Krotov, #4845).
4439 + Added round-trip tests (Alexander Krotov).
4440 + Make parsing sensitive to the `raw_tex` extension (#1126). This now
4441 allows raw LaTeX environments, `\ref`, and `\eqref` to be parsed
4442 (which is helpful for translation HTML documents using MathJaX).
4444 * Org reader (Albert Krewinkel):
4446 + Respect export option `p` for planning info. Inclusion of planning info
4447 (`*DEADLINE*`, `*SCHEDULED*`, and `*CLOSED*`) can be controlled via the
4448 `p` export option: setting the option to `t` will add all planning
4449 information in a *Plain* block below the respective headline.
4450 + Org reader internals: don't rely on RecordWildCards and ViewPatterns
4451 ghc extensions.
4452 + Strip planning info from output. Planning info is parsed, but not
4453 included in the output (as is the default with Emacs Org-mode, #4867).
4455 * LaTeX reader:
4457 + Handle parameter patterns for `\def` (#4768, #4771).
4458 For example: `\def\foo#1[#2]{#1 and #2}`.
4459 + Allow `%` characters in URLs. This affects `\href` and `\url` (#4832).
4460 + Fixed parsing of `\texorpdfstring`. We were returning the wrong
4461 argument as the content.
4462 + Support `blockcquote`, `foreignblockquote`, `foreigncblockquote`,
4463 `hyphenblockquote`, `hyphencblockquote`, `enquote*`, `foreignquote`,
4464 `hyphenquote` from `csquotes` (#4848). Note that `foreignquote`
4465 will be parsed as a regular Quoted inline (not using the quotes
4466 appropriate to the foreign language).
4467 + Support more text-mode accents (#4652). Add support for `\|`, `\b`, `\G`,
4468 `\h`, `\d`, `\f`, `\r`, `\t`, `\U`, `\i`, `\j`, `\newtie`,
4469 `\textcircled`. Also fall back to combining characters when composed
4470 characters are not available.
4471 + Resolve `\ref` for figure numbers.
4472 + Support `mintinline` (#4365, Marc Schreiber).
4473 + Fix siunitx unit commands so they are only recognized in
4474 siunitx contexts (#4842). For example, `\l` outside of an
4475 siunitx context should be l-slash, not l (for liter).
4476 + Fix double `unnumbered` class (#4838). The `unnumbered` class
4477 was being included twice for starred sections.
4479 * RST reader: Don't skip link definitions after comments (#4860).
4481 * Muse reader (Alexander Krotov):
4483 + Close the `</quote>` in indented tag test.
4484 There is already a separate test for unclosed `</quote>`.
4485 + Autonumber sections in the correct order. Parsing now stops
4486 at each section header to ensure the header is registered before
4487 parsing of the next section starts.
4488 + Move duplicate code into `headingStart` function.
4489 + Allow newline after opening `*` or `**`.
4490 + Don't allow digits after closing marker in lightweight markup
4491 This change makes reader more compatible with Emacs Muse.
4492 + Parse `<verse>` tag in one pass instead of using
4493 `parseFromString`. This change makes it possible to have
4494 verbatim `</verse>` tag inside verse.
4496 * ODT reader: deal gracefully with missing `<office:font-face-decls/>`
4497 (#4336). This allows pandoc to parse ODT document produced by KDE's
4498 Calligra.
4500 * Muse writer (Alexander Krotov):
4502 + Output headers without asterisks if not on the top level.
4503 + Never wrap definition list terms.
4504 + Set `envInsideBlock = True` when rendering notes.
4505 + Use `""` instead of `[]` for empty String.
4506 + Check for whitespace in the beginning and end of Str's.
4507 + Escape `-`, `;` and `>` in the beginning of strings.
4508 + Escape list markers in the beginning of notes.
4509 + Normalize inline list before testing if tags should be used.
4510 + Use tags instead of lightweight markup for empty strings.
4511 + Use lightweight markup when possible.
4512 + Escape empty strings. This guarantees that `conditionalEscapeString`
4513 never returns empty string.
4514 + Wrap conditionalEscapeString result into `Muse` type.
4515 This removes the need to pass `envInsideLinkDescription` to it.
4516 + Separate `shouldEscapeString` function.
4517 + Simplify inline list rendering.
4518 + Replace newlines in strings with spaces.
4520 * Docx writer:
4522 + Add MetaString case for abstract, subtitle (#4900, Mauro Bieg).
4523 + Properly handle display math in spans (#4826). This isn't a
4524 complete solution, since other nestings of display math may still
4525 cause problems, but it should work for what is by far the most
4526 common case.
4528 * HTML writer:
4530 + Always output `<dt>` element, even if it is empty (#4883,
4531 Alexander Krotov).
4532 + Don't prefix `epub:` attributes with `data-`.
4534 * Org writer: Don't escape literal `_`, `^` (#4882). Org doesn't
4535 recognize these escapes.
4537 * ODT writer: Fix percentage image scaling (#4881, Nils Carlson).
4538 Image scaling was broken when a width was set to a percentage.
4540 * EPUB writer: set `epub:type` on body element in each chapter,
4541 depending on the `epub:type` of the first section (#4823). This
4542 only affects epub3. See
4543 http://www.idpf.org/epub/profiles/edu/structure/#h.l0bzsloklt10
4545 * FB2 writer: put `coverpage` element between title and date rather than in
4546 `document-info` element (#4854).
4548 * Markdown writer: Escape `~` if strikeout extension enabled (#4840).
4550 * Haddock writer: Use proper format for latex math in haddock (#4571, Joe
4551 Hermaszewski). Inline math in `\(..\)`, display math in `\[..\]`,
4552 tex is now used. Previously we'd "fake it with unicode" and fall
4553 back to tex when that didn't work. But newer haddock versions
4554 support latex math.
4556 * TEI writer:
4558 + Ensure that title element is always present, even if empty (#4839).
4559 + Put author tags in the template, rather than adding them in
4560 the writer (#4839).
4562 * LaTeX writer/template: be sensitive to `filecolor` variable (#4822).
4563 `linkcolor` only affects internal links, and `urlcolor` only
4564 affects linked URLs. For external links, the option to use is
4565 `filecolor`.
4567 * ConTeXt writer: output raw `tex` blocks as well as `context` (#969).
4569 * RST writer:
4571 + Use `.. raw:: latex` for `tex` content.
4572 + Use `.. container` for generic Divs, instead of raw HTML.
4573 + Render Divs with admonition classes as admonitions (#4833).
4574 Also omit Div with class `admonition-title`. These are generated
4575 by the RST reader and should be omitted on round-trip.
4577 * Text.Pandoc.PDF: fix message printed when rsvg-convert is not available
4578 (#4855, Antonio Terceiro).
4580 * HTML5 template: add the `title-block-header` identifier to the
4581 `header` element, to make it easier to style precisely (#4767,
4582 J. B. Rainsberger).
4584 * OpenDocument template: Remove unnecessary indenting of TOC title (#4798,
4585 José de Mattos Neto).
4587 * latex template: Add support for $toc-title$ to LaTeX (and PDF)
4588 (#4853, Wandmalfarbe).
4590 * TEI template: improve `publicationStmt`. Add support for
4591 `publisher`, `address`, `pubPlace`, and `date` variables.
4593 * beamer template: Support "toc-title" (#4835, Cyril Roelandt).
4595 * Text.Pandoc.Extensions: Fix haddock on `Ext_footnotes` (Chris Martin).
4597 * Lua: cleanup Lua utils, remove unused functions (Albert Krewinkel).
4599 * MANUAL.txt:
4601 + Clarify that `--biblatex/--natbib` don't work directly for PDF
4602 (#4904).
4603 + Document `epub:type` attribute (Mauro Bieg, #4901)
4604 + Clarify when `--resource-path` has an effect.
4605 + More detail on customization in syntax highlighting section.
4606 + Document encoding issue with `--listings` (#4871, Damien Clochard).
4607 + Remove docs on removed `--katex-stylesheet` (Mauro Bieg, #4862).
4608 + Use https for context wiki links (#4910).
4610 * CONTRIBUTING.md:
4612 + Link to lua-filters repository (#4874).
4613 + Fix mistake in REPL instructions for stack. (#4849, Brian Leung).
4615 * lua-filters.md: add links to filters, and to lua-filters repository
4616 (#4874).
4618 * INSTALL.md:
4620 + Indicate that cabal >= 2.0 is needed.
4621 + Added chocolatey installation method (#4844, Miodrag Milić).
4623 * Travis: exclude round-trip tests, except for nightly test which can fail.
4625 * Use latest texmath, pandoc-citeproc.
4627 * Use a patched version of foundation until
4628 https://github.com/haskell-foundation/foundation/pull/503
4629 is fixed.
4631 * Clean up appveyor build and Windows package creation.
4632 We now use 64-bit stack and ghc 8.4.3, lts-12 for the 64-bit build. The
4633 WiX-based msi is now 64-bit for 64-bit builds (fixing #4795).
4635 * Remove obsolete RELEASE-CHECKLIST.md.
4637 * Added additional compiler warnings in Makefile and CI builds.
4639## pandoc 2.2.3.2 (2018-08-07)
4641 * Markdown reader: Properly handle boolean values in YAML metadata (#4819).
4642 This fixes a regression in 2.2.3, which cause boolean values to
4643 be parsed as MetaInlines instead of MetaBool.
4645 We here record another undocumented (but desirable) change in 2.2.3:
4646 numerical metadata fields are now parsed as MetaInlines rather than
4647 MetaString.
4649## pandoc 2.2.3.1 (2018-08-06)
4651 * Markdown reader: Fix parsing of embedded mappings in YAML metadata
4652 (#4817). This fixes a regression in 2.2.3 which caused embedded
4653 mappings (e.g. mappings in sequences) not to work in YAML metadata.
4655## pandoc 2.2.3 (2018-08-05)
4657 * RST reader: improve parsing of inline interpreted text roles (#4811).
4659 + Use a Span with class "title-reference" for the default
4660 title-reference role.
4661 + Use `B.text` to split up contents into `Space`s, `SoftBreak`s,
4662 and `Str`s for `title-reference`.
4663 + Use Code with class "interpreted-text" instead of Span and Str for
4664 unknown roles. (The RST writer has also been modified to round-trip
4665 this properly.)
4666 + Disallow blank lines in interpreted text.
4667 + Backslash-escape now works in interpreted text.
4668 + Backticks followed by alphanumerics no longer end interpreted text.
4669 + Remove support for nested inlines (Francesco Occhipinti).
4670 RST does not allow nested emphasis, links, or other inline
4671 constructs. This fixes several bugs (#4581, #4561, #4792).
4673 * Org reader: fix parsers relying on `parseFromString` (#4784, Albert
4674 Krewinkel). Emphasis was not parsed when it followed directly after
4675 some block types (e.g., lists).
4677 * Markdown reader: Allow unquoted numbers and booleans as YAML mapping
4678 keys. Previously in 2.2.2 you could not do
4679 ```
4680 ---
4681 0: bar
4682 ...
4683 ```
4684 but only
4685 ```
4686 ---
4687 '0': bar
4688 ...
4689 ```
4690 With this change, both forms work.
4692 * DocBook reader: metadata handling improvements.
4693 Now we properly parse title and subtitle elements that are direct
4694 children of book and article (as well as children of bookinfo,
4695 articleinfo, or info). We also now use the `subtitle` metadata
4696 field for subtitles, rather than tacking the subtitle on to the
4697 title.
4699 * RST writer:
4701 + Allow images to be directly nested within links (#4810, Francesco
4702 Occhipinti).
4703 + Use `titleblock` instead of `title` variable for title block (#4803,
4704 Francesco Occhipinti). `titleblock` contains a properly formatted
4705 title and subtitle (using top-level headers). `title` and
4706 `subtitle` variables are still available and just contain the
4707 title and subtitle text. Note that this change will require an
4708 update to custom rst templates.
4709 + Render Code with class "interpreted-text" as interpreted text role.
4711 * MediaWiki writer: Avoid extra blank line in tables with empty cells
4712 (#4794). Note that the old output is semantically identical, but the
4713 new output looks better.
4715 * Lua Utils module: add function `blocks_to_inlines` (#4799, Albert
4716 Krewinkel). Exposes a function converting which flattenes a list of
4717 blocks into a list of inlines. An example use case would be the
4718 conversion of Note elements into other inlines.
4720 * RST template: use `titleblock` instead of `title`. Users of
4721 custom RST templates will want to update this.
4723 * LaTeX template: Moved some beamer code in default.latex template.
4724 This change allows beamer themes to change the template and font (as
4725 Metropolis does) (#4450).
4727 * Better error message on `-t pdf -o out.pdf` (#1155, Mauro Bieg).
4729 * Added test case for #4669 to repository.
4731 * INSTALL.md: Fix broken link for cabal-install (#4806, ChanHoHo).
4733 * MANUAL.txt:
4735 + Add beamer info for slide backgrounds (#4802, John Muccigrosso).
4736 + Clarify when `csquotes` is used in LaTeX writer (#4514).
4737 + Add `commonmark` to list of output formats where `raw_tex` has an
4738 effect (see #4527).
4741## pandoc 2.2.2.1 (2018-07-19)
4743 * Fix regression finding templates in user data directory (#4777).
4744 Under version 2.2.1 and prior pandoc found latex templates in the
4745 templates directory under the data directory, but this broke in 2.2.2.
4747 * Fix for bug in parsing `\input` in `rawLaTeXBlock` and
4748 `rawLaTeXInline` (#4781). (This primarily affects the markdown
4749 reader, and other readers that accept raw tex.)
4750 Starting in 2.2.2, everything after an `\input` (or `\include`)
4751 in a markdown file would be parsed as raw LaTeX.
4753 * MANUAL:
4755 + Clarify `gfm` vs `markdown_github` (#4783, Mauro Bieg).
4756 * Use `keywords` instead of `tags` in YAML metadata example (#4779).
4757 Unlike `tags`, `keywords` is used in some of the writers
4758 and default templates.
4760 * Add missing `rollingLinks` option to revealjs template (#4778,
4761 Igor Khorlo).
4763## pandoc 2.2.2 (2018-07-16)
4765 * Use HsYAML instead of yaml for translations and YAML metadata (#4747).
4766 yaml wraps a C library; HsYAML is pure Haskell. Advances #4535.
4768 Note: HsYAML implements YAML 1.2, in which the valid true
4769 values are `true`, `True`, `TRUE`. This means a change in
4770 the semantics of YAML metadata that could affect users:
4771 `y`, `yes`, and `on` no longer count as true values.
4773 * Fix regression: make `--pdf-engine` work with full paths (#4681, Mauro
4774 Bieg).
4776 * CommonMark reader: Handle `ascii_identifiers` extension (#4742,
4777 Anders Waldenborg). Non-ascii characters were not stripped from
4778 identifiers even if the `ascii_identifiers` extension was
4779 enabled (which is is by default for gfm).
4781 * TikiWiki reader: Improve list parsing (#4722, Mauro Bieg).
4782 Remove trailing Space from list items. Parse lists that have no space
4783 after marker.
4785 * LaTeX reader:
4787 + Treat `lilypond` as a verbatim environment (#4725).
4788 + Parse figure label into Image id (#4700, Mauro Bieg).
4789 + Beamer: Allow "noframenumbering" option (#4696, Raymond Ehlers).
4790 + Allow spaces around `\graphicspath` arguments (#4698).
4791 + Handle includes without surrounding blanklines (#4553).
4792 In addition, `\input` can now be used in an inline context,
4793 e.g. to provide part of a paragraph, as it can in LaTeX.
4794 + In `rawLaTeXBlock`, handle macros that resolve to a
4795 `\begin` or `\end` (#4667).
4796 + In `rawLaTeXBlock`, don't expand macros in macro definitions (#4653).
4797 Note that this only affected LaTeX in markdown.
4798 + Tighten up reading of beamer overlay specifications (#4669).
4799 Ideally we'd turn these on only when reading beamer, but currently
4800 beamer is not distinguished from latex as an input format.
4801 This commit also activates parsing of overlay specifications
4802 after commands in general (e.g. `\item`), since they can occur
4803 in many contexts in beamer.
4804 + Parse more siunitx unit commands (#4296, #4773).
4805 + Be more forgiving in key/value option parsing (#4761).
4807 * Markdown reader:
4809 + Allow empty code spans, e.g. `` ` ` ``.
4810 + Emojis are now wrapped in Spans with class `emoji` and
4811 attribute `data-emoji` (Anders Waldenborg, #4743).
4812 This allows the writer to handle them in a special way
4813 (e.g. using a special font, or just rendering the
4814 emoji name).
4816 * Muse reader (Alexander Krotov, except where indicated):
4818 + Get rid of non-exhaustive pattern match warning (Mauro Bieg).
4819 + Add support for floating images.
4820 + Add support for images with specified width.
4821 + Parse image URLs without "guard" and "takeExtension".
4822 + Split link and image parsing into separate functions.
4823 + Parse links starting with "URL:" explicitly instead of trying to strip
4824 "URL:" prefix after parsing.
4826 * Texinfo writer: Use `@sup` and `@sub` instead of custom macros (#4728,
4827 Alexander Krotov).
4829 * Markdown writer: Preserve `implicit_figures` with attributes, even if
4830 `implicit_attributes` is not set, by rendering in raw HTML (#4677).
4832 * Markdown and commonmark/github writers now respect the `emoji`
4833 extension. So, `-f markdown+emoji -t markdown+emoji` now leaves
4834 `:smile:` as `:smile:` rather than converting it to a smile
4835 character.
4837 * Docx writer: Be sensitive to `toc` in YAML metadata (#4645).
4839 * ODT/OpenDocument writer: Make internal links work (#4358).
4840 This adds proper bookmarks to the headers with non-null IDs.
4842 * EPUB writer: Properly escape pagetitle. Previously we weren't
4843 escaping `&` and other XML characters in the pagetitle, so a title
4844 containing a `&` would be invalid.
4846 * AsciiDoc Writer: Eescape square brackets at start of line (#4545,
4847 Mauro Bieg).
4849 * RST writer:
4851 + Don't treat 'example' as a syntax name (#4748).
4852 This fixes conversions from org with example blocks.
4853 + Support `--number-sections` via the `section-numbering`
4854 directive in standalone output.
4856 * reveal.js writer and template: reuse mathjax URL
4857 provided by the argument to `--mathjax` or the normal pandoc default,
4858 rather than a hard-coded one in the template (#4701).
4860 * LaTeX writer:
4862 + Properly handle footnotes in table captions (#4683).
4863 Refactored code from figure captions to use in both places.
4864 + In beamer output, fix single digit column percentage (#4690, Mauro
4865 Bieg).
4867 * FB2 writer (Alexander Krotov):
4869 + Convert Plain to Para in annotation (#2424).
4870 + Fix order of items in title-info (#2424).
4872 * Custom writer: fix error message on script failure (Albert Krewinkel).
4873 Error messages produced by Lua were not displayed by Pandoc.
4875 * Text.Pandoc.Emoji now exports `emojiToInline`, which returns a Span
4876 inline containing the emoji character and some attributes with metadata
4877 (class `emoji`, attribute `data-emoji` with emoji name). (API change,
4878 Anders Waldenborg, #4743).
4880 * Text.Pandoc.PDF:
4882 + Revert fix for #4484 (only compress images on last run, #4755).
4883 This will mean some increase in the time it takes to
4884 produce an image-heavy PDF with xelatex, but it will
4885 make tables of contents correct, which is more important.
4886 + Fix logic error in `runTeXProgram`. We were running the tex program
4887 one more time than requested. This should speed up PDF production.
4889 * Allow `--template` to take a URL as argument.
4891 * Text.Pandoc.Highlighting: Add missing re-export of `breezeDark`
4892 highlighting style (#4687, Adrian Sieber, API change).
4894 * Clarify macOS install in INSTALL.md (#4661). Make the binary package
4895 installer the recommended method, and note that on some older versions of
4896 macOS, homebrew installs from source and takes a lot of disk space
4897 (#4664, Ian).
4899 * MANUAL:
4901 + Clarify EPUB linked media (#4756, Mauro Bieg)
4902 + Update manual for "true" YAML values. Now that we're using HsYAML and
4903 YAML 1.2, the valid true values are `true`, `True`, `TRUE`. NOTE!
4904 `y`, `yes`, `on` no longer count as true values.
4905 + Document `-F` as alias for `--filter` (thanks to Gandalf Saxe).
4906 + Update manual on how math is rendered in LaTeX.
4907 + Add proxy description (#4131, Mauro Bieg).
4908 + Clarify that `--toc` requires `--standalone` (#4703).
4909 + Update citation styles link (#4699, wiefling).
4911 * In API docs, clarify how `Ext_east_asian_line_breaks` extension works
4912 (kaizshang91). Note that it will not take effect when readers/writers
4913 are called as libraries (#4674).
4915 * Improved translations/fr (#4766, lux-lth).
4917 * Removed inadvertently added `.orig` files from repository (#4648).
4919 * Remove `network-uri` flag and use 'Network.Socket'.
4920 This removes a compiler warning. There is no need for the old
4921 `network-uri` flag, since network 2.6 was released in 2014.
4923 * Add stack.lts10.yaml, stack.lts11.yaml. use lts-12 in stack.yaml.
4925 * Bump upper bounds for dependent packages.
4927 * Exclude foundation 0.0.21 for ghc 7.10. Otherwise cabal gets
4928 confused because of the way ghc 7.10 is excluded in foundation's
4929 cabal file. This can be removed when haskell-foundation/foundation#500
4930 is fixed.
4932 * Require cabal-version >= 2.0. This is needed for haddock-library.
4937## pandoc 2.2.1 (2018-05-10)
4939 * Restored and undeprecated gladtex for HTML math (#4607).
4941 + Added `GladTeX` constructor to `Text.Pandoc.Options.HTMLMathMethod`
4942 [API change, reverts removal in v2.2]
4943 + Restored and undeprecated `--gladtex` option, removed in v2.2.
4945 * LaTeX reader: Handle `$` in `/text{..}` inside math (#4576).
4947 * Org reader: Fix image filename recognition (Albert Krewinkel).
4948 Use a function from the filepath library to check whether a string is a
4949 valid file name. The custom validity checker that was used before gave
4950 wrong results (e.g. for absolute file paths on Windows,
4951 kawabata/ox-pandoc#52).
4953 * FB2 reader: Replace some errors with warnings (Alexander Krotov).
4955 * HTML writer:
4957 + Strip links from headers when creating TOC (#4340).
4958 Otherwise the TOC entries will not link to the sections.
4959 + Fix regression with tex math environments in HTML + MathJax (#4639).
4961 * Muse writer (Alexander Krotov): Add support for left-align and
4962 right-align classes (#4542).
4964 * Docx writer: Support underline (#4633).
4966 * Text.Pandoc.Parsing: Lookahead for non-whitespace after
4967 `singleQuoteStart` and `doubleQuoteStart` (#4637).
4969 * `test-pandoc-utils.lua`: more robust testing on both windows
4970 and \*nix. Previously the pipe tests were only run if
4971 `\bin/false` and `/bin/sed` were present, which they aren't
4972 in default MacOS and Windows systems. Fixed by using `tr`
4973 and `false`, which should always be in the path on a \*nix
4974 system, and `find` and `echo` for Windows.
4976 * Text.Pandoc.Shared: add `uriPathToPath`.
4977 This adjusts the path from a file: URI in a way that is sensitive
4978 to Windows/Linux differences. Thus, on Windows,
4979 `/c:/foo` gets interpreted as `c:/foo`, but on Linux,
4980 `/c:/foo` gets interpreted as `/c:/foo`. See #4613.
4982 * Use `uriPathToPath` with file: URIs (#4613).
4984 * Revert piping HTML to pdf-engine (Mauro Bieg, #4413). Use a temp
4985 file as before.
4987 * Text.Pandoc.Class: Catch IO errors when writing media files
4988 and issue a warning, rather than an error (Francesco Occhipinti, #4559).
4990 * Don't lowercase custom writer filename (Alexander Krotov, #4610).
4992 * MANUAL (Mauro Bieg):
4994 + Clarify truthiness in template variables (#2281).
4995 + Clarify pipe table width calculation (#4520).
4997 * ConTeXt template: New Greek fallback typeface (Pablo Rodríguez, #4405).
4998 CMU Serif gives better typographic results than the previous
4999 Greek fallback DejaVu Serif.
5001 * Make HTML template polyglot (#4606, OvidiusCicero), by making
5002 `<link rel="stylesheet" href="$css$">` self-closing.
5004 * Use texmath 0.11, allowing better translation of non-ASCII
5005 characters in math (#4642).
5008## pandoc 2.2 (2018-04-27)
5010 * New input format: `fb2` (FictionBook2) (Alexander Krotov).
5012 * Make `--ascii` work for all XML formats (ICML, OPML, JATS,...),
5013 and for `ms` and `man`.
5015 * Remove deprecated `--latexmathml`, `--gladtex`, `--mimetex`, `--jsmath`, `-m`,
5016 `--asciimathml` options.
5018 * New module Text.Pandoc.Readers.FB2, exporting readFB2 (Alexander
5019 Krotov, API change).
5021 * Markdown reader:
5023 + Allow empty key-value attributes, like `title=""` (#2944).
5024 + Handle table w/o following blank line in fenced div (#4560).
5025 + Remove "fallback" for `doubleQuote` parser. Previously the
5026 parser tried to be efficient -- if no end double quote was found,
5027 it would just return the contents. But this could backfire in a
5028 case `**this should "be bold**`, since the fallback would return
5029 the content `"be bold**` and the closing boldface delimiter
5030 would never be encountered.
5031 + Improve computation of the relative width of the last column in a
5032 multiline table, so we can round-trip tables without constantly
5033 shrinking the last column.
5035 * EPUB reader:
5037 + Fix images with space in file path (#4344).
5039 * LaTeX reader:
5041 + Properly resolve section numbers with `\ref` and chapters (#4529).
5042 + Parse sloppypar environment (#4517, Marc Schreiber).
5043 + Improve handling of raw LaTeX (for markdown etc.) (#4589, #4594).
5044 Previously there were some bugs in how macros were handled.
5045 + Support `\MakeUppercase`, `\MakeLowercase`, `\uppercase`,
5046 `\lowercase`, and also `\MakeTextUppercase` and
5047 `\MakeTextLowercase` from textcase (#4959).
5049 * Textile reader:
5051 + Fixed tables with no body rows (#4513).
5052 Previously these raised an exception.
5054 * Mediawiki reader:
5056 + Improve table parsing (#4508). This fixes detection of table
5057 attributes and also handles `!` characters in cells.
5059 * DocBook reader:
5061 + Properly handle title in `section` element (#4526).
5062 Previously we just got `section_title` for `section` (though `sect1`,
5063 `sect2`, etc. were handled properly).
5064 + Read tex math as output by asciidoctor (#4569, Joe Hermaszewski).
5066 * Docx reader:
5068 + Combine adjacent CodeBlocks with the same attributes into
5069 a single CodeBlock. This prevents a multiline codeblock in
5070 Word from being read as different paragraphs.
5072 * RST reader:
5074 + Allow < 3 spaces indent under directives (#4579).
5075 + Fix anonymous redirects with backticks (#4598).
5077 * Muse reader (Alexander Krotov):
5079 + Add support for Text::Amuse multiline headings.
5080 + Add `<math>` tag support.
5081 + Add support for `<biblio>` and `<play>` tags.
5082 + Allow links to have empty descriptions.
5083 + Require block `<literal>` tags to be on separate lines.
5084 + Allow `-` in anchors.
5085 + Allow verse to be indented.
5086 + Allow nested footnotes.
5087 + Internal improvements.
5089 * Muse writer (Alexander Krotov):
5091 + Escape `>` only at the beginning of a line.
5092 + Escape `]` in image title.
5093 + Escape `]` brackets in URLs as `%5D`.
5094 + Only escape brackets when necessary.
5095 + Escape ordered list markers.
5096 + Do not escape list markers unless preceded by space.
5097 + Escape strings starting with space.
5098 + Escape semicolons and markers after line break.
5099 + Escape `;` to avoid accidental comments.
5100 + Don't break headers, line blocks and tables with line breaks.
5101 + Correctly output empty headings.
5102 + Escape horizontal rule only if at the beginning of the line.
5103 + Escape definition list terms starting with list markers.
5104 + Place header IDs before header.
5105 + Improve span writing.
5106 + Do not join Spans in normalization.
5107 + Don't align ordered list items.
5108 + Remove key-value pairs from attributes before normalization.
5109 + Enable `--wrap=preserve` for all tests by default.
5110 + Reduced `<verbatim>` tags in output.
5111 + Internal changes.
5113 * RST writer:
5115 + Use more consistent indentation (#4563). Previously we
5116 used an odd mix of 3- and 4-space indentation. Now we use 3-space
5117 indentation, except for ordered lists, where indentation must
5118 depend on the width of the list marker.
5119 + Flatten nested inlines (#4368, Francesco Occhipinti).
5120 Nested inlines are not valid RST syntax, so we flatten them following
5121 some readability criteria discussed in #4368.
5123 * EPUB writer:
5125 + Ensure that `pagetitle` is always set, even when structured titles
5126 are used. This prevents spurious warnings about empty title
5127 elements (#4486).
5129 * FB2 writer (Alexander Krotov):
5131 + Output links inline instead of producing notes. Previously all links
5132 were turned into footnotes with unclickable URLs inside.
5133 + Allow emphasis and notes in titles.
5134 + Don't intersperse paragraph with empty lines.
5135 + Convert metadata value `abstract` to book annotation.
5136 + Use `<empty-line />` for `HorizontalRule` rather than `LineBreak`.
5137 FB2 does not have a way to represent line breaks inside paragraphs;
5138 previously we used `<empty-line />` elements, but these are not allowed
5139 inside paragraphs.
5141 * Powerpoint writer (Jesse Rosenthal):
5143 + Handle Quoted Inlines (#4532).
5144 + Simplify code with `ParseXml`.
5145 + Allow fallback options when looking for placeholder type.
5146 + Check reference-doc for all layouts.
5147 + Simplify speaker notes logic.
5148 + Change notes state to a simpler per-slide value.
5149 + Remove `Maybe` from `SpeakerNotes` in `Slide`. `mempty`
5150 means no speaker notes.
5151 + Add tests for improved speaker notes.
5152 + Handle speaker notes earlier in the conversion process.
5153 + Keep notes with related blocks (#4477). Some blocks automatically
5154 split slides (imgs, tables, `column` divs). We assume that any
5155 speaker notes immediately following these are connected to these
5156 elements, and keep them with the related blocks, splitting after them.
5157 + Remove `docProps/thumbnail.jpeg` in data dir (Jesse Rosenthal, #4588).
5158 It contained a nonfree ICC color calibration profile and is not needed
5159 for production of a powerpoint document.
5161 * Markdown writer:
5163 + Include a blank line at the end of the row in a single-row multiline
5164 table, to prevent it from being interpreted as a simple table (#4578).
5166 * CommonMark writer:
5168 + Correctly ignore LaTeX raw blocks when `raw_tex` is not
5169 enabled (#4527, quasicomputational).
5171 * EPUB writer:
5173 + Add `epub:type="footnotes"` to notes section in EPUB3 (#4489).
5175 * LaTeX writer:
5177 + In beamer, don't use format specifier for default ordered lists
5178 (#4556). This gives better results for styles that put ordered list
5179 markers in boxes or circles.
5180 + Update `\lstinline` delimiters (#4369, Tim Parenti).
5182 * Ms writer:
5184 + Use `\f[R]` rather than `\f[]` to reset font (#4552).
5185 + Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`,
5186 since the header font is automatically bold (#4552).
5187 + Use `\f[CB]` rather than `\f[BC]` for monospace bold (#4552).
5188 + Create pdf anchor for a Div with an identifier (#4515).
5189 + Escape `/` character in anchor ids (#4515).
5190 + Improve escaping for anchor ids: we now use _uNNN_ instead of uNNN
5191 to avoid ambiguity.
5193 * Man writer:
5195 + Don't escape U+2019 as `'` (#4550).
5197 * Text.Pandoc.Options:
5199 + Removed `JsMath`, `LaTeXMathML`, and `GladTeX` constructors from
5200 `Text.Pandoc.Options.HTMLMathMethod` [API change].
5202 * Text.Pandoc.Class:
5204 + `writeMedia`: unescape URI-escaping in file path. This avoids
5205 writing things like `file%20one.png` to the file system.
5207 * Text.Pandoc.Parsing:
5209 + Fix `romanNumeral` parser (#4480). We previously accepted 'DDC'
5210 as 1100.
5211 + `uri`: don't treat `*` characters at end as part of URI (#4561).
5213 * Text.Pandoc.MIME:
5215 + Use the alias `application/eps` for EPS (#2067).
5216 This will ensure that we retain the eps extension after reading the
5217 image into a mediabag and writing it again.
5219 * Text.Pandoc.PDF:
5221 + Use `withTempDir` in `html2pdf`.
5222 + With `xelatex`, don't compress images til the last run (#4484).
5223 This saves time for image-heavy documents.
5224 + Don't try to convert EPS files (#2067). `pdflatex` converts them
5225 itself, and JuicyPixels can't do it.
5226 + For `pdflatex`, use a temp directory in the working directory.
5227 Otherwise we can have problems with the EPS conversion pdflatex
5228 tries to do, which can't operate on a file above the working
5229 directory without `--shell-escape`.
5231 * Changes to tests to accommodate changes in pandoc-types.
5232 In <https://github.com/jgm/pandoc-types/pull/36> we changed
5233 the table builder to pad cells. This commit changes tests
5234 (and two readers) to accord with this behavior.
5236 * Set default extensions for `beamer` same as `latex`.
5238 * LaTeX template:
5240 + Add `beameroption` variable (#4359, Étienne Bersac).
5241 + Use `pgfpages` package; this is needed for notes on second
5242 screen in beamer (Étienne Bersac).
5243 + Add `background-image` variable (#4601, John Muccigrosso).
5245 * reveal.js template: Add `background-image` variable (#4600,
5246 John Muccigrosso).
5248 * ms template: Fix date. Previously `.ND` was used, but this only
5249 works if you have a title page, which we don't. Thanks to @teoric.
5251 * Removed pragmas for unused extensions (#4506, Anabra).
5253 * Fix bash completion for `--print-default-data-file` (#4549).
5254 Previously this looked in the filesystem, even if pandoc
5255 was compiled with `embed_data_files` (and sometimes it looked
5256 in a nonexistent build directory). Now the bash completion
5257 script just includes a hard-coded list of data file names.
5259 * MANUAL:
5261 + Clarify template vs metadata variables (#4501, Mauro Bieg).
5262 + Fix raw content example (#4479, Mauro Bieg).
5263 + Specify that you use html for raw output in epub.
5264 + Add examples for raw docx blocks (#4472, Tristan Stenner).
5265 The documentation states that the target format name should match
5266 the output format, which isn't the case for `docx`/`openxml` and
5267 some others.
5268 + Don't say that `empty_paragraphs` affects markdown output (#4540).
5269 + Consolidate input/output format documentation (#4577, Mauro Bieg).
5271 * New README template. Take in/out formats from manual.
5273 * Fix example in lua-filters docs (#4459, HeirOfNorton).
5275 * Use the `-threaded` GHC flag when building benchmarks (#4587,
5276 Francesco Occhipinti).
5278 * Bump temporary upper bound to 1.4.
5280 * Use pandoc-citeproc 0.14.3.1.
5282 * Use texmath-0.10.1.2 (fixes escapes in math in ms, #4597).
5284 * Removed old lib directory. This was used for something long ago,
5285 but plays no role now.
5287 * Removed unneeded data file `LaTeXMathML.js`.
5289 * Create 64- and 32-bit versions of Windows binary packages.
5291## pandoc 2.1.3 (2018-03-18)
5293 * Docx reader (Jesse Rosenthal):
5295 + Add tests for nested smart tags.
5296 + Parse nested smart tags.
5297 + Make unwrapSDT into a general `unwrap` function that can unwrap both
5298 nested SDT tags and smartTags. This makes the SmartTags constructor in
5299 the Docx type unnecessary, so we remove it (#4446).
5300 + Remove unused `docxWarnings` (Alexander Krotov).
5302 * RST reader: Allow unicode bullet characters (#4454).
5304 * Haddock reader: Better table handling, using haddock-library's
5305 new table support, if compiled against a version that
5306 includes it. Note that tables with col/rowspans will not
5307 translate well into Pandoc.
5309 * Muse reader (Alexander Krotov):
5311 + Various internal improvements.
5312 + Require closing tag to have the same indentation as opening.
5313 + Do not reparse blocks inside unclosed block tag (#4425).
5314 + Parse `<class>` tag (supported by Emacs Muse).
5315 + Do not produce empty Str element for unindented verse lines.
5317 * LaTeX reader:
5319 + Add support to parse unit string of `\SI` command (closes #4296,
5320 Marc Schreiber).
5322 * Haddock writer: In the writer, we now render tables always as
5323 grid tables, since Haddock supports these.
5325 * DokuWiki writer: rewrite backSlashLineBreaks (#4445, Mauro Bieg).
5327 * Docx writer: Fixed formatting of `DefaultStyle` ordered lists in
5328 docx writer. We want decimal for the top level, not lower roman.
5330 * RST writer:
5332 + Strip whitespace at beginning and ending of inline containers
5333 (#4327, Francesco Occhipinti).
5334 + Filter out empty inline containers (#4434). There is nothing in
5335 RST that corresponds to e.g. `Emph []`, so we just ignore elements
5336 like this (Francesco Occhipinti).
5338 * Muse writer (Alexander Krotov):
5340 + Support spans with anchors.
5341 + Replace smallcaps with emphasis before normalization.
5342 + Output smallcaps as emphasis.
5343 + Expand Cite before list normalization.
5344 + Write empty inline lists as `<verbatim></verbatim>`.
5345 + Remove empty Str from the beginning of inline lists during normalization.
5346 + Escape "-" to avoid creating bullet lists.
5347 + Fix math expansion for more than one expression per paragraph.
5348 + Expand math before inline list normalization.
5350 * Dokuwiki writer: fix LineBreaks in Tables (#4313, Mauro Bieg).
5352 * Ms writer:
5354 + Asciify pdf anchors, since unicode anchors don't work (#4436).
5355 Internal links should be converted automatically, so this shouldn't
5356 affect users directly.
5357 + Don't escape hyphens as `\-`; that's for a minus sign (#4467).
5359 * Beamer writer: put hyperlink after `\begin{frame}` and not in the title
5360 (#4307). If it's in the title, then we get a titlebar on slides with
5361 the `plain` attribute, when the id is non-null. This fixes a regression
5362 in 2.0.
5364 * EPUB writer: Remove notes from TOC in nav.xhtml (#4453, Mauro Bieg).
5366 * JATS writer: Remove extraneous, significant whitespace (#4335,
5367 Nokome Bentley).
5369 * html2pdf: inject base tag with current working directory (#4413, Mauro
5370 Bieg). This helps ensure that linked resources are included.
5372 * Add Semigroup instances for everything for which we defined a
5373 Monoid instance previously (API change):
5375 + Text.Pandoc.Class.FileTree.
5376 + Text.Pandoc.Translations.Translations.
5377 + Text.Pandoc.Extensions.Extensions.
5378 + Text.Pandoc.Readers.Odt.StyleReader.Styles.
5379 + Text.Pandoc.Pretty.Doc.
5380 + Text.Pandoc.MediaBag.MediaBag.
5382 * Add custom Prelude to give clean code for Monoid and Semigroup
5383 that works with ghc 7.10-8.4. The custom Prelude (`prelude/Prelude`)
5384 is used for ghc versions < 8.4. `NoImplicitPrelude` is used
5385 in all source files, and Prelude is explicitly imported
5386 (this is necessary for ghci to work properly with the custom prelude).
5388 * Text.Pandoc.Writers.Shared (Francesco Occhipinti):
5390 + Export `stripLeadingTrailingSpace`.
5391 + Don't wrap lines in grid tables when `--wrap=none` (#4320).
5392 + `gridTable`: Don't wrap lines in tables when `--wrap=none`. Instead,
5393 expand cells, even if it results in cells that don't respect relative
5394 widths or surpass page column width. This change affects RST,
5395 Markdown, and Haddock writers.
5397 * Raise error if someone tries to print docx, odt, etc. template (#4441).
5399 * LaTeX template: Provide `bidi` package's option using
5400 `\PassOptionsToPackage` (#4357, Václav Haisman). This avoid a
5401 clash when `polyglossia` loads it first and then it is loaded again
5402 for XeLaTeX.
5404 * ConTeXt template: Added `pdfa` variable to generate PDF/A (#4294, Henri
5405 Menke). Instructions on how to install the ICC profiles on ConTeXt
5406 standalone can be found in the wiki:
5407 <http://wiki.contextgarden.net/PDFX#ICC_profiles>.
5408 If the ICC profiles are not available the log will contain error
5409 messages.
5411 * Use latest pandoc-types, skylighting
5413 * Use latest pandoc-citeproc in binary package.
5415 * Bump upper bound for time, criterion, haddock-library, exceptions,
5416 http-types, aeson, haddock-library.
5418 * Bump upper bound tasty-quickcheck 0.10 (#4429, Felix Yan).
5420 * pandoc.cabal: fix up other-extensions and language fields.
5421 Language is now consistently `Haskell2010`, and other-extensions
5422 is consistently `NoImplicitPrelude`. Everything else to be specified
5423 in the module header as needed.
5425 * Removed `old-locale` flag and Text.Pandoc.Compat.Time.
5426 This is no longer necessary since we no longer support ghc 7.8.
5428 * Make `weigh-pandoc` into a benchmark program.
5429 Remove `weigh-pandoc` flag. `weigh-pandoc` is now built (and run)
5430 automatically when you build (and run) benchmarks.
5432 * MANUAL: add instructions for background images reveal.js (#4325, John
5433 Muccigrosso).
5435 * appveyor: use VS 2013 environment instead of VS 2015 for Windows builds.
5437## pandoc 2.1.2 (2018-03-02)
5439 * Markdown reader:
5441 + Fix parsing bug with nested fenced divs (#4281). Previously we allowed
5442 "nonindent spaces" before the opening and closing `:::`, but this
5443 interfered with list parsing, so now we require the fences to be flush with
5444 the margin of the containing block.
5446 * Commonmark reader:
5448 + `raw_html` is now on by default. It can be disabled explicitly
5449 using `-f commonmark-raw_html`.
5451 * Org reader (Albert Krewinkel):
5453 + Move citation tests to separate module.
5454 + Allow changing emphasis syntax (#4378). The characters allowed before
5455 and after emphasis can be configured via `#+pandoc-emphasis-pre` and
5456 `#+pandoc-emphasis-post`, respectively. This allows to change which
5457 strings are recognized as emphasized text on a per-document or even
5458 per-paragraph basis. Example:
5460 #+pandoc-emphasis-pre: "-\t ('\"{"
5461 #+pandoc-emphasis-post: "-\t\n .,:!?;'\")}["
5463 * LaTeX reader:
5465 + Fixed comments inside citations (#4374).
5466 + Fix regression in package options including underscore (#4424).
5467 + Make `--trace` work.
5468 + Fixed parsing of `tabular*` environment (#4279).
5470 * RST reader:
5472 + Fix regression in parsing of headers with trailing space (#4280).
5474 * Muse reader (Alexander Krotov):
5476 + Enable `<literal>` tags even if amuse extension is enabled.
5477 Amusewiki disables <literal> tags for security reasons.
5478 If user wants similar behavior in pandoc, RawBlocks and RawInlines
5479 can be removed or replaced with filters.
5480 + Remove space prefix from `<literal>` tag contents.
5481 + Do not consume whitespace while looking for closing end tag.
5482 + Convert alphabetical list markers to decimal in round-trip test.
5483 Alphabetical lists are an addition of Text::Amuse.
5484 They are not present in Emacs Muse and can be ambiguous
5485 when list starts with "i.", "c." etc.
5486 + Allow `<quote>` and other tags to be indented.
5487 + Allow single colon in definition list term.
5488 + Fix parsing of verse in lists.
5489 + Improved parsing efficiency. Avoid `parseFromString`.
5490 Lists are parsed in linear instead of exponential time now.
5491 + Replace ParserState with MuseState.
5492 + Prioritize lists with roman numerals over alphabetical lists.
5493 This is to make sure "i." starts a roman numbered list,
5494 instead of a list with letter "i" (followed by "j", "k", ...").
5495 + Fix directive parsing.
5496 + Parse definition lists with multiple descriptions.
5497 + Parse next list item before parsing more item contents.
5498 + Fixed a bug: headers did not terminate lists.
5499 + Move indentation parsing from `definitionListItem` to `definitionList`.
5500 + Paragraph indentation does not indicate nested quote.
5501 Muse allows indentation to indicate quotation or alignment,
5502 but only on the top level, not within a <quote> or list.
5503 + Require that block tags are on separate lines.
5504 Text::Amuse already explicitly requires it anyway.
5505 + Fix matching of closing inline tags.
5506 + Various internal changes.
5507 + Fix parsing of nested definition lists.
5508 + Require only one space for nested definition list indentation.
5509 + Do not remove trailing whitespace from `<code>`.
5510 + Fix parsing of trailing whitespace. Newline after whitespace now
5511 results in softbreak instead of space.
5513 * Docx reader (Jesse Rosenthal, except where noted):
5515 + Handle nested sdt tags (#4415).
5516 + Don't look up dependant run styles if `+styles` is enabled.
5517 + Move pandoc inline styling inside custom-style span.
5518 + Read custom styles (#1843). This will read all paragraph and
5519 character classes as divs and spans, respectively. Dependent styles
5520 will still be resolved, but will be wrapped with appropriate style
5521 tags. It is controlled by the `+styles` extension (`-f docx+styles`).
5522 This can be used in conjunction with the `custom-style` feature in the
5523 docx writer for a pandoc-docx editing workflow. Users can convert from
5524 an input docx, reading the custom-styles, and then use that same input
5525 docx file as a reference-doc for producing an output docx file. Styles
5526 will be maintained across the conversion, even if pandoc doesn't
5527 understand them.
5528 + Small change to Fields hyperlink parser. Previously, unquoted string
5529 required a space at the end of the line (and consumed it). Now we
5530 either take a space (and don't consume it), or end of input.
5531 + Pick table width from the longest row or header (Francesco Occhipinti,
5532 #4360).
5534 * Muse writer (Alexander Krotov):
5536 + Change verse markup: `> ` instead of `<verse>` tag.
5537 + Remove empty strings during inline normalization.
5538 + Don't indent nested definition lists.
5539 + Use unicode quotes for quoted text.
5540 + Write image width specified in percent in Text::Amuse mode.
5541 + Don't wrap displayMath into `<verse>`.
5542 + Escape nonbreaking space (`~~`).
5543 + Join code with different attributes during normalization.
5544 + Indent lists inside Div.
5545 + Support definitions with multiple descriptions.
5547 * Powerpoint writer (Jesse Rosenthal):
5549 + Use table styles This will use the default table style in the
5550 reference-doc file. As a result they will be easier when using
5551 in a template, and match the color scheme.
5552 + Remove empty slides. Because of the way that slides were split, these
5553 could be accidentally produced by comments after images. When animations
5554 are added, there will be a way to add an empty slide with either
5555 incremental lists or pauses.
5556 + Implement syntax highlighting. Note that background colors can't
5557 be implemented in PowerPoint, so highlighting styles that require
5558 these will be incomplete.
5559 + New test framework for pptx. We now compare the output of the
5560 Powerpoint writer with files that we know to (a) not be corrupt,
5561 and (b) to show the desired output behavior (details below).
5562 + Add `notesMaster` to `presentation.xml` if necessary.
5563 + Ignore links and (end)notes in speaker notes.
5564 + Output speaker notes.
5565 + Read speaker note templates conditionally. If there are speaker
5566 notes in the presentation, we read in the notesMasters templates
5567 from the reference pptx file.
5568 + Fix deletion track changes (#4303, Jesse Rosenthal).
5570 * Markdown writer: properly escape @ to avoid capture as citation
5571 (#4366).
5573 * LaTeX writer:
5575 + Put hypertarget inside figure environment (#4388).
5576 This works around a problem with the endfloat package and
5577 makes pandoc's output compatible with it.
5578 + Fix image height with percentage (#4389). This previously caused
5579 the image to be resized to a percentage of textwidth, rather than
5580 textheight.
5582 * ConTeXt writer (Henri Menke):
5584 + New section syntax and support `--section-divs` (#2609).
5585 `\section[my-header]{My Header}` ->
5586 `\section[title={My Header},reference={my-header}]`.
5587 The ConTeXt writer now supports the `--section-divs` option to
5588 write sections in the fenced style, with `\startsection` and
5589 `\stopsection`.
5590 + xtables: correct wrong usage of caption (Henri Menke).
5592 * Docx writer:
5594 + Fix image resizing with multiple images (#3930, Andrew Pritchard).
5595 + Use new golden framework (Jesse Rosenthal).
5596 + Make more deterministic to facilitate testing (Jesse Rosenthal).
5597 - `getUniqueId` now calls to the state to get an incremented digit,
5598 instead of calling to P.uniqueHash.
5599 - we always start the PRNG in mkNumbering/mkAbstractNum with the same
5600 seed (1848), so our randoms should be the same each time.
5601 + Fix ids in comment writing (Jesse Rosenthal). Comments from
5602 `--track-changes=all` were producing corrupt docx, because the
5603 writer was trying to get id from the `(ID,_,_)` field of
5604 the attributes, and ignoring the "id" entry in the key-value pairs. We
5605 now check both.
5607 * Ms writer: Added papersize variable.
5609 * TEI writer:
5611 + Use `height` instead of `depth` for images (#4331).
5612 + Ensure that id prefix is always used.
5613 + Don't emit `role` attribute; that was a leftover from the
5614 Docbook writer.
5615 + Use 'xml:id', not 'id' attribute (#4371).
5617 * AsciiDoc writer:
5619 + Do not output implicit heading IDs (#4363, Alexander
5620 Krotov). Convert to `asciidoc-auto_identifiers` for old behaviour.
5622 * RST writer:
5624 + Remove `blockToRST'` moving its logic into `fixBlocks`
5625 (Francesco Occhipinti).
5626 + Insert comment between lists and quotes (#4248, Francesco Occchipinti).
5628 * RST template: remove definition of 'math' role as raw.
5629 This used to be needed prior to v 0.8 of docutils, but
5630 now math support is built-in.
5632 * Slides: Use divs to set incremental/non-incremental (#4381,
5633 Jesse Rosenthal). The old method (list inside blockquote) still
5634 works, but we are encouraging the use of divs with class
5635 `incremental` or `nonincremental`.
5637 * Text.Pandoc.ImageSize:
5639 + Make image size detection for PDFs more robust (#4322).
5640 + Determine image size for PDFs (#4322).
5641 + EMF Image size support (#4375, Andrew Pritchard).
5643 * Text.Pandoc.Extensions:
5645 + Add `Ext_styles` (Jesse Rosenthal, API change). This will be used in
5646 the docx reader (defaulting to off) to read pargraph and character
5647 styles not understood by pandoc (as divs and spans, respectively).
5648 + Made `Ext_raw_html` default for `commonmark` format.
5650 * Text.Pandoc.Parsing:
5652 + Export `manyUntil` (Alexander Krotov, API change).
5653 + Export improved `sepBy1` (Alexander Krotov).
5654 + Export list marker parsers: `upperRoman`, `lowerRoman`,
5655 `decimal`, `lowerAlpha`, `upperAlpha` (Alexander Krotov, API change).
5657 * Tests/Lua: fix tests on windows (Albert Krewinkel).
5659 * Lua: register script name in global variable (#4393). The name of the Lua
5660 script which is executed is made available in the global Lua variable
5661 `PANDOC_SCRIPT_FILE`, both for Lua filters and custom writers.
5663 * Tests: Abstract powerpoint tests out to OOXML tests (Jesse Rosenthal).
5664 There is very little pptx-specific in these tests, so we abstract out
5665 the basic testing function so it can be used for docx as well. This
5666 should allow us to catch some errors in the docx writer that slipped
5667 by the roundtrip testing.
5669 * Lua filters: store constructors in registry (Albert Krewinkel). Lua
5670 functions used to construct AST element values are stored in the Lua
5671 registry for quicker access. Getting a value from the registry is much
5672 faster than getting a global value (partly to idiosyncrasies of hslua);
5673 this change results in a considerable performance boost.
5675 * Documentation:
5677 + `doc/org.md` Add draft of Org-mode documentation (Albert Krewinkel).
5678 + `doc/lua-filters.md`: document global vars set for filters
5679 (Albert Krewinkel).
5680 + INSTALL.md: mention Stack version. (#4343, Adam Brandizzi).
5681 + MANUAL: add documentation on custom styles (Jesse Rosenthal).
5682 + MANUAL.txt: Document incremental and nonincremental divs (Jesse
5683 Rosenthal). Blockquoted lists are still described, but fenced divs are
5684 presented in preference.
5685 + MANUAL.txt: document header and footer variables (newmana).
5686 + MANUAL.txt: self-contained implies standalone (#4304, Daniel Lublin).
5687 + CONTRIBUTING.md: label was renamed. (#4310, Alexander Brandizzi).
5689 * Require tagsoup 0.14.3 (#4282), fixing HTML tokenization bug.
5691 * Use latest texmath.
5693 * Use latest pandoc-citeproc.
5695 * Allow exceptions 0.9.
5697 * Require aeson-pretty 0.8.5 (#4394).
5699 * Bump blaze-markup, blaze-html lower bounds to 0.8, 0.9 (#4334).
5701 * Update tagsoup to 0.14.6 (Alexander Krotov, #4282).
5703 * Removed ghc-prof-options. As of cabal 1.24, sensible defaults are used.
5705 * Update default.nix to current nixpkgs-unstable for hslua-0.9.5 (#4348,
5706 jarlg).
5708## pandoc 2.1.1 (2018-01-18)
5710 * Markdown reader:
5712 + Don't coalesce adjacent raw LaTeX blocks if they are separated by a
5713 blank line. See lierdakil/pandoc-crossref#160.
5714 + Improved `inlinesInBalancedBrackets` (#4272, jgm/pandoc-citeproc#315).
5715 The change both improves performance and fixes a regression whereby
5716 normal citations inside inline notes and figure captions were not
5717 parsed correctly.
5719 * RST reader:
5721 + Better handling for headers with an anchor (#4240). Instead of creating a
5722 Div containing the header, we put the id directly on the header.
5723 This way header promotion will work properly.
5724 + Add aligned environment when needed in math (#4254). `rst2latex.py`
5725 uses an `align*` environment for math in `.. math::` blocks, so this
5726 math may contain line breaks. If it does, we put the math in an
5727 `aligned` environment to simulate `rst2latex.py`'s behavior.
5729 * HTML reader:
5731 + Fix col width parsing for percentages < 10% (#4262, n3fariox).
5733 * LaTeX reader:
5735 + Advance source position at end of stream.
5736 + Pass through macro defs in `rawLaTeXBlock` even if the `latex_macros`
5737 extension is set (#4246). This reverts to earlier behavior and is
5738 probably safer on the whole, since some macros only modify things in
5739 included packages, which pandoc's macro expansion can't modify.
5740 + Fixed pos calculation in tokenizing escaped space.
5741 + Allow macro definitions inside macros (#4253). Previously we went into
5742 an infinite loop with
5743 ```
5744 \newcommand{\noop}[1]{#1}
5745 \noop{\newcommand{\foo}[1]{#1}}
5746 \foo{hi}
5747 ```
5748 + Fix inconsistent column widths (#4238). This fixes a bug whereby column
5749 widths for the body were different from widths for the header in some
5750 tables.
5752 * Docx reader (Jesse Rosenthal):
5754 + Parse hyperlinks in `instrText` tags (#3389, #4266). This was a form of
5755 hyperlink found in older versions of word. The changes introduced for
5756 this, though, create a framework for parsing further fields in MS Word
5757 (see the spec, ECMA-376-1:2016, §17.16.5, for more on these fields).
5758 We introduce a new module, `Text.Pandoc.Readers.Docx.Fields` which
5759 contains a simple parsec parser. At the moment, only simple hyperlink
5760 fields are accepted, but that can be extended in the future.
5762 * Muse reader (Alexander Krotov):
5764 + Parse `~~` as non-breaking space in Text::Amuse mode.
5765 + Refactor list parsing.
5767 * Powerpoint writer (Jesse Rosenthal):
5769 + Change reference to `notesSlide` to `endNotesSlide`.
5770 + Move image sizing into `picProps`.
5771 + Improve table placement.
5772 + Make our own `_rels/.rels` file.
5773 + Import reference-doc images properly.
5774 + Move `Presentation.hs` out of `PandocMonad`.
5775 + Refactor into separate modules. T.P.W.Powerpoint.Presentation
5776 defines the Presentation datatype and goes Pandoc->Presentation;
5777 T.P.W.Pandoc.Output goes Presentation->Archive.
5778 Text.Pandoc.Writers.Powerpoint a thin wrapper around the two modules.
5779 + Avoid overlapping blocks in column output.
5780 + Position images correctly in two-column layout.
5781 + Make content shape retrieval environment-aware.
5782 + Improve image handling. We now determine image and caption placement
5783 by getting the dimensions of the content box in a given layout.
5784 This allows for images to be correctly sized and positioned in a
5785 different template. Note that images without captions and headers are
5786 no longer full-screened. We can't do this dependably in different
5787 layouts, because we don't know where the header is (it could be to
5788 the side of the content, for example).
5789 + Read presentation size from reference file. Our presentation size is
5790 now dependent on the reference/template file we use.
5791 + Handle (sub)headers above slidelevel correctly. Above the slidelevel,
5792 subheaders will be printed in bold and given a bit of extra space
5793 before them. Note that at the moment, no distinction is made between
5794 levels of headers above the slide header, though that can be changed.
5795 + Check for required files. Since we now import from reference/dist
5796 file by glob, we need to make sure that we're getting the files we
5797 need to make a non-corrupt Powerpoint. This performs that check.
5798 + Improve templating using `--reference-doc`. Templating should work
5799 much more reliably now.
5800 + Include Notes slide in TOC.
5801 + Set notes slide header to slide-level.
5802 + Add table of contents. This is triggered by the `--toc` flag. Note
5803 that in a long slide deck this risks overrunning the text box. The user
5804 can address this by setting `--toc-depth=1`.
5805 + Set notes slide number correctly.
5806 + Clean up adding metadata slide. We want to count the slide numbers
5807 correctly if it's in there.
5808 + Add anchor links. For anchor-type links (`[foo](#bar)`) we produce
5809 an anchor link. In powerpoint these are links to slides, so we keep
5810 track of a map relating anchors to the slides they occur on.
5811 + Make the slide number available to the blocks. For anchors,
5812 block-processing functions need to know what slide number
5813 they're in. We make the `envCurSlideId` available to blocks.
5814 + Move `curSlideId` to environment.
5815 + Allow setting `toc-title` in metadata.
5816 + Link notes to endnotes slide.
5818 * Markdown writer:
5820 + Fix cell width calculation (#4265). Previously we could get
5821 ever-lengthening cell widths when a table was run repeatedly through
5822 `pandoc -f markdown -t markdown`.
5824 * LaTeX writer:
5826 + Escape `&` in lstinline (Robert Schütz).
5828 * ConTeXt writer:
5830 + Use xtables instead of Tables (#4223, Henri Menke).
5831 Default to xtables for context output. Natural Tables are used
5832 if the new `ntb` extension is set.
5834 * HTML writer:
5836 + Fixed footnote backlinks with `--id-prefix` (#4235).
5838 * `Text.Pandoc.Extensions`: Added `Ext_ntb` constructor (API change,
5839 Henri Menke).
5841 * `Text.Pandoc.ImageSize`: add derived `Eq` instance to `Dimension`
5842 (Jesse Rosenthal, API change).
5844 * Lua filters (Albert Krewinkel):
5846 + Make `PANDOC_READER_OPTIONS` available.
5847 The options which were used to read the document are made available to
5848 Lua filters via the `PANDOC_READER_OPTIONS` global.
5849 + Add lua module `pandoc.utils.run_json_filter`, which runs a JSON filter
5850 on a Pandoc document.
5851 + Refactor filter-handling code into `Text.Pandoc.Filter.JSON`,
5852 `Text.Pandoc.Filter.Lua`, and `Text.Pandoc.Filter.Path`.
5853 + Improve error messages. Provide more context about the task
5854 which caused an error.
5856 * data/pandoc.lua (Albert Krewinkel):
5858 + Accept singleton inline as a list. Every constructor which accepts a
5859 list of inlines now also accepts a single inline element for
5860 convenience.
5861 + Accept single block as singleton list. Every constructor which accepts
5862 a list of blocks now also accepts a single block element for
5863 convenience. Furthermore, strings are accepted as shorthand for
5864 `{pandoc.Str "text"}` in constructors.
5865 + Add attr, listAttributes accessors. Elements with
5866 attributes got an additional `attr` accessor. Attributes were
5867 accessible only via the `identifier`, `classes`, and `attributes`,
5868 which was in conflict with the documentation, which indirectly states
5869 that such elements have the an `attr` property.
5870 + Drop `_VERSION`. Having a `_VERSION` became superfluous, as this
5871 module is closely tied to the pandoc version, which is available via
5872 `PANDOC_VERSION`.
5873 + Fix access to Attr components. Accessing an Attr value (e.g.,
5874 ` Attr().classes`) was broken; the more common case of accessing it via
5875 an Inline or Block element was unaffected by this.
5877 * Move `metaValueToInlines` to from Docx writer to
5878 `Text.Pandoc.Writers.Shared`, so it can be used by other writers
5879 (Jesse Rosenthal).
5881 * MANUAL.txt:
5883 + Clarify otherlangs in LaTeX (#4072).
5884 + Clarify `latex_macros` extension.
5885 + Recommend use of `raw_attribute` extension in header includes (#4253).
5887 * Allow latest QuickCheck, tasty, criterion.
5889 * Remove custom prelude and ghc 7.8 support.
5891 * Reduce compiler noise (exact paths for compiled modules).
5893## pandoc 2.1 (2018-01-07)
5895 * Allow filters and lua filters to be interspersed (#4196). Previously
5896 we ran all lua filters before JSON filters. Now we run filters in
5897 the order they are presented on the command line, whether lua or JSON.
5898 There are two incompatible API changes: The type of `applyFilters`
5899 has changed, and `applyLuaFilters` has been removed. `Filter` is
5900 also now exported.
5902 * Use latest skylighting and omit the `missingIncludes` check, fixing
5903 a major performance regression in earlier releases of the 2.x series
5904 (#4226). Behavior change: If you use a custom syntax definition that
5905 refers to a syntax you haven't loaded, pandoc will now complain when
5906 it is highlighting the text, rather than doing a check at the start.
5907 This change dramatically speeds up invocations of pandoc on short
5908 inputs.
5910 * Text.Pandoc.Class: make `FileTree` opaque (don't export
5911 `FileTree` constructor). This forces users to interact with it using
5912 `insertInFileTree` and `getFileInfo`, which normalize file names.
5914 * Markdown reader:
5916 + Rewrite `inlinesInBalancedBrackets`. The rewrite is much more
5917 direct, avoiding `parseFromString`. And it performs significantly
5918 better; unfortunately, parsing time still increases exponentially
5919 (see #1735).
5920 + Avoid parsing raw tex unless `\` + letter seen. This seems to
5921 help with the performance problem, #4216.
5923 * LaTeX reader: Simplified a check for raw tex command.
5925 * Muse reader (Alexander Krotov):
5927 + Enable round trip test (#4107).
5928 + Automatically translate `#cover` into `#cover-image`.
5929 Amusewiki uses #cover directive to specify cover image.
5931 * Docx reader (Jesse Rosenthal):
5933 + Allow for insertion/deletion of paragraphs (#3927).
5934 If the paragraph has a deleted or inserted paragraph break (depending
5935 on the track-changes setting) we hold onto it until the next
5936 paragraph. This takes care of accept and reject. For this we introduce
5937 a new state which holds the ils from the previous para if necessary.
5938 For `--track-changes=all`, we add an empty span with class
5939 `paragraph-insertion`/`paragraph-deletion` at the end of the paragraph
5940 prior to the break to be inserted or deleted.
5941 + Remove unused anchors (#3679). Docx produces a lot of anchors with
5942 nothing pointing to them---we now remove these to produce cleaner
5943 output. Note that this has to occur at the end of the process
5944 because it has to follow link/anchor rewriting.
5945 + Read multiple children of `w:sdtContents`.
5946 + Combine adjacent anchors. There isn't any reason to have numerous
5947 anchors in the same place, since we can't maintain docx's
5948 non-nesting overlapping. So we reduce to a single anchor.
5949 + Improved tests.
5951 * Muse writer (Alexander Krotov): don't escape URIs from AST
5953 * Docx writer:
5955 + Removed redundant subtitle in title (Sebastian Talmon).
5956 + `firstRow` table definition compatibility for Word 2016 (Sebastian
5957 Talmon). Word 2016 seems to use a default value of "1" for table
5958 headers, if there is no firstRow definition (although a default
5959 value of 0 is documented), so all tables get the first Row formatted
5960 as header. Setting the parameter to 0 if the table has no header
5961 row fixes this for Word 2016
5962 + Fix custom styles with spaces in the name (#3290).
5964 * Powerpoint writer (Jesse Rosenthal):
5966 + Ignore Notes div for parity with other slide outputs.
5967 + Set default slidelevel correctly. We had previously defaulted to
5968 slideLevel 2. Now we use the correct behavior of defaulting to the
5969 highest level header followed by content. We change an expected test
5970 result to match this behavior.
5971 + Split blocks correctly for linked images.
5972 + Combine adjacent runs.
5973 + Make inline code inherit code size. Previously (a) the code size
5974 wasn't set when we force size, and (b) the properties was set from
5975 the default, instead of inheriting.
5976 + Simplify `replaceNamedChildren` function.
5977 + Allow linked images. The following markdown:
5978 `[![Image Title](image.jpg)](http://www.example.com)`
5979 will now produce a linked image in the resulting PowerPoint file.
5980 + Fix error with empty table cell. We require an empty `<a:p>` tag,
5981 even if the cell contains no paragraphs---otherwise PowerPoint
5982 complains of corruption.
5983 + Implement two-column slides. This uses the columns/column div
5984 format described in the pandoc manual. At the moment, only two
5985 columns (half the screen each) are allowed. Custom widths are not
5986 supported.
5987 + Added more tests.
5989 * OpenDocument/ODT writers: improved rendering of formulas (#4170, oltolm).
5991 * Lua filters (Albert Krewinkel):
5993 + `data/pandoc.lua`: drop 'pandoc-api-version' from Pandoc objects
5994 + The current pandoc-types version is made available to Lua programs in
5995 the global `PANDOC_API_VERSION`. It contains the version as a list of
5996 numbers.
5997 + The pandoc version available as a global `PANDOC_VERSION` (a list
5998 of numbers).
5999 + `data/pandoc.lua`: make `Attr` an `AstElement`.
6000 + `data/pandoc.lua`: make all types subtypes of `AstElement`.
6001 `Pandoc`, `Meta`, and `Citation` were just plain functions and did
6002 not set a metatable on the returned value, which made it difficult
6003 to amend objects of these types with new behavior. They are now
6004 subtypes of AstElement, meaning that all their objects can gain
6005 new features when a method is added to the behavior object
6006 (e.g., `pandoc.Pandoc.behavior`).
6007 + `data/pandoc.lua`: split type and behavior tables. Clearly distinguish
6008 between a type and the behavioral properties of an instance of that
6009 type. The behavior of a type (and all its subtypes) can now be
6010 amended by adding methods to that types `behavior` object, without
6011 exposing the type objects internals. E.g.:
6012 ```lua
6013 pandoc.Inline.behavior.frob = function () print'42' end
6014 local str = pandoc.Str'hello'
6015 str.frob() -- outputs '42'
6016 ```
6017 + `data/pandoc.lua`: fix Element inheritance. Extending all elements
6018 of a given type (e.g., all inline elements) was difficult, as the
6019 table used to lookup unknown methods would be reset every time a
6020 new element of that type was created, preventing recursive property
6021 lookup. This is was changed in that all methods and attributes of
6022 supertypes are now available to their subtypes.
6023 + `data/pandoc.lua`: fix attribute names of Citation (#4222). The
6024 fields were named like the Haskell fields, not like the documented,
6025 shorter version. The names are changed to match the documentation
6026 and Citations are given a shared metatable to enable simple
6027 extensibility.
6028 + `data/pandoc.lua`: drop function `pandoc.global_filter`.
6029 + Bump `hslua` version to 0.9.5. This version fixes a bug that made it
6030 difficult to handle failures while getting lists or a Map from Lua.
6031 A bug in pandoc, which made it necessary to always pass a tag when
6032 using MetaList or MetaBlock, is fixed as a result. Using the pandoc
6033 module's constructor functions for these values is now optional
6034 (if still recommended).
6035 + Stop exporting `pushPandocModule` (API change). The introduction
6036 of `runPandocLua` renders direct use of this function obsolete.
6037 + Update generation of module docs for lua filters.
6038 + `Lua.Module.Utils`: make stringify work on `MetaValues` (John
6039 MacFarlane). I'm sure this was intended in the first place,
6040 but currently only `Meta` is supported.
6042 * Improve benchmarks.
6044 + Set the default extensions properly.
6045 + Improve benchmark argument parsing. You can now say
6046 `make bench BENCHARGS="markdown latex reader"` and both the
6047 markdown and latex readers will be benchmarked.
6049 * MANUAL.txt simplify and add more structure (Mauro Bieg).
6051 * Generate README.md from template and MANUAL.txt.
6052 `make README.md` will generate the README.md after changes
6053 to MANUAL.txt have been made.
6055 * Update copyright notices to include 2018 (Albert Krewinkel).
6057## pandoc 2.0.6 (2017-12-28)
6059 * Added `jats` as an input format.
6061 + Add Text.Pandoc.Readers.JATS, exporting `readJATS` (API
6062 change) (Hamish Mackenzie).
6063 + Improved citation handling in JATS reader. JATS citations
6064 are now converted to pandoc citations, and JATS ref-lists
6065 are converted into a `references` field in metadata, suitable
6066 for use with pandoc-citeproc. Thus a JATS article with embedded
6067 bibliographic information can be processed with pandoc and
6068 pandoc-citeproc to produce a formatted bibliography.
6070 * Allow `--list-extensions` to take an optional FORMAT argument.
6071 This lists the extensions set by default for the selected FORMAT.
6072 The extensions are now alphabetized, and the `+` or `-`
6073 indicating the default setting comes before, rather than after,
6074 the extension.
6076 * Markdown reader:
6078 + Preserve original whitespace between blocks.
6079 + Recognize `\placeformula` as context.
6080 + Be pickier about table captions. A caption starts with a `:` which
6081 can't be followed by punctuation. Otherwise we can falsely interpret
6082 the start of a fenced div, or even a table header line like
6083 `:--:|:--:`, as a caption.
6084 + Always use four space rule for example lists. It would be awkward
6085 to indent example list contents to the first non-space character after
6086 the label, since example list labels are often long. Thanks to
6087 Bernhard Fisseni for the suggestion.
6088 + Improve raw tex parsing. Note that the Markdown reader is also
6089 affected by the `latex_macros` extension changes described below
6090 under the LaTeX reader.
6092 * LaTeX reader:
6094 + `latex_macros` extension changes (#4179). Don't pass through macro
6095 definitions themselves when `latex_macros` is set. The macros
6096 have already been applied. If `latex_macros` is enabled, then
6097 `rawLaTeXBlock` in Text.Pandoc.Readers.LaTeX will succeed in parsing
6098 a macro definition, and will update pandoc's internal macro map
6099 accordingly, but the empty string will be returned.
6100 + Export `tokenize`, `untokenize` (API change).
6101 + Use `applyMacros` in `rawLaTeXBlock`, `rawLaTeXInline`.
6102 + Refactored `inlineCommand`.
6103 + Fix bug in tokenizer. Material following `^^` was
6104 dropped if it wasn't a character escape. This only affected
6105 invalid LaTeX, so we didn't see it in the wild, but it appeared
6106 in a QuickCheck test failure.
6107 + Fix regression in LateX tokenization (#4159). This mainly affects the
6108 Markdown reader when parsing raw LaTeX with escaped spaces.
6109 + Add tests of LaTeX tokenizer.
6110 + Support `\foreignlanguage` from babel.
6111 + Be more tolerant of `&` character (#4208). This allows us to parse
6112 unknown tabular environments as raw LaTeX.
6114 * Muse reader (Alexander Krotov):
6116 + Parse anchors immediately after headings as IDs.
6117 + Require that note references does not start with 0.
6118 + Parse empty comments correctly.
6120 * Org reader (Albert Krewinkel):
6122 + Fix asterisks-related parsing error (#4180).
6123 + Support minlevel option for includes (#4154). The level of headers
6124 in included files can be shifted to a higher level by specifying a
6125 minimum header level via the `:minlevel` parameter. E.g.
6126 `#+include: "tour.org" :minlevel 1` will shift the headers in
6127 tour.org such that the topmost headers become level 1 headers.
6128 + Break-up org reader test file into multiple modules.
6130 * OPML reader:
6132 + Enable raw HTML and other extensions by default for notes
6133 (#4164). This fixes a regression in 2.0. Note that extensions can
6134 now be individually disabled, e.g. `-f opml-smart-raw_html`.
6136 * RST reader:
6138 + Allow empty list items (#4193).
6139 + More accurate parsing of references (#4156). Previously we erroneously
6140 included the enclosing backticks in a reference ID (#4156). This
6141 change also disables interpretation of syntax inside references, as
6142 in docutils. So, there is no emphasis in `` `my *link*`_ ``.
6144 * Docx reader:
6146 + Continue lists after interruption (#4025, Jesse Rosenthal).
6147 Docx expects that lists will continue where they left off after an
6148 interruption and introduces a new id if a list is starting again. So
6149 we keep track of the state of lists and use them to define a "start"
6150 attribute, if necessary.
6151 + Add tests for structured document tags unwrapping (Jesse Rosenthal).
6152 + Preprocess Document body to unwrap `w:sdt` elements (Jesse Rosenthal,
6153 #4190).
6155 * Plain writer:
6157 + Don't linkify table of contents.
6159 * RST writer:
6161 + Fix anchors for headers (#4188). We were missing an `_`.
6163 * PowerPoint writer (Jesse Rosenthal):
6165 + Treat lists inside BlockQuotes as lists. We don't yet produce
6166 incremental lists in PowerPoint, but we should at least treat lists
6167 inside BlockQuotes as lists, for compatibility with other slide formats.
6168 + Add ability to force size. This replaces the more specific
6169 `blockQuote runProp`, which only affected the size of blockquotes. We
6170 can use this for notes, etc.
6171 + Implement notes. This currently prints all notes on a final slide.
6172 Note that at the moment, there is a danger of text overflowing the
6173 note slide, since there is no logic for adding further slides.
6174 + Implement basic definition list functionality to PowerPoint writer.
6175 + Don't look for default template file for Powerpoint (#4181).
6176 + Add pptx to isTextFormat list. This is used to check standalone
6177 and not writing to the terminal.
6178 + Obey slide level option (Jesse Rosenthal).
6179 + Introduce tests.
6181 * Docx writer:
6183 + Ensure that `distArchive` is the one that comes with pandoc
6184 (#4182). Previously a `reference.docx` in `~/.pandoc` (or the user data
6185 dir) would be used instead, and this could cause problems because a
6186 user-modified docx sometimes lacks vital sections that we count
6187 on the `distArchive` to supply.
6189 * Org writer:
6191 + Do not wrap "-" to avoid accidental bullet lists (Alexander Krotov).
6192 + Don't allow fn refs to wrap to beginning of line (#4171, with help from
6193 Alexander Krotov). Otherwise they can be interpreted as footnote
6194 definitions.
6196 * Muse writer (Alexander Krotov):
6198 + Don't wrap note references to the next line (#4172).
6200 * HTML writer:
6202 + Use br elements in line blocks instead of relying on CSS
6203 (#4162). HTML-based templates have had the custom CSS for
6204 `div.line-block` removed. Those maintaining custom templates will want
6205 to remove this too. We still enclose line blocks in a div with class
6206 `line-block`.
6208 * LaTeX writer:
6210 + Use `\renewcommand` for `\textlatin` with babel (#4161).
6211 This avoids a clash with a deprecated `\textlatin` command defined
6212 in Babel.
6213 + Allow fragile=singleslide attribute in beamer slides (#4169).
6214 + Use `\endhead` after `\toprule` in headerless tables (#4207).
6216 * FB2 writer:
6218 + Add cover image specified by `cover-image` meta (Alexander Krotov,
6219 #4195).
6221 * JATS writer (Hamish Mackenzie):
6223 + Support writing `<fig>` and `<table-wrap>` elements
6224 with `<title>` and `<caption>` inside them by using Divs with class set
6225 to one of `fig`, `table-wrap` or `caption` (Hamish Mackenzie). The
6226 title is included as a Heading so the constraint on where Heading can
6227 occur is also relaxed.
6228 + Leave out empty alt attributes on links.
6229 + Deduplicate image mime type code.
6230 + Make `<p>` optional in `<td>` and `<th>` (#4178).
6231 + Self closing tags for empty xref (#4187).
6232 + Improve support for code language.
6234 * Custom writer:
6236 + Use init file to setup Lua interpreter (Albert Krewinkel).
6237 The same init file (`data/init`) that is used to setup the Lua
6238 interpreter for Lua filters is also used to setup the interpreter of
6239 custom writers.lua.
6240 + Define instances for newtype wrapper (Albert Krewinkel). The custom
6241 writer used its own `ToLuaStack` instance definitions, which made
6242 it difficult to share code with Lua filters, as this could result
6243 in conflicting instances. A `Stringify` wrapper is introduced to
6244 avoid this problem.
6245 + Added tests for custom writer.
6246 + Fixed definition lists and tables in `data/sample.lua`.
6248 * Fixed regression: when target is PDF, writer extensions were being
6249 ignored. So, for example, `pandoc -t latex-smart -o file.pdf`
6250 did not work properly.
6252 * Lua modules (Albert Krewinkel):
6254 + Add `pandoc.utils` module, to hold utility functions.
6255 + Create a Haskell module Text.Pandoc.Lua.Module.Pandoc to
6256 define the `pandoc` lua module.
6257 + Make a Haskell module for each Lua module. Move definitions for the
6258 `pandoc.mediabag` modules to a separate Haskell module.
6259 + Move `sha1` from the main `pandoc` module to `pandoc.utils`.
6260 + Add function `pandoc.utils.hierarchicalize` (convert list of
6261 Pandoc blocks into (hierarchical) list of Elements).
6262 + Add function `pandoc.utils.normalize_date` (parses a date and
6263 converts it (if possible) to "YYYY-MM-DD" format).
6264 + Add function `pandoc.utils.to_roman_numeral` (allows conversion
6265 of numbers below 4000 into roman numerals).
6266 + Add function `pandoc.utils.stringify` (converts any AST element
6267 to a string with formatting removed).
6268 + `data/init.lua`: load `pandoc.utils` by default
6269 + Turn pipe, read into full Haskell functions. The `pipe` and `read`
6270 utility functions are converted from hybrid lua/haskell functions
6271 into full Haskell functions. This avoids the need for intermediate
6272 `_pipe`/`_read` helper functions, which have dropped.
6273 + pandoc.lua: re-add missing MetaMap function. This was a bug
6274 introduced in version 2.0.4.
6276 * Text.Pandoc.Class: Add `insertInFileTree` [API change]. This gives
6277 a pure way to insert an ersatz file into a `FileTree`. In addition, we
6278 normalize paths both on insertion and on lookup.
6280 * Text.Pandoc.Shared: export `blocksToInlines'` (API change, Maura Bieg).
6282 * Text.Pandoc.MIME: Add opus to MIME type table as audio/ogg (#4198).
6284 * Text.Pandoc.Extensions: Alphabetical order constructors for
6285 `Extension`. This makes them appear in order in `--list-extensions`.
6287 * Allow lenient decoding of latex error logs, which are not always
6288 properly UTF8-encoded (#4200).
6290 * Update latex template to work with recent versions of beamer.
6291 The old template produced numbered sections with some recent
6292 versions of beamer. Thanks to Thomas Hodgson.
6294 * Updated reference.docx (#4175). Instead of just "Hello, world", the
6295 document now contains exemplars of most of the styles that have an
6296 effect on pandoc documents. This makes it easier to see the effect
6297 of style changes.
6299 * Removed `default.theme` data file (#4096). It is no longer needed now
6300 that we have `--print-highlight-style`.
6302 * Added `stack.lts9.yaml` for building with lts 9 and ghc 8.0.2.
6303 We still need this for the alpine static linux build, since
6304 we don't have ghc 8.2.2 for that yet.
6306 * Removed `stack.pkg.yaml`. We only really need `stack.yaml`; we
6307 can put flag settings for pandoc-citeproc there.
6309 * Makefile: Add 'trypandoc' and 'pandoc-templates' targets to
6310 make releases easier.
6312 * MANUAL.txt:
6314 + Add note on what formats have `+smart` by default.
6315 + Use native syntax for custom-style (#4174, Mauro Bieg).
6316 + Introduce dedicated Extensions section, since some extensions
6317 affect formats other than markdown (Mauro Bieg, #4204).
6318 + Clarify default html output for `--section-divs` (Richard Edwards).
6320 * filters.md: say that Text.Pandoc.JSON comes form pandoc-types.
6321 Closes jgm/pandoc-website#16.
6323 * epub.md: Delete removed `-S` option from command (#4151, Georger Araújo).
6325## pandoc 2.0.5 (2017-12-12)
6327 * Fix a bug in 2.0.4, whereby pandoc could not read the theme files
6328 generated with `--print-highlight-style` (#4133). Improve JSON
6329 serialization of styles.
6331 * Fix CSS issues involving line numbers (#4128).
6332 Highlighted code blocks are now enclosed in a div with class `sourceCode`.
6333 Highlighting CSS no longer sets a generic color for pre and code; we only
6334 set these for class `sourceCode`.
6336 * `--pdf-engine-opt`: fix bug where option order was reversed (#4137).
6338 * Add PowerPoint (pptx) writer (Jesse Rosenthal).
6339 It works following the standard Pandoc conventions for making other
6340 sorts of slides. Caveats:
6342 + Syntax highlighting is not yet implemented. (This is difficult
6343 because there are no character classes in Powerpoint.)
6344 + Footnotes and Definition lists are not yet implemented. (Notes will
6345 usually take the form of a final slide.
6346 + Image placement and auto-resizing has a few glitches.
6347 + Reference powerpoint files don't work dependably from the command
6348 line. This will be implemented, but at the moment users are advised
6349 to change themes from within Powerpoint.
6351 * Create shared Text.Pandoc.Writers.OOXML module (Jesse Rosenthal).
6352 This is for functions used by both Powerpoint and Docx writers.
6354 * Add default pptx data for Powerpoint writer (Jesse Rosenthal).
6356 * Add `empty_paragraphs` extension.
6358 + Deprecate `--strip-empty-paragraphs` option. Instead we now
6359 use an `empty_paragraphs` extension that can be enabled on
6360 the reader or writer. By default, disabled.
6361 + Add `Ext_empty_paragraphs` constructor to `Extension`.
6362 + Revert "Docx reader: don't strip out empty paragraphs."
6363 This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b.
6364 + Implement `empty_paragraphs` extension in docx reader and writer,
6365 opendocument writer, html reader and writer.
6366 + Add tests for `empty_paragraphs` extension.
6368 * Markdown reader:
6370 + Don't parse native div as table caption (#4119).
6371 + Improved computation of column widths in pipe tables.
6372 Pipe tables with lines longer than the text width (as set
6373 by `--columns`) are now scaled to text width, with the relative
6374 widths of columns determined by the ratios between the
6375 header lines. Previously we computed column widths using
6376 the ratio of header line lengths to column width, so that
6377 tables with narrow header lines were extremely thin, which
6378 was very rarely the desired result.
6380 * LaTeX reader: fix `\` before newline (#4134). This should be a space,
6381 as long as it's not followed by a blank line. This has been fixed at the
6382 tokenizer level.
6384 * Muse reader (Alexander Krotov):
6386 + Add test for `#disable-tables` directive in Emacs mode.
6387 + Don't allow emphasis to be preceded by letter.
6388 + Add underline support in Emacs Muse mode..
6389 + Support multiline directives in Amusewiki mode
6391 * Man writer: omit internal links (#4136). That is, just print the link
6392 text without the URL.
6394 * Markdown reader: accept processing instructions as raw HTML (#4125).
6396 * Lua filters (Albert Krewinkel):
6398 + Use script to initialize the interpreter. The file `init.lua` is
6399 used to initialize the Lua interpreter which is used in Lua filters.
6400 This gives users the option to require libraries which they want to
6401 use in all of their filters, and to extend default modules.
6402 + Fix package loading for Lua 5.1. The list of package searchers is
6403 named `package.loaders` in Lua 5.1 and LuaJIT, and `package.searchers`
6404 in Lua 5.2 and later.
6405 + Refactor lua module handling. The integration with Lua's package/module
6406 system is improved: A pandoc-specific package searcher is prepended to
6407 the searchers in `package.searchers`. The modules `pandoc` and
6408 `pandoc.mediabag` can now be loaded via `require`.
6409 + Bump lower bound of hslua. The release hslua 0.9.3 contains a new
6410 function which makes using Haskell functions as package loaders much
6411 easier.
6413 * reveal.js template: add title-slide identifier to title slide (#4120).
6414 This allows it to be styled more easily.
6416 * LaTeX template: Added support for `pagestyle` variable (#4135,
6417 Thomas Hodgson)
6419 * Add `-threaded` to ghc-options for executable (#4130, fixes a build
6420 error on linux).
6423## pandoc 2.0.4 (2017-12-03)
6425 * Add `--print-highlight-style` option. This generates a JSON version
6426 of a highlighting style, which can be saved as a `.theme` file, modified,
6427 and used with `--highlight-style` (#4106, #4096).
6429 * Add `--strip-empty-paragraphs` option. This works for any input format.
6430 It is primarily intended for use with docx and odt documents where
6431 empty paragraphs have been used for inter-paragraph spaces.
6433 * Support `--webtex` for `gfm` output.
6435 * Recognize `.muse` file extension.
6437 * Support beamer `\alert` in LaTeX reader. Closes #4091.
6439 * Docx reader: don't strip out empty paragraphs (#2252).
6440 Users who have a conversion pipeline from docx may want to consider adding
6441 `--strip-empty-paragraphs` to the command line.
6443 * Org reader (Albert Krewinkel): Allow empty list items (#4090).
6445 * Muse reader (Alexander Krotov):
6447 + Parse markup in definition list terms.
6448 + Allow definition to end with EOF.
6449 + Make code blocks round trip.
6450 + Drop common space prefix from list items.
6451 + Add partial round trip test.
6452 + Don't interpret XML entities.
6453 + Remove `nested`.
6454 + Parse `~~` as non-breaking space in Emacs mode.
6455 + Correctly remove indentation from notes. Exactly one space is
6456 required and considered to be part of the marker.
6457 + Allow list items to be empty.
6458 + Add ordered list test.
6459 + Add more multiline definition tests.
6460 + Don't allow blockquotes within lists.
6461 + Fix reading of multiline definitions.
6462 + Add inline `<literal>` support.
6463 + Concatenate inlines of the same type
6465 * Docx writer: allow empty paragraphs (#2252).
6467 * CommonMark/gfm writer:
6469 + Use raw html for native divs/spans (#4113). This allows a pandoc
6470 markdown native div or span to be rendered in gfm using raw html tags.
6471 + Implement `raw_html` and `raw_tex` extensions. Note that `raw_html`
6472 is enabled by default for `gfm`, while `raw_tex` is disabled by default.
6474 * Muse writer (Alexander Krotov):
6476 + Test that inline math conversion result is normalized.
6477 Without normalization this test produced
6478 `<em>a</em><em>b</em><em>c</em>`.
6479 + Improve inline list normalization and move to writer.
6480 + Escape hash symbol.
6481 + Escape `----` to avoid accidental horizontal rules.
6482 + Escape only `</code>` inside code tag.
6483 + Additional `<verbatim>` is not needed as `<code>` is verbatim already.
6485 * LaTeX writer:
6487 + Allow specifying just width or height for image size.
6488 Previously both needed to be specified (unless the image was
6489 being resized to be smaller than its original size).
6490 If height but not width is specified, we now set width to
6491 textwidth. If width but not height is specified, we now set
6492 height to textheight. Since we have `keepaspectratio`, this
6493 yields the desired result.
6494 + Escape `~` and `_` in code with `--listings` (#4111).
6496 * HTML writer: export `tagWithAttributes`. This is a helper allowing
6497 other writers to create single HTML tags.
6499 * Let papersizes `a0`, `a1`, `a2`, ... be case-insensitive by
6500 converting the case as needed in LaTeX and ConTeXt writers.
6502 * Change `fixDisplayMath` from `Text.Pandoc.Writers.Shared`
6503 so that it no longer produces empty `Para`'s as an artifact.
6505 * `Text.Pandoc.Shared.blocksToInlines`: rewrote using builder.
6506 This gives us automatic normalization, so we don't get
6507 for example two consecutive Spaces.
6509 * Include default CSS for 'underline' class in HTML-based templates.
6511 * revealjs template: add `tex2jax` configuration for the
6512 math plugin. With the next release of reveal.js, this will
6513 fix the problem of `$`s outside of math contexts being
6514 interpreted as math delimiters (#4027).
6516 * `pandoc.lua` module for use in lua filters (Albert Krewinkel):
6518 + Add basic lua List module (#4099, #4081). The List module is
6519 automatically loaded, but not assigned to a global variable. It can be
6520 included in filters by calling `List = require 'List'`. Lists of blocks,
6521 lists of inlines, and lists of classes are now given `List` as a metatable,
6522 making working with them more convenient. E.g., it is now possible to
6523 concatenate lists of inlines using Lua's concatenation operator `..`
6524 (requires at least one of the operants to have `List` as a metatable):
6526 function Emph (emph)
6527 local s = {pandoc.Space(), pandoc.Str 'emphasized'}
6528 return pandoc.Span(emph.content .. s)
6529 end
6531 The `List` metatable is assigned to the tables which get passed to
6532 the constructors `MetaBlocks`, `MetaInline`, and `MetaList`. This
6533 enables the use of the resulting objects as lists.
6534 + `Lua/StackInstances`: push Pandoc and Meta via constructor.
6535 Pandoc and Meta elements are now pushed by calling the respective
6536 constructor functions of the pandoc Lua module. This makes serialization
6537 consistent with the way blocks and inlines are pushed to lua and allows
6538 to use List methods with the `blocks` value.
6539 + Add documentation for pandoc.List in `lua-filters.md`.
6541 * Use latest tagsoup. This fixes a bug in parsing HTML tags with
6542 `&` (but not a valid entity) following them (#4094, #4088).
6544 * Use skylighting 0.4.4.1, fixing the color of unmarked code text
6545 when `numberLines` is used (#4103).
6547 * Make `normalizeDate` more forgiving (Mauro Bieg, #4101), not
6548 requiring a leading 0 on single-digit days.
6550 * Fix `--help` output for `--highlight-style` to include `FILE` (Mauro
6551 Bieg, #4095).
6553 * Clearer deprecation warning for `--latexmathml, --asciimathml, -m`.
6554 Previously we only mentioned `--latexmathml`, even if `-m` was
6555 used.
6557 * Changelog: fix description of lua filters in 2.0 release
6558 (Albert Krewinkel). Lua filters were initially run *after* conventional
6559 (JSON) filters. However, this was changed later to make it easier to deal
6560 with files in the mediabag. The changelog is updated to describe that
6561 feature of the 2.0 release correctly.
6563 * Change Generic JSON instances to TemplateHaskell (Jasper Van der Jeugt,
6564 #4085). This reduces compile time and memory usage significantly.
6566 * `lua-filters.md`: Added tikz filter example.
6568 * Create alternative zip file for macOS binaries.
6570 * Create alternative zip file for Windows binaries.
6572 * Update INSTALL.md since we now provide zips for binaries.
6574 * Relax `http-types` dependency (Justus Sagemüller, #4084).
6576 * Add `epub.md`, `getting-started.md` to docs. These used to live in
6577 the website repo.
6579 * Add `packages` target to Makefile.
6581 * Bump bounds for binary, http-types, tasty-hunit
6583## pandoc 2.0.3 (2017-11-20)
6585 * Lua filters: preload text module (Albert Krewinkel, #4077).
6586 The `text` module is preloaded in lua. The module contains some UTF-8
6587 aware string functions, implemented in Haskell. The module is loaded on
6588 request only, e.g.:
6590 text = require 'text'
6591 function Str (s)
6592 s.text = text.upper(s.text)
6593 return s
6594 end
6596 * Allow table-like access to attributes in lua filters (Albert Krewinkel,
6597 #4071). Attribute lists are represented as associative lists in Lua. Pure
6598 associative lists are awkward to work with. A metatable is attached to
6599 attribute lists, allowing to access and use the associative list as if
6600 the attributes were stored in as normal key-value pair in table.
6601 Note that this changes the way `pairs` works on attribute lists. Instead
6602 of producing integer keys and two-element tables, the resulting iterator
6603 function now returns the key and value of those pairs. Use `ipairs` to
6604 get the old behavior. Warning: the new iteration mechanism only works if
6605 pandoc has been compiled with Lua 5.2 or later (current default: 5.3).
6607 * Text.Pandoc.Parsing.uri: allow `&` and `=` as word characters (#4068).
6608 This fixes a bug where pandoc would stop parsing a URI with an
6609 empty attribute: for example, `&a=&b=` wolud stop at `a`.
6610 (The uri parser tries to guess which punctuation characters
6611 are part of the URI and which might be punctuation after it.)
6613 * Introduce `HasSyntaxExtensions` typeclass (Alexander Krotov, #4074).
6615 + Added new `HasSyntaxExtensions` typeclass for `ReaderOptions` and
6616 `WriterOptions`.
6617 + Reimplemented `isEnabled` function from `Options.hs` to accept both
6618 `ReaderOptions` and `WriterOptions`.
6619 + Replaced `enabled` from `CommonMark.hs` with new `isEnabled`.
6621 * Add `amuse` extension (Alexander Krotov) to enable Amuse wiki
6622 behavior for `muse`. New `Ext_amuse` constructor for
6623 `Extension`. Note: this is switched on by default; for
6624 Emacs behavior, use `muse-amuse`.
6626 * Muse reader (Alexander Krotov):
6628 + Count only one space as part of list item marker.
6629 + Produce SoftBreaks on newlines. Now wrapping can be preserved
6630 with `--wrap=preserve`.
6631 + Add Text::Amuse footnote extensions. Footnote end is indicated by
6632 indentation, so footnotes can be placed anywhere in the text,
6633 not just at the end of it.
6634 + Accept Emacs Muse definition lists when `-amuse`.
6635 Emacs Muse does not require indentation.
6637 * HTML reader:
6639 + Ensure we don't produce level 0 headers (#4076), even for chapter
6640 sections in epubs. This causes problems because writers aren't set
6641 up to expect these.
6642 + Allow spaces after `\(` and before `\)` with `tex_math_single_backslash`.
6643 Previously `\( \frac{1}{a} < \frac{1}{b} \)` was not parsed as math in
6644 `markdown` or `html` `+tex_math_single_backslash`.
6646 * MANUAL: clarify that math extensions work with HTML.
6647 Clarify that `tex_math_dollars` and `tex_math_single_backslash`
6648 will work with HTML as well as Markdown.
6650 * Creole reader: Fix performance issue for longer lists (Sascha Wilde,
6651 #4067).
6653 * RST reader: better support for 'container' directive (#4066).
6654 Create a div, incorporate name attribute and classes.
6656 * LaTeX reader:
6658 + Support column specs like `*{2}{r}` (#4056). This is equivalent to
6659 `rr`. We now expand it like a macro.
6660 + Allow optional args for parbox (#4056).
6661 + Allow optional arguments on `\footnote` (#4062).
6663 * EPUB writer: Fixed path for cover image (#4069). It was previously
6664 `media/media/imagename`, and should have been `media/imagename`.
6666 * Markdown writer: fix bug with doubled footnotes in grid tables
6667 (#4061).
6669 * LaTeX template: include natbib/biblatex after polyglossia (#4073).
6670 Otherwise we seem to get an error; biblatex wants polyglossia
6671 language to be defined.
6673 * Added examples to lua filters documentation.
6676## pandoc 2.0.2 (2017-11-12)
6678 * Deprecated ancient HTML math methods: `--latexmathml`, `--gladtex`,
6679 `--mimetex`, `--jsmath`.
6681 * Fixed URIs in `data/jats.csl`. They were being rendered twice,
6682 leading to invalid XML in default JATS output with pandoc-citeproc.
6684 * `lua-filters.md`: use real-world man page filter as example.
6686 * Add lua filter functions `walk_inline` and `walk_block`
6687 in the pandoc module, to apply filters inside particular
6688 inline and block elements.
6690 * Refactored some code from `Text.Pandoc.Lua.PandocModule`
6691 into new internal module `Text.Pandoc.Lua.Filter`.
6693 * Markdown reader:
6695 + Allow fenced code blocks to be indented 1-3 spaces (#4011).
6696 This brings our handling of them into alignment with CommonMark's.
6697 + Fix YAML metadata with "chomp" (`|-`). Previously if a
6698 YAML block under `|-` contained a blank line, pandoc would
6699 not parse it as metadata.
6701 * Removed `etc.` from abbreviations file. Often `etc.` ends a
6702 sentence, and we want the period to be treated as a
6703 sentence-ending period.
6705 * Fix regression with `--metadata` (#4054). Values specified with
6706 `--metadata` should replace a metadata value set in the document
6707 itself, rather than creating a list including a new value.
6709 * EPUB writer:
6711 + Fix EPUB OCF structure. #3720 had been improperly implemented.
6712 + Fix modified paths for raw HTML tags (src, poster, etc.)
6713 (#4050, #4055). This had not been updated for the new EPUB
6714 container layout, with a separate text/ subdirectory.
6715 + Fix image paths with empty `--epub-subdirectory`.
6717 * Miscellaneous code cleanup (Alexander Krotov).
6719 * Use pandoc-types 1.17.3, which adds `Walkable` instances
6720 for `[Block] Block` and `[Inline] Inline`.
6722 * Remove obsolete `stack.full.yaml` (#4052).
6724 * Change to using pandoc-citeproc 0.12.1 in binary packages.
6726 * Consolidate math output method documentation (#4049, Mauro Bieg).
6728 * `MANUAL.txt`: fix header level of "Extension: emoji" (Albert Krewinkel).
6730 * Use lua filter to generate man page from `MANUAL.txt`, replacing old
6731 Haskell filters. This is easier and faster.
6733 * Improved `INSTALL.md`.
6735 * Update commands to extract deb archive on Linux (#4043, Salim B).
6738## pandoc 2.0.1.1 (2017-11-04)
6740 * Improved fix to #3989 (parsing of HTML tags containing
6741 `>` in an attribute or comment). The previous fix (in 2.0.1) only
6742 worked in certain cases.
6744 * FB2 writer (Alexander Krotov):
6746 + Add `unrecognised` genre to `<title-info>`
6747 (Alexander Krotov). XML schema requires at least one genre.
6748 + Remove `<annotation>` from `<body>`.
6750 * CommonMark writer: fix strikethrough for `gfm` (#4038).
6752 * Use texmath 0.10, which adds support for a wider range of
6753 symbols and fixes default column alignments in MathML
6754 and OMML.
6756 * Highlighting fixes, using skylighting 0.4.3.2:
6758 + Fix invalid CSS.
6759 + Support `lineAnchors` (or `line-anchors`) in HTML code blocks.
6760 + Ensure that code lines don't get duplicate identifiers (#4031).
6761 The line identifiers are built using the code block's identifier
6762 as a prefix. If the code block has null identifier, we use
6763 `cb1`, `cb2`, etc.
6765 * Added a few abbreviations to `data/abbreviations`,
6766 and sorted the list (#3984, Wandmalfarbe).
6768 * Improved support for columns in HTML writer (#4028).
6770 + Remove `width` attribute from the `div`.
6771 + Remove space between `<div class="column">` elements,
6772 since this prevents columns whose widths sum to 100%
6773 (the space takes up space).
6774 + Move as much as possible of the CSS to the template.
6775 + Ensure that all the HTML-based templates (including epub)
6776 contain the CSS for columns.
6777 + Columns default to 50% width unless they are given a width
6778 attribute. So if you want two equal-width columns, you
6779 can use a div with class `column` and no `width` attribute.
6781 * SelfContained: use `base64` for css links with media attribute (#4026).
6782 This fixes `--self-contained` with S5.
6784 * Improve `pandoc-template-mode.el` (Vaclav Haisman).
6786 * INSTALL.md: MacOS instructions needed xar -f (adam234).
6788 * MANUAL.txt:
6790 + Clarify that --setext-headers doesn't affect gfm output (#4035).
6791 + Clarify what is needed to open and close a div in `fenced_divs`
6792 (#4039, Tristano Ajmone).
6793 + Removed reference to `default.beamer` in docs (#4024).
6794 Also added mention of other templates affecting PDF output
6795 with different settings.
6798## pandoc 2.0.1 (2017-10-31)
6800 * Fixed regression in parsing of HTML comments in markdown and other
6801 non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`) (#4019).
6802 The parser stopped at the first `>` character, even if it wasn't
6803 the end of the comment.
6805 * Creole reader (Sascha Wilde):
6807 + Fix some minor typos and formatting.
6808 + Add additional test on nowiki-block after para.
6809 + Fix lists with trailing white space.
6811 * LaTeX reader: handle `%` comment right after command.
6812 For example, `\emph%`.
6814 * Markdown reader: make sure fenced div closers work in lists.
6815 Previously the following failed:
6817 ::: {.class}
6818 1. one
6819 2. two
6820 :::
6822 and you needed a blank line before the closing `:::`.
6824 * Make `fenced_divs` affect the Markdown writer. If `fenced_divs` is
6825 enabled, Divs will be rendered as fenced divs.
6827 * LaTeX/Beamer writer: support "blocks" inside columns and other Divs
6828 (#4016).
6830 * HTML Writer: consistently use dashed class-names (Mauro Bieg, #3556).
6831 Note: this change may require some changes in CSS rules.
6832 `footnoteRef` has become `footnote-ref`, `titleslide` has
6833 become `title-slide`, and `footnoteBack` has become `footnote-back`.
6835 * JATS writer: Properly pass through author metadata (#4020).
6837 * FB2 writer (Alexander Krotov):
6839 + Write blocks outside of `<p>` in definitions.
6840 + Make bullet lists consistent with ordered lists, repeating
6841 the marker for the outer list rather than indenting sublists,
6842 since indentation does not work in readers.
6843 + Add new style FB2 tests.
6845 * `Text.Pandoc.ImageSize`: Add `Millimeter` constructor to `Dimension`
6846 (#4012) [API change]. Now sizes given in 'mm' are no longer converted
6847 to 'cm'.
6849 * Revise documentation of small caps syntax (Andrew Dunning, #4013).
6851 * Fix broken reference links in manual (Andrew Dunning, #4014)
6853 * Fixed example of slide columns structure in changelog (#4015).
6854 Also documented this feature in MANUAL.txt.
6857## pandoc 2.0.0.1 (2017-10-30)
6859 * EPUB writer:
6861 + Fixed filepaths for nonstandard epub-subdirectory values.
6862 + Ensure that epub2 is recognized as a non-text format,
6863 so that a template is used.
6864 + Don't include "prefix" attribute for ibooks for epub2.
6865 It doesn't validate.
6866 + Fix stylesheet paths; previously we had an incorrect
6867 stylesheet path for the cover page and nav page.
6869 * LaTeX reader:
6871 + Insert space when needed in macro expansion (#4007).
6872 Sometimes we need to insert a space after a control sequence
6873 to prevent it merging with a following letter.
6874 + Allow unbraced arguments for macros (#4007).
6875 + Allow body of macro definition to be unbraced (#4007).
6877 * Linux package build: ensure that pandoc-citeproc is statically linked.
6879 * trypandoc: add native, ms.
6882## pandoc 2.0 (2017-10-29)
6884### New features
6886 * New output format `ms` (groff ms). Complete support, including
6887 tables, math, syntax highlighting, and PDF bookmarks. The writer uses
6888 texmath's new eqn writer to convert math to eqn format, so a ms file
6889 produced with this writer should be processed with `groff -ms -e` if
6890 it contains math.
6892 * New output format `jats` (Journal Article Tag Suite). This is an XML
6893 format used in archiving and publishing articles. Note that a
6894 URI-encoded CSL stylesheet (`data/jats.csl`) is added automatically
6895 unless a stylesheet is specified using `--css`.
6897 * New output format `gfm` (GitHub-flavored CommonMark) (#3841).
6898 This uses bindings to GitHub's fork of cmark, so it should parse
6899 gfm exactly as GitHub does (excepting certain postprocessing
6900 steps, involving notifications, emojis, etc.). `markdown_github`
6901 has been deprecated in favor of `gfm`.
6903 * New output format `muse` (Emacs Muse) (Alexander Krotov, #3489).
6905 * New input format `gfm` (GitHub-flavored CommonMark) (#3841).
6906 This uses bindings to GitHub's fork of cmark. `markdown_github`
6907 has been deprecated in favor of `gfm`.
6909 * New input format `muse` (Emacs Muse) reader (Alexander Krotov, #3620).
6911 * New input format `tikiwiki` (TikiWiki markup) (rlpowell, #3800).
6913 * New input format `vimwiki` (Vimwiki markup) (Yuchen Pei, #3705).
6914 Note that there is a new data file, `data/vimwiki.css`, which can
6915 be used to display the HTML produced by this reader and
6916 pandoc's HTML writer in the style of vimwiki's own HTML
6917 export.
6919 * New input format `creole` (Creole 1.0) (#3994, Sascha Wilde).
6921 * New syntax for Divs, with `fenced_divs` extension enabled by
6922 default (#168). This gives an attractive, plain-text way to create
6923 containers for block-level content.
6925 * Added new syntax for including raw content in any output format,
6926 enabled by the `raw_attribute` extension (which is on by default
6927 for `markdown` and `multimarkdown`). The syntax is the same as
6928 for fenced code blocks or code inlines, only with `{=FORMAT}` for
6929 attributes, where `FORMAT` is the name of the output format
6930 (e.g., `ms`, `html`).
6932 * Implement multicolumn support for slide formats (#1710).
6933 The structure expected is:
6935 :::::::::::::: {.columns}
6936 ::: {.column width="40%"}
6937 contents...
6938 :::
6939 ::: {.column width="60%"}
6940 contents...
6941 :::
6942 ::::::::::::::
6944 Support has been added for beamer and all HTML slide formats.
6946 * Allows line comments in templates, beginning with `$--` (#3806).
6947 (Requires doctemplates 0.2.1.)
6949 * Add `--eol=crlf|lf|native` flag and writer option to control line endings
6950 (Stefan Dresselhaus, #3663, #2097).
6952 * Add `--log` option to save log messages in JSON format to a file (#3392).
6954 * Add `--request-header` option, to set request headers when pandoc
6955 makes HTTP requests to fetch external resources. For example:
6956 `--request-header User-Agent:blah`.
6958 * Added lua filters (Albert Krewinkel, #3514). The new `--lua-filter`
6959 option works like `--filter` but takes pathnames of special lua filters
6960 and uses the lua interpreter baked into pandoc, so that no external
6961 interpreter is needed. Note that lua filters are all applied after
6962 regular filters, regardless of their position on the command line.
6963 For documentation of lua filters, see `doc/lua-filters.md`.
6965 * Set `PANDOC_READER_OPTIONS` in environment where filters are run.
6966 This contains a JSON representation of `ReaderOptions`, so filters
6967 can access it.
6969 * Support creation of pdf via groff `ms` and pdfroff.
6970 `pandoc -t ms -o output.pdf input.txt`.
6972 * Support for PDF generation via HTML and `weasyprint` or `prince`
6973 (Mauro Bieg, #3909). `pandoc -t html5 -o output.pdf --pdf-engine=prince`.
6975 * Added `--epub-subdirectory` option (#3720). This specifies the
6976 subdirectory in the OCF container that holds the EPUB specific content.
6977 We now put all EPUB related content in an `EPUB/` subdirectory by default
6978 (later this will be configurable).
6980 ```
6981 mimetype
6982 META-INF/
6983 com.apple.ibooks.display-options.xml
6984 container.xml
6985 EPUB/ <<--configurable-->>
6986 fonts/ <<--static-->>
6987 font.otf
6988 media/ <<--static-->>
6989 cover.jpg
6990 fig1.jpg
6991 styles/ <<--static-->>
6992 stylesheet.css
6993 content.opf
6994 toc.ncx
6995 text/ <<--static-->>
6996 ch001.xhtml
6997 ```
6999 * Added `--resource-path=SEARCHPATH` command line option (#852).
7000 SEARCHPATH is separated by the usual character, depending on OS
7001 (: on unix, ; on windows). Default resource path is just working
7002 directory. However, the working directory must be explicitly
7003 specified if the `--resource-path` option is used.
7005 * Added --abbreviations=FILE option for custom abbreviations file
7006 (#256). Dfault abbreviations file (`data/abbreviations`) contains
7007 a list of strings that will be recognized by pandoc's
7008 Markdown parser as abbreviations. (A nonbreaking space will
7009 be inserted after the period, preventing a sentence space in
7010 formats like LaTeX.) Users can override the default by putting a file
7011 abbreviations in their user data directory (`~/.pandoc` on *nix).
7013 * Allow a theme file as argument to `--highlight-style`.
7014 Also include a sample, `default.theme`, in `data/`.
7016 * Allow `--syntax-definition` option for dynamic loading of syntax
7017 highlighting definitions (#3334).
7019 * Lists in `markdown` by default now use the CommonMark variable
7020 nesting rules (#3511). The indentation required for a block-level
7021 item to be included in a list item is no longer fixed, but is
7022 determined by the first line of the list item. To be included in
7023 the list item, a block must be indented to the level of the first
7024 non-space content after the list marker. Exception: if are 5 or more
7025 spaces after the list marker, then the content is interpreted as an
7026 indented code block, and continuation paragraphs must be indented
7027 two spaces beyond the end of the list marker. See the CommonMark
7028 spec for more details and examples.
7030 Documents that adhere to the four-space rule should, in most cases,
7031 be parsed the same way by the new rules. Here are some examples
7032 of texts that will be parsed differently:
7034 - a
7035 - b
7037 will be parsed as a list item with a sublist; under the four-space
7038 rule, it would be a list with two items.
7040 - a
7042 code
7044 Here we have an indented code block under the list item, even though it
7045 is only indented six spaces from the margin, because it is four spaces
7046 past the point where a continuation paragraph could begin. With the
7047 four-space rule, this would be a regular paragraph rather than a code
7048 block.
7050 - a
7052 code
7054 Here the code block will start with two spaces, whereas under
7055 the four-space rule, it would start with `code`. With the four-space
7056 rule, indented code under a list item always must be indented eight
7057 spaces from the margin, while the new rules require only that it
7058 be indented four spaces from the beginning of the first non-space
7059 text after the list marker (here, `a`).
7061 This change was motivated by a slew of bug reports from people
7062 who expected lists to work differently (#3125, #2367, #2575, #2210,
7063 #1990, #1137, #744, #172, #137, #128) and by the growing prevalance
7064 of CommonMark (now used by GitHub, for example). Those who
7065 prefer the old behavior can use `-f markdown+four_space_rule`.
7067 * Added `four_space_rule` extension. This triggers the old pandoc
7068 parsing rule for content nested under list items (the "four space
7069 rule").
7071 * Added `spaced_reference_links` extension (#2602). It allows whitespace
7072 between the two parts of a reference link: e.g.
7074 [a] [b]
7076 [b]: url
7078 This was previously enabled by default; now it is forbidden by default.
7080 * Add `space_in_atx_header` extension (#3512). This is enabled by default
7081 in pandoc and GitHub markdown but not the other flavors.
7082 This requirse a space between the opening #'s and the header
7083 text in ATX headers (as CommonMark does but many other implementations
7084 do not). This is desirable to avoid falsely capturing things ilke
7086 #hashtag
7088 or
7090 #5
7092 * Add `sourcefile` and `outputfile` template variables (Roland Hieber,
7093 #3431).
7095 * Allow ibooks-specific metadata in epubs (#2693). You can now have
7096 the following fields in your YAML metadata, and it will be treated
7097 appropriately in the generated EPUB:
7099 ```
7100 ibooks:
7101 version: 1.3.4
7102 specified-fonts: false
7103 ipad-orientation-lock: portrait-only
7104 iphone-orientation-lock: landscape-only
7105 binding: true
7106 scroll-axis: vertical
7107 ```
7110### Behavior changes
7112 * Reader functions no longer presuppose that CRs have been
7113 stripped from the input. (They strip CRs themselves, before
7114 parsing, to simplify the parsers.)
7116 * Added support for translations (localization) (#3559).
7117 Currently this only affects the LaTeX reader, for things
7118 like `\figurename`. Translation data files for 46 languages
7119 can be found in `data/translations`.
7121 * Make `--ascii` work with DocBook output too.
7123 * Rename `--latex-engine` to `--pdf-engine`,
7124 and `--latex-engine-opt` to `--pdf-engine-opt`.
7126 * Removed `--parse-raw` and `readerParseRaw`. These were confusing.
7127 Now we rely on the `+raw_tex` or `+raw_html` extension with latex or html
7128 input. Thus, instead of `--parse-raw -f latex` we use `-f latex+raw_tex`,
7129 and instead of `--parse-raw -f html` we use `-f html+raw_html`.
7131 * With `--filter` R filters are now recognized, even if they are
7132 not executable (#3940, #3941, Andrie de Vries).
7134 * Support SVG in PDF output, converting with `rsvg2pdf` (#1793).
7136 * Make epub an alias for epub3, not epub2.
7138 * Removed `--epub-stylesheet`; use `--css` instead (#3472, #847).
7139 Multiple stylesheets may be used. Stylesheets will be taken both from
7140 `--css` and from the `stylesheet` metadata field (which can contain
7141 either a file path or a list of them).
7143 * `--mathml` and MathML in HTMLMathMethod no longer take an argument.
7144 The argument was for a bridge JavaScript that used to be necessary
7145 in 2004. We have removed the script already.
7147 * `--katex` improvements. The latest version is used, and the
7148 autoload script is loaded by default.
7150 * Change MathJax CDN default since old one is shutting down (#3544).
7151 Note: The new URL requires a version number, which we'll have
7152 to update manually in subsequent pandoc releases in order to
7153 take advantage of mathjax improvements.
7155 * `--self-contained`: don't incorporate elements with `data-external="1"`
7156 (#2656). You can leave an external link as it is by adding the attribute
7157 data-external="1" to the element. Pandoc will then not try to
7158 incorporate its content when `--self-contained` is used. This is
7159 similar to a feature already supported by the EPUB writer.
7161 * Allow `--extract-media` to work with non-binary input formats
7162 (#1583, #2289). If `--extract-media` is supplied with a non-binary
7163 input format, pandoc will attempt to extract the contents of all
7164 linked images, whether in local files, data: uris, or external uris.
7165 They will be named based on the sha1 hash of the contents.
7167 * Make `papersize: a4` work regardless of the case of `a4`.
7168 It is converted to `a4` in LaTeX and `A4` in ConTeXt.
7170 * Make `east_asian_line_breaks` affect all readers/writers (#3703).
7172 * Underlined elements are now treated consistently by readers
7173 (#2270, hftf); they are always put in a Span with class `underline`.
7174 This allows the user to treat them differently from other emphasis,
7175 using a filter. Docx, Org, Textile, Txt2Tags, and HTML readers
7176 have been changed.
7178 * Improved behavior of `auto_identifiers` when there are explicit ids
7179 (#1745). Previously only autogenerated ids were added to the list
7180 of header identifiers in state, so explicit ids weren't taken
7181 into account when generating unique identifiers. Duplicated
7182 identifiers could result. This simple fix ensures that explicitly given
7183 identifiers are also taken into account.
7185 * Use `table-of-contents` for contents of toc, make `toc` a boolean
7186 (#2872). Changed markdown, rtf, and HTML-based templates accordingly.
7187 This allows you to set `toc: true` in the metadata; this
7188 previously produced strange results in some output formats.
7189 For backwards compatibility, `toc` is still set to the
7190 toc contents. But it is recommended that you update templates
7191 to use `table-of-contents` for the toc contents and `toc`
7192 for a boolean flag.
7194 * Change behavior with binary format output to stdout.
7195 Previously, for binary formats, output to stdout was disabled
7196 unless we could detect that the output was being piped (and not
7197 sent to the terminal). Unfortunately, such detection is not
7198 possible on Windows, leaving windows users no way to pipe binary
7199 output. So we have changed the behavior in the following way:
7201 + Output to stdout is allowed when it can be determined that
7202 the output is being piped (on non-Windows platforms).
7203 + If the `-o` option is not used, binary output is never sent
7204 to stdout by default; instead, an error is raised.
7205 + If `-o -` is used, binary output is sent to stdout, regardless
7206 of whether it is being piped. This works on Windows too.
7208 * Better error behavior: uses of `error` have been replaced by
7209 raising of `PandocError`, which can be trapped and handled by the
7210 calling program.
7212 * Removed `hard_line_breaks` extension from `markdown_github` (#3594).
7213 GitHub has two Markdown modes, one for long-form documents like READMEs
7214 and one for short things like issue comments. In issue comments, a line
7215 break is treated as a hard line break. In README, wikis, etc., it is
7216 treated as a space as in regular Markdown. Since pandoc is more likely to
7217 be used to convert long-form documents from GitHub Markdown,
7218 `-hard_line_breaks` is a better default.
7220 * Include `backtick_code_blocks` extension in `mardkown_mmd` (#3637).
7222 * Escape `MetaString` values (as added with `-M/--metadata` flag) (#3792).
7223 Previously they would be transmitted to the template without any
7224 escaping. Note that `--M title='*foo*'` yields a different result from
7226 ---
7227 title: *foo*
7228 ---
7230 In the latter case, we have emphasis; in the former case, just
7231 a string with literal asterisks (which will be escaped
7232 in formats, like Markdown, that require it).
7234 * Allow `em`, `cm`, `in` for image height/width in HTML, LaTeX (#3450).
7236 * HTML writer: Insert `data-` in front of unsupported attributes. Thus,
7237 a span with attribute `foo` gets written to HTML5 with `data-foo`, so
7238 it is valid HTML5. HTML4 is not affected. This will allow us to use
7239 custom attributes in pandoc without producing invalid HTML. (With help
7240 from Wandmalfarbe, #3817.)
7242 * Plain writer: improved super/subscript rendering. We now
7243 handle more non-digit characters for which there are
7244 sub/superscripted unicode characters. When unicode
7245 sub/superscripted characters are not available, we use
7246 `_(..)` or `^(..)` (#3518).
7248 * Docbook, JATS, TEI writers: print INFO message when omitting interior
7249 header (#3750). This only applies to section headers inside list items,
7250 e.g., which were otherwise silently omitted.
7252 * Change to `--reference-links` in Markdown writer (#3701). With
7253 `--reference-location` of `section` or `block`, pandoc will now repeat
7254 references that have been used in earlier sections. The Markdown
7255 reader has also been modified, so that *exactly* repeated references
7256 do not generate a warning, only references with the same label but
7257 different targets. The idea is that, with references after every block,
7258 one might want to repeat references sometimes.
7260 * ODT/OpenDocument writer:
7262 + Support `lang` attribute (#1667).
7263 + Added support for `--toc` (#2836). Thanks to @anayrat.
7265 * Docx writer:
7267 + `lang` meta, see #1667 (Mauro Bieg, #3515).
7268 + Change `FigureWithCaption` to `CaptionedFigure` (iandol, #3658).
7269 + Use `Table` rather than `Table Normal` for table style (#3275).
7270 `Table Normal` is the default table style and can't be modified.
7271 + Pass through comments (#2994). We assume that comments are defined as
7272 parsed by the docx reader:
7274 I want <span class="comment-start" id="0" author="Jesse Rosenthal"
7275 date="2016-05-09T16:13:00Z">I left a comment.</span>some text to
7276 have a comment <span class="comment-end" id="0"></span>on it.
7278 We assume also that the id attributes are unique and properly
7279 matched between comment-start and comment-end.
7280 + Bookmark improvements. Bookmark start/end now surrounds content rather
7281 than preceding it. Bookmarks generated for Div with id
7282 (jgm/pandoc-citeproc#205).
7283 + Add `keywords` metadata to docx document properties (Ian).
7285 * RST writer: support unknown interpreted text roles by
7286 parsing them as `Span` with `role` attributes (#3407). This
7287 way they can be manipulated in the AST.
7289 * HTML writer:
7291 + Line block: Use class instead of style attribute (#1623). We now
7292 issue `<div class="line-block">` and include a default definition
7293 for `line-block` in the default templates, instead of hard-coding a
7294 `style` on the div.
7295 + Add class `footnoteBack` to footnote back references (Timm Albers).
7296 This allows for easier CSS styling.
7297 + Render SmallCaps as span with smallcaps class (#1592), rather than
7298 using a style attribute directly. This gives the user more flexibility
7299 in styling small caps in CSS.
7300 + With reveal.js we use `data-src` instead of `src` for images for
7301 lazy loading.
7302 + Special-case `.stretch` class for images in reveal.js (#1291).
7303 Now in reveal.js, an image with class `stretch` in a paragraph
7304 by itself will stretch to fill the whole screen, with no
7305 caption or figure environment.
7307 * Added warnings for non-rendered blocks to writers.
7309 * Writers now raise an error on template failure.
7311 * When creating a PDF via LaTeX, warn if the font is missing some
7312 characters (#3742).
7314 * Remove initial check for PDF-creating program (#3819).
7315 Instead, just try running it and raise the exception if it
7316 isn't found at that point. This improves things for users of Cygwin
7317 on Windows, where the executable won't be found by `findExecutable`
7318 unless `.exe` is added. The same exception is raised as before, but
7319 at a later point.
7321 * Readers issue warning for duplicate header identifiers (#1745).
7322 Autogenerated header identifiers are given suffixes so as not to clash
7323 with previously used header identifiers. But they may still coincide with
7324 an explicit identifier that is given for a header later in the document,
7325 or with an identifier on a div, span, link, or image. We now issue
7326 a warning in this case, so users can supply an explicit identifier.
7328 * CommonMark reader now supports `emoji`, `hard_line_breaks`, `smart`,
7329 and `raw_html` extensions.
7331 * Markdown reader:
7333 + Don't allow backslash + newline to affect block structure (#3730).
7334 Note that as a result of this change, the following, which formerly
7335 produced a header with two lines separated by a line break, will
7336 now produce a header followed by a paragraph:
7338 # Hi\
7339 there
7341 This may affect some existing documents that relied on
7342 this undocumented and unintended behavior. This change makes pandoc
7343 more consistent with other Markdown implementations, and with itself
7344 (since the two-space version of a line break doesn't work inside ATX
7345 headers, and neither version works inside Setext headers).
7348 * Org reader (Albert Krewinkel, unless noted):
7350 + Support `table.el` tables (#3314).
7351 + Support macros (#3401).
7352 + Support the `#+INCLUDE:` file inclusion mechanism (#3510).
7353 Recognized include types are `example`, `export`, `src`, and
7354 normal org file inclusion. Advanced features like line numbers
7355 and level selection are not implemented yet.
7356 + Interpret more meta value as inlines. The values of the following
7357 meta variables are now interpreted using org-markup instead of
7358 treating them as pure strings: `keywords` (comma-separated list of
7359 inlines), `subtitle` (inline values), `nocite` (inline values, can
7360 be repeated).
7361 + Support `\n` export option (#3940). This turns all newlines in the
7362 text into hard linebreaks.
7364 * RST reader:
7366 + Improved admonition support (#223). We no longer add an
7367 `admonition` class, we just use the class for the type of admonition,
7368 `note` for example. We put the word corresponding to the label in
7369 a paragraph inside a `Div` at the beginning of the admonition with
7370 class `admonition-title`. This is about as close as we can get to
7371 RST's own output.
7372 + Initial support of `.. table` directive. This allows adding captions
7373 to tables.
7374 + Support `.. line-block` directive. This is deprecated but may still
7375 be in older documents.
7376 + Support scale and align attributes of images (#2662).
7377 + Implemented implicit internal header links (#3475).
7378 + Support RST-style citations (#853). The citations appear at the end
7379 of the document as a definition list in a special div with id
7380 `citations`. Citations link to the definitions.
7381 + Recurse into bodies of unknown directives (#3432).
7382 In most cases it's better to preserve the content than
7383 to emit it. This isn't guaranteed to have good results;
7384 it will fail spectacularly for unknown raw or verbatim directives.
7385 + Handle chained link definitions (#262). For example,
7387 .. _hello:
7388 .. _goodbye: example.com
7390 Here both `hello` and `goodbye` should link to `example.com`.
7391 + Support anchors (#262). E.g.
7393 `hello`
7395 .. _hello:
7397 paragraph
7399 This is supported by putting "paragraph" in a `Div` with id `hello`.
7400 + Support `:widths:` attribute for table directive.
7401 + Implement csv-table directive (#3533). Most attributes are supported,
7402 including `:file:` and `:url:`.
7403 + Support unknown interpreted text roles by parsing them as Span
7404 with "role" attributes (#3407). This way they can be manipulated in
7405 the AST.
7407 * HTML reader: parse a span with class `smallcaps` as `SmallCaps`.
7409 * LaTeX reader:
7411 + Implemented `\graphicspath` (#736).
7412 + Properly handle column prefixes/suffixes. For example, in
7413 `\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}`
7414 each cell will be interpreted as if it has a `$`
7415 before its content and a `$` after (math mode).
7416 + Handle komascript `\dedication` (#1845). It now adds a
7417 `dedication` field to metadata. It is up to the user to supply
7418 a template that uses this variable.
7419 + Support all `\textXX` commands, where XX = `rm`, `tt`, `up`, `md`,
7420 `sf`, `bf` (#3488). Spans with a class are used when there is
7421 nothing better.
7422 + Expand `\newenvironment` macros (#987).
7423 + Add support for LaTeX subfiles package (Marc Schreiber, #3530).
7424 + Better support for subfigure package (#3577).
7425 A figure with two subfigures turns into two pandoc
7426 figures; the subcaptions are used and the main caption
7427 ignored, unless there are no subcaptions.
7428 + Add support for `\vdots` (Marc Schreiber, #3607).
7429 + Add basic support for hyphenat package (Marc Schreiber, #3603).
7430 + Add basic `\textcolor` support (Marc Schreiber).
7431 + Add support for `tabularx` environment (Marc Schreiber, #3632).
7432 + Better handling of comments inside math environments (#3113).
7433 This solves a problem with commented out `\end{eqnarray}` inside
7434 an eqnarray (among other things).
7435 + Parse tikzpicture as raw verbatim environment if `raw_tex` extension
7436 is selected (#3692). Otherwise skip with a warning. This is better
7437 than trying to parse it as text!
7438 + Add `\colorbox` support (Marc Schreiber).
7439 + Set identifiers on Spans used for `\label`.
7440 + Have `\setmainlanguage` set `lang` in metadata.
7441 + Support etoolbox's `\ifstrequal`.
7442 + Support `plainbreak`, `fancybreak` et al from the memoir class
7443 (bucklereed, #3833).
7444 + Support `\let`. Also, fix regular macros so they're expanded at the
7445 point of use, and NOT also the point of definition. `\let` macros,
7446 by contrast, are expanded at the point of definition. Added an
7447 `ExpansionPoint` field to `Macro` to track this difference.
7448 + Support simple `\def` macros. Note that we still don't support
7449 macros with fancy parameter delimiters, like `\def\foo#1..#2{...}`.
7450 + Support `\chaptername`, `\partname`, `\abstractname`, etc. (#3559,
7451 obsoletes #3560).
7452 + Put content of `\ref`, `\label`, `\eqref` commands into `Span` with
7453 attributes, so they can be handled in filters (Marc Schreiber, #3639)
7454 + Add Support for `glossaries` and `acronym` package (Marc Schreiber,
7455 #3589). Acronyms are not resolved by the reader, but acronym and
7456 glossary information is put into attributes on Spans so that they
7457 can be processed in filters.
7458 + Use `Link` instead of `Span` for `\ref`. This makes more sense
7459 semantically and avoids unnecessary `Span [Link]` nestings when
7460 references are resolved.
7461 + Rudimentary support for `\hyperlink`.
7462 + Support `\textquoteleft|right`, `\textquotedblleft|right` (#3849).
7463 + Support `\lq`, `\rq`.
7464 + Implement `\newtoggle`, `\iftoggle`, `\toggletrue|false` from etoolbox
7465 (#3853).
7466 + Support `\RN` and `\Rn`, from biblatex (bucklereed, #3854).
7467 + Improved support for `\hyperlink`, `\hypertarget` (#2549).
7468 + Support `\k` ogonek accent.
7469 + Improve handling of accents. Handle ogonek, and fall back correctly
7470 with forms like `\"{}`.
7471 + Better support for ogonek accents.
7472 + Support for `\faCheck` and `\faClose` (Marc Schreiber, #3727).
7473 + Support for `xspace` (Marc Schreiber, #3797).
7474 + Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia)
7475 and `\figurename`.
7476 + Better handling of `\part` in LaTeX (#1905). Now we parse chapters as
7477 level 0 headers, and parts as level -1 headers. After parsing, we
7478 check for the lowest header level, and if it's less than 1 we bump
7479 everything up so that 1 is the lowest header level. So `\part` will
7480 always produce a header; no command-line options are needed.
7481 + Add block version of `\textcolor` (Marc Schreiber).
7482 + `\textcolor` works as inline and block command (Marc Schreiber).
7483 + `\textcolor` will be parse as span at the beginning of a paragraph
7484 (Marc Schreiber).
7485 + Read polyglossia/babel `\text(LANG){...}` (bucklereed)
7486 + Improved handling of include files in LaTeX reader (#3971).
7487 Previously `\include` wouldn't work if the included file
7488 contained, e.g., a begin without a matching end.
7489 + Support `\expandafter` (#3983).
7490 + Handle `\DeclareRobustCommand` (#3983). Currently it's just treated
7491 as a synonym for `\newcommand`.
7492 + Handle `\lettrine` (Mauro Bieg).
7494 * Math improvements due to updates in texmath:
7496 + Improved handling of accents and upper/lower delimiters.
7497 + Support for output in GNU eqn format (used with *roff).
7498 + Allow `\boldsymbol` + a token without braces, and similarly
7499 with other styling commands.
7500 + Improve parsing of `\mathop` to allow multi-character operator names.
7501 + Add thin space after math operators when "faking it with
7502 unicode."
7504 * `walk` is now used instead of `bottomUp` in the `ToJSONFilter`
7505 instance for `a -> [a]` (pandoc-types). Note that behavior
7506 will be slightly different, since `bottomUp`'s treatment of
7507 a function `[a] -> [a]` is to apply it to each sublist of a
7508 list, while walk applies it only to maximal sublists.
7509 Usually the latter behavior is what is wanted, and the
7510 former can be simulated when needed. But there may be
7511 existing filters that need to be rewritten in light of the
7512 new behavior. Performance should be improved.
7514 * There are some changes to syntax highlighting due to revisions
7515 in the `skylighting` library:
7517 + Support for `powershell` has been added, and many syntax
7518 definitions have been updated.
7519 + Background colors have been added to the `kate` style.
7520 + The way highlighted code blocks are formatted in HTML has
7521 been changed (David Baynard), in ways that may require
7522 changes in hard-coded CSS affecting highlighting.
7523 (If you haven't included hard-coded highlighting CSS in
7524 your template, you needn't change anything.)
7527### API changes
7529 * New module `Text.Pandoc.Class` (Jesse Rosenthal, John MacFarlane).
7530 This contains definitions of the `PandocMonad` typeclass, the
7531 `PandocIO` and `PandocPure` monads, and associated functions.
7533 * Changed types of all writers and readers.
7535 + We now use `Text` instead of `String` in the interface (#3731).
7536 (We have not yet changed the internals of most readers to work
7537 with `Text`, but making this change in the API now opens up a
7538 path to doing that.)
7539 + The result is now of form `m a` with constraint `PandocMonad m`.
7540 Readers and writers can be combined to form monadic values which
7541 can be run using either `runIO` or `runPure`. If `runIO` is used,
7542 then both readers and writers will be able to do IO when needed
7543 (for include files, for example); if `runPure` is used,
7544 then the functions are pure and will not touch IO.
7545 + Where previously you used
7546 `writeRST def (readMarkdown def "[foo](url)")`, now you
7547 would use
7548 `runPure $ readMarkdown def (pack "[foo](url)") >>= writeRST def`.
7550 * New module `Text.Pandoc.Readers` (Albert Krewinkel). This
7551 contains reader helper functions formerly defined in the
7552 top-level `Text.Pandoc` module.
7554 + Changed `StringReader` -> `TextReader`.
7555 + `getReader` now returns a pair of a reader and
7556 `Extensions`, instead of building the extensions into the
7557 reader (#3659). The calling code must explicitly set
7558 `readerExtensions` using the `Extensions` returned. The
7559 point of the change is to make it possible for the calling
7560 code to determine what extensions are being used.
7562 * New module `Text.Pandoc.Writers` (Albert Krewinkel).
7563 This contains writer helper functions formerly defined in the
7564 top-level `Text.Pandoc` module.
7566 + Changed `StringWriter` -> `TextWriter`.
7567 + `getWriter` now returns a pair of a reader and
7568 `Extensions`, instead of building the extensions into the
7569 reader (#3659). The calling code must explicitly set
7570 `readerExtensions` using the `Extensions` returned. The
7571 point of the change is to make it possible for the calling
7572 code to determine what extensions are being used.
7574 * New module `Text.Pandoc.Lua`, exporting `runLuaFilter` (Albert Krewinkel,
7575 #3514).
7577 * New module `Text.Pandoc.App`. This abstracts out the functionality
7578 of the command line program (`convertWithOpts`), so it can be reproduced
7579 e.g. in a desktop or web application. Instead of exiting, we throw errors
7580 (#3548), which are caught (leading to exit) in pandoc.hs, but allow other
7581 users of `Text.Pandoc.App` to recover. `pandoc.hs` is now a 2-liner.
7582 The module also exports some utility functions for parsing options
7583 and running filters.
7585 * New module `Text.Pandoc.Logging` (exported module) (#3392).
7586 This now contains the `Verbosity` definition previously in
7587 `Text.Pandoc.Options`, as well as a new `LogMessage` datatype that will
7588 eventually be used instead of raw strings for warnings. This will enable
7589 us, among other things, to provide machine-readable warnings if desired.
7590 Include ToJSON instance and showLogMessage. This gives us the possibility
7591 of both machine-readable and human-readable output for log messages.
7593 * New module `Text.Pandoc.BCP47`, with `getLang`, `Lang(..)`, `parseBCP47`.
7595 * New module `Text.Pandoc.Translations`, exporting `Term`,
7596 `Translations`, `readTranslations`.
7598 * New module `Text.Pandoc.Readers.LaTeX.Types', exporting `Macro`, `Tok`,
7599 `TokType`, `Line`, `Column`.
7601 * `Text.Pandoc.Error`: added many new constructors for `PandocError`.
7603 * Expose some previously private modules (#3260). These are often
7604 helpful to people writing their own reader or writer modules:
7606 + `Text.Pandoc.Writers.Shared`
7607 + `Text.Pandoc.Parsing`
7608 + `Text.Pandoc.Asciify`
7609 + `Text.Pandoc.Emoji`
7610 + `Text.Pandoc.ImageSize`
7611 + `Text.Pandoc.Highlighting`
7613 * New module `Text.Pandoc.Extensions` (Albert Krewinkel):
7614 Extension parsing and processing functions were defined in the top-level
7615 `Text.Pandoc` module. These functions are moved to the Extensions
7616 submodule as to enable reuse in other submodules.
7618 * Add `Ext_raw_attribute` constructor for `Extension`.
7620 * Add `Ext_fenced_divs` constructor for `Extension'.
7622 * Add `Ext_four_space_rule` constructor in `Extension`.
7624 * Add `Ext_gfm_auto_identifiers` constructor for `Extension`.
7626 * Add `Monoid` instance for `Extensions`.
7628 * Add `Text.Pandoc.Writers.Ms`, exporting `writeMs`.
7630 * Add `Text.Pandoc.Writers.JATS`, exporting `writeJATS`.
7632 * Add `Text.Pandoc.Writers.Muse`, exporting `writeMuse`.
7634 * Add `Text.Pandoc.Readers.Muse`, exporting `readMuse`.
7636 * Add `Text.Pandoc.Readers.TikiWiki`, exporting `readTikiWiki`.
7638 * Add `Text.Pandoc.Readers.Vimwiki`, exporting `readVimwiki`.
7640 * Add `Text.Pandoc.Readers.Creole`, exporting `readCreole`.
7642 * Export `setVerbosity` from `Text.Pandoc`.
7644 * `Text.Pandoc.Pretty`: Add `Eq` instance for `Doc`.
7646 * `Text.Pandoc.XML`: `toEntities`: changed type to `Text -> Text`.
7648 * `Text.Pandoc.UTF8`:
7650 + Export `fromText`, `fromTextLazy`, `toText`, `toTextLazy`.
7651 Define `toString`, `toStringLazy` in terms of them.
7652 + Add new functions parameterized on `Newline`: `writeFileWith`,
7653 `putStrWith`, `putStrLnWith`, `hPutStrWith`, `hPutStrLnWith`.
7655 * `Text.Pandoc.MediaBag`: removed `extractMediaBag`.
7657 * `Text.Pandoc.Highlighting`:
7659 + `highlighting` now returns an Either rather than Maybe.
7660 This allows us to display error information returned by the skylighting
7661 library. Display a warning if the highlighting library throws an error.
7662 + Add parameter for `SyntaxMap` to `highlight`.
7664 * `Text.Pandoc.Writers.Math`:
7666 + Export `defaultMathJaxURL`, `defaultKaTeXURL`. This will ensure that
7667 we only need to update these in one place.
7669 * `Text.Pandoc.SelfContained`:
7671 + Removed `WriterOptions` parameter from `makeSelfContained`.
7672 + Put `makeSelfContained` in PandocMonad instead of IO. This removes
7673 the need to pass MediaBag around and improves exceptions. It also
7674 opens up the possibility of using makeSelfContained purely.
7675 + Export `makeDataURI`.
7677 * `Text.Pandoc.ImageSize`:
7679 + Export `lengthToDim`, new function `scaleDimension`.
7680 + Export `inEm` from ImageSize (#3450).
7681 + Change `showFl` and `show` instance for `Dimension` so
7682 extra decimal places are omitted.
7683 + Added `Em` as a constructor of `Dimension`.
7684 + Add `WriterOptions` parameter to `imageSize` signature (Mauro Bieg).
7686 * `Text.Pandoc.Templates`:
7688 + Change type of `renderTemplate'`. Now it runs in `PandocMonad`
7689 and raises a proper `PandocTemplateError` if there are problems, rather
7690 than failing with uncatchable `error`.
7691 + Change signature of `getDefaultTemplate`. Now it runs in any instance
7692 of `PandocMonad`, and returns a `String` rather than an `Either` value.
7693 And it no longer takes a `datadir` parameter, since this can be
7694 retrieved from `CommonState`.
7696 * `Text.Pandoc.Options`:
7698 + Added `writerEpubSubdirectory` to `WriterOptions` (#3720).
7699 The EPUB writer now takes its EPUB subdirectory from this option.
7700 + In `WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine`
7701 and `writerLaTeXArgs` to `writerPdfArgs` (Mauro Bieg, #3909).
7702 + Add `writerSyntaxMap` to `WriterOptions`.
7703 + Removed `writerEpubStylesheet` from `WriterOptions`.
7704 + Remove `writerUserDataDir` from `WriterOptions`. It is now carried
7705 in `CommonState` in `PandocMonad` instances. (And thus it can be used
7706 by readers too.)
7707 + Changed `writerEpubMetadata` to a `Maybe String`.
7708 + Removed `readerApplyMacros` from `ReaderOptions`. Now we just check
7709 the `latex_macros` reader extension.
7710 + FromJSON/ToJSON instances for `ReaderOptions`.
7711 + In `HTMLMathMethod`, the `KaTeX` contsructor now takes only
7712 one string (for the KaTeX base URL), rather than two.
7713 + Removed `writerSourceURL` from `WriterOptions`. We now use
7714 `stSourceURL` in `CommonState`, which is set by `setInputFiles`.
7716 * `Text.Pandoc.Shared`:
7718 + `tabFilter` now takes a `Text`, not `String`.
7719 + `openURL`: Changed type from an Either. Now it will just raise
7720 an exception to be trapped later.
7721 + Remove `normalizeSpaces` (#1530).
7722 + Remove `warn`. (Use `report` from `Text.Pandoc.Class` instead.)
7723 + Export a new function `crFilter`.
7724 + Add `eastAsianLineBreakFilter` (previously in Markdown reader).
7725 + Provide custom `isURI` that rejects unknown schemes.
7726 (Albert Krewinkel, #2713). We also export the set of known
7727 `schemes`. The new function replaces the function of the same name
7728 from `Network.URI`, as the latter did not check whether a scheme is
7729 well-known. All official IANA schemes (as of 2017-05-22) are
7730 included in the set of known schemes. The four non-official schemes
7731 `doi`, `isbn`, `javascript`, and `pmid` are kept.
7732 + Remove `err`.
7733 + Remove `readDataFile`, `readDefaultDataFile`, `getReferenceDocx`,
7734 `getReferenceODT`. These now live in `Text.Pandoc.Class`,
7735 where they are defined in terms of `PandocMonad`
7736 primitives and have different signatures.
7737 + Remove `openURL`. Use `openURL` from `Text.Pandoc.Class` instead.
7738 + Add `underlineSpan`.
7740 * `Text.Pandoc.Readers.HTML`: export new `NamedTag` class.
7742 * `Text.Pandoc.Readers.Markdown`: remove `readDocxWithWarnings`.
7743 With the new API one can simply use `getLog` after running
7744 the reader.
7746 * `Text.Pandoc.Readers.LaTeX`: Changed types for `rawLaTeXInline`
7747 and `rawLaTeXBlock`. (Both now return a `String`, and they are
7748 polymorphic in state.)
7751### Bug fixes and under-the-hood improvements
7753 * TEI writer: Added identifiers on `<div>` elements.
7755 * DokuWiki reader: Better handling for code block in list item (#3824).
7757 * Custom writer: Remove old preprocesesor conditionals (Albert Krewinkel).
7759 * ZimWiki writer: Removed internal formatting from note and table cells,
7760 because ZimWiki does not support it (Alex Ivkin, #3446).
7762 * MediaWiki writer:
7764 + Updated list of syntax highlighting languages (#3461).
7765 Now `r` gets you `<source>` rather than `<code>` (among others).
7766 + Add display attribute on `<math>` tags (#3452). This allows display
7767 math to be rendered properly.
7768 + Remove newline before `</ref>` (#2652).
7769 + Don't softbreak lines inside list items (#3531).
7771 * Org writer:
7773 + Reduce to two spaces after bullets (#3417, Albert Krewinkel).
7774 + Add unit tests (Alexander Krotov).
7775 + Stop using raw HTML to wrap divs (Albert Krewinkel, #3771).
7776 + Do not strip `#` from Org anchor links (Alexander Krotov).
7778 * CommonMark writer:
7780 + Avoid excess blank lines at end of output.
7781 + Prefer pipe tables to HTML tables even if it means losing relative
7782 column width information (#3734).
7783 + Support table, strikethrough extensions, when enabled (as with gfm).
7784 Note that we bypass the commonmark writer from cmark and construct our
7785 own pipe tables, with better results.
7786 + Properly support `--wrap=none`.
7787 + Use smallcaps class for `SmallCaps` (#1592).
7788 + Omit "fig:" prefix in image titles. This is used internally to
7789 indicate internal figures.
7791 * RST writer:
7793 + Properly handle table captions.
7794 + Don't wrap lines in in definition list terms. Wrapping is not allowed.
7795 + Implemented `+/-smart` and improved escaping with `+smart`.
7796 + Add empty comments when needed to avoid including a blockquote
7797 in the indented content of a preceding block (#3675).
7798 + Improve grid table output, fix bug with empty rows (#3516).
7799 Uses the new `gridTable` in Writers.Shared, which is here
7800 improved to better handle 0-width cells.
7801 + Remove space at beginning/end of RST code span (#3496). Otherwise
7802 we get invalid RST. There seems to be no way to escape the space.
7803 + Add header anchors when header has non-standard id (#3937).
7804 + Correctly handle inline code containing backticks, using a `:literal:`
7805 role (#3974).
7806 + Don't backslash-escape word-internal punctuation (#3978).
7808 * Markdown writer:
7810 + Don't include variables in metadata blocks. Previously variables set
7811 on the command line were included in e.g. YAML metadata, contrary to
7812 documentation and intentions.
7813 + Improved escaping with `+smart`.
7814 + Fixed grid tables embedded in grid tables (#2834).
7815 + Use span with class 'smallcaps' for SmallCaps, instead of a style
7816 attribute as before (#1592).
7817 + Escape initial `%` in a paragraph if the `pandoc_title_blocks`
7818 extension is enabled (#3454). Otherwise in a document starting with
7819 a literal `%` the first line is wrongly interpreted as a title.
7820 + Fixed false ordered lists in YAML metadata (#3492, #1685). Now we
7821 properly escape things that would otherwise start ordered lists,
7822 such as
7824 ---
7825 title: 1. inline
7826 ...
7827 + Better handling of tables with empty columns (#3337). We now
7828 calculate the number of columns based on the longest row (or the
7829 length of aligns or widths).
7830 + Escape unordered list markers at beginning of paragraph (#3497), to
7831 avoid false interpretation as a list.
7832 + Escape `|` appropriately.
7833 + Ensure space before list at top level (#3487).
7834 + Avoid spurious blanklines at end of document after tables and list,
7835 for example.
7836 + Fixed bugs in simple/multiline list output (#3384).
7837 Previously we got overlong lists with `--wrap=none`. This is fixed.
7838 Previously a multiline list could become a simple list (and would
7839 always become one with `--wrap=none`).
7840 + Don't emit a simple table if `simple_tables` disabled (#3529).
7841 + Case-insensitive reference links (David A Roberts, #3616).
7842 Ensure that we do not generate reference links whose labels differ only
7843 by case. Also allow implicit reference links when the link
7844 text and label are identical up to case.
7845 + Put space before reference link definitions (Mauro Bieg, #3630).
7846 + Better escaping for links (David A. Roberts, #3619). Previously the
7847 Markdown writer would sometimes create links where there were none
7848 in the source. This is now avoided by selectively escaping bracket
7849 characters when they occur in a place where a link might be created.
7850 + Added missing `\n` (David A. Roberts, #3647).
7851 + Fixed duplicated reference links with `--reference-links`
7852 and `--reference-location=section` (#3674). Also ensure that there
7853 are no empty link references `[]`.
7854 + Avoid inline surround-marking with empty content (#3715).
7855 E.g. we don't want `<strong></strong>` to become `****`.
7856 Similarly for emphasis, super/subscript, strikeout.
7857 + Don't allow soft break in header (#3736).
7858 + Make sure `plain`, `markdown_github`, etc. work for raw.
7859 Previously only `markdown` worked. Note: currently a raw block labeled
7860 `markdown_github` will be printed for any `markdown` format.
7861 + Ensure that `+` and `-` are escaped properly so they don't cause
7862 spurious lists (#3773). Previously they were only
7863 if succeeded by a space, not if they were at end of line.
7864 + Use pipe tables if `raw_html` disabled and `pipe_tables` enabled,
7865 even if the table has relative width information (#3734).
7866 + Markdown writer: don't crash on `Str ""`.
7867 + Make `Span` with null attribute transparent. That is, we don't use
7868 brackets or `<span>` tags to mark spans when there are no attributes;
7869 we simply output the contents.
7870 + Escape pipe characters when `pipe_tables` enabled (#3887).
7871 + Better escaping of `<` and `>`. If `all_symbols_escapable` is set,
7872 we backslash escape these. Otherwise we use entities as before.
7873 + When writing plain, don't use `&nbsp;` to separate list and indented
7874 code. There's no need for it in this context, since this isn't to be
7875 interpreted using Markdown rules.
7876 + Preserve classes in JS obfuscated links (Timm Albers, #2989).
7877 HTML links containing classes originally now preserve them when using
7878 javascript email obfuscation.
7879 + Render `SmallCaps` as a native span when `native_spans` are enabled.
7880 + Always write attributes with `bracketed_spans` (d-dorazio).
7882 * Man writer:
7884 + Fix handling of nested font commands (#3568). Previously pandoc emitted
7885 incorrect markup for bold + italic, for example, or bold + code.
7886 + Avoid error for definition lists with no definitions (#3832).
7888 * DocBook writer:
7890 + Fix internal links with `writerIdentifierPrefix opt`
7891 (#3397, Mauro Bieg).
7893 * Docx writer:
7895 + Don't include bookmarks on headers unless non-null id (#3476).
7896 + Support 9 levels of headers (#1642).
7897 + Allow 9 list levels (#3519).
7898 + Don't take `distArchive` from datadir (#3322). The docx writer takes
7899 components from the distribution's version of `reference.docx` when it
7900 can't find them in a user's custom `reference.docx`. Previously, we
7901 allowed a `reference.docx` in the data directory (e.g. `~/.pandoc`)
7902 to be used as the distribution's reference.docx. This led to a
7903 bizarre situation where pandoc would produce a good docx using
7904 `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to
7905 `~/.pandoc/reference.docx`, it would then produce a corrupted docx.
7906 + Fixed handling of soft hyphen (0173) (#3691).
7907 + Better handling of keywords (#3719).
7908 + Cleaner code for handling dir and style attributes for `Div`.
7909 + Use `Set` for dynamic styles to avoid duplicates.
7910 + Removed redundant element from data/docx/word/numbering.xml.
7911 The elements we need are generated when the document is
7912 compiled; this didn't do anything.
7913 + Activate `evenAndOddHeaders` from reference docx (#3901,
7914 Augustín Martín Barbero).
7916 * ODT/OpenDocument writer:
7918 + Calculate aspect ratio for percentage-sized images (Mauro Bieg, #3239).
7919 + Use more widely available bullet characters (#1400). The old
7920 characters weren't available in some font sets. These seem to work
7921 well on Windows and Linux versions of LibreOffice.
7922 + Wider labels for lists (#2421). This avoids overly narrow labels for
7923 ordered lists with `()` delimiters. However, arguably it creates
7924 overly wide labels for bullets. Also, lists now start flush with
7925 the margin, rather than indented.
7926 + Fixed dropped elements in some ordered lists (#2434).
7928 * FB2 writer:
7930 + Don't render `RawBlock` as code.
7931 + Don't fail with an error on interior headers (e.g. in list) (#3750).
7932 Instead, omit them with an INFO message.
7933 + Add support for "lang" metadata (Alexander Krotov, #3625).
7934 + Format `LineBlock` as poem (Alexander Krotov). Previously writer
7935 produced one paragraph with `<empty-line/>` elements, which are not
7936 allowed inside `<p>` according to FB2 schema.
7937 + Replace `concatMap` with `cMap` (Alexander Krotov).
7938 + Write FB2 lists without nesting blocks inside `<p>` (Alexander
7939 Krotov, #4004)
7941 * HTML writer:
7943 + Make sure `html4`, `html5` formats work for raw blocks/inlines.
7944 + Render raw inline environments when `--mathjax` used (#3816).
7945 We previously did this only with raw blocks, on the assumption
7946 that math environments would always be raw blocks. This has changed
7947 since we now parse them as inline environments.
7948 + Ensure we don't get two style attributes for width and height.
7949 + Report when not rendering raw inline/block.
7950 + Issue warning if no title specified and template used (#3473).
7951 + Info message if `lang` is unspecified (#3486).
7952 + Removed unused parameter in `dimensionsToAttributeList`.
7953 + Avoid two class attributes when adding `uri` class (#3716).
7954 + Fix internal links with `writerIdentifierPrefix opt` (#3397, Mauro
7955 Bieg).
7956 + Use revealjs's math plugin for mathjax (#3743). This is a thin
7957 wrapper around mathjax that makes math look better on revealjs.
7958 + Slidy: use h1 for all slides, even if they were originally
7959 level 2 headers (#3566). Otherwise the built-in table of contents
7960 in Slidy breaks.
7962 * LaTeX writer:
7964 + Don't render LaTeX images with data: URIs (#3636). Note that
7965 `--extract-media` can be used when the input contains data: URIs.
7966 + Make highlighted code blocks work in footnotes (Timm Albers).
7967 + Don't use figure inside table cell (#3836).
7968 + Use proper code for list enumerators (#3891). This should fix problems
7969 with lists that don't use arabic numerals.
7970 + Always add hypertarget when there's a non-empty identifier (#2719).
7971 Previously the hypertargets were only added when there was actually
7972 a link to that identifier.
7973 + Use `%` after hypertarget before code block.
7974 + Add `\leavevmode` before hypertarget at start of paragraph (#2704,
7975 fixes formatting problems in beamer citations).
7976 + Don't use `lstinline` in `\item[..]` (#645). If you do, the contents
7977 of item disappear or are misplaced. Use `\texttt` instead.
7978 + Fix problem with escaping in `lstinline` (#1629). Previously the
7979 LaTeX writer created invalid LaTeX when `--listings` was specified and
7980 a code span occurred inside emphasis or another construction.
7981 + Fix error with line breaks after empty content (#2874). LaTeX
7982 requires something before a line break, so we insert a `~` if no
7983 printable content has yet been emitted.
7984 + Use BCP47 parser.
7985 + Fixed detection of otherlangs (#3770). We weren't recursing into
7986 inline contexts.
7987 + Handle language in inline code with `--listings` (#3422).
7988 + Write euro symbol directly in LaTeX (Andrew Dunning, #3801).
7989 The textcomp package allows pdfLaTeX to parse `€` directly, making the
7990 `\euro` command unneeded.
7991 + Fixed footnotes in table captions (#2378). Note that if the table has
7992 a first page header and a continuation page header, the notes will
7993 appear only on the first occurrence of the header.
7994 + In `writeBeamer` output, allow hyperlinks to frames (#3220).
7995 Previously you could link to a header above or below slide level but
7996 not *to* slide level. This commit changes that. Hypertargets are
7997 inserted inside frame titles; technically the reference is to just
7998 after the title, but in normal use (where slides are viewed full
7999 screen in a slide show), this does not matter.
8000 + Remove `\strut` at beginning of table cells (#3436). This fixes a
8001 problem with alignment of lists in table cells. The `\strut` at the
8002 end seems to be enough to avoid the too-close spacing that motivated
8003 addition of the strut in #1573.
8004 + Add partial siunitx Support (Marc Schreiber, #3588).
8006 * ConTeXt writer:
8008 + Refactored to use BCP47 module.
8009 + Remove unnecessary `$` (Alexander Krotov, #3482).
8010 + Use header identifiers for chapters (#3968).
8012 * EPUB writer:
8014 + `title_page.xhtml` is now put in `text/`.
8015 + Don't strip formatting in TOC (#1611).
8017 * Textile reader:
8019 + Fix bug for certain links in table cells (#3667).
8020 + Allow 'pre' code in list item (#3916).
8022 * HTML reader:
8024 + Added warnings for ignored material (#3392).
8025 + Better sanity checks to avoid parsing unintended things as
8026 raw HTML in the Markdown reader (#3257).
8027 + Revise treatment of `li` with `id` attribute (#3596). Previously we
8028 always added an empty div before the list item, but this created
8029 problems with spacing in tight lists. Now we do this: If the list
8030 item contents begin with a `Plain` block, we modify the `Plain`
8031 block by adding a `Span` around its contents. Otherwise, we add a
8032 `Div` around the contents of the list item (instead of adding an
8033 empty `Div` to the beginning, as before).
8034 + Add `details` tag to list of block tags (#3694).
8035 + Removed `button` from block tag list (#3717). It is already in the
8036 `eitherBlockOrInlineTag` list, and should be both places.
8037 + Use `Set`s instead of lists for block tag lookup.
8038 + Rewrote to use `Text` throughout. Effect on memory usage is modest
8039 (< 10%).
8040 + Use the lang value of `<html>` to set the lang meta value (bucklereed,
8041 #3765).
8042 + Ensure that paragraphs are closed properly when the parent block
8043 element closes, even without `</p>` (#3794).
8044 + Parse `<figure>` and `<figcaption>` (Mauro Bieg, #3813).
8045 + Parse `<main>` like `<div role=main>` (bucklereed, #3791).
8046 `<main>` closes `<p>` and behaves like a block element generally
8047 + Support column alignments (#1881). These can be set either
8048 with a `width` attribute or with `text-width` in a `style` attribute.
8049 + Modified state type to be an instance of `HasLogMessages`, so
8050 `registerHeader` can issue warnings.
8051 + `</td>` or `</th>` should close any open block tag (#3991).
8052 + `<td>` should close an open `<th>` or `<td>`.
8053 + `htmlTag` improvements (#3989). We previously failed on cases
8054 where an attribute contained a `>` character. This patch fixes the
8055 bug, which especially affects raw HTML in Markdown.
8057 * Txt2Tags reader:
8059 + Newline is not indentation (Alexander Krotov).
8061 * MediaWiki reader:
8063 + Allow extra hyphens after `|-` in tables (#2649).
8064 + Allow blank line after table start (#2649).
8065 + Fixed more table issues (#2649).
8066 + Ensure that list starts begin at left margin (#2606). Including when
8067 they're in tables or other list items.
8068 + Make smart double quotes depend on `smart` extension (#3585).
8069 + Don't do curly quotes inside `<tt>` contexts (#3585). Even if `+smart`.
8070 + Modified state type to be an instance of `HasLogMessages`, so
8071 `registerHeader` can issue warnings.
8073 * TWiki reader (Alexander Krotov):
8075 + Remove unnecessary `$` (#3597).
8076 + Simplify `linkText` (#3605).
8078 * EPUB reader:
8080 + Minor refactoring, avoiding explicit MediaBag handling.
8081 This all works behind the scenes in CommonState plumbing.
8083 * Docx reader:
8085 + Don't drop smartTag contents (#2242).
8086 + Handle local namespace declarations (#3365). Previously we didn't
8087 recognize math, for example, when the xmlns declaration occurred on
8088 the element and not the root.
8089 + More efficient trimSps (#1530). Replacing `trimLineBreaks`. This
8090 does the work of `normalizeSpaces` as well, so we avoid the need for
8091 that function here.
8092 + Avoid 0-level headers (Jesse Rosenthal, #3830). We used to parse
8093 paragraphs styled with "HeadingN" as "nth-level header." But if a
8094 document has a custom style named "Heading0", this will produce a
8095 0-level header, which shouldn't exist. We only parse this style
8096 if N>0. Otherwise we treat it as a normal style name, and
8097 follow its dependencies, if any.
8098 + Add tests for avoiding zero-level header (Jesse Rosenthal).
8100 * ODT reader:
8102 + Replaced `collectRights` with Rights from `Data.Either`.
8103 + Remove dead code (Albert Krewinkel).
8105 * Org reader (Albert Krewinkel, unless noted).
8107 + Don't allow tables inside list items (John MacFarlane, #3499).
8108 + Disallow tables on list marker lines (#3499).
8109 + Convert markup at beginning of footnotes (John MacFarlane, #3576).
8110 + Allow emphasized text to be followed by `[` (#3577).
8111 + Handle line numbering switch for src blocks.
8112 The line-numbering switch that can be given to source blocks (`-n` with
8113 an start number as an optional parameter) is parsed and translated to a
8114 class/key-value combination used by highlighting and other readers and
8115 writers.
8116 + Stop adding rundoc prefix to src params. Source block parameter names
8117 are no longer prefixed with `rundoc`. This was intended to simplify
8118 working with the rundoc project, a babel runner. However, the rundoc
8119 project is unmaintained, and adding those markers is not the reader's
8120 job anyway. The original language that is specified for a source
8121 element is now retained as the `data-org-language` attribute and only
8122 added if it differs from the translated language.
8123 + Allow multi-word arguments to src block params (#3477). The reader now
8124 correctly parses src block parameter list even if parameter arguments
8125 contain multiple words.
8126 + Avoid creating `nullMeta` by applying `setMeta` directly
8127 (Alexander Krotov).
8128 + Replace `sequence . map` with `mapM`.
8129 + Fix smart parsing behavior. Parsing of smart quotes and special
8130 characters can either be enabled via the `smart` language extension or
8131 the `'` and `-` export options. Smart parsing is active if either the
8132 extension or export option is enabled. Only smart parsing of special
8133 characters (like ellipses and en and em dashes) is enabled by default,
8134 while smart quotes are disabled. Previously, all smart parsing was
8135 disabled unless the language extension was enabled.
8136 + Subject full doc tree to headline transformations (Albert Krewinkel,
8137 #3695). Emacs parses org documents into a tree structure, which is
8138 then post-processed during exporting. The reader is changed to do the
8139 same, turning the document into a single tree of headlines starting
8140 at level 0.
8141 + Fix cite parsing behaviour (Herwig Stuetz). Until now, `org-ref`
8142 cite keys included special characters also at the end. This caused
8143 problems when citations occur right before colons or at the end of
8144 a sentence. With this change, all non alphanumeric characters at
8145 the end of a cite key are ignored. This also adds `,` to the list
8146 of special characters that are legal in cite keys to better mirror
8147 the behaviour of org-export.
8148 + Fix module names in haddock comments. Copy-pasting had lead to
8149 haddock module descriptions containing the wrong module names.
8150 + Recognize babel result blocks with attributes (#3706). Babel
8151 result blocks can have block attributes like captions and names.
8152 Result blocks with attributes were not recognized and were parsed
8153 as normal blocks without attributes.
8154 + Include tags in headlines. The Emacs default is to include tags in the
8155 headline when exporting. Instead of just empty spans, which contain the
8156 tag name as attribute, tags are rendered as small caps and wrapped in
8157 those spans. Non-breaking spaces serve as separators for multiple tags.
8158 + Respect export option for tags (#3713). Tags are appended to
8159 headlines by default, but will be omitted when the `tags` export option
8160 is set to nil.
8161 + Use `tag-name` attribute instead of `data-tag-name`.
8162 + Use `org-language` attribute rather than `data-org-language`.
8163 + Modified state type to be an instance of `HasLogMessages`, so
8164 `registerHeader` can issue warnings.
8165 + End footnotes after two blank lines. Footnotes can not only be
8166 terminated by the start of a new footnote or a header, but also by two
8167 consecutive blank lines.
8168 + Update emphasis border chars (#3933). The org reader was updated to
8169 match current org-mode behavior: the set of characters which are
8170 acceptable to occur as the first or last character in an org emphasis
8171 have been changed and now allows all non-whitespace chars at the
8172 inner border of emphasized text (see `org-emphasis-regexp-components`).
8174 * RST reader:
8176 + Fixed small bug in list parsing (#3432). Previously the parser didn't
8177 handle properly this case:
8179 * - a
8180 - b
8181 * - c
8182 - d
8183 + Handle multiline cells in simple tables (#1166).
8184 + Parse list table directive (Keiichiro Shikano, #3432).
8185 + Make use of `anyLineNewline` (Alexander Krotov, #3686).
8186 + Use `anyLineNewline` in `rawListItem` (Alexander Krotov, #3702).
8187 + Reorganize block parsers for ~20% faster parsing.
8188 + Fixed `..include::` directive (#3880).
8189 + Handle blank lines correctly in line blocks (Alexander Krotov, #3881).
8190 Previously pandoc would sometimes combine two line blocks separated
8191 by blanks, and ignore trailing blank lines within the line block.
8192 + Fix indirect hyperlink targets (#512).
8194 * Markdown reader:
8196 + Allow attributes in reference links to start on next line (#3674).
8197 + Parse YAML metadata in a context that sees footnotes defined in
8198 the body of the document (#1279).
8199 + When splitting pipe table cells, skip tex math (#3481).
8200 You might have a `|` character inside math. (Or for that matter
8201 something that the parser might mistake for raw HTML.)
8202 + Treat span with class `smallcaps` as SmallCaps.
8203 This allows users to specify small caps in Markdown this way:
8204 `[my text]{.smallcaps}` (#1592).
8205 + Fixed internal header links (#2397).
8206 This patch also adds `shortcut_reference_links` to the list
8207 of mmd extensions.
8208 + Treat certain environments as inline
8209 when they occur without space surrounding them (#3309, #2171).
8210 E.g. equation, math. This avoids incorrect vertical space
8211 around equations.
8212 + Optimized `nonindentSpaces`. Makes the benchmark go from 40 to 36 ms.
8213 + Allow latex macro definitions indented 1-3 spaces.
8214 Previously they only worked if nonindented.
8215 + Improved parsing of indented raw HTML blocks (#1841).
8216 Previously we inadvertently interpreted indented HTML as
8217 code blocks. This was a regression. We now seek to determine the
8218 indentation level of the contents of an HTML block, and (optionally)
8219 skip that much indentation. As a side effect, indentation may be
8220 stripped off of raw HTML blocks, if `markdown_in_html_blocks` is
8221 used. This is better than having things interpreted as indented
8222 code blocks.
8223 + Fixed smart quotes after emphasis (#2228). E.g. in `*foo*'s 'foo'`.
8224 + Warn for notes defined but not used (#1718).
8225 + Use `anyLineNewline` (Alexander Krotov).
8226 + Interpret YAML metadata as Inlines when possible (#3755). If
8227 the metadata field is all on one line, we try to interpret it as
8228 Inlines, and only try parsing as Blocks if that fails. If it
8229 extends over one line (including possibly the `|` or `>` character
8230 signaling an indented block), then we parse as Blocks. This was
8231 motivated by some German users finding that `date: '22. Juin 2017'`
8232 got parsed as an ordered list.
8233 + Fixed spurious parsing as citation as reference def (#3840).
8234 We now disallow reference keys starting with `@` if the
8235 `citations` extension is enabled.
8236 + Parse `-@roe` as suppress-author citation (pandoc-citeproc#237).
8237 Previously only `[-@roe]` (with brackets) was recognized as
8238 suppress-author, and `-@roe` was treated the same as `@roe`.
8239 + Fixed parsing of fenced code after list when there is no intervening
8240 blank line (#3733).
8241 + Allow raw latex commands starting with `\start` (#3558). Previously
8242 these weren't allowed because they were interpreted as starting
8243 ConTeXt environments, even without a corresponding `\stop`...
8244 + Added `inlines`, `inlines1`.
8245 + Require nonempty alt text for `implicit_figures` (#2844).
8246 A figure with an empty caption doesn't make sense.
8247 + Removed texmath macro material; now all this is handled
8248 in the LaTeX reader functions.
8249 + Fixed bug with indented code following raw LaTeX (#3947).
8251 * LaTeX reader:
8253 + Rewrote LaTeX reader with proper tokenization (#1390,
8254 #2118, #3236, #3779, #934, #982). This rewrite is primarily
8255 motivated by the need to get macros working properly. A side benefit
8256 is that the reader is significantly faster. We now tokenize the
8257 input text, then parse the token stream. Macros modify the token
8258 stream, so they should now be effective in any context, including
8259 math. Thus, we no longer need the clunky macro processing
8260 capacities of texmath.
8261 + Parse `\,` to `\8198` (six-per-em space) (Henri Werth).
8262 + Allow `\newcommand\foo{blah}` without braces.
8263 + Support `\lstinputlisting` (#2116).
8264 + Issue warnings when skipping unknown latex commands (#3392).
8265 + Include contents of `\parbox`.
8266 + Allow `\hspace` and `\vspace` to count as raw block or inline.
8267 Previously we would refuse to parse anything as raw inline if
8268 it was in the `blockCommands` list. Now we allow exceptions
8269 if they're listed under ignoreInlines in inlineCommands.
8270 This should make it easier e.g. to include an `\hspace`
8271 between two side-by-side raw LaTeX tables.
8272 + Don't drop contents of `\hypertarget`.
8273 + Handle spaces before `\cite` arguments.
8274 + Allow newpage, clearpage, pagebreak in inline contexts as well as
8275 block contexts (#3494).
8276 + Treat `{{xxx}}` the same as `{xxx}` (#2115).
8277 + Use `pMacroDefinition` in macro (for more direct parsing).
8278 Note that this means that `macro` will now parse one
8279 macro at a time, rather than parsing a whole group together.
8280 + Fixed failures on `\ref{}`, `\label{}` with `+raw_tex`. Now these
8281 commands are parsed as raw if `+raw_tex`; otherwise, their argument
8282 is parsed as a bracketed string.
8283 + Don't crash on empty `enumerate` environment (#3707).
8284 + Handle escaped `&` inside table cell (#3708).
8285 + Handle block structure inside table cells (#3709). `minipage` is no
8286 longer required.
8287 + Handle some width specifiers on table columns (#3709). Currently
8288 we only handle the form `0.9\linewidth`. Anything else would have
8289 to be converted to a percentage, using some kind arbitrary assumptions
8290 about line widths.
8291 + Make sure `\write18` is parsed as raw LaTeX. The change is in the
8292 LaTeX reader's treatment of raw commands, but it also affects the
8293 Markdown reader.
8294 + Fixed regression with starred environment names (#3803).
8295 + Handle optional args in raw `\titleformat` (#3804).
8296 + Improved heuristic for raw block/inline. An unknown command at the
8297 beginning of the line that could be either block or inline is
8298 treated as block if we have a sequence of block commands followed by
8299 a newline or a `\startXXX` command (which might start a raw ConTeXt
8300 environment).
8301 + Don't remove macro definitions from the output, even if
8302 `Ext_latex_macros` is set, so that macros will be applied.
8303 Since they're only applied to math in Markdown, removing the macros
8304 can have bad effects. Even for math macros, keeping them should be
8305 harmless.
8306 + Removed `macro`. It is no longer necessary, since the
8307 `rawLaTeXBlock` parser will parse macro definitions. This also avoids
8308 the need for a separate `latexMacro` parser in the Markdown reader.
8309 + Use `label` instead of `data-label` for label in caption (#3639).
8310 + Fixed space after `\figurename` etc.
8311 + Resolve references to section numbers.
8312 + Fix `\let\a=0` case, with single character token.
8313 + Allow `@` as a letter in control sequences. `@` is commonly used
8314 in macros using `\makeatletter`. Ideally we'd make the tokenizer
8315 sensitive to `\makeatletter` and `\makeatother`, but until then this
8316 seems a good change.
8317 + Track header numbers and correlate with labels.
8318 + Allow `]` inside group in option brackets (#3857).
8319 + lstinline with braces can be used (verb cannot be used with braces)
8320 (Marc Schreiber, #3535).
8321 + Fix keyval function: pandoc did not parse options in braces correctly
8322 (Marc Schreiber, #3642).
8323 + When parsing raw LaTeX commands, include trailing space (#1773).
8324 Otherwise things like `\noindent foo` break and turn into
8325 `\noindentfoo`. Affects `-f latex+raw_tex` and `-f markdown` (and other
8326 formats that allow `raw_tex`).
8327 + Don't treat "..." as Quoted (#3958). This caused quotes to be omitted in
8328 `\texttt` contexts.
8329 + Add tests for existing `\includegraphics` behaviour (Ben Firshman).
8330 + Allow space before `=` in bracketd options (Ben Firshman).
8331 + Be more forgiving in parsing command options. This was needed, for
8332 example, to make some minted options work.
8333 + Strip off quotes in `\include` filenames.
8335 * Added `Text.Pandoc.CSV`, simple (unexported) CSV parser.
8337 * `Text.Pandoc.PDF`:
8339 + Got `--resource-path` working with PDF output (#852).
8340 + Fetch images when generating PDF via context (#3380).
8341 To do this, we create the temp directory as a subdirectory
8342 of the working directory. Since context mk IV by default looks
8343 for images in the parent directory, this works.
8344 + Use `report` instead of `warn`, make it sensitive to verbosity settings.
8345 + Use `fillMediaBag` and `extractMedia` to extract media to temp dir.
8346 This reduces code duplication.
8347 + `html2pdf`: use stdin instead of intermediate HTML file
8348 + Removed useless `TEXINPUTS` stuff for `context2pdf`. mkiv context
8349 doesn't use `TEXINPUTS`.
8351 * `Text.Pandoc.Pretty`:
8353 + Simplified definition of `realLength`.
8354 + Don't error for blocks of size < 1. Instead, resize to 1 (see #1785).
8356 * `Text.Pandoc.MIME`:
8358 + Use `application/javascript` (not `application/x-javascript`).
8359 + Added `emf` to mimeTypes with type `application/x-msmetafile` (#1713).
8361 * `Text.Pandoc.ImageSize`:
8363 + Improve SVG image size code (Marc Schreiber, #3580).
8364 + Make `imageSize` recognize basic SVG dimensions (Mauro Bieg, #3462).
8366 * Use `Control.Monad.State.Strict` throughout. This gives 20-30% speedup
8367 and reduction of memory usage in most of the writers.
8369 * Use `foldrWithKey` instead of deprecated `foldWithKey`.
8371 * `Text.Pandoc.SelfContained`:
8373 + Fixed problem with embedded fonts (#3629).
8374 + Refactored getData from `getDataURI` in `SelfContained`.
8375 + Don't use data URIs for script or style (#3423). Instead, just use
8376 script or style tags with the content inside. The old method with
8377 data URIs prevents certain optimizations outside pandoc. Exception:
8378 data URIs are still used when a script contains `</script>` or a
8379 style contains `</`.
8380 + SelfContained: Handle URL inside material retrieved from a URL
8381 (#3629). This can happen e.g. with an @import of a google web font.
8382 (What is imported is some CSS which contains an url reference
8383 to the font itself.) Also, allow unescaped pipe (|) in URL.
8384 + Load resources from `data-src` (needed for lazy loading in
8385 reveal.js slide shows).
8386 + Handle `data-background-image` attribute on section (#3979).
8388 * `Text.Pandoc.Parsing`:
8390 + Added `indentWith` (Alexander Krotov, #3687).
8391 + Added `stateCitations` to `ParserState`.
8392 + Removed `stateChapters` from `ParserState`.
8393 + In `ParserState`, make `stateNotes'` a Map, add `stateNoteRefs`.
8394 + Added `gobbleSpaces` and `gobbleAtMostSpaces`.
8395 + Adjusted type of `insertIncludedFile` so it can be used with token
8396 parser.
8397 + Replace old texmath macro stuff from Parsing. Use Macro from
8398 Text.Pandoc.Readers.LaTeX.Types instead.
8399 + Export `insertIncludedFile`.
8400 + Added `HasLogMessages`, `logMessage`, `reportLogMessages` (#3447).
8401 + Replace partial with total function (Albert Krewinkel).
8402 + Introduce `HasIncludeFiles` type class (Albert Krewinkel). The
8403 `insertIncludeFile` function is generalized to work with all parser
8404 states which are instances of that class.
8405 + Add `insertIncludedFilesF` which returns F blocks (Albert Krewinkel).
8406 The `insertIncludeFiles` function was generalized and renamed
8407 to `insertIncludedFiles'`; the specialized versions are based on that.
8408 + `many1Till`: Check for the end condition before parsing (Herwig
8409 Stuetz). By not checking for the end condition before the first
8410 parse, the parser was applied too often, consuming too much of the
8411 input. This only affects `many1Till p end` where `p` matches on a
8412 prefix of `end`.
8413 + Provide `parseFromString` (#3690). This is a version of
8414 `parseFromString` specialied to ParserState, which resets
8415 `stateLastStrPos` at the end. This is almost always what we want.
8416 This fixes a bug where `_hi_` wasn't treated as emphasis in the
8417 following, because pandoc got confused about the position of the
8418 last word: `- [o] _hi_`.
8419 + Added `takeP`, `takeWhileP` for efficient parsing of `[Char]`.
8420 + Fix `blanklines` documentation (Alexander Krotov, #3843).
8421 + Give less misleading line information with `parseWithString`.
8422 Previously positions would be reported past the end of the chunk.
8423 We now reset the source position within the chunk and report
8424 positions "in chunk."
8425 + Add `anyLineNewline` (Alexander Krotov).
8426 + Provide shared F monad functions for Markdown and Org readers
8427 (Albert Krewinkel). The `F` monads used for delayed evaluation
8428 of certain values in the Markdown and Org readers are based on a
8429 shared data type capturing the common pattern of both `F` types.
8430 + Add `returnF` (Alexander Krotov).
8431 + Avoid parsing `Notes:**` as a bare URI (#3570). This avoids parsing
8432 bare URIs that start with a scheme + colon + `*`, `_`, or `]`.
8433 + Added `readerAbbreviations` to `ParserState`. Markdown reader
8434 now consults this to determine what is an abbreviation.
8435 + Combine grid table parsers (Albert Krewinkel, #3638). The grid table
8436 parsers for markdown and rst was combined into one single
8437 parser `gridTable`, slightly changing parsing behavior of both
8438 parsers: (1) The markdown parser now compactifies block content
8439 cell-wise: pure text blocks in cells are now treated as paragraphs
8440 only if the cell contains multiple paragraphs, and as plain blocks
8441 otherwise. Before, this was true only for single-column tables. (2)
8442 The rst parser now accepts newlines and multiple blocks in header
8443 cells.
8444 + Generalize tableWith, gridTableWith (Albert Krewinkel).
8445 The parsing functions `tableWith` and `gridTableWith` are generalized
8446 to work with more parsers. The parser state only has to be an
8447 instance of the `HasOptions` class instead of requiring a concrete
8448 type. Block parsers are required to return blocks wrapped into a
8449 monad, as this makes it possible to use parsers returning results
8450 wrapped in `Future`s.
8452 * `Text.Pandoc.Shared`:
8454 + Simplify `toRomanNumeral` using guards (Alexander Krotov, #3445)
8455 + `stringify`: handle Quoted better (#3958). Previously we were losing
8456 the quotation marks in Quoted elements.
8458 * `Text.Pandoc.Writers.Shared`:
8460 + Export `metaToJSON'`, `addVariablesToJSON` (#3439).
8461 This allows us to add the variables AFTER using the metadata
8462 to generate a YAML header (in the Markdown writer).
8463 + Added `unsmartify` (previously in RST writer).
8464 Undo literal double curly quotes. Previously we left these.
8465 + Generalize type of `metaToJSON` so it can take a Text. Previously a
8466 String was needed as argument; now any ToJSON instance will do.
8467 + Added `gridTable` (previously in Markdown writer).
8468 + `gridTable`: Refactored to use widths in chars.
8469 + `gridTable`: remove unnecessary extra space in cells.
8470 + Fixed `addVariablesToJSON`. It was previously not allowing multiple
8471 values to become lists.
8472 + Pipe tables: impose minimum cell size (see #3526).
8475### Default template changes
8477 * HTML templates (including EPUB and HTML slide show templates):
8479 + Make default.html5 polyglot markup conformant (John Luke Bentley,
8480 #3473). Polyglot markup is HTML5 that is also valid XHTML. See
8481 <https://www.w3.org/TR/html-polyglot>. With this change, pandoc's
8482 html5 writer creates HTML that is both valid HTML5 and valid XHTML.
8483 + Regularized CSS in html/epub/html slide templates (#3485).
8484 All templates now include `code{white-space: pre-wrap}`
8485 and CSS for `q` if `--html-q-tags` is used. Previously some templates
8486 had `pre` and others `pre-wrap`; the `q` styles were only sometimes
8487 included.
8488 + CSS for `.smallcaps`, (Mauro Bieg, #1592)
8489 + `default.revealjs`: make `history` default to true.
8490 + `default.revealjs`: use lazy loading (#2283).
8491 + `default.revealjs`: add `mathjax` variable and some conditional code
8492 to use the MathJaX plugin.
8493 + `default.slidy` uses `https` instead of `http` (ickc, #3848).
8494 + `default.dzslides`: Load Google Font using HTTPS by default
8495 (Yoan Blanc).
8497 * DocBook5 template: Use `lang` and `subtitle` variables (Jens Getreu,
8498 #3855).
8500 * LaTeX/Beamer template:
8502 + Combine LaTeX/Beamer templates (Andrew Dunning, #3878).
8503 `default.beamer` has been removed; beamer now uses the
8504 `default.latex` template. Beamer-specific parts are conditional
8505 on the `beamer` variable set by the writer. Note that
8506 `pandoc -D beamer` will return this (combined) template.
8507 + Use `xcolor` for `colorlinks` option (Andrew Dunning, #3877).
8508 Beamer loads `xcolor` rather than `color`, and thus the
8509 `dvipsnames` option doesn't take effect. This also provides a wider
8510 range of colour selections with the `svgnames` option.
8511 + Use starred versions of `xcolor` names (Andrew Dunning).
8512 Prevents changes to documents defined using the `dvipsnames` list (e.g.
8513 `Blue` gives a different result with svgnames enabled).
8514 + Load `polyglossia` after header-includes (#3898). It needs to be
8515 loaded as late as possible.
8516 + Use `unicode-math` (Vaclav Haisman). Use `mathspec` with only
8517 XeLaTeX on request.
8518 + Don't load `fontspec` before `unicode-math` (over there).
8519 The `unicode-math` package loads `fontspec` so explicit loading of
8520 `fontspec` before `unicode-math` is not necessary.
8521 + Use `unicode-math` by default in default.latex template. mathspec will
8522 be used in xelatex if the `mathspec` variable is set; otherwise
8523 unicode-math will be used (Václav Haisman).
8524 + Use `dvipsnames` options when `colorlinks` specified (otherwise
8525 we get an error for `maroon`) (Thomas Hodgson).
8526 + Added beamer `titlegraphic` and `logo` variables (Thomas Hodgson).
8527 + Fix typo in fix for notes in tables (#2378, zeeMonkeez).
8528 + Fix `hyperref` options clash (Andrew Dunning, #3847) Avoids an options
8529 clash when loading a package (e.g. `tufte-latex`) that uses
8530 `hyperref` settings different from those in the template.
8531 + Add `natbiboptions` variable (#3768).
8532 + Fix links inside captions in LaTeX output with links-as-notes
8533 (Václav Haisman, #3651). Declare our redefined `\href` robust.
8534 + Load `parskip` before `hyperref` (Václav Haisman, #3654).
8535 + Allow setting Japanese fonts when using LuaLaTeX (Václav Haisman,
8536 #3873). by using the `luatexja-fontspec` and `luatexja-preset`
8537 packages. Use existing `CJKmainfont` and `CJKoptions` template
8538 variables. Add `luatexjafontspecoptions` for `luatexja-fontspec`
8539 and `luatexjapresetoptions` for `luatexja-preset`.
8540 + Added `aspectratio` variable to beamer template (Václav Haisman,
8541 #3723).
8542 + Modified template.latex to fix XeLaTex being used with tables
8543 (lwolfsonkin, #3661). Reordered `lang` variable handling to
8544 immediately before `bidi`.
8546 * ConTeXt template: Improved font handling: `simplefonts` is now
8547 obsolete in ConTeXt (Pablo Rodríguez).
8550### Documentation improvements
8552 * MANUAL.txt:
8554 + Add URL for Prince HTML > PDF engine (Ian, #3919).
8555 + Document that content above slide-level will be omitted in
8556 slide shows. See #3460, #2265.
8557 + Explain `--webtex` SVG url (Mauro Bieg, #3471)
8558 + Small clarification in YAML metadata section.
8559 + Document that html4 is technically XHTML 1.0 transitional.
8560 + Remove refs to highlighting-kate (#3672).
8561 + Document ibooks specific epub metadata.
8562 + Clarify that mathml is used for ODT math.
8563 + Mention limitations of Literate Haskell Support (#3410,
8564 Joachim Breitner).
8565 + Add documentation of limitations of grid tables (Stephen
8566 McDowell, #3864).
8567 + Clarify that meta-json contains transformed values (Jakob Voß,
8568 #3491) Make clear that template variable `meta-json` does not
8569 contain plain text values or JSON output format but field values
8570 transformed to the selected output format.
8572 * COPYRIGHT:
8574 + Clarify that templates are dual-licensed.
8575 + Clarify that pandoc-types is BSD3 licensed.
8576 + List new files not written by jgm (Albert Krewinkel).
8577 + Update dates in copyright notices (Albert Krewinkel). This follows
8578 the suggestions given by the FSF for GPL licensed software.
8579 <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
8581 * INSTALL.md:
8583 + Improved instructions for tests with patterns.
8584 + Put RPM-based distros on separate point (Mauro Bieg, #3449)
8586 * CONTRIBUTING.md:
8588 + Fixed typos (Wandmalfarbe, #3479).
8589 + Add "ask on pandoc-discuss" (Mauro Bieg).
8591 * Add lua filter documentation in `doc/lua-filters.md`. Note that the
8592 end of this document is autogenerated from `data/pandoc.lua`
8593 using `make doc/lua-filters.md`, which uses `tools/ldoc.ltp`
8594 (Albert Krewinkel).
8596 * Add `doc/filters.md`. This is the old scripting tutorial from
8597 the website.
8599 * Add `doc/using-the-pandoc-api.md` (#3289). This gives an introduction
8600 to using pandoc as a Haskell library.
8603### Build infrastructure improvements
8605 * Removed `data/templates` submodule. Templates are now a subtree
8606 in `data/templates`. This removes the need to do `git submodule
8607 update`.
8609 * Renamed `tests` -> `test`.
8611 * Remove `https` flag. Always build with HTTPS support.
8613 * Use `file-embed` instead of `hsb2hs` to embed data files when
8614 `embed_data_files` flag is set. `file-embed` gives us better dependency
8615 tracking: if a data file changes, ghc/stack/cabal know to recompile
8616 the Data module. This also removes `hsb2hs` as a build dependency.
8618 * Add `custom-setup` stanza to pandoc, lowercase field names.
8620 * Add `static` Cabal flag.
8622 * Name change OSX -> MacOS. Add a -MacOS suffix to mac package rather
8623 than -OSX. Changed local names from osx to macos.
8625 * make_macos_package.sh - Use strip to reduce executable size.
8627 * Revised binary linux package. Now a completely static executable
8628 is created, using Docker and alpine. We create both a deb and a
8629 tarball. The old `deb` directory has been replaced with a `linux`
8630 directory. Running `make` in the `linux` directory should
8631 perform the build, putting the binary packages in `artifacts/`.
8633 * `linux/control.in`: add `Replaces:`, so existing pandoc-citeproc and
8634 pandoc-data packages will be uninstalled; this package provides
8635 both (#3822). Add latex packages as 'suggested', update
8636 description.
8638 * Remove cpphs build requirement -- it is no longer needed.
8640 * Replaced `{deb,macos,windows}/stack.yaml` with `stack.pkg.yaml`.
8642 * Name change OSX -> macOS (ickc, #3869).
8644 * Fix casing of Linux, UNIX, and Windows (ickc).
8646 * `.travis.yml`: create a source dist and do cabal build and test there.
8647 That way we catch errors due to files missing from the data
8648 section of pandoc.cabal.
8650 * Makefile:
8652 + Split `make haddock` from `make full`.
8653 + Add BRANCH variable for winpkg.
8654 + Add `lint` target.
8655 + Improve `make full`. Disable optimizations.
8656 Build everything, inc. trypandoc and benchmarks. Use parallel build.
8657 + Allow `make test` to take `TESTARGS`.
8659 * Added new command tests (`Tests.Command`), using small text files
8660 in `test/command/`. Any files added in this directory will be treated
8661 as shell tests (see smart.md for an example). This makes it very easy
8662 to add regression tests etc.
8664 * Test fixes so we can find data files. In old tests & command tests,
8665 we now set the environment variable `pandoc_datadir`. In lua tests,
8666 we set the datadir explicitly.
8668 * Refactored `compareOutput` in docx writer test.
8670 * Consolidated some common functions in `Tests.Helper`.
8672 * Small change to unbalanced bracket test to speed up test suite.
8674 * Speed up Native writer quickcheck tests.
8676 * Use tasty for tests rather than test-framework.
8678 * Add simple Emacs mode to help with Pandoc templates editing.
8679 (Václav Haisman, #3889). `tools/pandoc-template-mode.el`
8682## pandoc 1.19.2.4 (2017-09-10)
8684 * Add dependencies on texmath and skylighting to the executable.
8685 This is needed for dependency version numbers to be available,
8686 with Cabal > 2.
8688## pandoc 1.19.2.3 (2017-09-09)
8690 * Add CPP to Setup.hs so it works with Cabal >= 2 and < 2.
8692## pandoc 1.19.2.2 (2017-09-08)
8694 * Fix build with GHC 8.2.1 (#3876, Peter Simons). Setup.hs does not
8695 compile with Cabal 2.x, so we require an earlier version via
8696 setup-depends. The following packages need newer versions with
8697 GHC 8.2.1 and had their constraints relaxed accordingly:
8698 executable-path, process, syb, and time.
8700## pandoc 1.19.2.1 (2017-01-31)
8702 * Require skylighting >= 0.1.1.4.
8703 * Adjust test output for skylighting version.
8704 * Relax upper bounds on blaze-html and blaze-markup.
8706## pandoc 1.19.2 (2017-01-29)
8708 * Use skylighting library instead of highlighting-kate for syntax
8709 highlighting. Skylighting is faster and more accurate (#3363).
8710 Later we'll be able to add features like warning messages, dynamic
8711 loading of xml syntax definitions, and dynamic loading of themes.
8713 * Added a new highlight style, `breezeDark`.
8715 * Text.Pandoc.Highlighting: Update list of `listings` languages (#3374).
8716 This allows more languages to be used when using the `--listings`
8717 option.
8719 * OpenDocument writer:
8721 + Small refactoring. Removed separate 'parent' parameter in paraStyle.
8722 + Don't profilerate text styles unnecessarily (#3371).
8723 This change makes the writer create only as many temporary
8724 text styles as are absolutely necessary. It also consolidates
8725 adjacent nodes with the same style.
8727 * Org reader (Albert Krewinkel):
8729 + Allow short hand for single-line raw blocks (Albert Krewinkel,
8730 #3366). Single-line raw blocks can be given via `#+FORMAT: raw line`,
8731 where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
8732 + Accept org-ref citations followed by commas (Albert Krewinkel).
8733 Bugfix for an issue which, whenever the citation was immediately
8734 followed by a comma, prevented correct parsing of org-ref citations.
8735 + Ensure emphasis markup can be nested. Nested emphasis markup (e.g.
8736 `/*strong and emphasized*/`) was interpreted incorrectly in that the
8737 inner markup was not recognized.
8738 + Remove pipe char irking the haddock coverage tool (Albert Krewinkel).
8740 * Docx reader: Empty header should be list of lists (Jesse Rosenthal).
8741 In the past, the docx reader wrote an empty header as an empty list. It
8742 should have the same width as a row (and be filled with empty cells).
8744 * MediaWiki reader:
8746 + Improved handling of display math (#3362). Sometimes display math is
8747 indented with more than one colon. Previously we handled these cases
8748 badly, generating definition lists and missing the math.
8749 + Fix quotation mark parsing (#3336, tgkokk). Change MediaWiki reader's
8750 behavior when the smart option is parsed to match other readers'
8751 behavior.
8753 * Markdown reader:
8755 + Fixed `-f markdown_github-hard_line_breaks+escaped_line_breaks`
8756 (#3341). Previously this did not properly enable escaped line breaks.
8757 + Disallow space between inline code and attributes (#3326, #3323,
8758 Mauro Bieg).
8760 * DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330, Mauro Bieg).
8762 * Added some test cases for ODT reader (#3306, #3308, Hubert Plociniczak).
8764 * LaTeX writer: allow tables with empty cells to count as "plain."
8765 This addresses a problem of too-wide tables when empty cells
8766 are used. Thanks to Joost Kremers for reporting the issue.
8768 * Org writer: prefix footnote numbers with `fn:` (Albert Krewinkel).
8769 Unprefixed numbers where used by older org-mode versions, but are no
8770 longer supported.
8772 * HTML writer: don't process pars with empty RawInline, (#1040, #3327,
8773 Mauro Bieg).
8775 * Markdown writer: Fix display math with `--webtex` (#3298).
8777 * Fix sample.lua so it properly handles raw blocks/inlines (#3358,
8778 bumper314).
8780 * Templates:
8782 + default.latex: Moved geometry after hyperref (Václav Haisman).
8783 Otherwise PDF sizes can be wrong in some circumstances.
8784 + Copied a few changes from default.latex to default.beamer
8785 (Wandmalfarbe).
8786 + default.latex, default.beamer: Changed position of `\VerbatimNotes`
8787 and `fancyvrb`. This fixes hyperlinks on footnotes in documents
8788 that contain verbatim in notes (#3361). (Note: the beamer template
8789 was updated to match the LaTeX template, but at this point verbatim
8790 in notes seems not to work in beamer.)
8791 + default.latex: Allow passing `microtypeoptions` to microtype
8792 (Václav Haisman).
8793 + default.latex: Add hyphen option to url package.
8794 + default.docbook5: Fix namespace declarations (Mauro Bieg).
8796 * Moved `make_osx_package.sh` to `osx/` directory.
8798 * Travis continuous integration:
8800 + Fix false positives with dist build.
8801 + Speed improvements (Kolen Cheung, #3304, #3357).
8803 * MANUAL.txt:
8805 + Clarify that blank space is needed around footnotes (#3352).
8806 + Fixed typo (#3351, Alexey Rogechev).
8807 + Note that `--wrap=auto` does not work in HTML output.
8808 + Default `--columns` width is 72, not 80.
8809 + Fixed broken links (#3316, Kolen Cheung).
8810 + Document usage of `@*` in nocite section (#3333, John Muccigrosso).
8812 * INSTALL.md:
8814 + Indent code so it's properly formatted (#3335, Bheesham Persaud).
8815 + Added instructions for extracting binary from OSX, Windows packages.
8817 * CONTRIBUTING.md: Describe labels currently used in issue tracker
8818 (Albert Krewinkel). The labels have changed over time, the list of
8819 labels is updated to reflect the current set of labels used in the
8820 issue tracker.
8822 * Rearrange and extend badges in README (Albert Krewinkel, #3354)
8824 * Bumped version bounds for dependencies.
8827## pandoc 1.19.1 (2016-12-10)
8829 * Set `PANDOC_VERSION` environment variable for filters (#2640).
8830 This allows filters to check the pandoc version that produced
8831 the JSON they are receiving.
8833 * Docx reader: Ensure one-row tables don't have header (#3285,
8834 Jesse Rosenthal). Tables in MS Word are set by default to have
8835 special first-row formatting, which pandoc uses to determine whether
8836 or not they have a header. This means that one-row tables will, by
8837 default, have only a header -- which we imagine is not what people
8838 want. This change ensures that a one-row table is not understood to
8839 be a header only. Note that this means that it is impossible to
8840 produce a header-only table from docx, even though it is legal
8841 pandoc. But we believe that in nearly all cases, it will be an
8842 accidental (and unwelcome) result
8844 * HTML reader:
8846 + Fixed some bad regressions in HTML table parser (#3280).
8847 This regression leads to the introduction of empty rows
8848 in some circumstances.
8849 + Understand `style=width:` as well as `width` in `col` (#3286).
8851 * RST reader:
8853 + Print warnings when keys, substitition, notes not found.
8854 Previously the parsers failed and we got raw text. Now we get a
8855 link with an empty URL, or empty inlines in the case of a note or
8856 substitution.
8858 + Fix hyperlink aliases (#3283).
8860 * Man writer: Ensure that periods are escaped at beginning of line
8861 (#3270).
8863 * LaTeX writer: Fix unnumbered headers when used with `--top-level`
8864 (#3272, Albert Krewinkel). Fix interaction of top-level
8865 divisions `part` or `chapter` with unnumbered headers when
8866 emitting LaTeX. Headers are ensured to be written using
8867 stared commands (like `\subsection*{}`).
8869 * LaTeX template: use comma not semicolon to separate keywords for
8870 `pdfkeywords`. Thanks to Wandmalfarbe.
8872 * Markdown writer: Fixed incorrect word wrapping (#3277).
8873 Previously pandoc would sometimes wrap lines too early due to
8874 this bug.
8876 * Text.Pandoc.Pretty: Added `afterBreak` [API change]. This makes it
8877 possible to insert escape codes for content that needs escaping at the
8878 beginning of a line.
8880 * Removed old MathMLInHTML.js from 2004, which should no longer
8881 be needed for MathML with modern browsers.
8883 * Fixed tests with dynamic linking (#2709).
8885 * Makefile: Use stack instead of cabal for targets. This is just
8886 a convenience for developers.
8888 * Fixed bash completion of filenames with space (#2749).
8890 * MANUAL: improved documentation on how to create a custom
8891 `reference.docx`.
8893 * Fix minor spelling typos in the manual (#3273, Anthony Geoghegan)
8895## pandoc 1.19 (2016-12-01)
8897 * Changed resolution of filter paths.
8899 + We now first treat the argument of `--filter` as a full (absolute
8900 or relative) path, looking for a program there. If it's found, we
8901 run it.
8902 + If not, and if it is a simple program name or a relative path, we
8903 try resolving it relative to `$DATADIR/filters`.
8904 + If this fails, then we treat it as a program name and look in the
8905 user's PATH.
8906 + Removed a hardcoded '/' that may have caused problems with
8907 Windows paths.
8909 Previously if you did `--filter foo` and you had `foo` in your path and
8910 also an executable `foo` in your working directory, the one in the path
8911 would be used. Now the one in the working directory is used.
8913 In addition, when you do `--filter foo/bar.hs`, pandoc will now find a
8914 filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a
8915 `foo/bar.hs` relative to the working directory.
8917 * Allow `file://` URIs as arguments (#3196). Also improved default reader
8918 format detection. Previously with a URI ending in .md or .markdown,
8919 pandoc would assume HTML input. Now it treats these as markdown.
8921 * Allow to overwrite top-level division type heuristics (#3258,
8922 Albert Krewinkel). Pandoc uses heuristics to determine the most
8923 reasonable top-level division type when emitting LaTeX or
8924 Docbook markup. It is now possible to overwrite this implicitly set
8925 top-level division via the `top-level-division` command line parameter.
8927 * Text.Pandoc.Options \[API changes\]:
8929 + Removed `writerStandalone` field in `WriterOptions`, made
8930 `writerTemplate` a `Maybe` value. Previously setting
8931 `writerStandalone = True` did nothing unless a template was provided
8932 in writerTemplate. Now a fragment will be generated if
8933 `writerTemplate` is `Nothing`; otherwise, the specified template
8934 will be used and standalone output generated.
8935 + `Division` has been renamed `TopLevelDivision` (#3197). The
8936 `Section`, `Chapter`, and `Part` constructors were renamed to
8937 `TopLevelSection`, `TopLevelChapter`, and
8938 `TopLevelPart`, respectively. An additional `TopLevelDefault`
8939 constructor was added, which is now also the new default value of
8940 the `writerTopLevelDivision` field in `WriterOptions`.
8942 * Improved error if they give wrong arg to `--top-level-division`.
8944 * Use new module from texmath to lookup MS font codepoints in Docx reader.
8945 Removed unexported module Text.Pandoc.Readers.Docx.Fonts. Its code now
8946 lives in texmath (0.9).
8948 * DocBook reader: Fixed xref lookup (#3243). It previously only worked
8949 when the qnames lacked the docbook namespace URI.
8951 * HTML reader:
8953 + Improved table parsing (#3027). We now check explicitly for non-1
8954 rowspan or colspan attributes, and fail when we encounter them.
8955 Previously we checked that each row had the same number of cells,
8956 but that could be true even with rowspans/colspans. And there are
8957 cases where it isn't true in tables that we can handle fine -- e.g.
8958 when a tr element is empty. So now we just pad rows with empty cells
8959 when needed.
8960 + Treat `<math>` as MathML by default unless something else is
8961 explicitly specified in xmlns. Provided it parses as MathML,
8962 of course. Also fixed default which should be to inline math if no
8963 display attribute is used.
8964 + Only treat "a" element as link if it has href (#3226). Otherwise
8965 treat as span.
8967 * Docx reader (Jesse Rosenthal):
8969 + Add a placeholder value for CHART. We wrap `[CHART]` in a
8970 `<span class="chart">`. Note that it maps to inlines because, in
8971 docx, anything in a drawing tag can be part of a larger paragraph.
8972 + Be more specific in parsing images We not only want `w:drawing`,
8973 because that could also include charts. Now we specify
8974 `w:drawing/pic:pic`. This shouldn't change behavior at all, but it's
8975 a first step toward allowing other sorts of drawing data as well.
8976 + Abstract out function to avoid code repetition.
8977 + Update tests for img title and alt (#3204).
8978 + Handle Alt text and titles in images. We use the "description" field
8979 as alt text and the "title" field as title. These can be accessed
8980 through the "Format Picture" dialog in Word.
8981 + Docx reader utils: handle empty namespace in `elemName`. Previously,
8982 if given an empty namespace `(elemName ns "" "foo")` `elemName`
8983 would output a QName with a `Just ""` namespace. This is never what
8984 we want. Now we output a `Nothing`. If someone *does* want a
8985 `Just ""` in the namespace, they can enter the QName
8986 value explicitly.
8988 * ODT reader/writer:
8990 + Inline code when text has a special style (Hubert Plociniczak). When
8991 a piece of text has a text `Source_Text` then we assume that this is
8992 a piece of the document that represents a code that needs to
8993 be inlined. Adapted the writer to also reflect that change.
8994 Previously it was just writing a 'preformatted' text using a
8995 non-distinguishable font style. Code blocks are still not recognized
8996 by the ODT reader. That's a separate issue.
8997 + Infer table's caption from the paragraph (#3224,
8998 Hubert Plociniczak). ODT's reader always put empty captions for the
8999 parsed tables. This commit
9001 1. checks paragraphs that follow the table definition
9002 2. treats specially a paragraph with a style named 'Table'
9003 3. does some postprocessing of the paragraphs that combines tables
9004 followed immediately by captions
9006 The ODT writer used the `TableCaption` style for the caption
9007 paragraph. This commit follows the OpenOffice approach which allows
9008 for appending captions to table but uses a built-in style named
9009 `Table` instead of `TableCaption`. Users of a custom `reference.odt`
9010 should change the style's name from `TableCaption` to `Table`.
9012 * ODT reader: Infer tables' header props from rows (#3199,
9013 Hubert Plociniczak). ODT reader simply provided an empty header list
9014 which meant that the contents of the whole table, even if not empty, was
9015 simply ignored. While we still do not infer headers we at least have to
9016 provide default properties of columns.
9018 * Markdown reader:
9020 + Allow reference link labels starting with `@...` if `citations`
9021 extension disabled (#3209). Example: in
9023 \[link text\]\[@a\]
9025 `link text` isn't hyperlinked because `[@a]` is parsed as
9026 a citation. Previously this happened whether or not the `citations`
9027 extension was enabled. Now it happens only if the `citations`
9028 extension is enabled.
9029 + Allow alignments to be specified in Markdown grid tables. For
9030 example,
9032 +-------+---------------+--------------------+
9033 | Right | Left | Centered |
9034 +=========:+:=================+:=============:+
9035 | Bananas | $1.34 | built-in wrapper |
9036 +-------+---------------+--------------------+
9038 + Allow Small Caps elements to be created using bracketed spans (as
9039 they already can be using HTML-syntax spans) (#3191, Kolen Cheung).
9041 * LaTeX reader:
9043 + Don't treat `\vspace` and `\hspace` as block commands (#3256).
9044 Fixed an error which came up, for example, with `\vspace` inside
9045 a caption. (Captions expect inlines.)
9046 + Improved table handling. We can now parse all of the tables emitted
9047 by pandoc in our tests. The only thing we don't get yet are
9048 alignments and column widths in more complex tables. See #2669.
9049 + Limited support for minipage.
9050 + Allow for `[]`s inside LaTeX optional args. Fixes cases like:
9051 + Handle BVerbatim from fancyvrb (#3203).
9052 + Handle hungarumlaut (#3201).
9053 + Allow beamer-style `<...>` options in raw LaTeX (also in Markdown)
9054 (#3184). This allows use of things like `\only<2,3>{my content}` in
9055 Markdown that is going to be converted to beamer.
9057 * Use pre-wrap for code in dzslides template (Nicolas Porcel). Otherwise
9058 overly long code will appear on every slide.
9060 * Org reader (Albert Krewinkel):
9062 + Respect column width settings (#3246). Table column properties can
9063 optionally specify a column's width with which it is displayed in
9064 the buffer. Some exporters, notably the ODT exporter in org-mode
9065 v9.0, use these values to calculate relative column widths. The org
9066 reader now implements the same behavior. Note that the org-mode
9067 LaTeX and HTML exporters in Emacs don't support this feature yet,
9068 which should be kept in mind by users who use the column
9069 widths parameters.
9070 + Allow HTML attribs on non-figure images (#3222). Images which are
9071 the only element in a paragraph can still be given HTML attributes,
9072 even if the image does not have a caption and is hence not a figure.
9073 The following will add set the `width` attribute of the image to
9074 `50%`:
9076 +ATTR\_HTML: :width 50%
9077 =======================
9079 \[\[file:image.jpg\]\]
9081 + Support `ATTR_HTML` for special blocks (#3182). Special
9082 blocks (i.e. blocks with unrecognized names) can be prefixed with an
9083 `ATTR_HTML` block attribute. The attributes defined in that
9084 meta-directive are added to the `Div` which is used to represent the
9085 special block.
9086 + Support the `todo` export option. The `todo` export option allows to
9087 toggle the inclusion of TODO keywords in the output. Setting this to
9088 `nil` causes TODO keywords to be dropped from headlines. The default
9089 is to include the keywords.
9090 + Add support for todo-markers. Headlines can have optional
9091 todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`,
9092 or `#+TYP_TODO` meta directive. Multiple such directives can be
9093 given, each adding a new set of recognized todo-markers. If no
9094 custom todo-markers are defined, the default `TODO` and `DONE`
9095 markers are used. Todo-markers are conceptually separate from
9096 headline text and are hence excluded when autogenerating
9097 headline IDs. The markers are rendered as spans and labelled with
9098 two classes: One class is the markers name, the other signals the
9099 todo-state of the marker (either `todo` or `done`).
9101 * LaTeX writer:
9103 + Use `\autocites*` when "suppress-author" citation used.
9104 + Ensure that simple tables have simple cells (#2666). If cells
9105 contain more than a single Plain or Para, then we need to set
9106 nonzero widths and put contents into minipages.
9107 + Remove invalid inlines in sections (#3218, Hubert Plociniczak).
9109 * Markdown writer:
9111 + Fix calculation of column widths for aligned multiline tables
9112 (#1911, Björn Peemöller). This also fixes excessive CPU and memory
9113 usage for tables when `--columns` is set in such a way that cells
9114 must be very tiny. Now cells are guaranteed to be big enough so that
9115 single words don't need to line break, even if this pushes the line
9116 length above the column width.
9117 + Use bracketed form for native spans when `bracketed_spans`
9118 enabled (#3229).
9119 + Fixed inconsistent spacing issue (#3232). Previously a tight bullet
9120 sublist got rendered with a blank line after, while a tight ordered
9121 sublist did not. Now we don't get the blank line in either case.
9122 + Fix escaping of spaces in super/subscript (#3225). Previously two
9123 backslashes were inserted, which gave a literal backslash.
9124 + Adjust widths in Markdown grid tables so that they match
9125 on round-trip.
9127 * Docx writer:
9129 + Give full detail when there are errors converting tex math.
9130 + Handle title text in images (Jesse Rosenthal). We already handled
9131 alt text. This just puts the image "title" into the docx
9132 "title" attr.
9133 + Fixed XML markup for empty cells (#3238). Previously the Compact
9134 style wasn't being applied properly to empty cells.
9136 * HTML writer:
9138 + Updated `renderHtml` import from blaze-html.
9140 * Text.Pandoc.Pretty:
9142 + Fixed some bugs that caused blank lines in tables (#3251). The bugs
9143 caused spurious blank lines in grid tables when we had things like
9144 `blankline $$ blankline`.
9145 + Add exported function `minOffet` \[API change\] (Björn Peemöller).
9146 + Added error message for illegal call to `block` (Björn Peemöller).
9148 * Text.Pandoc.Shared:
9150 + Put `warn` in MonadIO.
9151 + `fetchItem`: Better handling of protocol-relative URL (#2635). If
9152 URL starts with `//` and there is no "base URL" (as there would be
9153 if a URL were used on the command line), then default to http:.
9155 * Export Text.Pandoc.getDefaultExtensions \[API change\] (#3178).
9157 * In --version, trap error in `getAppUserDataDirectory` (#3241). This
9158 fixes a crash with `pandoc --version` on unusual systems with no real
9159 user (e.g. SQL Server 2016).
9161 * Added weigh-pandoc for memory usage diagnostics (#3169).
9163 * Use correct mime types for woff and woff2 (#3228).
9165 * Remove make\_travis\_yml.hs (#3235, Kolen Cheung).
9167 * changelog: Moved an item that was misplaced in the 1.17.2 section to the
9168 1.18 section where it belongs.
9170 * CONTRIBUTING.md: minor change in wording and punctuation (#3252,
9171 Kolen Cheung).
9173 * Further revisions to manual for `--version` changes (#3244).
9177## pandoc 1.18 (2016-10-26)
9179 * Added `--list-input-formats`, `--list-output-formats`,
9180 `--list-extensions`, `--list-highlight-languages`, and
9181 `--list-highlight-styles` (#3173). Removed list of highlighting
9182 languages from `--version` output. Removed list of input and output
9183 formats from default `--help` output.
9185 * Added `--reference-location=block|section|document` option
9186 (Jesse Rosenthal). This determines whether Markdown link references
9187 and footnotes are placed at the end of the document, the end of the
9188 section, or the end of the top-level block.
9190 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
9191 This determines what a level-1 header corresponds to in LaTeX,
9192 ConTeXt, DocBook, and TEI output. The default is `section`.
9193 The `--chapters` option has been deprecated in favor of
9194 `--top-level-division=chapter`.
9196 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
9197 is now used in parsing RST and Markdown line blocks, DocBook
9198 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
9199 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
9200 are handled specially in the following output formats: AsciiDoc
9201 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
9202 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
9203 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
9204 other output formats, a paragraph with hard linebreaks is emitted.
9206 * Allow binary formats to be written to stdout (but not to tty) (#2677).
9207 Only works on posix, since we use the unix library to check whether
9208 output is to tty. On Windows, pandoc works as before and always requires
9209 an output file parameter for binary formats.
9211 * Changed JSON output format (Jesse Rosenthal). Previously we used
9212 generically generated JSON, but this was subject to change depending
9213 on the version of aeson pandoc was compiled with. To ensure stability,
9214 we switched to using manually written ToJSON and FromJSON
9215 instances, and encoding the API version. **Note:** pandoc filter
9216 libraries will need to be revised to handle the format change.
9217 Here is a summary of the essential changes:
9219 + The toplevel JSON format is now `{"pandoc-api-version" :
9220 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
9221 instead of `[{"unMeta": META}, [BLOCKS]]`.
9222 Decoding fails if the major and minor version numbers don't
9223 match.
9224 + Leaf nodes no longer have an empty array for their "c" value.
9225 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
9226 rather than `{"t":"Space","c":[]}` as before.
9228 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
9229 module to pandoc-types (Jesse Rosenthal). This makes it easier
9230 to use QuickCheck with pandoc types outside of pandoc itself.
9232 * Add `bracketed_spans` Markdown extension, enabled by default
9233 in pandoc `markdown`. This allows you to create a native span
9234 using this syntax: `[Here is my span]{#id .class key="val"}`.
9236 * Added `angle_brackets_escapable` Markdown extension (#2846).
9237 This is needed because github flavored Markdown has a slightly
9238 different set of escapable symbols than original Markdown;
9239 it includes angle brackets.
9241 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
9243 * Print highlighting-kate version in `--version`.
9245 * `Text.Pandoc.Options`:
9247 + `Extension` has new constructors `Ext_brackted_spans` and
9248 `Ext_angle_brackets_escapable` [API change].
9249 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
9250 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
9251 Rosenthal).
9253 * `--filter`: we now check `$DATADIR/filters` for filters before
9254 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
9255 Voß for the idea). Filters placed in this directory need not
9256 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
9257 or `.rb`, pandoc will run the right interpreter.
9259 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
9260 default (Kolen Cheung).
9262 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
9264 * Execute .js filters with node (Jakob Voß).
9266 * Textile reader:
9268 + Support `bc..` extended code blocks (#3037). Also, remove trailing
9269 newline in code blocks (consistently with Markdown reader).
9270 + Improve table parsing. We now handle cell and row attributes, mostly
9271 by skipping them. However, alignments are now handled properly.
9272 Since in pandoc alignment is per-column, not per-cell, we
9273 try to devine column alignments from cell alignments.
9274 Table captions are also now parsed, and textile indicators
9275 for thead and tfoot no longer cause parse failure. (However,
9276 a row designated as tfoot will just be a regular row in pandoc.)
9277 + Improve definition list parsing. We now allow multiple terms
9278 (which we concatenate with linebreaks). An exponential parsing
9279 bug (#3020) is also fixed.
9280 + Disallow empty URL in explicit link (#3036).
9282 * RST reader:
9284 + Use Div instead of BlockQuote for admonitions (#3031).
9285 The Div has class `admonition` and (if relevant) one of the
9286 following: `attention`, `caution`, `danger`, `error`, `hint`,
9287 `important`, `note`, `tip`, `warning`. **Note:** This will change
9288 the rendering of some RST documents! The word ("Warning", "Attention",
9289 etc.) is no longer added; that must be done with CSS or a filter.
9290 + A Div is now used for `sidebar` as well.
9291 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
9292 space before a footnote marker. We discard those spaces so that footnotes
9293 will be adjacent to the text that comes before it. This is in line with
9294 what rst2latex does.
9295 + Allow empty lines when parsing line blocks (Albert Krewinkel).
9297 * Markdown reader:
9299 + Allow empty lines when parsing line blocks (Albert Krewinkel).
9300 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
9302 * LaTeX reader:
9304 + More robust parsing of unknown environments (#3026).
9305 We no longer fail on things like `^` inside options for tikz.
9306 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
9307 Some custom environments give these a meaning, so we should try not to
9308 fall over when we encounter them.
9309 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
9311 * MediaWiki reader:
9313 + Fix for unquoted attribute values in mediawiki tables (#3053).
9314 Previously an unquoted attribute value in a table row
9315 could cause parsing problems.
9316 + Improved treatment of verbatim constructions (#3055).
9317 Previously these yielded strings of alternating Code and Space
9318 elements; we now incorporate the spaces into the Code. Emphasis
9319 etc. is still possible inside these.
9320 + Properly interpret XML tags in pre environments (#3042). They are meant
9321 to be interpreted as literal text.
9323 * EPUB reader: don't add root path to data: URIs (#3150).
9324 Thanks to @lep for the bug report and patch.
9326 * Org reader (Albert Krewinkel):
9328 + Preserve indentation of verse lines (#3064). Leading spaces in verse
9329 lines are converted to non-breaking spaces, so indentation is preserved.
9330 + Ensure image sources are proper links. Image sources as those in plain
9331 images, image links, or figures, must be proper URIs or relative file
9332 paths to be recognized as images. This restriction is now enforced
9333 for all image sources. This also fixes the reader's usage of uncleaned
9334 image sources, leading to `file:` prefixes not being deleted from
9335 figure images. Thanks to @bsag for noticing this bug.
9336 + Trim verse lines properly (Albert Krewinkel).
9337 + Extract meta parsing code to module. Parsing of meta-data is well
9338 separable from other block parsing tasks. Moving into new module to
9339 get small files and clearly arranged code.
9340 + Read markup only for special meta keys. Most meta-keys should be read
9341 as normal string values, only a few are interpreted as marked-up text.
9342 + Allow multiple, comma-separated authors. Multiple authors can be
9343 specified in the `#+AUTHOR` meta line if they are given as a
9344 comma-separated list.
9345 + Give precedence to later meta lines. The last meta-line of any given
9346 type is the significant line. Previously the value of the first line
9347 was kept, even if more lines of the same type were encountered.
9348 + Read LaTeX_header as header-includes. LaTeX-specific header commands
9349 can be defined in `#+LaTeX_header` lines. They are parsed as
9350 format-specific inlines to ensure that they will only show up in LaTeX
9351 output.
9352 + Set documentclass meta from LaTeX_class.
9353 + Set classoption meta from LaTeX_class_options.
9354 + Read HTML_head as header-includes. HTML-specific head content can be
9355 defined in `#+HTML_head` lines. They are parsed as format-specific
9356 inlines to ensure that they will only show up in HTML output.
9357 + Respect `author` export option. The `author` option controls whether
9358 the author should be included in the final markup. Setting
9359 `#+OPTIONS: author:nil` will drop the author from the final meta-data
9360 output.
9361 + Respect `email` export option. The `email` option controls whether the
9362 email meta-field should be included in the final markup. Setting
9363 `#+OPTIONS: email:nil` will drop the email field from the final
9364 meta-data output.
9365 + Respect `creator` export option. The `creator` option controls whether
9366 the creator meta-field should be included in the final markup. Setting
9367 `#+OPTIONS: creator:nil` will drop the creator field from the final
9368 meta-data output. Org-mode recognizes the special value `comment` for
9369 this field, causing the creator to be included in a comment. This is
9370 difficult to translate to Pandoc internals and is hence interpreted the
9371 same as other truish values (i.e. the meta field is kept if it's
9372 present).
9373 + Respect unnumbered header property (#3095). Sections the `unnumbered`
9374 property should, as the name implies, be excluded from the automatic
9375 numbering of section provided by some output formats. The Pandoc
9376 convention for this is to add an "unnumbered" class to the header. The
9377 reader treats properties as key-value pairs per default, so a special
9378 case is added to translate the above property to a class instead.
9379 + Allow figure with empty caption (Albert Krewinkel, #3161).
9380 A `#+CAPTION` attribute before an image is enough to turn an image into
9381 a figure. This wasn't the case because the `parseFromString` function,
9382 which processes the caption value, would fail on empty values. Adding
9383 a newline character to the caption value fixes this.
9385 * Docx reader:
9387 + Use XML convenience functions (Jesse Rosenthal).
9388 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
9389 the code a lot cleaner than the original XML.Light functions, but they
9390 had been used inconsistently. This puts them in wherever applicable.
9391 + Handle anchor spans with content in headers. Previously, we would only
9392 be able to figure out internal links to a header in a docx if the
9393 anchor span was empty. We change that to read the inlines out of the
9394 first anchor span in a header.
9395 + Let headers use existing id. Previously we always generated an id for
9396 headers (since they wouldn't bring one from Docx). Now we let it use an
9397 existing one if possible. This should allow us to recurs through anchor
9398 spans.
9399 + Use all anchor spans for header ids. Previously we only used the first
9400 anchor span to affect header ids. This allows us to use all the anchor
9401 spans in a header, whether they're nested or not (#3088).
9402 + Test for nested anchor spans in header. This ensures that anchor spans
9403 in header with content (or with other anchor spans inside) will resolve
9404 to links to a header id properly.
9406 * ODT reader (Hubert Plociniczak)
9408 + Include list's starting value. Previously the starting value of
9409 the lists' items has been hardcoded to 1. In reality ODT's list
9410 style definition can provide a new starting value in one of its
9411 attributes.
9412 + Infer caption from the text following the image.
9413 Frame can contain other frames with the text boxes.
9414 + Add `fig:` to title for Image with a caption (as expected
9415 by pandoc's writers).
9416 + Basic support for images in ODT documents.
9417 + Don't duplicate text for anchors (#3143). When creating an anchor
9418 element we were adding its representation as well as the original
9419 content, leading to text duplication.
9421 * DocBook writer:
9423 + Include an anchor element when a div or span has an id (#3102).
9424 Note that DocBook does not have a class attribute, but at least this
9425 provides an anchor for internal links.
9427 * LaTeX writer:
9429 + Don't use * for unnumbered paragraph, subparagraph. The starred
9430 variants don't exist. This helps with part of #3058...it gets rid of
9431 the spurious `*`s. But we still have numbers on the 4th and 5th level
9432 headers.
9433 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
9434 Otherwise they can cause unintended ligatures like `` ?` ``.
9435 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
9436 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
9437 This allows figure placement defaults to be changed by the user
9438 in the template.
9440 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
9441 TEI doesn't have `<book>` elements but only generic `<divN>` division
9442 elements. Checking the template for a trailing `</book>` is nonsensical.
9444 * MediaWiki writer: transform filename with underscores in images (#3052).
9445 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
9446 for internal links, but it also needs to happen for images.
9448 * ICML writer: replace partial function (!!) in table handling (#3175,
9449 Mauro Bieg).
9451 * Man writer: allow section numbers that are not a single digit (#3089).
9453 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
9454 (#3068). In AsciiDoc, you must use a special form of emphasis
9455 (double `__`) for intraword emphasis. Pandoc was previously using
9456 this more than necessary.
9458 * EPUB writer: use stringify instead of plain writer for metadata
9459 (#3066). This means that underscores won't be used for emphasis,
9460 or CAPS for bold. The metadata fields will just have unadorned
9461 text.
9463 * Docx Writer:
9465 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
9466 with a `custom-style` key in the attributes will apply the corresponding
9467 key to the contained blocks or inlines.
9468 + Add ReaderT env to the docx writer (Jesse Rosenthal).
9469 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
9470 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
9471 on the command line. For finer-grained control, you can set
9472 the `dir` attribute in Div or Span elements.
9474 * Org writer (Albert Krewinkel):
9476 + Remove blank line after figure caption. Org-mode only treats an image
9477 as a figure if it is directly preceded by a caption.
9478 + Ensure blank line after figure. An Org-mode figure should be surrounded
9479 by blank lines. The figure would be recognized regardless, but images
9480 in the following line would unintentionally be treated as figures as
9481 well.
9482 + Ensure link targets are paths or URLs. Org-mode treats links as
9483 document internal searches unless the link target looks like a URL or
9484 file path, either relative or absolute. This change ensures that this
9485 is always the case.
9486 + Translate language identifiers. Pandoc and Org-mode use different
9487 programming language identifiers. An additional translation between
9488 those identifiers is added to avoid unexpected behavior. This fixes a
9489 problem where language specific source code would sometimes be output
9490 as example code.
9491 + Drop space before footnote markers (Albert Krewinkel, #3162).
9492 The writer no longer adds an extra space before footnote markers.
9494 * Markdown writer:
9496 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
9497 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
9498 is disabled.
9499 + Check for the `raw_html` extension before emitting a raw HTML block.
9500 + Abstract out note/ref function (Jesse Rosenthal).
9501 + Add ReaderT monad for environment variables (Jesse Rosenthal).
9503 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
9504 subtitle, author, date (#3119). Note that, as a result of this change,
9505 authors may need to update CSS.
9507 * revealjs template: Added `notes-server` option
9508 (jgm/pandoc-templates#212, Yoan Blanc).
9510 * Beamer template:
9512 + Restore whitespace between paragraphs. This was
9513 a regression in the last release (jgm/pandoc-templates#207).
9514 + Added `themeoptions` variable (Carsten Gips).
9515 + Added `beamerarticle` variable. This causes the `beamerarticle`
9516 package to be loaded in beamer, to produce an article from beamer
9517 slides. (Carsten Gips)
9518 + Added support for `fontfamilies` structured variable
9519 (Artem Klevtsov).
9520 + Added hypersetup options (Jake Zimmerman).
9522 * LaTeX template:
9524 + Added dummy definition for `\institute`.
9525 This isn't a standard command, and we want to avoid a crash when
9526 `institute` is used with the default template.
9527 + Define default figure placement (Václav Haisman), since pandoc
9528 no longer includes `[htbp]` for figures. Users with custom templates
9529 will want to add this. See #3103.
9530 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
9531 Václav Haisman).
9533 * Moved template compiling/rendering code to a separate library.
9534 `doctemplates`. This allows the pandoc templating system to be
9535 used independently.
9537 * Text.Pandoc.Error: Fix out of index error in `handleError`
9538 (Matthew Pickering). The fix is to not try to show the exact line when
9539 it would cause an out-of-bounds error as a result of included files.
9541 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
9543 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
9544 addresses. Technically `**@user` is a valid email address, but if we
9545 allow things like this, we get bad results in markdown flavors
9546 that autolink raw email addresses (see #2940). So we exclude a few
9547 valid email addresses in order to avoid these more common bad cases.
9549 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
9550 emit the alt text, emphasized. This accords with what the ODT writer
9551 currently does. The user will still get a warning about a nonexistent
9552 image.
9554 * Fix example in API documentation (#3176, Thomas Weißschuh).
9556 * Tell where to get tarball in INSTALL (#3062).
9558 * Rename README to MANUAL.txt and add GitHub-friendly README.md
9559 (Albert Krewinkel, Kolen Cheung).
9561 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
9563 * MANUAL.txt:
9565 + Put note on structured vars in separate paragraph (#2148, Albert
9566 Krewinkel). Make it clearer that structured author variables require a
9567 custom template
9568 + Note that `--katex` works best with `html5` (#3077).
9569 + Fix the LaTeX and EPUB links in manual (Morton Fox).
9570 + Document `biblio-title` variable.
9572 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
9574 * Update KaTeX to v0.6.0 (Kolen Cheung).
9576 * Allow latest dependencies.
9578 * Use texmath 0.8.6.6 (#3040).
9580 * Allow http-client 0.4.30, which is the version in stackage lts.
9581 Previously we required 0.5.
9582 Remove CPP conditionals for earlier versions.
9584 * Remove support for GHC < 7.8 (Jesse Rosenthal).
9586 + Remove Compat.Monoid.
9587 + Remove an inline monad compatibility macro.
9588 + Remove Text.Pandoc.Compat.Except.
9589 + Remove directory compat.
9590 + Change constraint on mtl.
9591 + Remove unnecessary CPP condition in UTF8.
9592 + Bump base lower bound to 4.7.
9593 + Remove 7.6 build from .travis.yaml.
9594 + Bump supported ghc version in CONTRIBUTING.md.
9595 + Add note about GHC version support to INSTALL.
9596 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
9597 + Remove TagSoup compat.
9598 + Add EOL note to time compat module. Because time 1.4 is a boot library
9599 for GHC 7.8, we will support the compatibility module as long as we
9600 support 7.8. But we should be clear about when we will no longer need
9601 it.
9602 + Remove blaze-html CPP conditional.
9603 + Remove unnecessary CPP in custom Prelude.
9605## pandoc 1.17.2 (2016-07-17)
9607 * Added Zim Wiki writer, template and tests. `zimwiki` is now
9608 a valid output format. (Alex Ivkin)
9610 * Changed email-obfuscation default to no obfuscation (#2988).
9611 + `writerEmailObfuscation` in `defaultWriterOptions` is now
9612 `NoObfuscation`.
9613 + the default for the command-line `--email-obfuscation` option is
9614 now `none`.
9616 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
9618 * Org writer:
9620 + Support arbitrary raw inlines (Albert Krewinkel).
9621 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
9622 parlance) to be included as `@@format:raw foreign format text@@`.
9623 + Improve Div handling (Albert Krewinkel). Div blocks handling is
9624 changed to make the output look more like idiomatic org mode:
9625 - Div-wrapped content is output as-is if the div's attribute is the
9626 null attribute.
9627 - Div containers with an id but neither classes nor key-value pairs
9628 are unwrapped and the id is added as an anchor.
9629 - Divs with classes associated with greater block elements are
9630 wrapped in a `#+BEGIN`...`#+END` block.
9631 - The old behavior for Divs with more complex attributes is kept.
9633 * HTML writer: Better support for raw LaTeX environments (#2758).
9634 Previously we just passed all raw TeX through when MathJax
9635 was used for HTML math. This passed through too much.
9636 With this patch, only raw LaTeX environments that MathJax
9637 can handle get passed through.
9638 This patch also causes raw LaTeX environments to be treated
9639 as math, when possible, with MathML and WebTeX output.
9641 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
9642 (#2993). Markdown line breaks involve a newline, and simple and pipe
9643 tables can't contain one.
9645 * Make --webtex work with the Markdown writer (#1177).
9646 This is a convenient option for people using
9647 websites whose Markdown flavors don't provide for math.
9649 * Docx writer:
9651 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
9652 We treat display math like block quotes, and apply FirstParagraph style
9653 to paragraphs that follow them. These can be styled as the user
9654 wishes. (But, when the user is using indentation, this allows for
9655 paragraphs to continue after display math without indentation.)
9656 + Use actual creation time as doc prop (Jesse Rosenthal).
9657 Previously, we had used the user-supplied date, if available, for Word's
9658 document creation metadata. This could lead to weird results, as in
9659 cases where the user post-dates a document (so the modification might be
9660 prior to the creation). Here we use the actual computer time to set the
9661 document creation.
9663 * LaTeX writer:
9665 + Don't URI-escape image source (#2825). Usually this is a local file,
9666 and replacing spaces with `%20` ruins things.
9667 + Allow 'standout' as a beamer frame option (#3007).
9668 `## Slide title {.standout}`.
9670 * RST reader: Fixed links with no explicit link text. The link
9671 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
9672 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
9673 Closes Debian #828167 -- reported by Christian Heller.
9675 * Textile reader:
9677 + Fixed attributes (#2984). Attributes can't be followed by
9678 a space. So, `_(class)emph_` but `_(noclass) emph_`.
9679 + Fixed exponential parsing bug (#3020).
9680 + Fix overly aggressive interpretation as images (#2998).
9681 Spaces are not allowed in the image URL in textile.
9683 * LaTeX reader:
9685 + Fix `\cite` so it is a NormalCitation not AuthorInText.
9686 + Strip off double quotes around image source if present (#2825).
9687 Avoids interpreting these as part of the literal filename.
9689 * Org reader:
9691 + Add semicolon to list of special chars (Albert Krewinkel)
9692 Semicolons are used as special characters in citations syntax. This
9693 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
9694 suffix]`. Previously, parsing would have failed unless there was a space
9695 or other special character as the last <prefix> character.
9696 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
9697 A specification for an official Org-mode citation syntax was drafted by
9698 Richard Lawrence and enhanced with the help of others on the orgmode
9699 mailing list. Basic support for this citation style is added to the
9700 reader.
9701 + Support arbitrary raw inlines (Albert Krewinkel).
9702 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
9703 parlance) to be included as `@@format:raw foreign format text@@`.
9704 + Remove partial functions (Albert Krewinkel, #2991).
9705 Partial functions like `head` lead to avoidable errors and should be
9706 avoided. They are replaced with total functions.
9707 + Support figure labels (Albert Krewinkel, #2496, #2999).
9708 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
9709 respective image. This allows e.g. the LaTeX to add proper `\label`
9710 markup.
9711 + Improve tag and properties type safety (Albert Krewinkel).
9712 Specific newtype definitions are used to replace stringly typing of tags
9713 and properties. Type safety is increased while readability is improved.
9714 + Parse as headlines, convert to blocks (Albert Krewinkel).
9715 Emacs org-mode is based on outline-mode, which treats documents as trees
9716 with headlines are nodes. The reader is refactored to parse into a
9717 similar tree structure. This simplifies transformations acting on
9718 document (sub-)trees.
9719 * Refactor comment tree handling (Albert Krewinkel).
9720 Comment trees were handled after parsing, as pattern matching on lists
9721 is easier than matching on sequences. The new method of reading
9722 documents as trees allows for more elegant subtree removal.
9723 * Support archived trees export options (Albert Krewinkel).
9724 Handling of archived trees can be modified using the `arch` option.
9725 Archived trees are either dropped, exported completely, or collapsed to
9726 include just the header when the `arch` option is nil, non-nil, or
9727 `headline`, respectively.
9728 * Put export setting parser into module (Albert Krewinkel).
9729 Export option parsing is distinct enough from general block parsing to
9730 justify putting it into a separate module.
9731 * Support headline levels export setting (Albert Krewinkel).
9732 The depths of headlines can be modified using the `H` option. Deeper
9733 headlines will be converted to lists.
9734 * Replace ugly code with view pattern (Albert Krewinkel).
9735 Some less-than-smart code required a pragma switching of overlapping
9736 pattern warnings in order to compile seamlessly. Using view patterns
9737 makes the code easier to read and also doesn't require overlapping
9738 pattern checks to be disabled.
9739 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
9740 Org rules for allowed characters before or after markup chars were not
9741 checked for verbatim text. This resultet in wrong parsing outcomes of
9742 if the verbatim text contained e.g. space enclosed markup characters as
9743 part of the text (`=is_substr = True=`). Forcing the parser to update
9744 the positions of allowed/forbidden markup border characters fixes this.
9746 * LaTeX template: fix for obscure hyperref/xelatex issue.
9747 Here's a minimal case:
9749 \documentclass[]{article}
9750 \usepackage{hyperref}
9751 \begin{document}
9752 \section{\%á}
9753 \end{document}
9755 Without this change, this fails on the second invocation of xelatex.
9756 This affects inputs this like `# %á` with pdf output via xelatex.
9758 * trypandoc: call results 'html' instead of 'result'.
9759 This is for better compatibility with babelmark2.
9761 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
9762 MultiMarkdown was only mentioned as a supported Markdown dialect but not
9763 as a possible input or output format. A brief mention is added
9764 everywhere the other supported markdown dialects are mentioned.
9766 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
9767 Raw HTML is kept when the output format is Emacs Org mode.
9769 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
9771 * Text.Pandoc.Shared:
9773 + Introduce blocksToInlines function (Jesse Rosenthal).
9774 This is a lossy function for converting `[Block] -> [Inline]`. Its main
9775 use, at the moment, is for docx comments, which can contain arbitrary
9776 blocks (except for footnotes), but which will be converted to spans.
9777 This is, at the moment, pretty useless for everything but the basic
9778 `Para` and `Plain` comments. It can be improved, but the docx reader
9779 should probably emit a warning if the comment contains more than this.
9780 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
9781 + Add further formats for `normalizeDate` (Jesse Rosenthal).
9782 We want to avoid illegal dates -- in particular years with greater than
9783 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
9784 `%Y%m`, and finally `%Y`.
9785 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
9786 We only allow years between 1601 and 9999, inclusive. The ISO 8601
9787 actually says that years are supposed to start with 1583, but MS Word
9788 only allows 1601-9999. This should stop corrupted word files if the date
9789 is out of that range, or is parsed incorrectly.
9790 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
9791 Previously we parsed a list of dates, took the first one, and then
9792 tested its year range. That meant that if the first one failed, we
9793 returned nothing, regardless of what the others did. Now we test for
9794 sanity before running `msum` over the list of Maybe values. Anything
9795 failing the test will be Nothing, so will not be a candidate.
9797 * Docx reader:
9799 + Add simple comment functionality. (Jesse Rosenthal).
9800 This adds simple track-changes comment parsing to the docx reader. It is
9801 turned on with `--track-changes=all`. All comments are converted to
9802 inlines, which can list some information. In the future a warning will be
9803 added for comments with formatting that seems like it will be excessively
9804 denatured. Note that comments can extend across blocks. For that reason
9805 there are two spans: `comment-start` and `comment-end`. `comment-start`
9806 will contain the comment. `comment-end` will always be empty. The two
9807 will be associated by a numeric id.
9808 + Enable warnings in top-level reader (Jesse Rosenthal).
9809 Previously we had only allowed for warnings in the parser. Now we allow
9810 for them in the `Docx.hs` as well. The warnings are simply concatenated.
9811 + Add warning for advanced comment formatting. (Jesse Rosenthal).
9812 We can't guarantee we'll convert every comment correctly, though we'll
9813 do the best we can. This warns if the comment includes something other
9814 than Para or Plain.
9815 + Add tests for warnings. (Jesse Rosenthal).
9816 + Add tests for comments (Jesse Rosenthal).
9817 We test for comments, using all track-changes options. Note that we
9818 should only output comments if `--track-changes=all`. We also test for
9819 emitting warnings if there is complicated formatting.
9821 * README: update to include track-changes comments. (Jesse Rosenthal)
9823 * Improved Windows installer - don't ignore properties set on command-line.
9824 See #2708. Needs testing to see if this resolves the issue.
9825 Thanks to @nkalvi.
9827 * Process markdown extensions on command line in L->R order (#2995).
9828 Previously they were processed, very unintuitively, in R->L
9829 order, so that `markdown-tex_math_dollars+tex_math_dollars`
9830 had `tex_math_dollars` disabled.
9832 * Added `secnumdepth` variable to LaTeX template (#2920).
9834 * Include table of contents in README.html in Windows package.
9836 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
9837 In Writers.Shared, we strip leading and trailing spaces for display
9838 math. Since SoftBreak's are treated as spaces, we should strip those
9839 too.
9841 * beamer, latex templates: pass biblatexoptions directly in package load.
9842 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
9844 * CPP workaround for deprecation of `parseUrl` in http-client.
9846 * Removed some redundant class constraints.
9848 * make_oxs_package.sh - use OSX env variable.
9850 * Added `winpkg` target to Makefile. This downloads the windows package
9851 from appveyor and signs it using the key.
9853 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
9854 Raw TeX is kept verbatim when the output format is Emacs Org mode.
9856 * Support math with haddock-library >= 1.4.
9858 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
9859 wouldn't accept the package.
9861 * Update library dependency versions.
9863## pandoc 1.17.1 (2016-06-04)
9865 * New output format: `docbook5` (Ivo Clarysse).
9867 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
9868 (API change).
9870 * Org writer:
9872 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
9873 This allows header attributes to be added to org documents in the form
9874 of `:PROPERTIES:` drawers. All available attributes are stored as
9875 key/value pairs. This reflects the way the org reader handles
9876 `:PROPERTIES:` blocks.
9877 + Add drawer capability (Carlos Sosa). For the implementation of the
9878 Drawer element in the Org Writer, we make use of a generic Block
9879 container with attributes. The presence of a `drawer` class defines
9880 that the `Div` constructor is a drawer. The first class defines the
9881 drawer name to use. The key-value list in the attributes defines
9882 the keys to add inside the Drawer. Lastly, the list of Block elements
9883 contains miscellaneous blocks elements to add inside of the Drawer.
9884 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
9885 reserved for internal use by Org-mode and should not be used.
9886 The `CUSTOM_ID` property is to be used instead, it is converted to the
9887 `ID` property for certain export format.
9889 * LaTeX writer:
9891 + Ignore `--incremental` unless output format is beamer (#2843).
9892 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
9893 Allow for optional argument in square brackets.
9894 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
9895 This allows one to access the hyphenation patterns in CTAN's
9896 hyph-utf8.
9897 + Add missing languages from hyph-utf8 (Andrew Dunning).
9898 + Improve use of `\strut` with `\minipage` inside tables
9899 (Jose Luis Duran). This improves spacing in multiline
9900 tables.
9901 + Use `{}` around options containing special chars (#2892).
9902 + Avoid lazy `foldl`.
9903 + Don't escape underscore in labels (#2921). Previously they were
9904 escaped as `ux5f`.
9905 + brazilian -> brazil for polyglossia (#2953).
9907 * HTML writer: Ensure mathjax link is added when math appears in footnote
9908 (#2881). Previously if a document only had math in a footnote, the
9909 MathJax link would not be added.
9911 * EPUB writer: set `navpage` variable on nav page.
9912 This allows templates to treat it differently.
9914 * DocBook writer:
9916 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
9917 + Properly handle `ulink`/`link` (Ivo Clarysse).
9919 * EPUB reader:
9921 + Unescape URIs in spine (#2924).
9922 + EPUB reader: normalise link id (Mauro Bieg).
9924 * Docx Reader:
9926 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
9927 `moveTo` and `moveFrom` are track-changes tags that are used when a
9928 block of text is moved in the document. We now recognize these tags and
9929 treat them the same as `insert` and `delete`, respectively. So,
9930 `--track-changes=accept` will show the moved version, while
9931 `--track-changes=reject` will show the original version.
9932 + Tests for track-changes moving (Jesse Rosenthal).
9934 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
9935 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
9936 would error out if zip-archive failed. We change the archive extraction
9937 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
9939 * Markdown, HTML readers: be more forgiving about unescaped `&` in
9940 HTML (#2410). We are now more forgiving about parsing invalid HTML with
9941 unescaped `&` as raw HTML. (Previously any unescaped `&`
9942 would cause pandoc not to recognize the string as raw HTML.)
9944 * Markdown reader:
9946 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
9947 + Added `-s` to markdown-reader-more test.
9949 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
9950 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
9952 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
9953 (roblabla).
9955 * RST reader: Support `:class:` option for code block in RST reader
9956 (Sidharth Kapur).
9958 * Org reader (all Albert Krewinkel, except where noted otherwise):
9960 + Stop padding short table rows.
9961 Emacs Org-mode doesn't add any padding to table rows. The first
9962 row (header or first body row) is used to determine the column count,
9963 no other magic is performed.
9964 + Refactor rows-to-table conversion. This refactors
9965 the codes conversing a list table lines to an org table ADT.
9966 The old code was simplified and is now slightly less ugly.
9967 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
9968 This fixes Org mode parsing of some corner cases regarding empty cells
9969 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
9970 two empty cells, but would be parsed as a single cell containing a pipe
9971 character. Empty rows where parsed as alignment rows and dropped from
9972 the output.
9973 + Fix spacing after LaTeX-style symbols.
9974 The org-reader was dropping space after unescaped LaTeX-style symbol
9975 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
9976 instead. This seems to be because the LaTeX-reader treats the
9977 command-terminating space as part of the command. Dropping the trailing
9978 space from the symbol-command fixes this issue.
9979 + Print empty table rows. Empty table rows should not
9980 be dropped from the output, so row-height is always set to be at least 1.
9981 + Move parser state into separate module.
9982 The org reader code has become large and confusing. Extracting smaller
9983 parts into submodules should help to clean things up.
9984 + Add support for sub/superscript export options.
9985 Org-mode allows to specify export settings via `#+OPTIONS` lines.
9986 Disabling simple sub- and superscripts is one of these export options,
9987 this options is now supported.
9988 + Support special strings export option Parsing of special strings
9989 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
9990 option.
9991 + Support emphasized text export option. Parsing of emphasized text can
9992 be toggled using the `*` option. This influences parsing of text marked
9993 as emphasized, strong, strikeout, and underline. Parsing of inline math,
9994 code, and verbatim text is not affected by this option.
9995 + Support smart quotes export option. Reading of smart quotes can be
9996 toggled using the `'` option.
9997 + Parse but ignore export options. All known export options are parsed
9998 but ignored.
9999 + Refactor block attribute handling. A parser state attribute was used
10000 to keep track of block attributes defined in meta-lines. Global state
10001 is undesirable, so block attributes are no longer saved as part of the
10002 parser state. Old functions and the respective part of the parser state
10003 are removed.
10004 + Use custom `anyLine`. Additional state changes need to be made after
10005 a newline is parsed, otherwise markup may not be recognized correctly.
10006 This fixes a bug where markup after certain block-types would not be
10007 recognized.
10008 + Add support for `ATTR_HTML` attributes (#1906).
10009 Arbitrary key-value pairs can be added to some block types using a
10010 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
10011 when exporting to HTML, but since we cannot make this distinction here,
10012 the attributes are always added. The functionality is now supported
10013 for figures.
10014 + Add `:PROPERTIES:` drawer support (#1877).
10015 Headers can have optional `:PROPERTIES:` drawers associated with them.
10016 These drawers contain key/value pairs like the header's `id`. The
10017 reader adds all listed pairs to the header's attributes; `id` and
10018 `class` attributes are handled specially to match the way `Attr` are
10019 defined. This also changes behavior of how drawers of unknown type
10020 are handled. Instead of including all unknown drawers, those are not
10021 read/exported, thereby matching current Emacs behavior.
10022 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
10023 + Respect drawer export setting. The `d` export option can be used
10024 to control which drawers are exported and which are discarded.
10025 Basic support for this option is added here.
10026 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
10027 Also fix up tab handling for leading whitespace in code blocks.
10028 + Support new syntax for export blocks. Org-mode version 9
10029 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
10030 where `<FORMAT>` is the format of the block's content, the new
10031 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
10032 supported.
10033 + Refactor `BEGIN...END` block parsing.
10034 + Fix handling of whitespace in blocks, allowing content to be indented
10035 less then the block header.
10036 + Support org-ref style citations. The *org-ref* package is an
10037 org-mode extension commonly used to manage citations in org
10038 documents. Basic support for the `cite:citeKey` and
10039 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
10040 + Split code into separate modules, making for cleaner code and
10041 better decoupling.
10043 * Added `docbook5` template.
10045 * `--mathjax` improvements:
10047 + Use new CommonHTML output for MathJax (updated default MathJax URL,
10048 #2858).
10049 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
10050 This is designed for cases where the input is always TeX and maximal
10051 conformity with TeX is desired. It seems to be smaller and load faster
10052 than what we used before. See #2858.
10053 + Load the full MathJax config to maximize loading speed (KolenCheung).
10055 * Bumped upper version bounds to allow use of latest packages
10056 and compilation with ghc 8.
10058 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
10059 #2310, #2310, #2824). This fixes behavior of roots, e.g.
10060 `\sqrt[3]{x}`, and issues with sub/superscript positioning
10061 and matrix column alignment in docx.
10063 * README:
10065 + Clarified documentation of `implicit_header_references` (#2904).
10066 + Improved documentation of `--columns` option.
10068 * Added appveyor setup, with artefacts (Jan Schulz).
10070 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
10072 * LaTeX template: support for custom font families (vladipus).
10073 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
10074 can find some other usages. Example usage in YAML metadata:
10076 fontfamilies:
10077 - name: \cyrillicfont
10078 font: Liberation Serif
10079 - name: \cyrillicfonttt
10080 options: Scale=MatchLowercase
10081 font: Liberation
10083 * Create unsigned msi as build artifact in appveyor build.
10085 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
10089## pandoc 1.17.0.3 (2016-03-24)
10091 * LaTeX writer: Fixed position of label in figures (#2813).
10092 Previously the label wasn't in the right place, and `\ref`
10093 wouldn't work properly.
10094 * Added .tei test files to pandoc.cabal so they'll be included
10095 in tarball (#2811).
10096 * Updated copyright dates.
10098## pandoc 1.17.0.2 (2016-03-23)
10100 * Fixed serious regression in `htmlInBalanced`, which caused
10101 newlines to be omitted in some raw HTML blocks in Markdown
10102 (#2804).
10104## pandoc 1.17.0.1 (2016-03-21)
10106 * File scope is no longer used when there are no input files (i.e.,
10107 when input comes from stdin). Previously file scope was triggered
10108 when the `json` reader was specified and input came from `stdin`,
10109 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
10110 thanks to Fedor Sheremetyev for calling the bug to our attention.)
10111 * Improved documentation of templates (#2797).
10113## pandoc 1.17 (2016-03-20)
10115 * Added `--file-scope` option (Jesse Rosenthal).
10116 By default pandoc operates on multiple files by first concatenating
10117 them (around extra line breaks) and then processing the joined file. So
10118 it only parses a multi-file document at the document scope. This has the
10119 benefit that footnotes and links can be in different files, but for
10120 some purposes it is useful to parse the individual files first
10121 and then combine their outputs (e.g. when the files use footnotes
10122 or links with the same labels). The `--file-scope` option causes
10123 pandoc to parse the files first, and then combine the parsed output,
10124 instead of combining before parsing. `--file-scope` is selected
10125 automatically for binary input files (which cannot be concatenated)
10126 and for pandoc json.
10128 * Add TEI Writer (Chris Forster) and `tei` output format.
10130 * Added a general `ByteStringReader` with warnings, used by the docx
10131 reader (API change, Jesse Rosenthal).
10133 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
10135 * Changed type of `Shared.uniqueIdent` argument from
10136 `[String]` to `Set String`. This avoids performance problems in documents
10137 with many identically named headers (API change, #2671).
10139 * Removed `tex_math_single_backslash` from `markdown_github` options
10140 (#2707).
10142 * Make language extensions as well as full language names
10143 trigger syntax highlighting. For example, `py` will now work as
10144 well as `python` (jgm/highlighting-kate#83).
10146 * Added `institute` variable to latex, beamer templates (Fraser
10147 Tweedale, Josef Svenningsson).
10149 * Docx reader (Jesse Rosenthal):
10151 + Handle alternate content. Some word functions (especially graphics)
10152 give various choices for content so there can be backwards compatibility.
10153 + Don't turn numbered headers into lists.
10154 + Docx Reader: Add state to the parser, for warnings
10155 + Update feature checklist in source code.
10156 + Get rid of `Modifiable` typeclass.
10157 + Add tests for adjacent hyperlinks.
10158 + Add a "Link" modifier to `Reducible`. We want to make sure that
10159 links have their spaces removed, and are appropriately smushed
10160 together (#2689).
10162 * HTML reader:
10164 + Fixed behavior of base tag (#2777).
10165 If the base path does not end with slash, the last component
10166 will be replaced. E.g. base = `http://example.com/foo`
10167 combines with `bar.html` to give `http://example.com/bar.html`.
10168 If the href begins with a slash, the whole path of the base
10169 is replaced. E.g. base = `http://example.com/foo/` combines
10170 with `/bar.html` to give `http://example.com/bar.html`.
10171 + Rewrote `htmlInBalanced`. This version avoids an exponential
10172 performance problem with `<script>` tags, and it should be faster
10173 in general (#2730).
10174 + Properly handle an empty cell in a simple table (#2718).
10175 + Handle multiple `<meta>` tags with same name. Put them in a list
10176 in the metadata so they are all preserved, rather than (as before)
10177 throwing out all but one..
10179 * Markdown reader:
10181 + Improved pipe table parsing (#2765).
10182 + Allow `+` separators in pipe table cells. We already allowed
10183 them in the header, but not in the body rows, for some reason.
10184 This gives compatibility with org-mode tables.
10185 + Don't cross line boundary parsing pipe table row.
10186 Previously an Emph element could be parsed across the newline
10187 at the end of the pipe table row.
10188 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
10189 performance (#2730).
10190 + Fixed bug with smart quotes around tex math.
10192 * LaTeX reader:
10194 + Handle interior `$` characters in math (#2743). For example,
10195 `$$\hbox{$i$}$$`.
10196 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
10197 This gives better results when people write e.g. `\TeX{}` in Markdown.
10198 + Properly handle LaTeX "math" environment as inline math (#2171).
10200 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
10201 Closes #2674.
10203 * Org reader (Albert Krewinkel):
10205 + Prefix even empty figure names with "fig:" (#2643). The
10206 convention used by pandoc for figures is to mark them by prefixing
10207 the name with `fig:`. The org reader failed to do this if a figure
10208 had no name.
10209 + Refactor link-target processing (#2684).
10211 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
10212 Thanks to @c-foster.
10214 * HTML writer: Don't include alignment attribute for default table columns.
10215 Previously these were given "left" alignment. Better to leave off
10216 alignment attributes altogether (#2694).
10218 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
10219 better compatibility with other Markdown flavors (Henrik Tramberend).
10221 * LaTeX writer:
10223 + Use image identifier to create a label and hypertarget for
10224 figures (Mauro Bieg).
10225 + Avoid double toprule in headerless table with caption (#2742).
10226 + Clean up options parser (Jesse Rosenthal).
10227 + Treat `memoir` template with `article` option as article, instead
10228 of treating all `memoir` templates as books.
10229 + Allow more flexible table alignment (Henrik Tramberend, #2665).
10230 New default is not to include `[c]` option (which is the default
10231 anyway if no positioning is specified). Now LaTeX emplates can
10232 control the overall table alignment in a document by setting the
10233 longtable length variables `LTleft` and `LTright`. For example,
10234 `\setlength\LTleft\parindent\setlength\LTright\fill`
10235 will create left-aligned tables that respect paragraph indentation.
10237 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
10239 * Org writer - pass through RawInline with format "org".
10241 * DokuWiki writer: use `$$` for display math.
10243 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
10245 * Make protocol-relative URIs work again (#2737).
10247 * make_osx_package.sh: Use env variable for developer id certs.
10249 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
10250 problems (#2734).
10252 * Allow `zip-archive` 0.3.
10254 * Allow `aeson` 0.11.
10256## pandoc 1.16.0.2 (2016-01-12)
10258 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
10260 * Fixed regression in latex smart quote parsing (#2645).
10261 In cases where a match was not found for a quote, everything
10262 from the open quote to the end of the paragraph was being dropped.
10264## pandoc 1.16.0.1 (2016-01-10)
10266 * Fixed regression with `--latex-engine` (#2618). In 1.16
10267 `--latex-engine` raises an error if a full path is given.
10269 * Org reader: Fix function dropping subtrees tagged `:noexport`
10270 (Albert Krewinkel, #2628):
10272 * Markdown reader: renormalize table column widths if they exceed 100%
10273 (#2626).
10275 * Textile reader: don't allow block HTML tags in inline contexts.
10276 The reader previously did allow this, following redcloth,
10277 which happily parses
10279 Html blocks can be <div>inlined</div> as well.
10283 <p>Html blocks can be <div>inlined</div> as well.</p>
10285 This is invalid HTML. The above sample now produces;
10287 <p>Html blocks can be</p>
10288 <div>
10289 <p>inlined</p>
10290 </div>
10291 <p>as well.</p>
10293 * Improved default template lookup for custom lua scripts (#2625).
10294 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
10295 pandoc would look for the template in
10296 `~/.pandoc/templates/default./path/to/lua/script.lua`.
10297 With this change it will look in the more reasonable
10298 `~/.pandoc/templates/default.script.lua`. This makes it possible to
10299 store default templates for custom writers.
10301 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
10302 (#2615).
10304 * LaTeX writer: restore old treatment of Span (#2624). A Span is
10305 now rendered with surrounding `{}`, as it was before 1.16.
10307 * Entity handling fixes: improved handling of entities like
10308 `&lang;` that require a trailing semicolon. Allow uppercase
10309 `x` in numerical hexadecimal character references, working
10310 around a tagsoup bug.
10312 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
10313 memory use on compile. With aeson 0.10 we were getting an out of
10314 memory error on a 2GB Ubuntu 64-bit VM.
10316 * Improved deb package creation script. Made `DPKGVER` work.
10317 Renamed `COMMIT` to `TREE`. You should now be able to do
10318 `TREE=1.16.0.1 DPKGVER=2 make deb`.
10321## pandoc 1.16 (2016-01-02)
10323 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
10325 + Added syntax for link and image attributes to pandoc's Markdown.
10326 + Updated readers and writers to use link and image attributes
10327 when appropriate.
10328 + Support image attributes in Docx, Textile, RST readers.
10330 * Renamed link attribute extensions. The old `link_attributes` is
10331 now `mmd_link_attributes`, and `link_attributes` now enables the
10332 new pandoc-style link and image attributes (API change).
10333 Note: this change could break some existing workflows.
10335 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
10336 Added threefold wrapping option.
10338 + Command line option: deprecated `--no-wrap`, added
10339 `--wrap=[auto|none|preserve]`
10340 + Added `WrapOption`, exported from `Text.Pandoc.Options`
10341 + Changed type of `writerWrapText` in `WriterOptions` from
10342 `Bool` to `WrapOption`.
10343 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
10344 + Supported `SoftBreak` in readers and writers.
10346 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
10347 change, Mauro Bieg).
10349 * Added `--dpi` command-line option (Mauro Bieg).
10351 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
10352 This change makes `--no-tex-ligatures` affect the LaTeX reader
10353 as well as the LaTeX and ConTeXt writers. If it is used,
10354 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
10355 literally, rather than parsing ligatures for quotation marks
10356 and dashes. And the LaTeX writer will print unicode quotation
10357 mark and dash characters literally, rather than converting
10358 them to the standard ASCII ligatures. Note that `--smart` has
10359 no effect on the LaTeX reader. `--smart` is still the default
10360 for all input formats when LaTeX or ConTeXt is the output format,
10361 *unless* `--no-tex-ligatures` is used.
10363 Some examples to illustrate the logic:
10365 ```
10366 % echo "'hi'" | pandoc -t latex
10367 `hi'
10368 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
10369 'hi'
10370 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
10371 ‘hi’
10372 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
10373 <p>'hi'</p>
10374 % echo "'hi'" | pandoc -f latex
10375 <p>’hi’</p>
10376 ```
10378 * Removed deprecated options `--offline` and `--html5`.
10380 * Fixed language code for Czech (`cs` not `cz`) (#2597).
10382 * Implemented `east_asian_line_breaks` extension (#2586).
10383 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
10384 to `Extension` (API change). This extension is like
10385 `ignore_line_breaks`, but smarter -- it only ignores line breaks
10386 between two East Asian wide characters. This makes it better suited
10387 for writing with a mix of East Asian and non-East Asian scripts.
10389 * Added support for PDF creation via `wkhtmltopdf`.
10390 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
10391 if you have math.) Margins can be set using the variables
10392 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
10393 Other styling can be done through CSS.
10395 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
10396 We were capturing final colons as in `[@foo: bar]`; the citation id
10397 was being parsed as `@foo:`.
10399 * ICML writer:
10401 + Fixed image syntax for local files (#2589).
10402 + Changed type of `writeICML` (Mauro Bieg).
10403 API change: It is now `WriterOptions -> Pandoc -> IO String`.
10404 Also handle new image attributes.
10405 + Intersperse line breaks instead of appending them to
10406 every `ParagraphStyleRange` (Mauro Bieg, #2501).
10407 + Add `Cite` style to citations (Mauro Bieg).
10408 + Added figure handling (#2590, Mauro Bieg).
10409 + Better handling of math. Instead of just printing the raw tex,
10410 we now try to fake it with unicode characters.
10412 * HTML writer: Include `example` class for example lists (#2524).
10414 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
10416 + Support for percentage widths/heights
10417 + Use `Attr` instead of title to get dimensions from ODT walker
10418 to `writeOpenDocument`.
10420 * AsciiDoc writer:
10422 + Support anchors in spans and divs with id elements
10423 (jgm/pandoc-citeproc#143).
10424 + Fixed code blocks (#1861).
10426 * Haddock writer: omit formatting inside links, which isn't supported
10427 by Haddock (#2515).
10429 * MediaWiki writer: Fixed spacing issues in table cells.
10431 + Start cell on new line unless it's a single Para or Plain
10432 (#2606).
10433 + For single Para or Plain, insert a space after the `|` to
10434 avoid problems when the text begins with a character like
10435 `-` (#2604).
10437 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
10439 * LaTeX writer:
10441 + Add support for GAP highlighting using listings (Raniere Silva).
10442 + Consider `header-includes` content as well as templates
10443 when determining whether to use csquotes (Andreas Lööw).
10444 + Create defaults for geometry using `margin-left` etc.
10445 If `geometry` has no value, but `margin-left`, `margin-right`,
10446 `margin-top`, and/or `-margin-bottom` are given, a default value
10447 for `geometry` is created from these. Note that these variables
10448 already affect PDF production via HTML5 with `wkhtmltopdf`.
10450 * ConTeXt writer: set default layout based on `margin-left`, etc.
10451 This sets up `\setuplayout` based on the variables `margin-left`,
10452 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
10453 is given.
10455 * Docx writer: better handling of PDF images. Previously we tried
10456 to get the image size from the image even if an explicit size was
10457 specified. Since we still can't get image size for PDFs, this made
10458 it impossible to use PDF images in docx. Now we don't try to get
10459 the image size when a size is already explicitly specified.
10461 * Markdown writer: use raw HTML for link/image attributes when
10462 the `link_attributes` extension is unset and `raw_html` is set (#2554).
10464 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
10466 * LaTeX reader:
10468 + Improved smart quote parsing (#2555). This fixes redering of
10469 unmatched quotes.
10470 + Use curly quotes for unmatched ` (#2555).
10471 + Allow blank space between braced arguments of commands (#2592).
10473 * Markdown reader:
10475 + Improved pipe table relative widths. Previously pipe table
10476 columns got relative widths (based on the header underscore lines)
10477 when the source of one of the rows was greater in width than the
10478 column width. This gave bad results in some cases where much of
10479 the width of the row was due to nonprinting material (e.g. link
10480 URLs). Now pandoc only looks at printable width (the width of a
10481 plain string version of the source), which should give better results.
10482 Thanks to John Muccigrosso for bringing up the issue.
10483 + Fixed parsing bug with macros. Previously macro definitions in
10484 indented code blocks were being parsed as macro definitions, not code.
10486 * Textile reader: skip over attribute in image source (#2515).
10487 We don't have a place yet for styles or sizes on images, but
10488 we can skip the attributes rather than incorrectly taking them
10489 to be part of the filename.
10491 * Docx reader: Handle dummy list items (Jesse Rosenthal).
10492 These come up when people create a list item and then delete the
10493 bullet. It doesn't refer to any real list item, and we used to ignore
10494 it.
10496 * CommonMark reader/writer rewritten to use latest `cmark`.
10498 * Fixed Emoji character definitions (#2523). There were many bugs in the
10499 definitions.
10501 * `Text.Pandoc.CSS`:
10503 + Added `pickStylesToKVs` function to extract multiple properties at
10504 once (API change, Mauro Bieg).
10505 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
10507 * `trypandoc`: sort drop-down lists.
10509 * Beamer template:
10511 + Made `\euro` conditional on presence of character.
10512 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
10513 + Moved `header-includes` before setting of title (Thomas Hodgson),
10514 to match the LaTeX template (jgm/pandoc-templates#168).
10515 + Added `section-titles` variable (defaults to true)
10516 to enable/suppress section title pages in beamer
10517 slide shows (Thomas Hodgson).
10518 + Moved beamer themes after fonts, so that themes can
10519 change fonts. (Previously the fonts set were being
10520 clobbered by lmodern.sty.) (Thomas Hodgson).
10522 * Beamer/LaTeX template changes (Thomas Hodgson):
10523 + Added `thanks` variable
10524 + Use `parskip.sty` when `indent` isn't set (fall back to using
10525 `setlength` as before if `parskip.sty` isn't available).
10526 + Use `biblio-style` with biblatex.
10527 + Added `biblatexoptions` variable.
10529 * LaTeX template changes:
10531 + Added `paper` after `$papersize$` variable in latex template.
10532 Thus you can say `papersize: a4` and the latex will contain
10533 `a4paper`. This change may break some existing workflows; if
10534 you currently specify `a4paper`, you'll get `a4paperpaper` which
10535 is meaningless. However, the change seems worth it, as it will
10536 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
10537 and html->pdf via wkhtmltopdf.
10538 + Only pass options to color package if `colorlinks` is set
10539 (Andrew Dunning).
10540 + Make definition of `\euro` conditional in xelatex/lualatex,
10541 as it is already for pdflatex (Andrew Dunning).
10542 + Removed setting of `subject` in PDF metadata.
10543 This used to be set to the subtitle, but really the subtitle
10544 need not give the subject. Also, `subtitle` can contain formatting,
10545 so we'd need, at least, a plain text version for this.
10546 + Moved `header-includes` before setting of `\title`, `\author`,
10547 etc. This allows these macros to be redefined.
10548 + Use `\subtitle` command for `subtitle`, instead of tacking it
10549 on to the title as before. We give a no-op fallback definition if it
10550 is not defined. This change should produce much better results
10551 in classes that support `\subtitle`. With the default article
10552 class, which does not define `\subtitle`, subtitles will no
10553 longer be printed unless the user defines `\subtitle` and
10554 redefines `\maketitle`.
10555 + Moved redefinitions of `\paragraph` and `\subparagraph` to
10556 before header-includes.
10558 * Context template:
10560 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
10561 needed for things to work on ConTeXt stable from TeXLive 2015.
10562 + Revert use of `\setuphead` in title block (Andrew Dunning,
10563 Rik Kabel).
10565 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
10567 * Fixed man template so disabling hyphenation actually works.
10568 The command needs to come after .TH.
10570 * Added 'navigation' variable to beamer template (#2543).
10571 Valid values are `empty` (the default), `horizontal`, `vertical`,
10572 and `frame`. Note that this changes the default behavior from
10573 `horizontal` to `empty`. Closes #2543.
10575 * Added `toc` to HTML slide format templates (Andrew Dunning),
10576 so that `--toc` creates a contents slide.
10578 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
10580 * Allow pipe tables with no body rows (#2556).
10581 Previously this raised a runtime error.
10583 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
10584 as URL. The Haskell URI parsing routines will accept "C:" as a
10585 scheme, so we rule that out manually. This helps with
10586 `--self-contained` and absolute Windows paths.
10588 * Define a `meta-json` variable for all writers (#2019). This contains
10589 a JSON version of all the metadata, in the format selected for the
10590 writer. So, for example, to get just the YAML metadata, you can run
10591 pandoc with the following custom template: `$meta-json$`. The intent
10592 is to make it easier for static site generators and other tools to get
10593 at the metadata.
10595 * Document limitations of --self-contained (#2553).
10597 * Improved Citations section of README (#2551). Added information
10598 about `link-citations` and a link to the pandoc-citeproc man page.
10600 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
10601 in base < 4.6.
10603 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
10605 * Improved implicit pandoc-citeproc inclusion.
10606 The filter pandoc-citeproc is automatically used when
10607 `--bibliography` is specified on the command line, unless
10608 `--natbib` or `--biblatex` is used. However, previously this
10609 only worked if `--bibliography` was spelled out in full, and not
10610 if `--biblio` was used.
10612 * reveal.js: Interpret pauses correctly for all headers (#2530).
10613 Previously, when using headers below the slide level, pauses are left
10614 uninterpreted into pauses. In my opinion, unexpected behavior but
10615 intentional looking at the code.
10617 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
10619 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
10620 Bieg, API change).
10622 * ImageSize: Added functions for converting between image dimensions
10623 (Mauro Bieg).
10625 * Use lts-3.18 in stack.yaml. This avoids Windows build
10626 issues with the HTTP library.
10628 * Bump version bounds for dependencies.
10630## pandoc 1.15.2.1 (2015-11-16)
10632 * Added two missing test files, and `stack.yaml`, to
10633 `extra-source-files` so they're included in the source tarball.
10635 * reveal.js template: Fixed parallaxBackground options.
10636 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
10637 need integer values, not strings. (Vaughn Iverson)
10639## pandoc 1.15.2 (2015-11-15)
10641 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
10642 ConTeXt rather than LaTeX (#2463).
10644 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
10646 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
10647 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
10648 (API change).
10650 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
10651 parsing (#2469). Tightened up the inline HTML parser so it disallows
10652 TagWarnings.
10654 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
10656 * Org reader:
10658 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
10659 Paragraphs can be followed by lists, even if there is no blank line
10660 between the two blocks. However, this should only be true if the
10661 paragraph is not within a list, were the preceding block should be
10662 parsed as a plain instead of paragraph (to allow for compact lists).
10663 Thanks to @rgaiacs for bringing this up.
10664 + Allow toggling header args (Albert Krewinkel, #2269).
10665 Org-mode allows to skip the argument of a code block header argument if
10666 it's toggling a value. Argument-less headers are now recognized,
10667 avoiding weird parsing errors.
10668 + Fix markup parsing in headers (Albert Krewinkel, #2504).
10669 Markup as the very first item in a header wasn't recognized. This was
10670 caused by an incorrect parser state: positions at which inline markup
10671 can start need to be marked explicitly by changing the parser state.
10672 This wasn't done for headers. The proper function to update the state
10673 is now called at the beginning of the header parser, fixing this issue.
10674 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
10675 Smart quotes, ellipses, and dashes should behave like normal quotes,
10676 single dashes, and dots with respect to text markup parsing.
10677 + Require whitespace around definition list markers (#2518).
10678 This rule was not checked before, resulting in bugs with footnotes
10679 and some link types.
10681 * Markdown reader:
10683 + Pipe tables with long lines now get relative cell widths (#2471).
10684 If a pipe table contains a line longer than the column width (as set by
10685 `--columns` or 80 by default), relative widths are computed based on the
10686 widths of the separator lines relative to the column width. This should
10687 solve persistent problems with long pipe tables in LaTeX/PDF output, and
10688 give more flexibility for determining relative column widths in other
10689 formats, too. For narrower pipe tables, column widths of 0 are used,
10690 telling pandoc not to specify widths explicitly in output formats that
10691 permit this.
10692 + Improved parser for `mmd_title_block`. We now allow blank metadata
10693 fields. These were explicitly disallowed before.
10694 + Citation keys can now contain `://`, so URLs and DOIs can be used
10695 as citation keys (jgm/pandoc-citeproc#166).
10697 * Beamer template: fix incompatibility of section slides with natbib.
10698 Natbib (and presumably biblatex) bibliography commands create
10699 their own section. Since these are in frame environments,
10700 we have an incompatibility with the `\AtBeginSection` macro
10701 which creates a special frame when a new section occurs.
10702 (We can't have a frame inside another frame.) This change disables
10703 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
10704 bringing the problem to my attention. This supersedes #145. See
10705 discussion there.
10707 * Textile reader: don't do smart punctuation unless explicitly asked
10708 (#2480). Note that although smart punctuation is part of the textile
10709 spec, it's not always wanted when converting from textile
10710 to, say, Markdown. So it seems better to make this an option.
10712 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
10713 The `comment` environment is handled in a similar way to the
10714 `verbatim` environment, except that its content is discarded.
10716 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
10717 Jesse Rosenthal). This fixes a problem with links in notes.
10719 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
10720 (mb21). For LaTeX, also collect `lang` and `dir` attributes on spans and
10721 divs to set the `lang`, `otherlangs` and `dir` variables if they aren’t set
10722 already. See #895.
10724 * LaTeX writer:
10726 + Use proper command for `\textarabic` (mb21).
10727 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
10728 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
10729 to link to Div or Span elements. We now don't bother defining `\label`
10730 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
10731 + Avoid footnotes in list of figures (#1506).
10732 + Properly handle footnotes in captions (#1506).
10733 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
10734 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
10735 `toccolor` is set (#2508).
10737 * Textile writer: support start number in ordered lists (#2465).
10739 * OpenDocument writer: Allow customization of opendocument
10740 automatic styles. Automatic styles can now be inserted in the
10741 template, which now provides the enclosing `<office:automatic-styles>`
10742 tags (#2520).
10744 * Docx writer: insert space between footnote reference and note (#2527).
10745 This matches Word's default behavior.
10747 * EPUB writer: don't download linked media when `data-external` attribute
10748 set (#2473). By default pandoc downloads all linked media and includes it
10749 in the EPUB container. This can be disabled by setting `data-external` on
10750 the tags linking to media that should not be downloaded. Example:
10752 <audio controls="1">
10753 <source src="http://www.sixbarsjail.it/tmp/bach_toccata.mp3"
10754 type="audio/mpeg"></source>
10755 </audio>
10757 * HTML writer: use width on whole table if col widths sum to < 100%.
10758 Otherwise some browsers display the table with the columns
10759 separated far apart.
10761 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
10762 `abstract` (Andrew Dunning).
10764 * HTML-based templates (Andrew Dunning):
10766 + Use en dash instead of hyphen between title prefix and title.
10767 + Add `keywords` to metadata.
10768 + Add `lang`, `dir`, `quotes` where missing.
10769 + Always make author and date display conditional.
10770 + Updated dzslides template from source.
10772 * Man template: make "generated by" comment conditional.
10774 * LaTeX, Beamer templates:
10776 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
10777 filled by commands that make babel understand the polyglossia-style
10778 language directives (mb21, #137).
10779 + Improved formatting of conditionals; `$for$` is always provided to allow
10780 multiple options (Andrew Dunning, #141).
10781 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
10782 to improve support for LuaTeX (Andrew Dunning, #135).
10783 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
10784 - use same options for all LaTeX engines;
10785 - add `subtitle` and `keywords` to PDF metadata;
10786 - do not override `hyperref` link coloring without user input, effectively making
10787 the `hidelinks` option the default (removed as a separate variable);
10788 - link colors can be enabled (using a slightly darker version of the old
10789 defaults) using a new `colorlinks` variable, automatically used by
10790 the LaTeX writer when custom colors are specified;
10791 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
10792 `colorlinks`, and is only applied if `colorlinks` is disabled.
10794 * ConTeXt template (Andrew Dunning):
10796 + New variables for controlling styles: `linkstyle`, `linkcolor`,
10797 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
10798 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
10799 `monofont`, `mathfont`, `fontsize`.
10800 + Default template no longer supports MkII.
10801 + Improve writing of title block (suppressing numbering of first page).
10802 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
10803 + Support `subtitle`, `abstract`.
10804 + Support list of figures (`lof`), list of tables (`lot`).
10805 + Disable link styling by default.
10806 + Define styles for all section types.
10807 + Enable microtype.
10808 + Improved formatting of conditionals.
10810 * Beamer template: added code to prevent slide breaks inside paragraphs
10811 (#2422, thanks to Nick Bart). This will matter, in practice, only when
10812 `allowframebreaks` is used. It is especially helpful for bibliography
10813 slides.
10815 * OpenDocument template: Add `<office:automatic-styles>` tag around
10816 automatic styles. The writer now longer provides this (see #2520).
10818 * Restored Text.Pandoc.Compat.Monoid.
10820 * Do not export (<>) from custom Prelude. The Prelude now matches
10821 base 4.8 Prelude's API.
10823 * Don't use custom prelude with ghc 7.10. Use the custom prelude
10824 only for earlier versions. This change makes `stack ghci` and
10825 `cabal repl` work (#2503), at least with ghc 7.10.
10827 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
10828 This prevents problems building haddocks with "C" locale.
10830 * Change default for old-locale flag to False.
10832 * Use stack in deb, osx, and Windows package generators.
10834 * Added Vagrantfile for building deb in vm.
10835 This should help in automating binary package creation. 'make package'
10836 will make the package. 'make package COMMIT=blah' will make the package
10837 from commit blah.
10839 * README:
10841 + Consistent capitalization for pandoc and Markdown.
10842 + Fixed `auto_identifiers` examples (Benoit Schweblin).
10843 + Improved documentation of template variables (Andrew Dunning).
10845## pandoc 1.15.1 (2015-10-15)
10847 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
10848 and reexported from `Text.Pandoc` (Alex Vong). This allows
10849 writers to access it. (Alex Vong) (API change)
10851 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
10852 `subscripts` (#2401).
10854 * Added `odt` as input format (MarLinn). Added new module
10855 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
10856 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
10857 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
10858 Partly implemented features: Citations, Tables.
10860 * Markdown Reader:
10862 + Add basic tests for each header style (Ophir Lifshitz).
10863 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
10864 + Skip spaces in headers (Ophir Lifshitz).
10865 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
10866 `# Header {id="myid" class="foo bar"}`
10867 is now equivalent to `# Header {#myid .foo .bar}`.
10868 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
10869 (Kristof Bastiaensen)
10870 + Pipe tables: allow indented columns. Previously the left-hand column
10871 could not start with 4 or more spaces indent. This was inconvenient
10872 for right-aligned left columns. Note that the first (header column)
10873 must still have 3 or fewer spaces indentation, or the table will be
10874 treated as an indented code block.
10875 + Fix regression: allow HTML comments containing `--`.
10876 Technically this isn't allowed in an HTML comment, but
10877 we've always allowed it, and so do most other implementations.
10878 It is handy if e.g. you want to put command line arguments
10879 in HTML comments.
10881 * LaTeX reader:
10883 + Don't eat excess whitespace after macros with only optional
10884 arguments (#2446).
10885 + Support longtable (#2411).
10886 + Implement `\Cite` (#2335).
10887 + Support abstract environment. The abstract populates an
10888 `abstract` metadata field.
10889 + Properly handle booktabs lines. Lines aren't part of the
10890 pandoc table model, so we just ignore them (#2307).
10892 * HTML reader:
10894 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
10895 + Updated for new automatic header attributes.
10896 + Add auto identifiers if not present on headers. This makes
10897 TOC linking work properly.
10898 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
10899 + Test `<ol>` type, class, and inline list-style(-type) CSS
10900 (Ophir Lifshitz).
10901 + Better handling of "section" elements (#2438). Previously
10902 `<section>` tags were just parsed as raw HTML blocks. With
10903 this change, section elements are parsed as Div elements with
10904 the class "section".
10906 * MediaWiki reader: handle unquoted table attributes (#2355).
10908 * DocBook reader:
10910 + Added proper support for DocBook `xref` elements (Frerich Raabe).
10911 Added `dbContent` field to reader state, so we can lookup
10912 cross refs.
10913 + Handle `informalexample` (#2319).
10915 * Docx Reader:
10917 + Create special punctuation test (Ophir Lifshitz).
10918 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
10919 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
10920 in `headers.docx` with pandoc's current `styles.xml`, which
10921 contains styles for Heading 1 through 6. Added Heading 4
10922 through 7 to the test document. Note that Heading 7 is not
10923 parsed as a Heading because there is no Heading 7 style.
10925 * RST reader: better handling of indirect roles.
10926 Previously the parser failed on this kind of case
10928 .. role:: indirect(code)
10930 .. role:: py(indirect)
10931 :language: python
10933 :py:`hi`
10935 Now it correctly recognizes `:py:` as a code role.
10937 * Org reader:
10939 + Add auto identifiers if not present on headers
10940 (#2354, Juliusz Gonera).
10941 + Allow verse blocks to contain empty lines (#2402,
10942 Albert Krewinkel).
10944 * EPUB reader: stop mangling external URLs (#2284).
10946 * RST writer:
10948 + Don't insert `\ ` when complex expression in matched pairs.
10949 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
10950 + Ensure that `\ ` is inserted when needed before Cite and Span
10951 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
10952 + Normalize headers only in "standalone" mode (#2394).
10954 * Haddock writer: escape `*` and `^` (G. Bataille).
10956 * Markdown writer:
10958 + In TOC, add links to headers (#829).
10959 + Use unicode super/subscripts for digits in plain output
10960 (when the `superscripts` and `subscripts` extensions are
10961 not enabled).
10963 * Docx writer:
10965 + Moved invalid character stripping to `formattedString`.
10966 This avoids an inefficient generic traversal (#2356).
10967 + Use user data directory for `reference.docx` archive.
10968 This allows the test suite to work without installing pandoc first.
10969 It also brings the docx writer in line with the odt writer.
10970 + Tests: docx writer tests now use `../data` for data directory.
10971 This allows tests to be run without installing first.
10972 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
10974 * LaTeX writer:
10976 + Fixed detection of 'chapters' from template.
10977 If a documentclass isn't specified in metadata, but the
10978 template has a hardwired bookish documentclass, act as if
10979 `--chapters` was used. This was the default in earlier
10980 versions, but it has been broken for a little while.
10981 + Correctly recognize book documentclass in metadata (#2395).
10982 + Set language-related variables automatically, depending
10983 on the value of the `lang` field, which is now always
10984 assumed to be in BCP47 format (mb21, #1614, #2437).
10985 + Add `\protect` to `\hyperdef` in inline context. This way we
10986 don't get an error when this is used as a moveable argument (#2136).
10987 + Support all frame attributes in Beamer.
10988 + Percent-encode more special characters in URLs (#1640, #2377).
10989 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
10991 * HTML writer:
10993 + Update KaTeX JS and CSS versions (Emily Eisenberg).
10994 + For dzslides, add `role="note"` for speaker notes (#1693).
10995 + Percent-encode more special characters in URLs (#1640, #2377).
10996 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
10997 + Render Div with class `section` as `<section>` in HTML5.
10999 * EPUB writer:
11001 + In TOC, replace literal `<br/>` with space (#2105).
11002 + With `--webtex`, include image file rather than `data:` URI (#2363).
11004 * Native writer: format Div properly, with blocks separated.
11006 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
11007 (#2191, mb21).
11009 * Reference Docx:
11011 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
11012 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
11014 * Templates
11016 + Beamer: Add `innertheme`, `outertheme` variables
11017 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
11018 Integrate recent font and language updates from LaTeX template;
11019 allow use of `mainfont` variable for changing the slide text
11020 in XeTeX and LuaTeX (Andrew Dunning, #131).
11021 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
11022 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
11023 (Andrew Dunning, #122). Support handling of bidirectional
11024 text (mb21, #120). Improve reliability of superscripts/subscripts
11025 under XeTeX and prevent letters and numbers from appearing on a
11026 different baseline by removing use of the `realscripts` package
11027 (via `xltxtra`). To restore use of OpenType characters for these
11028 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
11029 `header-includes` (Andrew Dunning, #130). Remove redundant
11030 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
11031 `indent`, `subparagraph` variables (Andrew Dunning).
11032 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
11033 #113). Prevent package clash with `tufte-latex` and other classes that
11034 include `hyperref` or `color` (Xavier Olive, #115).
11035 + ConTeXt: Support handling of bidirectional text (mb21, #120).
11036 + LaTeX and ConTeXt: Use more specific language variables.
11037 Instead of directly using `lang`, we now use `babel-lang` and
11038 `polyglossia-lang` and `context-lang`. These variables are set by
11039 the writers to the necessary values, based on the `lang` variable
11040 (which now always takes a value in BCP47 format). (mb21, #114, #129).
11041 + HTML: Support handling of bidirectional text (mb21, #120).
11042 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
11043 Add dir attribute in html5 (Andrew Dunning).
11044 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
11045 Add `width`, `height` variables (Anrew Dunning). Update template
11046 from 3.1 source (Andrew Dunning). All configuration options are now
11047 available as variables, but are only be included if set (reveal.js
11048 uses defaults otherwise).
11049 + man: Added comment stating that the page is autogenerated by pandoc,
11050 giving version. Added `adjusting` and `hyphenate` variables
11051 (Alex Vong, #123).
11053 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
11055 * MediaBag: ensure that `/` is always used as path separator.
11057 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
11059 * Added `--bash-completion` option. This generates a bash completion
11060 script. To use: `eval "$(pandoc --bash-completion)"`.
11062 * Text.Pandoc.Error: Define Typeable and Exception instances
11063 for PandocError (#2386).
11065 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
11066 This makes keys with extra space at the beginning and end
11067 work: e.g.
11069 [foo]: bar
11071 [ foo ]
11073 will now be a link to bar (it wasn't before).
11075 * Text.Pandoc: disable `auto_identifiers` for epub.
11076 The epub writer inserts its own auto identifiers;
11077 this is more complex due to splitting into "chapter" files.
11079 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
11080 It now reexports Data.Time.
11082 * Use custom Prelude to avoid compiler warnings.
11084 + The (non-exported) prelude is in prelude/Prelude.hs.
11085 + It exports Monoid and Applicative, like base 4.8 prelude,
11086 but works with older base versions.
11087 + It exports (<>) for mappend.
11088 + It hides 'catch' on older base versions.
11090 * Added a `stack.ymal` and stack install instructions to INSTALL.
11092 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
11094 * Added note to CONTRIBUTING.md about ghc versions and travis.
11096 * Clarify docs on block quotes. The space after `>` is optional (#2346).
11098 * Removed obsolete reference to default.csl (#2372).
11100 * List all styles in manual for `--reference-docx` (Chris Black)
11102 * Don't capitalize header links in man page.
11104 * Added section on repl to CONTRIBUTING.md.
11106 * README: Added space after backslash in image example (#2329).
11108 * Document details of citation locator terms (Nick Bart).
11110 * Fixed some internal links in README (#2309).
11112 * Improve CSL documentation, variables documentations,
11113 links, and cross-references in README. (Andrew Dunning)
11115 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
11117 * Use `newManager` instead of `withManager` in recent `http-client`.
11118 This avoids a deprecation warning.
11120 * Allow building with latest versions of http-types,
11121 HUnit, criterion, syb, aeson.
11123 * Updated benchmark program for new criterion API.
11125 * Setup.hs: rewrite so as not to use process, directory, filepath.
11126 Using anything outside base is dangerous, since older
11127 versions of ghc may link against two different versions.
11129 * Added appveyor (Windows continuous integration) builds.
11131 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
11132 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
11133 `make .travis.yml` regenerates it based on the tested-with
11134 field of the cabal file.
11136## pandoc 1.15.0.6 (2015-07-15)
11138 * `--self-contained`: Fixed overaggressive CSS minimization
11139 (#2301, 2286). Previously `--self-contained` wiped out all
11140 spaces in CSS, including semantically significant spaces.
11141 This was a regression from 1.14.x.
11143 * Markdown reader: don't allow bare URI links or autolinks in link
11144 label (#2300). Added test cases.
11146 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
11147 Previously we disallowed `-` at the end of an autolink,
11148 and disallowed the combination `=-`. This commit liberalizes the
11149 rules for allowing punctuation in a bare URI, and adds test cases.
11150 One potential drawback is that you can no longer put a bare
11151 URI in em dashes like this:
11152 `this uri---http://example.com---is an example.`
11153 But in this respect we now match github's treatment of bare URIs.
11155 * HTML writer: support speaker notes in dzslides.
11156 With this change `<div class="notes">` and also `<div class="notes"
11157 role="note">` will be output if `-t dzslides` is used. So we can
11158 have speaker notes in dzslides too. Thanks to maybegeek.
11160 * Updated dzslides template.
11162 * Improved documentation of options to print system default files (#2298).
11163 `--print-default-data-file` and `--print-default-template`.
11165 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
11166 (Tiziano Müller). MathJax seems currently to be the only maintained
11167 math rendering extension for DokuWiki.
11169 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
11170 div as top-level header (#2294). This fixes a bug with `--section-divs`,
11171 where the final references section added by pandoc-citeproc, enclosed in
11172 its own div, got nested in the div for the section previous to it.
11174 * Allow vector 0.11.
11176 * Require cmark > 0.4.
11178## pandoc 1.15.0.5 (2015-07-10)
11180 * HTML writer: Fixed email javascript obfuscation with `mailto:`
11181 URLs (#2280). This fixes a potential security issue. Because
11182 single quotes weren't being escaped in the link portion, a
11183 specially crafted email address could allow javascript code injection.
11185 * RST reader: allow inline formatting in definition list field
11186 names (Lars-Dominik Braun).
11188 * PDF: Make sure `--latex-engine-opt` goes before the filename
11189 on the command line. LaTeX needs the argument to come after
11190 the options (#1779).
11192 * CommonMark writer: fixed tags used for super/subscript.
11194 * ConTeXt template: activate hanging indent for definition lists
11195 (mb21).
11197 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
11198 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
11199 to include `hsb2hs` in Build-Tools in cabal.
11201 * Improved Windows installer (thanks to nkalvi).
11203 + When per-machine installation is chosen, the system path
11204 is updated instead of the user's.
11205 + An appropriate default is used for per-machine installation
11206 directory.
11207 + Admin privileges are no longer required for a per-user install
11209 * Travis: unpack sdist for build to catch packaging bugs.
11211 * Improved documentation on where user templates go (#2272).
11213## pandoc 1.15.0.4 (2015-07-03)
11215 * Added pandoc.1 man page to the repository. It is no longer
11216 built as part of the cabal build process. (This proved too
11217 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
11218 when `README` is changed.
11220 * Copying of the man page now respects `--destdir` (#2262).
11222 * Improved error messages for filters. User is now informed if
11223 the filter requires an interpreter that isn't found in the path,
11224 or if the filter returns an error status.
11226## pandoc 1.15.0.3 (2015-07-02)
11228 * Ensure target directory is created when installing man page.
11230## pandoc 1.15.0.2 (2015-07-02)
11232 * Added files needed for building man page to Extra-Source-Files.
11234## pandoc 1.15.0.1 (2015-07-01)
11236 * Man page is now built and installed as part of the cabal build
11237 process. Removed Makefile target for man page.
11239## pandoc 1.15 (2015-07-01)
11241 * Man page changes:
11243 + Removed `--man1`, `--man5` options (breaking change).
11244 + Removed `Text.Pandoc.ManPages` module (breaking API change).
11245 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
11246 create the man page from README using a custom template and filters.
11247 + Added `man/` directory with template and filters needed to build
11248 man page.
11249 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
11250 Now there is just pandoc.1, which has all the content from README.
11251 This change was needed because of the extensive cross-references
11252 between parts of the README.
11253 + Removed old `data/pandoc.1.template` and
11254 `data/pandoc_markdown.5.template`.
11256 * OpenDocument writer: Do not add a carriage return after a hard
11257 line break (Michael Chladek).
11259 * ConTeXt writer:
11261 + use `\goto` for internal links.
11262 + Added a `%` at end for `\reference` to avoid spurious space.
11264 * Ignore sandbox on 'make quick'
11266## pandoc 1.14.1 (2015-06-30)
11268 * Added `--man1` and `--man5` options to pandoc, allowing
11269 pandoc to generate its own man pages. Man pages are no longer
11270 automatically generated in the build process (the process for
11271 this was too complex and prone to failure, #2190). The
11272 `make-pandoc-man-pages` executable has been removed. The
11273 `man/` directory has been removed, and man page templates
11274 have been moved to `data/`. NOTE TO PACKAGERS: You will no
11275 longer find pandoc's man pages in `man/`, but you can
11276 generate them using `pandoc --man1 > pandoc.1` and `pandoc
11277 --man5 > pandoc_markdown.5`.
11279 * Added new unexported module: `Text.Pandoc.ManPages`.
11281 * `README` now acts like a data file (even though it isn't in
11282 `data/`). So, for example, `pandoc --print-default-data-file README`
11283 will produce the README.) This change was required for the `--man1`
11284 and `--man5` options, since the man pages are produced from the
11285 README, but it may be useful for other purposes as well.
11287 * Allow `reference.docx` and `reference.odt` to be used with
11288 `--print-default-data-file` and to shadow defaults if placed in
11289 the user data directory. Note that as of 1.14, we no longer
11290 include these files as data files; instead, we include their
11291 components. This change causes pandoc to behave as if it has
11292 these data files; they are constructed on demand when needed
11293 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
11295 * Fixed regression in CSS parsing with `--self-contained` (#2224).
11296 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
11297 silently drops big sections of CSS. This commit replaces the
11298 use of css-text with a small but principled CSS preprocessor,
11299 which removes whitespace and comments and replaces `url()` with
11300 base 64 data when possible.
11302 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
11303 This will allow math to work when pages are being viewed locally.
11305 * `Text.Pandoc.Options`: Export `plainExtensions`.
11306 These are the extensions used in `plain` output.
11308 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
11309 math mode; treat them as regular inline text. Normally these will
11310 cause an error in LaTeX, but there are contexts (e.g. `alltt`
11311 environments) where they are allowed.
11313 * HTML reader: allow `<body>` to close `<head>`.
11315 * DocBook reader: support `mediaobject`s and `figures` (#2184, mb21).
11317 * RST reader: Fix reference names with special characters
11318 (Lars-Dominik Braun).
11320 * Textile writer: escape `+` and `-` as entities (#2225).
11322 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
11324 * Plain writer: don't use symbols for super/subscript (#2237).
11325 Simplified code by using `plainExtensions`.
11327 * InDesign writer: Properly escape URLs containing more than one
11328 colon character (gohai).
11330 * Docx writer: Make sure we use dist version of `reference.docx`
11331 (and not the user's version) for certain settings. Taking some
11332 settings values from a user-supplied reference.docx can lead to
11333 corruption. This fixes a regression from the last release (#2249).
11335 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
11336 `getDefaultReferenceODT` (API change). These functions have been
11337 removed from the Docx and ODT writers.
11339 * LaTeX template (Xavier Olive):
11340 + Added `CJKmainfont` and `CJKoptions` variables.
11341 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
11343 * Epub templates: use `author.role`, not `author.type`.
11345 * Bump cmark version to >= 0.3.4.
11347 * Improved Windows installer (#2205, thanks to nkalvi).
11348 Users can now select a per-user or systemwide install, and can set
11349 the installation path. At the end of installation, the install location
11350 is given. The install location is also now given in the list of
11351 installed programs in Control Panel. Cleaner WiX syntax is used for
11352 setting the path.
11354 * Added `download_stats` target to Makefile.
11356## pandoc 1.14.0.4 (2015-06-02)
11358 * Added missing commonmark template.
11360 * Improved try pandoc (moved button, show raw command).
11362## pandoc 1.14.0.3 (2015-06-01)
11364 * Allow compilation with syb 0.5.*.
11366 * Custom writer: fixed some compiler warnings for ghc < 7.10.
11368## pandoc 1.14.0.2 (2015-05-31)
11370 * Allow building with hslua 0.4.
11372## pandoc 1.14.0.1 (2015-05-28)
11374 * Fixed problem with building of `reference.docx` and `reference.odt`
11375 when the `embed_data_files` flag is used. Instead of having a phase
11376 of the build where `reference.docx` and `reference.odt` are created
11377 from their constituent data files, we now construct these archives
11378 from their constituents when a `docx` or `odt` is built. The
11379 constituent files have been moved from `extra-source-files` to
11380 `data-files`, and `reference.docx` and `reference.odt` have been
11381 removed. Users can create their own `reference.docx` or
11382 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
11383 `make-reference-files.hs` has been removed, simplifying the build
11384 process (#2187)
11386 * Don't include generated man pages in extra-source-files (#2189).
11388 * Bumped upper bound for aeson.
11390 * ConTeXt writer: create internal link anchors for Div elements with
11391 identifiers. (This is needed for linked citations to work.)
11393## pandoc 1.14 (2015-05-27)
11395### New features
11397 * Added `commonmark` as input and output format.
11399 * Added `--verbose` flag for debugging output in PDF production (#1840,
11400 #1653).
11402 * Allow wildcards in `--epub-embed-font` arguments (#1939).
11404 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
11406 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
11407 This is enabled by default for those markdown flavors that
11408 support reading shortcut reference links, namely: `markdown`,
11409 `markdown_strict`, `markdown_github`, `markdown_php`.
11410 If the extension is enabled, the reader parses shortcut reference
11411 links like `[foo]`, and the writer creates such links unless doing
11412 so would cause problems. Users of markdown flavors that support
11413 shortcut reference links should not notice a difference in reading
11414 markdown, but the markdown pandoc produces may differ.
11415 If shortcut links are not desired, the extension can be disabled
11416 in the normal way.
11418### Behavior changes
11420 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
11421 A "dirty" TOC is created at the beginning of document.
11422 It can be regenerated after the document has been opened.
11424 * An implicit `--filter pandoc-citeproc` is now triggered only when the
11425 `--bibliography` option is used, and not when the `bibliography`
11426 field in metadata is specified (#1849).
11428 * Markdown reader:
11430 + Reference links with `implicit_header_references` are no longer
11431 case-sensitive (#1606).
11432 + Definition lists no longer require indentation for first line (#2087).
11433 Previously the body of the definition (after the `:` or `~` marker)
11434 needed to be in column 4. This commit relaxes that requirement,
11435 to better match the behavior of PHP Markdown Extra. So, now
11436 this is a valid definition list:
11438 foo
11439 : bar
11440 + Resolve a potentially ambiguity with table captions:
11442 foo
11444 : bar
11446 -----
11447 table
11448 -----
11450 Is "bar" a definition, or the caption for the table? We'll count
11451 it as a caption for the table.
11452 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
11453 Markdown Extra. Note: If you have been using headerless pipe tables,
11454 this change may cause existing tables to break.
11455 + Allow pipe tables with header but no body (#2017).
11456 + Allow a digit as first character of a citation key (Matthias Troffaes).
11457 See https://github.com/jgm/pandoc-citeproc/issues/97
11459 * LaTeX reader:
11461 + Don't limit includes to `.tex` extension (#1882).
11462 If the extension is not `.tex`, it must be given explicitly in
11463 the `\input` or `\include`.
11465 * Docx reader:
11467 + Allow numbering in the style file. This allows inherited styles
11468 with numbering (lists) (Jesse Rosenthal).
11470 * Org reader:
11472 + Support smart punctuation (Craig Bosma).
11473 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
11474 `:noexport:` tag set are not exported. This mirrors org-mode.
11475 + Put header tags into empty spans (Albert Krewinkel, #2160).
11476 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
11477 Instead of being interpreted as part of the headline, the tags are now
11478 put into the attributes of empty spans. Spans without textual content
11479 won't be visible by default, but they are detectable by filters. They
11480 can also be styled using CSS when written as HTML.
11481 + Generalize code block result parsing (Albert Krewinkel).
11482 Previously, only code blocks were recognized as result blocks;
11483 now, any kind of block can be the result.
11485 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
11486 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
11488 * HTML writer:
11490 + Add "inline" or "display" class to math spans (#1914).
11491 This allows inline and display math to be styled differently.
11492 + Include raw latex blocks if `--mathjax` specified (#1938).
11493 + Require highlighting-kate >= 0.5.14 (#1903).
11494 This ensures that all code blocks will be wrapped in a `div`
11495 with class `sourceCode`. Also, the default highlighting CSS
11496 now adds `div.sourceCode { x-overflow: auto; }`, which means
11497 that code blocks (even with line numbers) will acquire a scroll
11498 bar on screens too small to display them (e.g. mobile phones).
11499 See also jgm/highlighting-kate#65.
11501 * LaTeX writer:
11503 + Use a declaration for tight lists (Jose Luis Duran, Joseph
11504 Harriott). Previously, pandoc hard-coded some commands to make
11505 tight lists in LaTeX. Now we use a custom command instead,
11506 allowing the styling to be changed in a macro in the header.
11507 (Note: existing templates may need to be modified to include
11508 the definition of this macro. See the current template.)
11509 + Beamer output: if the header introducing a slide has the
11510 class `fragile`, add the `[fragile]` option to the slide (#2119).
11512 * MediaWiki writer:
11514 + Use `File:` instead of the deprecated `Image:` for images and
11515 other media files (Greg Rundlett).
11517 * DocBook writer:
11519 + Render a `Div (id,_,_) [Para _]` element as a `para` element
11520 with an `id` attribute. This makes links to citations work in
11521 DocBook with pandoc-citeproc.
11523 * RST writer:
11525 + Normalize headings to sequential levels (Nikolay Yakimov).
11526 This is pretty much required by docutils.
11527 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
11528 + Better handling of raw latex inline (#1961). We use
11529 `` :raw-latex:`...` `` and add a definition for this role to
11530 the template.
11532 * EPUB writer:
11534 + Remove `linear=no` from cover `itemref` (#1609).
11535 + Don't use `sup` element for epub footnotes (#1995).
11536 Instead, just use an a element with class `footnoteRef`.
11537 This allows more styling options, and provides better results
11538 in some readers (e.g. iBooks, where anything inside the a
11539 tag breaks popup footnotes).
11540 + Take TOC title from `toc-title` metadata field.
11542 * Docx writer:
11544 + Implemented `FirstParagraph` style (Jesse Rosenthal).
11545 Following the ODT writer, we add the `FirstParagraph` style to the
11546 first text paragraph following an image, blockquote, table, heading,
11547 or beginning of document. This allows it to be styled differently.
11548 The default is for it to be the same as `Normal`.
11549 + Added `BodyText` style (Jesse Rosenthal).
11550 We apply a `BodyText` style to all unstyled paragraphs. This is,
11551 essentially, the same as `Normal`, except that since not everything
11552 inherits from `BodyText` (the metadata won't, for example, or
11553 the headers or footnote numbers), we can change the text in the body
11554 without having to make exceptions for everything. If we do want to
11555 change *everything*, we can still do it through `Normal`.
11556 + Altered `Blockquote` style slightly (Jesse Rosenthal).
11557 Since `BlockQuote` derives from `BodyText`, we just want to specify
11558 by default that it won't indent, regardless of what `BodyText` does.
11559 Note that this will not produce any visible difference in the default
11560 configuration.
11561 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
11562 + Added a style to figure images (Nikolay Yakimov).
11563 Figures with empty captions use style `Figure`.
11564 Figures with nonempty captions use style `Figure with Caption`, which
11565 is based on `Figure`, and additionally has `keepNext` set.
11567 * ODT writer:
11569 + Added figure captions (Nikolay Yakimov). The following styles are
11570 used for figures:
11571 `Figure` -- for figure with empty caption),
11572 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
11573 `FigureCaption` (based on `Caption`) -- for figure captions.
11574 Also, `TableCaption` (based on `Caption`) is used for table captions.
11576### API changes
11578 * New `Text.Pandoc.Error` module with `PandocError` type
11579 (Matthew Pickering).
11581 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
11582 (Matthew Pickering). This allows better handling of errors.
11584 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
11586 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
11588 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
11589 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
11590 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
11591 Youssefi).
11593 * New `Ext_shortcut_reference_links` constructor for `Extension`
11594 (Konstantin Zudov).
11596### Bug fixes
11598 * Markdown reader:
11600 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
11601 + Check for tex macros after indented code (#1973).
11602 + Rewrote `charsInBalancedBrackets` for efficiency.
11603 + Make sure a closing `</div>` doesn't get included in a
11604 definition list item (#2127).
11605 + Don't parse bracketed text as citation if it might be a link,
11606 image, or footnote (Nikolay Yakimov).
11607 + Require space after key in mmd title block (#2026, Nikolay
11608 Yakimov). Require space after key-value delimiter colon in mmd title
11609 block.
11610 + Require nonempty value in mmd title block (Nikolay Yakimov).
11611 + Disable all metadata block extensions when parsing
11612 metadata field values (#2026, Nikolay Yakimov). Otherwise we
11613 could get a mmd title block inside YAML metadata, for example.
11615 * HTML reader:
11617 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
11618 + Handle tables with `<th>` in body rows (#1859, mb21).
11619 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
11620 to see if the input starts with `<!--`. If not, it's bogus comment
11621 mode and we fail `htmlTag`.
11622 + Handle `base` tag; if it has an `href` value, this is added to
11623 all relative URLs in links and images.
11625 * DocBook reader:
11627 + Look inside "info" elements for section titles (#1931).
11629 * Docx reader:
11631 + Parse images in deprecated vml format (Jesse Rosenthal).
11632 + Allow sub/superscript verbatims (Jesse Rosenthal).
11633 Verbatim usually shuts off all other run styles, but we don't want it
11634 to shut off sub/superscript.
11636 * LaTeX reader:
11638 + Handle `tabular*` environment (#1850).
11639 Note that the table width is not actually parsed or taken into
11640 account, but pandoc no longer chokes on it.
11641 + Ignore options in `\lstinline` rather than raising error (#1997).
11642 + Add some test cases for simple tables (Mathias Schenner).
11643 + Handle valign argument in tables (Mathias Schenner) (currently
11644 we just ignore this).
11645 + Allow non-empty colsep in tables (Mathias Schenner).
11646 The `tabular` environment allows non-empty column separators
11647 with the "@{...}" syntax. Previously, pandoc would fail to
11648 parse tables if a non-empty colsep was present. With this
11649 commit, these separators are still ignored, but the table gets
11650 parsed. A test case is included.
11651 + Recognize `\newpage` as a block command.
11652 + Allow block content in `\title{}` (#2001).
11653 + Check for block-level newcommand aliases in blockCommand (Nikolay
11654 Yakimov).
11655 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
11656 + Properly gobble spaces after `\\` (#2007).
11658 * Textile reader:
11660 + Handle newlines in table cells, and empty cells (#1919).
11662 * Org reader:
11664 + Allow image links with non-image targets (Hans-Peter Deifel).
11665 This matches behavior of Org-Mode for links like
11666 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
11668 * Docbook writer:
11670 + Don't print empty id attributes (thanks to Steve Horne).
11672 * HTML writer:
11674 + Fixed list-style-type for numbered example lists.
11675 Should be "decimal," not "example" (#1902).
11676 + Do not omit missing `alt` attribute on `img` tag (#1131,
11677 Konstantin Zudov).
11678 + Allow multiple colgroups in table (#2122).
11679 + In revealjs, ensure that lists in speaker notes don't add "fragment"
11680 classes, which can cause additional keypresses to be needed to
11681 advance a slide (#1394).
11683 * LaTeX writer:
11685 + Don't escape `$` in URL (#1913).
11686 + Don't use listings in headers (Matthew Pickering, #1963).
11687 + Recognize book documentclass if set in metadata (#1971).
11688 This sets `--chapters` implicitly if the documentclass in metadata
11689 is a book documentclass. Previously this was done only if a book
11690 documentclass was set in a variable.
11691 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
11692 + Make `mainlang` work when `lang` is in metadata (#2174).
11694 * Texinfo writer:
11696 + Fix wrapping by using breakable spaces (Tim Lin).
11698 * RST writer:
11700 + Fixed toc depth in RST writer. Previously the depth was being
11701 rendered as a floating point number with a decimal point.
11703 * Markdown writer:
11705 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
11706 compatibility with original Markdown. We now escape `<` and `>`
11707 with entities. Also, we now backslash-escape square brackets.
11708 + Avoid introducing spurious list items through wrapping (#1946).
11709 + Don't emit span tags if plain or raw HTML disabled.
11711 * MediaWiki writer:
11713 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
11715 * AsciiDoc writer:
11717 + Insert some needed blank lines (#1860).
11718 + Avoid wrapping after list marker (#1858).
11720 * EPUB writer:
11722 + Properly handle internal links to IDs in spans, divs (#1884).
11723 + Use plain writer for metadata dc: fields (#2121).
11724 This gives better results when we have, e.g. multiple paragraphs.
11725 Note that tags aren't allowed in these fields.
11726 + Properly handle image links without an extension (#1855).
11727 + Improved chapter splitting and internal link rewriting (#1887,
11728 #2162, #2163). This will ensure that internal links work and
11729 that the references section produced by pandoc-citeproc is
11730 in its own chapter.
11731 + Fixed handling of svg images (#2183).
11733 * ICML writer:
11735 + Better handling of raw blocks and inlines (#1951).
11736 Previously these were always escaped and printed verbatim.
11737 Now they are ignored unless the format is `icml`, in which
11738 case they are passed through unescaped.
11739 + Fixed image URIs in ICML output (gohai).
11741 * Custom writer:
11743 + Raise error if loadstring returns an error status.
11744 + Raise `PandocLuaException` instead of using 'error'.
11745 Eventually we'll change the return type so that no exception
11746 is involved, but at least this can be trapped.
11747 + Use UTF-8 aware bytestring conversion.
11748 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
11749 Also factored out ByteString, since it's only used as an intermediate
11750 representation.
11752 * Docx writer:
11754 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
11755 + Filter out illegal XML characters (#1992, Matthew Pickering).
11756 + Added `noProof` to docx syntax highlighting `SourceCode` style.
11757 + Added footnotes id -1 and 0 (Jesse Rosenthal).
11758 Word uses, by default, footnotes with id -1 and 0 for separators. If a
11759 user modifies `reference.docx`, they will end up with a `settings.xml`
11760 file that references these footnotes, but no such footnotes in the
11761 document. This will produce a corruption error. Here we add these to the
11762 document and `settings.xml` file, so future modifications won't break
11763 the file.
11764 + Handle lists correctly inside table cells (Jesse Rosenthal).
11765 Previously we didn't transform lists inside table cells.
11766 + Set firstRow information in tables (Nikolay Yakimov).
11767 + Don't replace `SourceCode` style in `reference.docx` if it is defined
11768 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
11769 any `SourceCode` and `*Tok` styles in `reference.docx`.
11770 + Attempt to match international style names (#1607, Nikolay Yakimov).
11771 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
11772 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
11773 `Definition`, `First Paragraph`.
11774 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
11775 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
11776 `Footnote Ref -> Footnote Reference`.
11777 + Added `Caption` style (Nikolay Yakimov).
11778 + Changed these styles' inheritance (Nikolay Yakimov):
11779 `Image Caption <- Caption`, `Table Caption <- Caption`.
11780 + Remove `SourceCode` style from `reference.docx` (#1872).
11781 This is added automatically by the docx writer.
11782 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
11784 * `Text.Pandoc.PDF`
11786 + Don't suggest "Try xelatex" if xelatex already in use (mb21, #1832).
11787 + More comprehensible errors on image conversion (#2067).
11788 EPS can't be supported without shelling out to something like
11789 ImageMagick, but at least we can avoid mysterious error messages.
11791 * `Text.Pandoc.Shared`:
11793 + Make safeRead safe (#1801, Matthew Pickering).
11794 + Added `mapLeft`, `hush` (Matthew Pickering).
11796 * `Text.Pandoc.Pretty`:
11798 + Remove partial function (Matthew Pickering).
11800 * `Text.Pandoc.SelfContained`:
11802 + Add `;charset=utf-8` to script mime type if missing (#1842).
11803 + Improved building of data URIs (#1940). Now base64 is used except
11804 for `text/*` mime types.
11805 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
11806 + Properly handle data URIs in css urls (#2129).
11807 Use a proper CSS parser (adds dependency on `text-css`).
11809 * `Text.Pandoc.UTF8`:
11811 + Better handling of bare CRs in input files (#2132).
11812 Previously we just stripped them out; now we convert
11813 other line ending styles to LF line endings.
11815 * `Text.Pandoc.ImageSize`:
11817 + Fixed some exif header parsing bugs (#1834).
11818 + Make imageSize return an Either, not a Maybe (#1834).
11819 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
11820 parse failure (rather than `error`).
11821 + Improved warnings when image size can't be determined.
11822 + Removed error landmines (Matthew Pickering).
11824 * Added woff2 to MIME types (Alfred Wechselberger).
11826 * pandoc: When a binary input format is used, warn that file
11827 arguments past the first one are being ignored (Matthew Pickering).
11829### Template changes
11831 * LaTeX template:
11833 + Degrade gracefully if `\paragraph` not defined.
11834 + Include `grffile` together with `graphicx` (#2074).
11835 This properly handles filenames containing spaces and dots.
11836 + Redefine `\paragraph`, `\subparagraph`... to behave more
11837 like section headers (#1658).
11838 + Import hyperref before polyglossia to avoid an error with xelatex,
11839 "please load package hyperref before bidi package" (Nick Bart).
11840 + Added `toccolor` variable to control link color in toc (Kaixhin).
11842 * LaTeX, Beamer templates:
11844 + Provide `\tightlist`, which is now used by the LaTeX writer.
11845 + Use polyglossia in beamer (#85).
11846 + Use `bibliography` instead of `biblio-files`
11847 (#1661). Also use `\addbibresource` instead of `\bibliography` for
11848 biblatex.
11849 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
11850 variable that is derived from a comma-separated list in `lang`;
11851 the last language is `mainlang` and the others are `otherlang`.
11853 * EPUB templates:
11855 + Use `div`, not `p`, for "rights" on title page.
11856 + Added header-includes, include-before, include-after (#1987).
11858 * OpenDocument template:
11860 + Use `text:p` instead of `text:h` for title.
11861 Using `text:h` causes problems with numbering. Closes #2059.
11862 Thanks to @nkalvi for diagnosing this.
11864 * reveal.js template:
11866 + Link to non-minified css, js. The minified versions no longer
11867 ship with the library.
11868 + Correctly include style CSS (#1949).
11869 + New configurable options options: `center`, `maxScale`, `slideNuber`
11870 (Dmitry Smirnov, pandoc-templates#89).
11871 + Moved custom CSS after theme. This allows custom CSS to modify
11872 themes, instead of being replaced by them.
11873 + Allow `center` to be set to false.
11875### Under the hood improvements
11877 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
11878 Yakimov). Instead the repository now includes the component text files,
11879 and the zipped binaries are built from these using a helper
11880 program, `make-reference-files`. This should make maintenance of
11881 these components easier going forward.
11883 * `Text.Pandoc.Parsing`:
11885 + Added new `<+?>` combinator (Nikolay Yakimov).
11886 + Added `stateHeaderKeys` to `ParserState`.
11888 * `make_deb.sh` fixes:
11890 + Detect architecture.
11891 + Add Installed-Size to debian package control file (#1900).
11892 + Use `fakeroot` to get permissions right.
11893 + Use `mkdir` and `cp` instead of `install`.
11894 + Set permissions of directories to 755.
11895 + Install in `/usr` rather than `/usr/local`.
11896 + Compress man pages.
11897 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
11899 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
11900 to assist with transition to `time` 1.5.
11902 * Updated CONTRIBUTING.md with information about issue tags (Matthew
11903 Pickering).
11905 * Updated travis installs to the new sudo-less syntax (Tim Lin).
11907 * Updated dependency version bounds.
11909 * EPUB tests: don't use `joinPath`, which varies across platforms.
11910 Instead, use a forward-slash to join paths, regardless of the
11911 platform. This matches the way `MediaBag` now works.
11913 * Clarify JSON input and output in usage message (Caleb McDaniel).
11915 * Improved INSTALL instructions.
11917 * Always build man pages. Removed make-pandoc-man-pages flag.
11919 * Makefile: removed man target, now that we generate man pages by default.
11921 * README:
11923 + Fixed typos (J. Lewis Muir).
11924 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
11925 + Added note on in-field markup in biblio databases (Nick Bart).
11926 + Fixed misleading example of raw HTML block.
11927 + Various minor formatting and consistency fixes for the program
11928 options (Andreas Lööw).
11929 + Made definition lists for options all "loose" for consistency.
11930 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
11931 `--bib2json` and `--bib2yaml` options (Nick Bart).
11932 + Removed obsolete reference to `mods2yaml` (Nick Bart).
11933 + Added section on syntax highlighting.
11934 + Documented `toccolor` variable.
11936## pandoc 1.13.2.1 (2015-04-15)
11938 * Updated to build with ghc 7.10.1.
11940 * Bumped package upper bounds for filepath, blaze-html, blaze-markup.
11942## pandoc 1.13.2 (2014-12-20)
11944 * TWiki Reader: add new new twiki reader (API chaneg, Alexander Sulfrian).
11946 * Markdown reader:
11948 + Better handling of paragraph in div (#1591).
11949 Previously text that ended a div would be parsed as Plain
11950 unless there was a blank line before the closing div tag.
11951 + Don't treat a citation as a reference link label (#1763).
11952 + Fix autolinks with following punctuation (#1811).
11953 The price of this is that autolinked bare URIs can no longer
11954 contain `>` characters, but this is not a big issue.
11955 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
11956 + Allow `startnum` to work without `fancy_lists`. Formerly
11957 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
11959 * RST reader (all Daniel Bergey):
11961 + Parse quoted literal blocks (#65). RST quoted literal blocks are
11962 the same as indented literal blocks (which pandoc already supports)
11963 except that the quote character is preserved in each line.
11964 + Parse RST class directives. The class directive accepts one or more
11965 class names, and creates a Div value with those classes. If the
11966 directive has an indented body, the body is parsed as the children of
11967 the Div. If not, the first block following the directive is made a
11968 child of the Div. This differs from the behavior of rst2xml, which
11969 does not create a Div element. Instead, the specified classes are
11970 applied to each child of the directive. However, most Pandoc Block
11971 constructors to not take an Attr argument, so we can't duplicate this
11972 behavior.
11973 + Warn about skipped directives.
11974 + Literal role now produces Code. Code role should have "code" class.
11975 + Improved support for custom roles
11977 - Added `sourceCode` to classes for `:code:` role, and anything
11978 inheriting from it.
11979 - Add the name of the custom role to classes if the Inline
11980 constructor supports Attr.
11981 - If the custom role directive does not specify a parent role,
11982 inherit from the `:span:` role.
11984 This differs somewhat from the `rst2xml.py` behavior. If a custom
11985 role inherits from another custom role, Pandoc will attach both
11986 roles' names as classes. `rst2xml.py` will only use the class of
11987 the directly invoked role (though in the case of inheriting from a
11988 `:code:` role with a `:language:` defined, it will also provide the
11989 inherited language as a class).
11990 + Warn about ignored fields in role directives.
11992 * LaTeX reader:
11994 + Parse label after caption into a span instead of
11995 inserting an additional paragraph of bracketed text (#1747).
11996 + Parse math environments as inline when possible (#1821).
11997 + Better handling of `\noindent` and `\greektext` (#1783).
11998 + Handle `\texorpdfstring` more gracefully.
11999 + Handle `\cref` and `\sep` (Wikiwide).
12000 + Support `\smartcite` and `\Smartcite` from biblatex.
12002 * HTML reader:
12004 + Retain display type of MathML output (#1719, Matthew Pickering).
12005 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
12006 + Make `embed` tag either block or inline (#1756).
12008 * DocBook reader:
12010 + Handle `keycombo`, `keycap` (#1815).
12011 + Get string content in inner tags for literal elements (#1816).
12012 + Handle `menuchoice` elements better, with a `>` between (#1817).
12013 + Include `id` on section headers (#1818).
12014 + Document/test "type" as implemented (Brian O'Sullivan).
12015 + Add support for calloutlist and callout (Brian O'Sullivan).
12016 We treat a calloutlist as a bulleted list. This works well in practice.
12017 + Add support for `classname` (Bryan O'Sullivan).
12019 * Docx reader:
12021 + Fix window path for image lookup (Jesse Rosenthal).
12022 Don't use os-sensitive "combine", since we always want the paths in our
12023 zip-archive to use forward-slashes.
12024 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
12025 When users number their headers, Word understands that as a single item
12026 enumerated list. We make the assumption that such a list is, in fact,
12027 a header.
12028 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
12029 There could be new top-level headers after making lists, so we have to
12030 rewrite links after that.
12031 + Use polyglot header list (Jesse Rosenthal).
12032 We're just keeping a list of header formats that different languages
12033 use as their default styles. At the moment, we have English, German,
12034 Danish, and French. We can continue to add to this.
12035 This is simpler than parsing the styles file, and perhaps less
12036 error-prone, since there seems to be some variations, even within a
12037 language, of how a style file will define headers.
12038 + Remove header class properly in other langs (Jesse Rosenthal).
12039 When we encounter one of the polyglot header styles, we want to remove
12040 that from the par styles after we convert to a header. To do that, we
12041 have to keep track of the style name, and remove it appropriately.
12042 + Account for external link URLs with anchors. Previously, if a URL
12043 had an anchor, the reader would incorrectly identify it as an
12044 internal link and return only the anchor as URL. (Caleb McDaniel)
12045 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
12047 * Org reader:
12049 + Added state changing blanklines (Jesse Rosenthal).
12050 This allows us to emphasize at the beginning of a new paragraph (or, in
12051 general, after blank lines).
12052 + Fixed bug with bulleted lists:
12054 - a
12055 - b
12056 * c
12058 was being parsed as a list, even though an unindented `*`
12059 should make a heading. See
12060 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
12061 + Org reader: absolute, relative paths in link (#1741, Albert
12062 Krewinkel). The org reader was too restrictive when parsing links;
12063 some relative links and links to files given as absolute paths
12064 were not recognized correctly.
12065 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
12066 This is important for use in gitit, which uses empty links
12067 for wikilinks.
12068 + Respect indent when parsing Org bullet lists (#1650, Timothy
12069 Humphries). Fixes issue with top-level bullet list parsing.
12070 + Fix indent issue for definition lists (Timothy Humphries,
12071 see #1650, #1698, #1680).
12072 + Parse multi-inline terms correctly in definition list (#1649,
12073 Matthew Pickering).
12074 + Fix rules for emphasis recognition (Albert Krewinkel).
12075 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
12076 strings. This is wrong, as `,` and `'` are forbidden border chars and
12077 may not occur on the inner border of emphasized text.
12078 + Drop COMMENT document trees (Albert Krewinkel).
12079 Document trees under a header starting with the word `COMMENT` are
12080 comment trees and should not be exported. Those trees are dropped
12081 silently (#1678).
12082 + Properly handle links to `file:target` (Albert Krewinkel).
12083 Org links like `[[file:target][title]]` were not handled correctly,
12084 parsing the link target verbatim. The org reader is changed such that
12085 the leading `file:` is dropped from the link target (see #756, #1812).
12086 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
12087 Org supports special symbols which can be included using LaTeX syntax,
12088 but are actually MathML entities. Examples for this are
12089 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
12090 or `\copy` (the copyright sign ©)
12092 * EPUB reader:
12094 + URI handling improvements. Now we outsource most of the work to
12095 `fetchItem'`. Also, do not include queries in file extensions (#1671).
12097 * LaTeX writer:
12099 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
12100 + Handle consecutive linebreaks (#1733).
12101 + Protect graphics in headers (Jesse Rosenthal).
12102 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
12103 + Put `~` before header in list item text (Jesse Rosenthal).
12104 Because of the built-in line skip, LaTeX can't handle a section header
12105 as the first element in a list item.
12106 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
12107 + Better handling of display math in simple tables (#1754).
12108 We convert display math to inline math in simple tables,
12109 since LaTeX can't deal with display math in simple tables.
12110 + Escape spaces in code (#1694, Bjorn Buckwalter).
12112 * MediaWiki writer:
12114 + Fixed links with URL = text. Previously these were rendered as bare
12115 words, even if the URL was not an absolute URL (#1825).
12117 * ICML writer:
12119 + Don't force all citations into footnotes.
12121 * RTF writer:
12123 + Add blankline at end of output (#1732, Matthew Pickering).
12125 * RST writer:
12127 + Ensure blank line after figure.
12128 + Avoid excess whitespace after last list item (#1777).
12129 + Wrap line blocks with spaces before continuations (#1656).
12130 + Fixed double-rendering of footnotes in RST tables (#1769).
12132 * DokuWiki writer:
12134 + Better handling of block quotes. This change ensures that
12135 multiple paragraph blockquotes are rendered using native `>`
12136 rather than as HTML (#1738).
12137 + Fix external images (#1739). Preface relative links with ":",
12138 absolute URIs without. (Timothy Humphries)
12140 * HTML writer:
12142 + Use protocol-relative URL for mathjax.
12143 + Put newline btw img and caption paragraph.
12144 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
12145 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
12146 This adds `KaTeX` to `HTMLMathMethod` (API change).
12147 + Don't double render when `email-obfuscation=none` (#1625, Matthew
12148 Pickering).
12149 + Make header attributes work outside top level (#1711).
12150 Previously they only appeared on top level header elements.
12151 Now they work e.g. in blockquotes.
12153 * ODT writer:
12155 + Correctly handle images without extensions (#1729).
12156 + Strip querystring in ODT write (#1682, Todd Sifleet).
12158 * FB2 writer:
12160 + Add newline to output.
12162 * EPUB writer:
12164 + Don't add `sourceURL` to absolute URIs (#1669).
12165 + Don't use unsupported `opf:title-type` for epub2.
12166 + Include "landmarks" section in nav document for epub3 (#1757).
12167 + Removed playOrder from navpoint elements in ncx file (#1760).
12168 These aren't required, and they make manual modification of epubs
12169 difficult.
12170 + Extract title even from structured title.
12171 + Don't include nav node in spine unless `--toc` was requested.
12172 Previously we included it in the spine with `linear="no"`, leading
12173 to odd results in some readers (#1593).
12174 + Fixed absolute URI detection (#1672).
12175 + Correctly resolve relative URIs (#1671).
12176 + Use regular page template for `nav.xhtml`, including doctype (#1759).
12178 * Docx writer:
12180 + Put docx table captions above tables (#1641, Nikolay Yakimov).
12181 + Get the page width from the reference docx file, and use
12182 it to scale images that are too large to fit (Grégory Bataille).
12183 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
12184 are inferred based on `<w:name val="heading #">` fallback, if there
12185 are no en-US "Heading#" styles
12186 + Look in user data dir for archive `reference.docx`.
12187 + Renumber header and footer relationships to avoid collisions (Jesse
12188 Rosenthal). We previously took the old relationship names of the
12189 headers and footer in secptr. That led to collisions. We now make
12190 a map of available names in the relationships file, and then rename
12191 in secptr.
12193 * ConTeXt writer:
12195 + Add function toLabel (Mark Szepieniec).
12196 This function can be used to sanitize reference labels so that
12197 they do not contain any of the illegal characters \#[]",{}%()|= .
12198 Currently only Links have their labels sanitized, because they
12199 are the only Elements that use passed labels.
12201 * `Text.Pandoc.Shared`:
12203 + Moved import of `toChunks` outside of CPP conditional (#1590).
12204 + Fix `inDirectory` to reset to the original directory in case
12205 an exception occurs (Freiric Barral).
12207 * Templates:
12209 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
12210 Thanks to bluebirch.
12211 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
12212 (#1616).
12213 + LaTeX template: Add shorthands=off to babel options (#1648).
12214 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
12215 This aids styling, making it possible for example to set 0 margins
12216 on the title page (#1758).
12217 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
12218 Previously we just expected 'title', 'subtitle', 'author', 'date'.
12219 Now we still support those, but also support the format recommended
12220 for epub metadata in the pandoc README:
12222 ---
12223 title:
12224 - type: main
12225 text: My Book
12226 - type: subtitle
12227 text: An investigation of metadata
12228 creator:
12229 - role: author
12230 text: John Smith
12231 - role: editor
12232 text: Sarah Jones
12233 identifier:
12234 - scheme: DOI
12235 text: doi:10.234234.234/33
12236 publisher: My Press
12237 rights: (c) 2007 John Smith, CC BY-NC
12238 ...
12240 * `Text.Pandoc.Templates.getDefaultTemplate`:
12241 don't fail when called with "fb2" (#1660).
12243 * `Text.Pandoc.Parsing`:
12245 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
12246 For example: `$x = \text{the $n$th root of $y$}` (#1677).
12247 + Change `parseFromString` to fail if not all input is consumed.
12248 (Matthew Pickering)
12249 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
12250 used by more readers (API change, Daniel Bergey).
12252 * `Text.Pandoc.Pretty`:
12254 + Improve performance of `realLength` (Matthew Pickering).
12255 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
12256 were getting at the end of markdown fragments (as well as rst, org,
12257 etc.) (#1705).
12259 * `Text.Pandoc.MIME`:
12261 + Add mime type for WebVTT (Jason Ronallo).
12262 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
12263 This is needed for epub3 validation.
12265 * `Text.Pandoc.MediaBag`:
12267 + Fix Windows specific path problems (#1597).
12269 * `Text.Pandoc.Shared`:
12271 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
12273 * Link the test suite using `-threaded`.
12274 This allows the test suite to be run using `+RTS -N`.
12276 * Added `network` dependency under `network-uri` flag in test section.
12278 * Give better error messages when someone tries to convert from
12279 pdf, doc, odt (#1683).
12281 * Added `track` to list of tags treated by `--self-contained` (#1664).
12284## pandoc 1.13.1 (2014-08-30)
12286 * Fixed `--self-contained` with Windows paths (#1558).
12287 Previously `C:\foo.js` was being wrongly interpreted as a URI.
12289 * HTML reader: improved handling of tags that can be block or inline.
12290 Previously a section like this would be enclosed in a paragraph,
12291 with RawInline for the video tags (since video is a tag that can
12292 be either block or inline):
12294 <video controls="controls">
12295 <source src="../videos/test.mp4" type="video/mp4" />
12296 <source src="../videos/test.webm" type="video/webm" />
12297 <p>
12298 The videos can not be played back on your system.<br/>
12299 Try viewing on Youtube (requires Internet connection):
12300 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
12301 Youtube</a>.
12302 </p>
12303 </video>
12305 This change will cause the video and source tags to be parsed
12306 as RawBlock instead, giving better output.
12307 The general change is this: when we're parsing a "plain" sequence
12308 of inlines, we don't parse anything that COULD be a block-level tag.
12310 * Docx reader:
12312 + Be sensitive to user styles. Note that "Hyperlink" is
12313 "blacklisted," as we don't want the default underline styling to be
12314 inherited by all links by default (Jesse Rosenthal).
12315 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
12316 This makes to docx reader's native output fit with the way the markdown
12317 reader understands its markdown output.
12319 * Txt2Tags reader:
12321 + Header is now parsed only if standalone flag is set (Matthew Pickering).
12322 + The header is now parsed as meta information. The first line is the
12323 `title`, the second is the `author` and third line is the `date`
12324 (Matthew Pickering).
12325 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
12326 + Fixed crash when reading from stdin.
12328 * Textile writer: Extended the range of cases where native textile
12329 tables will be used (as opposed to raw HTML): we now handle any
12330 alignment type, but only for simple tables with no captions.
12332 * EPUB writer: Don't use page-progression-direction in EPUB2, which
12333 doesn't support it. Also, if page-progression-direction not specified
12334 in metadata, don't include the attribute even in EPUB3; not including it
12335 is the same as including it with the value "default", as we did before.
12336 (#1550)
12338 * Org writer: Accept example lines with indentation at the beginning
12339 (Calvin Beck).
12341 * DokuWiki writer:
12343 + Refactor to use Reader monad (Matthew Pickering).
12344 + Avoid using raw HTML in table cells; instead, use `\\`
12345 instead of newlines (Jesse Rosenthal).
12346 + Properly handle HTML table cell alignments, and use spacing
12347 to make the tables look prettier (#1566).
12349 * Docx writer:
12351 + Bibliography entries get `Bibliography` style (#1559).
12352 + Implement change tracking (Jesse Rosenthal).
12354 * LaTeX writer:
12356 + Fixed a bug that caused a table caption to repeat across all pages
12357 (Jose Luis Duran).
12358 + Improved vertical spacing in tables and made it customizable using
12359 standard lengths set by booktab. See
12360 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
12361 (Jose Luis Duran).
12362 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
12363 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
12364 + Made horizontal rules more flexible (Jose Luis Duran).
12366 * Text.Pandoc.MIME:
12368 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
12369 Code cleanups (Artyom Kazak).
12371 * Templates:
12373 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
12374 thanks lemzwerg).
12376 * Improved OSX build procedure.
12378 * Added `network-uri` flag, to deal with split of `network-uri` from
12379 `network`.
12381 * Fix build dependencies for the `trypandoc` flag, so that they are
12382 ignored if `trypandoc` flag is set to False (Gabor Pali).
12384 * Updated README to remove outdated claim that `--self-contained`
12385 looks in the user data directory for missing files.
12387## pandoc 1.13.0.1 (2014-08-17)
12389 * Docx writer:
12391 + Fixed regression which bungled list numbering (#1544), causing
12392 all lists to appear as basic ordered lists.
12393 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
12394 Added a property to all table rows where the sum of column widths
12395 is specified in pct (fraction of 5000). This helps persuade Word
12396 to lay out the table with the widths we specify.
12398 * Fixed a bug in Windows 8 which caused pandoc not to find the
12399 `pandoc-citeproc` filter (#1542).
12401 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
12402 Most significantly, the reader now uses Builder, leading to some
12403 performance improvements.
12405 * HTML reader: Parse appropriately styled span as SmallCaps.
12407 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
12408 `superscript`, and `subscript` extensions, respectively, are
12409 deactivated (#1127).
12411 * Added `trypandoc` flag to build CGI executable used in the online
12412 demo.
12414 * Makefile: Added 'quick', 'osxpkg' targets.
12416 * Updated README in templates to indicate templates license.
12417 The templates are dual-licensed, BSD3 and GPL2+.
12419## pandoc 1.13 (15 August 2014)
12421### New features
12423 * Added `docx` as an input format (Jesse Rosenthal). The docx
12424 reader includes conversion of native Word equations to pandoc
12425 LaTeX `Math` elements. Metadata is taken from paragraphs at the
12426 beginning of the document with styles `Author`, `Title`, `Subtitle`,
12427 `Date`, and `Abstract`.
12429 * Added `epub` as an input format (Matthew Pickering). The epub
12430 reader includes conversion of MathML to pandoc LaTeX `Math`
12431 elements.
12433 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
12434 Txt2tags is a lightweight markup format described at
12435 <http://txt2tags.org/>.
12437 * Added `dokuwiki` as an output format (Clare Macrae).
12439 * Added `haddock` as an output format.
12441 * Added `--extract-media` option to extract media contained in a zip
12442 container (docx or epub) while adjusting image paths to point to the
12443 extracted images.
12445 * Added a new markdown extension, `compact_definition_lists`, that
12446 restores the syntax for definition lists of pandoc 1.12.x, allowing
12447 tight definition lists with no blank space between items, and
12448 disallowing lazy wrapping. (See below under behavior changes.)
12450 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
12452 * Added extensions `native_spans` and `native_divs` to activate
12453 parsing of material in HTML span or div tags as Pandoc Span
12454 inlines or Div blocks.
12456 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
12457 Textile, and MediaWiki readers. This is an option intended
12458 for debugging parsing problems; ordinary users should not need
12459 to use it.
12461### Behavior changes
12463 * Changed behavior of the `markdown_attribute` extension, to bring
12464 it in line with PHP markdown extra and multimarkdown. Setting
12465 `markdown="1"` on an outer tag affects all contained tags,
12466 recursively, until it is reversed with `markdown="0"` (#1378).
12468 * Revised markdown definition list syntax (#1429). Both the reader
12469 and writer are affected. This change brings pandoc's definition list
12470 syntax into alignment with that used in PHP markdown extra and
12471 multimarkdown (with the exception that pandoc is more flexible about
12472 the definition markers, allowing tildes as well as colons). Lazily
12473 wrapped definitions are now allowed. Blank space is required
12474 between list items. The space before a definition is used to determine
12475 whether it is a paragraph or a "plain" element. **WARNING: This change
12476 may break existing documents!** Either check your documents for
12477 definition lists without blank space between items, or use
12478 `markdown+compact_definition_lists` for the old behavior.
12480 * `.numberLines` now works in fenced code blocks even if no language
12481 is given (#1287, jgm/highlighting-kate#40).
12483 * Improvements to `--filter`:
12485 + Don't search PATH for a filter with an explicit path.
12486 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
12487 the system path, even if there was a `caps.py` in the working directory.
12488 + Respect shebang if filter is executable (#1389).
12489 + Don't print misleading error message.
12490 Previously pandoc would say that a filter was not found,
12491 even in a case where the filter had a syntax error.
12493 * HTML reader:
12495 + Parse `div` and `span` elements even without `--parse-raw`,
12496 provided `native_divs` and `native_spans` extensions are set.
12497 Motivation: these now generate native pandoc Div and Span
12498 elements, not raw HTML.
12499 + Parse EPUB-specific elements if the `epub_html_exts`
12500 extension is enabled. These include `switch`, `footnote`,
12501 `rearnote`, `noteref`.
12503 * Org reader:
12505 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
12506 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
12507 `\cite{Coffee}`), can be used without any further escaping (Albert
12508 Krewinkel).
12510 * Textile reader and writer:
12512 + The `raw_tex` extension is no longer set by default. You can
12513 enable it with `textile+raw_tex`.
12515 * DocBook reader:
12517 + Support `equation`, `informalequation`, `inlineequation` elements with
12518 `mml:math` content. This is converted into LaTeX and put into a Pandoc
12519 Math inline.
12521 * Revised `plain` output, largely following the style of Project
12522 Gutenberg:
12524 + Emphasis is rendered with `_underscores_`, strong emphasis
12525 with ALL CAPS.
12526 + Headings are rendered differently, with space to set them off,
12527 not with setext style underlines. Level 1 headers are ALL CAPS.
12528 + Math is rendered using unicode when possible, but without the
12529 distracting emphasis markers around variables.
12530 + Footnotes use a regular `[n]` style.
12532 * Markdown writer:
12534 + Horizontal rules are now a line across the whole page.
12535 + Prettier pipe tables. Columns are now aligned (#1323).
12536 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
12537 no longer emits any raw HTML, including span and div tags
12538 generated by Span and Div elements.
12539 + Use span with style for `SmallCaps` (#1360).
12541 * HTML writer:
12543 + Autolinks now have class `uri`, and email autolinks have class
12544 `email`, so they can be styled.
12546 * Docx writer:
12548 + Document formatting is carried over from `reference.docx`.
12549 This includes margins, page size, page orientation, header,
12550 and footer, including images in headers and footers.
12551 + Include abstract (if present) with `Abstract` style (#1451).
12552 + Include subtitle (if present) with `Subtitle` style, rather
12553 than tacking it on to the title (#1451).
12555 * Org writer:
12557 + Write empty span elements with an id attribute as org anchors.
12558 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
12560 * LaTeX writer:
12562 + Put table captions above tables, to match the conventional
12563 standard. (Previously they appeared below tables.)
12564 + Use `\(..\)` instead of `$..$` for inline math (#1464).
12565 + Use `\nolinkurl` in email autolinks. This allows them to be styled
12566 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
12567 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
12568 curly quotes in the PDF output (#1364).
12569 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
12570 do not appear before the overlays in which their markers appear
12571 (#1525).
12572 + Don't produce a `\label{..}` for a Div or Span element. Do produce
12573 a `\hyperdef{..}` (#1519).
12575 * EPUB writer:
12577 + If the metadata includes `page-progression-direction` (which can be
12578 `ltr` or `rtl`, the `page-progression-direction` attribute will
12579 be set in the EPUB spine (#1455).
12581 * Custom lua writers:
12583 + Custom writers now work with `--template`.
12584 + Removed HTML header scaffolding from `sample.lua`.
12585 + Made citation information available in lua writers.
12587 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
12588 adjacent `RawBlock`s when possible.
12590### API changes
12592 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
12594 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
12595 Pickering).
12597 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
12598 Pickering).
12600 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
12601 (Clare Macrae).
12603 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
12605 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
12606 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
12607 readers return a pair of a `Pandoc` document and a `MediaBag` with
12608 the media resources they contain. This can be extracted using
12609 `--extract-media`. Writers that incorporate media (PDF, Docx,
12610 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
12611 for resources in the `MediaBag` generated by the reader, in addition to
12612 the file system or web.
12614 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
12615 Renamed `readTeXMath'` to `texMathToInlines`.
12617 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
12618 `readers` now associates names of readers with `Reader`
12619 structures. This allows inclusion of readers, like the docx
12620 reader, that take binary rather than textual input.
12622 * `Text.Pandoc.Shared`:
12624 + Added `capitalize` (Artyom Kazak), and replaced uses of
12625 `map toUpper` (which give bad results for many languages).
12626 + Added `collapseFilePath`, which removes intermediate `.` and
12627 `..` from a path (Matthew Pickering).
12628 + Added `fetchItem'`, which works like `fetchItem` but searches
12629 a `MediaBag` before looking on the net or file system.
12630 + Added `withTempDir`.
12631 + Added `removeFormatting`.
12632 + Added `extractSpaces` (from HTML reader) and generalized its type
12633 so that it can be used by the docx reader (Matthew Pickering).
12634 + Added `ordNub`.
12635 + Added `normalizeInlines`, `normalizeBlocks`.
12636 + `normalize` is now `Pandoc -> Pandoc` instead of
12637 `Data a :: a -> a`. Some users may need to change their uses of
12638 `normalize` to the newly exported `normalizeInlines` or
12639 `normalizeBlocks`.
12641 * `Text.Pandoc.Options`:
12643 + Added `writerMediaBag` to `WriterOptions`.
12644 + Removed deprecated and no longer used `readerStrict` in
12645 `ReaderOptions`. This is handled by `readerExtensions` now.
12646 + Added `Ext_compact_definition_lists`.
12647 + Added `Ext_epub_html_exts`.
12648 + Added `Ext_native_divs` and `Ext_native_spans`.
12649 This allows users to turn off the default pandoc behavior of
12650 parsing contents of div and span tags in markdown and HTML
12651 as native pandoc Div blocks and Span inlines.
12653 * `Text.Pandoc.Parsing`:
12655 + Generalized `readWith` to `readWithM` (Matthew Pickering).
12656 + Export `runParserT` and `Stream` (Matthew Pickering).
12657 + Added `HasQuoteContext` type class (Matthew Pickering).
12658 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
12659 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
12660 `applyMacros` (Matthew Pickering).
12661 + Added custom `token` (Matthew Pickering).
12662 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
12663 track of the ending tag we're waiting for when we're parsing inside
12664 HTML block tags.
12665 + Added `stateMarkdownAttribute` to `ParserState`. This is used
12666 to keep track of whether the markdown attribute has been set in
12667 an enclosing tag.
12668 + Generalized type of `registerHeader`, using new type classes
12669 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
12670 Pickering). These allow certain common functions to be reused
12671 even in parsers that use custom state (instead of `ParserState`),
12672 such as the MediaWiki reader.
12673 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
12674 and generalized their types (Matthew Pickering).
12676 * `Text.Pandoc.Pretty`:
12678 + Added `nestle`.
12679 + Added `blanklines`, which guarantees a certain number of blank lines
12680 (and no more).
12682### Bug fixes
12684 * Markdown reader:
12686 + Fixed parsing of indented code in list items. Indented code
12687 at the beginning of a list item must be indented eight spaces
12688 from the margin (or edge of the container), or four spaces
12689 from the list marker, whichever is greater.
12690 + Fixed small bug in HTML parsing with `markdown_attribute`, which
12691 caused incorrect tag nesting for input like
12692 `<aside markdown="1">*hi*</aside>`.
12693 + Fixed regression with intraword underscores (#1121).
12694 + Improved parsing of inline links containing quote characters (#1534).
12695 + Slight rewrite of `enclosure`/`emphOrStrong` code.
12696 + Revamped raw HTML block parsing in markdown (#1330).
12697 We no longer include trailing spaces and newlines in the
12698 raw blocks. We look for closing tags for elements (but without
12699 backtracking). Each block-level tag is its own `RawBlock`;
12700 we no longer try to consolidate them (though `--normalize` will do so).
12701 + Combine consecutive latex environments. This helps when you have
12702 two minipages which can't have blank lines between them (#690, #1196).
12703 + Support smallcaps through span.
12704 `<span style="font-variant:small-caps;">foo</span>` will be
12705 parsed as a `SmallCaps` inline, and will work in all output
12706 formats that support small caps (#1360).
12707 + Prevent spurious line breaks after list items (#1137). When the
12708 `hard_line_breaks` option was specified, pandoc would formerly
12709 produce a spurious line break after a tight list item.
12710 + Fixed table parsing bug (#1333).
12711 + Handle `c++` and `objective-c` as language identifiers in
12712 github-style fenced blocks (#1318).
12713 + Inline math must have nonspace before final `$` (#1313).
12715 * LaTeX reader:
12717 + Handle comments at the end of tables. This resolves the issue
12718 illustrated in <http://stackoverflow.com/questions/24009489>.
12719 + Correctly handle table rows with too few cells. LaTeX seems to
12720 treat them as if they have empty cells at the end (#241).
12721 + Handle leading/trailing spaces in `\emph` better.
12722 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
12723 so that we don't get things like `* hi *` in markdown output.
12724 Also applies to `textbf` and some other constructions (#1146).
12725 + Don't assume preamble doesn't contain environments (#1338).
12726 + Allow (and discard) optional argument for `\caption` (James Aspnes).
12728 * HTML reader:
12730 + Fixed major parsing problem with HTML tables. Table cells were
12731 being combined into one cell (#1341).
12732 + Fixed performance issue with malformed HTML tables.
12733 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
12734 + Allow space between `<col>` and `</col>`.
12735 + Added `audio` and `source` in `eitherBlockOrInline`.
12736 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
12737 `blockTags` to `eitherBlockOrInline`.
12738 + `map` and `object` were mistakenly in both lists; they have been removed
12739 from `blockTags`.
12740 + Ignore `DOCTYPE` and `xml` declarations.
12742 * MediaWiki reader:
12744 + Don't parse backslash escapes inside `<source>` (#1445).
12745 + Tightened up template parsing.
12746 The opening `{{` must be followed by an alphanumeric or `:`.
12747 This prevents the exponential slowdown in #1033.
12748 + Support "Bild" for images.
12750 * DocBook reader:
12752 + Better handle elements inside code environments. Pandoc's document
12753 model does not allow structure inside code blocks, but at least this way
12754 we preserve the text (#1449).
12755 + Support `<?asciidoc-br?>` (#1236).
12757 * Textile reader:
12759 + Fixed list parsing. Lists can now start without an intervening
12760 blank line (#1513).
12761 + HTML block-level tags that do not start a line are parsed as
12762 inline HTML and do not interrupt paragraphs (as in RedCloth).
12764 * Org reader:
12766 + Make tildes create inline code (#1345). Also relabeled `code` and
12767 `verbatim` parsers to accord with the org-mode manual.
12768 + Respect `:exports` header argument in code blocks (Craig Bosma).
12769 + Fixed tight lists with sublists (#1437).
12771 * EPUB writer:
12773 + Avoid excess whitespace in `nav.xhtml`. This should improve
12774 TOC view in iBooks (#1392).
12775 + Fixed regression on cover image.
12776 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
12777 because the metadata id was not correct. Now we derive the id from the
12778 actual cover image filename, which we preserve rather than using
12779 "cover-image."
12780 + Keep newlines between block elements. This allows
12781 easier diff-ability (#1424).
12782 + Use `stringify` instead of custom `plainify`.
12783 + Use `renderTags'` for all tag rendering. This properly handles tags
12784 that should be self-closing. Previously `<hr/>` would appear in EPUB
12785 output as `<hr></hr>` (#1420).
12786 + Better handle HTML media tags.
12787 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
12788 can have only one dc:date, so only the first one is used.
12790 * LaTeX writer:
12792 + Correctly handle figures in notes. Notes can't contain figures in
12793 LaTeX, so we fake it to avoid an error (#1053).
12794 + Fixed strikeout + highlighted code (#1294).
12795 Previously strikeout highlighted code caused an error.
12797 * ConTeXt writer:
12799 + Improved detection of autolinks with URLs containing escapes.
12801 * RTF writer:
12803 + Improved image embedding: `fetchItem'` is now used to get the
12804 images, and calculated image sizes are indicated in the RTF.
12805 + Avoid extra paragraph tags in metadata (#1421).
12807 * HTML writer:
12809 + Deactivate "incremental" inside slide speaker notes (#1394).
12810 + Don't include empty items in the table of contents for
12811 slide shows. (These would result from creating a slide
12812 using a horizontal rule.)
12814 * MediaWiki writer:
12816 + Minor renaming of `st` prefixed names.
12818 * AsciiDoc writer:
12820 + Double up emphasis and strong emphasis markers in intraword
12821 contexts, as required by asciidoc (#1441).
12823 * Markdown writer:
12825 + Avoid wrapping that might start a list, blockquote, or header (#1013).
12826 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
12827 + Don't use braced attributes for fenced code (#1416).
12828 If `Ext_fenced_code_attributes` is not set, the first class
12829 attribute will be printed after the opening fence as a bare word.
12830 + Separate adjacent lists of the same kind with an HTML comment (#1458).
12832 * PDF writer:
12834 + Fixed treatment of data uris for images (#1062).
12836 * Docx writer:
12838 + Use Compact style for empty table cells (#1353).
12839 Otherwise we get overly tall lines when there are empty
12840 table cells and the other cells are compact.
12841 + Create overrides per-image for `media/` in reference docx.
12842 This should be somewhat more robust and cover more types of images.
12843 + Improved `entryFromArchive` to avoid an unneeded parse.
12844 + Section numbering carries over from reference.docx (#1305).
12845 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
12846 we assign numbers based on the list marker styles.
12848 * `Text.Pandoc.Options`:
12850 + Removed `Ext_fenced_code_attributes` from `markdown_github`
12851 extensions.
12853 * `Text.Pandoc.ImageSize`:
12855 + Use default instead of failing if image size not found
12856 in exif header (#1358).
12857 + ignore unknown exif header tag rather than crashing.
12858 Some images seem to have tag type of 256, which was causing
12859 a runtime error.
12861 * `Text.Pandoc.Shared`:
12863 + `fetchItem`: unescape URI encoding before reading local file (#1427).
12864 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
12865 doing mime lookup, to improve mime type guessing.
12866 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
12867 other things are treated as relative URIs if `sourceURL` is `Just _`,
12868 otherwise as file paths on the local file system.
12869 + `fetchItem` now properly handles links without a protocol (#1477).
12870 + `fetchItem` now escapes characters not allowed in URIs before trying
12871 to parse the URIs.
12872 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
12874 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
12875 needed to resolve relative URLs when we fetch resources (#750).
12877 * `Text.Pandoc.Parsing`
12879 + Simplified `dash` and `ellipsis` (#1419).
12880 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
12881 + Generalized functions to use `ParsecT` (Matthew Pickering).
12882 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
12883 Pickering).
12885### Template changes
12887 * Added haddock template.
12888 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
12889 be "advisory" in HTML5, but kindlegen seems to require them.
12890 * EPUB3: Put title page in section with `epub:type="titlepage"`.
12891 * LaTeX: Made `\subtitle` work properly (#1327).
12892 * LaTeX/Beamer: remove conditional around date (#1321).
12893 * LaTeX: Added `lot` and `lof` variables, which can be set to
12894 get `\listoftables` and `\listoffigures` (#1407). Note that
12895 these variables can be set at the command line with `-Vlot -Vlof`
12896 or in YAML metadata.
12898### Under the hood improvements
12900 * Rewrote normalize for efficiency (#1385).
12902 * Rewrote Haddock reader to use `haddock-library` (#1346).
12904 + This brings pandoc's rendering of haddock markup in line
12905 with the new haddock.
12906 + Fixed line breaks in `@` code blocks.
12907 + alex and happy are no longer build-depends.
12909 * Added `Text.Pandoc.Compat.Directory` to allow building against
12910 different versions of the `directory` library.
12912 + Added `Text.Pandoc.Compat.Except` to allow building against
12913 different versions of `mtl`.
12915 * Code cleanup in some writers, using Reader monad to avoid
12916 passing options parameter around (Matej Kollar).
12918 * Improved readability in `pandoc.hs`.
12920 * Miscellaneous code cleanups (Artyom Kazak).
12922 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
12923 Thompson).
12925 * Changed `http-conduit` flag to `https`. Depend on `http-client`
12926 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
12927 depends on `conduit` via `yaml`.)
12929 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
12930 This change to highlighting-kate means that PHP fragments no longer need
12931 to start with `<?php`. It also fixes a serious bug causing failures with
12932 ocaml and fsharp.
12934 * Require latest `texmath`. This fixes `\tilde{E}` and allows
12935 `\left` to be used with `]`, `)` etc. (#1319), among many other
12936 improvements.
12938 * Require latest `zip-archive`. This has fixes for unicode path names.
12940 * Added tests for plain writer.
12942 * `Text.Pandoc.Templates`:
12944 + Fail informatively on template syntax errors.
12945 With the move from parsec to attoparsec, we lost good error
12946 reporting. In fact, since we weren't testing for end of input,
12947 malformed templates would fail silently. Here we revert back to
12948 Parsec for better error messages.
12949 + Use `ordNub` (#1022).
12951 * Benchmarks:
12953 + Made benchmarks compile again (Artyom Kazak).
12954 + Fixed so that the failure of one benchmark does not prevent others
12955 from running (Artyom Kazak).
12956 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
12957 + Changed benchmark to use only the test suite, so that benchmarks
12958 run more quickly.
12960 * Windows build script:
12962 + Add `-windows` to file name.
12963 + Use one install command for pandoc, pandoc-citeproc.
12964 + Force install of pandoc-citeproc.
12966 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
12967 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
12968 will extract it into a folder named `SOMETHING.pkg`, which it
12969 will interpret as a defective package (#1308).
12971 * `README`:
12973 + Made headers for all extensions so they have IDs and can be
12974 linked to (Beni Cherniavsky-Paskin).
12975 + Fixed typos (Phillip Alday).
12976 + Fixed documentation of attributes (#1315).
12977 + Clarified documentation on small caps (#1360).
12978 + Better documentation for `fenced_code_attributes` extension
12979 (Caleb McDaniel).
12980 + Documented fact that you can put YAML metadata in a separate file
12981 (#1412).
12984## pandoc 1.12.4.2 (2014-05-14)
12986 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
12988 * Shared: `addMetaValue` now behaves slightly differently:
12989 if both the new and old values are lists, it concatenates their
12990 contents to form a new list.
12992 * LaTeX reader:
12994 + Set `bibliography` in metadata from `\bibliography` or
12995 `\addbibresource` command.
12996 + Don't error on `%foo` with no trailing newline.
12998 * Org reader:
13000 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
13001 + Fix parsing of blank lines within blocks (Albert Krewinkel).
13002 + Support pandoc citation extension (Albert Krewinkel). This can
13003 be turned off by specifying `org-citation` as the input format.
13005 * Markdown reader:
13007 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
13008 other readers (Albert Krewinkel).
13010 * `Text.Pandoc.Parsing`:
13012 + Added `citeKey` (see above).
13013 + Added `HasLastStrPosition` type class and `updateLastStrPos`
13014 and `notAfterString` functions.
13016 * Updated copyright notices (Albert Krewinkel).
13018 * Added default.icml to data files so it installs with the package.
13020 * OSX package:
13022 + The binary is now built with options to ensure that it can be
13023 used with OSX 10.6+.
13024 + Moved OSX package materials to osx directory.
13025 + Added OSX package uninstall script, included in the zip container
13026 (thanks to Daniel T. Staal).
13028## pandoc 1.12.4 (2014-05-07)
13030 * Made it possible to run filters that aren't executable
13031 (#1096). Pandoc first tries to find the executable (searching
13032 the path if path isn't given). If it fails, but the file
13033 exists and has a `.py`, `.pl`, `.rb`, `.hs`, or `.php`
13034 extension, pandoc runs the filter using the appropriate
13035 interpreter. This should make it easier to use filters on
13036 Windows, and make it more convenient for everyone.
13038 * Added Emacs org-mode reader (Albert Krewinkel).
13040 * Added InDesign ICML Writer (mb21).
13042 * MediaWiki reader:
13044 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
13045 + Fixed bug in certain nested lists (#1213). If a level 2 list was
13046 followed by a level 1 list, the first item of the level 1 list
13047 would be lost.
13048 + Handle table rows containing just an HTML comment (#1230).
13050 * LaTeX reader:
13052 + Give better location information on errors, pointing to line
13053 numbers within included files (#1274).
13054 + LaTeX reader: Better handling of `table` environment (#1204).
13055 Positioning options no longer rendered verbatim.
13056 + Better handling of figure and table with caption (#1204).
13057 + Handle `@{}` and `p{length}` in tabular. The length is not actually
13058 recorded, but at least we get a table (#1180).
13059 + Properly handle `\nocite`. It now adds a `nocite` metadata
13060 field. Citations there will appear in the bibliography but not
13061 in the text (unless you explicitly put a `$nocite$` variable
13062 in your template).
13064 * Markdown reader:
13066 + Ensure that whole numbers in YAML metadata are rendered without
13067 decimal points. (This became necessary with changes to aeson
13068 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
13069 + Fixed regression on line breaks in strict mode (#1203).
13070 + Small efficiency improvements.
13071 + Improved parsing of nested `div`s. Formerly a closing `div` tag
13072 would be missed if it came right after other block-level tags.
13073 + Avoid backtracking when closing `</div>` not found.
13074 + Fixed bug in reference link parsing in `markdown_mmd`.
13075 + Fixed a bug in list parsing (#1154). When reading a raw list
13076 item, we now strip off up to 4 spaces.
13077 + Fixed parsing of empty reference link definitions (#1186).
13078 + Made one-column pipe tables work (#1218).
13080 * Textile reader:
13082 + Better support for attributes. Instead of being ignored, attributes
13083 are now parsed and included in Span inlines. The output will be a bit
13084 different from stock textile: e.g. for `*(foo)hi*`, we'll get
13085 `<em><span class="foo">hi</span></em>` instead of
13086 `<em class="foo">hi</em>`. But at least the data is not lost.
13087 + Improved treatment of HTML spans (%) (#1115).
13088 + Improved link parsing. In particular we now pick up on attributes.
13089 Since pandoc links can't have attributes, we enclose the whole link in
13090 a span if there are attributes (#1008).
13091 + Implemented correct parsing rules for inline markup (#1175, Matthew
13092 Pickering).
13093 + Use Builder (Matthew Pickering).
13095 * DocBook reader:
13097 + Better treatment of `formalpara`. We now emit the title (if present)
13098 as a separate paragraph with boldface text (#1215).
13099 + Set metadata `author` not `authors`.
13100 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
13101 Matthew Pickering).
13102 + Converted current meta information parsing in DocBook to a more
13103 extensible version which is aware of the more recent meta
13104 representation (Matthew Pickering).
13106 * HTML reader:
13108 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
13109 (#1248).
13110 + Treat processing instructions & declarations as block. Previously
13111 these were treated as inline, and included in paragraph tags in HTML
13112 or DocBook output, which is generally not what is wanted (#1233).
13113 + Updated `closes` with rules from HTML5 spec.
13114 + Use Builder (Matthew Pickering, #1162).
13116 * RST reader:
13118 + Remove duplicate `http` in PEP links (Albert Krewinkel).
13119 + Make rst figures true figures (#1168, CasperVector)
13120 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
13121 rST parser now supports: all built-in rST roles, new role definition,
13122 role inheritance, though with some limitations.
13123 + Use `author` rather than `authors` in metadata.
13124 + Better handling of directives. We now correctly handle field
13125 lists that are indented more than three spaces. We treat an
13126 `aafig` directive as a code block with attributes, so it can be
13127 processed in a filter (#1212).
13129 * LaTeX writer:
13131 + Mark span contents with label if span has an ID (Albert Krewinkel).
13132 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
13133 + Handle line breaks in simple table cells (#1217).
13134 + Workaround for level 4-5 headers in quotes. These previously produced
13135 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
13136 This adds an `mbox{}` in these contexts to work around the problem.
13137 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
13138 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
13139 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
13140 ligature with LuaLaTeX but `\/` does.
13141 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
13143 * ConTeXt writer: Improved autolinks (#1270).
13145 * DocBook writer:
13147 + Improve handling of hard line breaks in Docbook writer
13148 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
13149 just for the newline character.
13150 + Don't let line breaks inside footnotes influence the enclosing
13151 paragraph (Neil Mayhew).
13152 + Distinguish tight and loose lists in DocBook output, using
13153 `spacing="compact"` (Neil Mayhew, #1250).
13155 * Docx writer: When needed files are not present in the user's
13156 `reference.docx`, fall back on the versions in the `reference.docx`
13157 in pandoc's data files. This fixes a bug that occurs when a
13158 `reference.docx` saved by LibreOffice is used. (#1185)
13160 * EPUB writer:
13162 + Include extension in epub ids. This fixes a problem with duplicate
13163 extensions for fonts and images with the same base name but different
13164 extensions (#1254).
13165 + Handle files linked in raw `img` tags (#1170).
13166 + Handle media in `audio` source tags (#1170).
13167 Note that we now use a `media` directory rather than `images`.
13168 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
13169 will both be incorporated into `content.opf` and the epub container.
13171 * HTML writer:
13173 + Add colgroup around col tags (#877). Also affects EPUB writer.
13174 + Fixed bug with unnumbered section headings. Unnumbered section
13175 headings (with class `unnumbered`) were getting numbers.
13176 + Improved detection of image links. Previously image links with
13177 queries were not recognized, causing `<embed>` to be used instead
13178 of `<img>`.
13180 * Man writer: Ensure that terms in definition lists aren't line wrapped
13181 (#1195).
13183 * Markdown writer:
13185 + Use proper escapes to avoid unwanted lists (#980). Previously we used
13186 0-width spaces, an ugly hack.
13187 + Use longer backtick fences if needed (#1206). If the content contains a
13188 backtick fence and there are attributes, make sure longer fences are
13189 used to delimit the code. Note: This works well in pandoc, but github
13190 markdown is more limited, and will interpret the first string of three
13191 or more backticks as ending the code block.
13193 * RST writer: Avoid stack overflow with certain tables (#1197).
13195 * RTF writer: Fixed table cells containing paragraphs.
13197 * Custom writer:
13199 + Correctly handle UTF-8 in custom lua scripts (#1189).
13200 + Fix bugs with lua scripts with mixed-case filenames and
13201 paths containing `+` or `-` (#1267). Note that `getWriter`
13202 in `Text.Pandoc` no longer returns a custom writer on input
13203 `foo.lua`.
13205 * AsciiDoc writer: Handle multiblock and empty table cells
13206 (#1245, #1246). Added tests.
13208 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
13210 * `Text.Pandoc.Shared`:
13212 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
13213 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
13214 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
13215 Jesse Rosenthal.
13216 + `openURL`: set proxy with value of http_proxy env variable (#1211).
13217 Note: proxies with non-root paths are not supported, due to
13218 limitations in `http-conduit`.
13220 * `Text.Pandoc.PDF`:
13222 + Ensure that temp directories deleted on Windows (#1192). The PDF is
13223 now read as a strict bytestring, ensuring that process ownership will
13224 be terminated, so the temp directory can be deleted.
13225 + Use `/` as path separators in a few places, even on Windows.
13226 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
13227 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
13228 + Changes to error reporting, to handle non-UTF8 error output.
13230 * `Text.Pandoc.Templates`:
13232 + Removed unneeded datatype context (Merijn Verstraaten).
13234 + YAML objects resolve to "true" in conditionals (#1133).
13235 Note: If `address` is a YAML object and you just have `$address$`
13236 in your template, the word `true` will appear, which may be
13237 unexpected. (Previously nothing would appear.)
13239 * `Text.Pandoc.SelfContained`: Handle `poster` attribute in `video`
13240 tags (#1188).
13242 * `Text.Pandoc.Parsing`:
13244 + Made `F` an instance of Applicative (#1138).
13245 + Added `stateCaption`.
13246 + Added `HasMacros`, simplified other typeclasses.
13247 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
13248 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
13249 + Changed the smart punctuation parser to return `Inlines`
13250 rather than `Inline` (Matthew Pickering).
13251 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
13252 from typeclasses of monads to typeclasses of states. This simplifies
13253 the instance definitions and provides more flexibility. Generalized
13254 type of `getOption` and added a default definition. Removed
13255 `askReaderOption`. Added `extractReaderOption`. Added
13256 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
13257 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
13258 `modifyHeaderMap`. Added `extractIdentifierList` and
13259 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
13260 for `getIdentifierList`, `putIdentifierList`, and
13261 `modifyIdentifierList`. The ultimate goal here is to allow different
13262 parsers to use their own, tailored parser states (instead of
13263 `ParserState`) while still using shared functions.
13265 * Template changes:
13267 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
13268 + LaTeX template: Add `linestretch` and `fontfamily` variables.
13269 + LaTeX template: Conditionalize author and date commands.
13270 + Beamer template: Consistent styles for figure and table captions
13271 (aaronwolen).
13272 + LaTeX and beamer template: Adjust widths correctly for oversized
13273 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
13274 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
13275 `upquote` only after `fontenc` (Yihui Xie).
13276 + Beamer template: Added caption package (#1200).
13277 + Beamer template: changes for better unicode handling (KarolS).
13278 + DocBook template: use `authorgroup` if there are authors.
13279 + revealjs template: Move `include-after` to end (certainlyakey).
13280 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
13282 * Bumped version bounds of dependencies.
13284 * Added a `--trace` command line option, for debugging backtracking
13285 bugs. So far this only works with the markdown reader.
13287 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
13289 * Updated travis script to test with multiple GHC versions.
13291 * Force failure of a Travis build if GHC produces warnings (Albert
13292 Krewinkel).
13294 * Add `.editorconfig` (Albert Krewinkel).
13295 See <http://editorconfig.org/> for details.
13297 * Give more useful error message if '-t pdf' is specified (#1155).
13299 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
13301 * Allow `html4` as a synonym of `html` as a reader (it already works
13302 as a writer).
13304 * README:
13306 + Added an explanation of how to use YAML metadata to
13307 force items to appear in the bibliography without citations in
13308 the text (like LaTeX `\nocite`).
13309 + Added note to `--bibtex/--natbib`: not for use in making PDF
13310 (#1194, thanks to nahoj).
13311 + Added explanatory notes about `--natbib` and `--biblatex`.
13312 + Added specification of legal syntax for citation keys.
13313 + Fixed variable defaults documentation (Albert Krewinkel).
13315 * Removed copyright statements for files that have been removed
13316 (Albert Krewinkel).
13318 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
13319 They aren't needed at runtime. We keep README and COPYRIGHT in data
13320 to ensure that they'll be available on all systems on which pandoc
13321 is installed.
13323 * Use cabal sandboxes in Windows build script.
13325## pandoc 1.12.3.3 (2014-02-03)
13327 * To changes to source; recompiled tarball with latest alex and
13328 happy, so they will work with GHC 7.8.
13330## pandoc 1.12.3.2 (2014-02-03)
13332 * Bumped version bounds for blaze-html, blaze-markup.
13334 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
13335 (#1124).
13337 * Fixed mediawiki ordered list parsing (#1122).
13339 * HTML reader: Fixed bug reading inline math with `$$` (#225).
13341 * Added support for LaTeX style literate Haskell code blocks in rST
13342 (Merijn Verstraaten).
13344## pandoc 1.12.3.1 (2014-01-14)
13346 * Relaxed version constraint on binary, allowing the use of binary 0.5.
13349## pandoc 1.12.3 (2014-01-10)
13351 * The `--bibliography` option now sets the `biblio-files` variable.
13352 So, if you're using `--natbib` or `--biblatex`, you can just use
13353 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
13355 * Don't run pandoc-citeproc filter if `--bibliography` is
13356 used together with `--natbib` or `--biblatex` (Florian Eitel).
13358 * Template changes:
13360 + Updated beamer template to include booktabs.
13361 + Added `abstract` variable to LaTeX template.
13362 + Put `header-includes` after `title` in LaTeX template (#908).
13363 + Allow use of `\includegraphics[size]` in beamer.
13364 This just required porting a macro definition from the default
13365 LaTeX template to the default beamer template.
13367 * `reference.docx`: Include `FootnoteText` style.
13368 Otherwise Word ignores the style, even when specified in the `pPr`.
13369 (#901)
13371 * `reference.odt`: Tidied `styles.xml`.
13373 * Relaxed version bounds for dependencies.
13375 * Added `withSocketsDo` around http conduit code in `openURL`,
13376 so it works on Windows (#1080).
13378 * Added `Cite` function to `sample.lua`.
13380 * Markdown reader:
13382 + Fixed regression in title blocks (#1089).
13383 If author field was empty, date was being ignored.
13384 + Allow backslash-newline hard line breaks in grid and
13385 multiline table cells.
13386 + Citation keys may now start with underscores, and may contain
13387 underscores adjacent to internal punctuation.
13389 * LaTeX reader:
13391 + Add support for `Verb` macro (jrnold) (#1090).
13392 + Support babel-style quoting: `` "`..."' ``.
13394 * Properly handle script blocks in strict mode. (That is,
13395 `markdown-markdown_in_html_blocks`.) Previously a spurious
13396 `<p>` tag was being added (#1093).
13398 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
13399 elements.
13401 * LaTeX writer:
13403 + Factored out function for table cell creation.
13404 + Better treatment of footnotes in tables.
13405 Notes now appear in the regular sequence, rather than in the
13406 table cell. (This was a regression in 1.10.)
13408 * HTML reader: Parse name/content pairs from meta tags as metadata.
13409 Closes #1106.
13411 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
13413 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
13415 * ODT writer: Use mathml for proper rendering of formulas.
13416 Note: LibreOffice's support for this seems a bit buggy. But
13417 it should be better than what we had before.
13419 * RST writer: Ensure no blank line after def in definition list (#992).
13421 * Markdown writer: Don't use tilde code blocks with braced attributes in
13422 `markdown_github` output. A consequence of this change is that the
13423 backtick form will be preferred in general if both are enabled. That
13424 is good, as it is much more widespread than the tilde form. (#1084)
13426 * Docx writer: Fixed problem with some modified reference docx files.
13427 Include `word/_rels/settings.xml.rels` if it exists, as well as other
13428 `rels` files besides the ones pandoc generates explicitly.
13430 * HTML writer:
13432 + With `--toc`, headers no longer link to themselves (#1081).
13433 + Omit footnotes from TOC entries. Otherwise we get doubled
13434 footnotes when headers have notes!
13436 * EPUB writer:
13438 + Avoid duplicate notes when headings contain notes.
13439 This arose because the headings are copied into the metadata
13440 "title" field, and the note gets rendered twice. We strip the
13441 note now before putting the heading in "title".
13442 + Strip out footnotes from toc entries.
13443 + Fixed bug with `--epub-stylesheet`. Now the contents of
13444 `writerEpubStylesheet` (set by `--epub-stylesheet`)
13445 should again work, and take precedence over a stylesheet specified
13446 in the metadata.
13448 * `Text.Pandoc.Pretty`: Added `nestle`. API change.
13450 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
13452 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
13453 with `//`.
13455 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
13456 we could only get size information for JFIF format, which led
13457 to squished images in Word documents. Closes #976.
13459 * Removed old `MarkdownTest_1.0.3` directory (#1104).
13462## pandoc 1.12.2.1 (2013-12-08)
13464 * Markdown reader: Fixed regression in list parser, involving
13465 continuation lines containing raw HTML (or even verbatim raw HTML).
13467## pandoc 1.12.2 (2013-12-07)
13469 * Metadata may now be included in YAML blocks in a markdown document.
13470 For example,
13472 ---
13473 title:
13474 - type: main
13475 text: My Book
13476 - type: subtitle
13477 text: An investigation of metadata
13478 creator:
13479 - role: author
13480 text: John Smith
13481 - role: editor
13482 text: Sarah Jones
13483 identifier:
13484 - scheme: DOI
13485 text: doi:10.234234.234/33
13486 publisher: My Press
13487 rights: (c) 2007 John Smith, CC BY-NC
13488 cover-image: img/mypic.jpg
13489 stylesheet: style.css
13490 ...
13492 Metadata may still be provided using `--epub-metadata`; it will
13493 be merged with the metadata in YAML blocks.
13495 * EPUB writer:
13497 + `meta` tags are now used instead of `opf` attributes for EPUB3.
13498 + Insert "svg" property as needed in opf (EPUB 3).
13499 + Simplify `imageTypeOf` using `getMimeType`.
13500 + Add properties attribute to `cover-image` item for EPUB 3.
13501 + Don't include node for `cover.xhtml` if no cover!
13502 + Ensure that same identifier is used throughout (#1044).
13503 If an identifier is given in metadata, we use that; otherwise
13504 we generate a random uuid.
13505 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
13506 Fixes an issue with Calibre putting the cover at the end of the book
13507 if the spine has `linear="no"`. Apparently this is best practice
13508 for other converters as well:
13509 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
13510 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
13511 + Allow partial dates: `YYYY`, `YYYY-MM`.
13513 * Markdown writer: Fix rendering of tight sublists (#1050).
13514 Previously a spurious blank line was included after a tight sublist.
13516 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
13517 This is reported to be necessary to avoid an error from recent
13518 versions of Libre Office when files contain more than one image
13519 Thanks to wmanley for reporting and diagnosing the problem.
13521 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
13522 Instead, let this be set in the template, using `\setupfloat`.
13523 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
13525 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
13527 * Fixed bug with markdown intraword emphasis. Closes #1066.
13529 * Docbook writer: Hierarchicalize block content in metadata.
13530 Previously headers just disappeared from block-level metadata
13531 when it was used in templates. Now we apply the 'hierarchicalize'
13532 transformation. Note that a block headed by a level-2 header will
13533 turn into a `<sect1>` element.
13535 * OpenDocument writer: Skip raw HTML (#1035).
13536 Previously it was erroneously included as verbatim text.
13538 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
13539 This allows better control of formatting, since the `<a>`
13540 tags have a distinguishing class (#1049).
13542 * Docx writer:
13544 + Use mime type info returned by fetchItem.
13545 + Fixed core metadata (#1046).
13546 Don't create empty date nodes if no date given.
13547 Don't create multiple `dc:creator` nodes; instead separate by
13548 semicolons.
13549 + Fix URL for core-properties in `_rels/.rels` (#1046).
13551 * Plain writer: don't print `<span>` tags.
13553 * LaTeX writer:
13555 + Fix definition lists with internal links in terms (#1032).
13556 This fix puts braces around a term that contains an internal
13557 link, to avoid problems with square brackets.
13558 + Properly escape pdftitle, pdfauthor (#1059).
13559 + Use booktabs package for tables (thanks to Jose Luis Duran).
13561 * Updated beamer template. Now references should work properly
13562 (in a slide) when `--biblatex` or `--natbib` is used.
13564 * LaTeX reader:
13566 + Parse contents of curly quotes or matched `"` as quotes.
13567 + Support `\textnormal` as span with class `nodecor`.
13568 This is needed for pandoc-citeproc.
13569 + Improved citation parsing. This fixes a run-time error that occurred
13570 with `\citet{}` (empty list of keys). It also ensures that empty keys
13571 don't get produced.
13573 * MediaWiki reader: Add automatic header identifiers.
13575 * HTML reader:
13577 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
13578 `--parse-raw`.
13579 + Recognize `svg` tags as block level content (thanks to MinRK).
13580 + Parse LaTeX math if appropriate options are set.
13582 * Markdown reader:
13584 + Yaml block must start immediately after `---`. If there's a blank
13585 line after `---`, we interpreted it as a horizontal rule.
13586 + Correctly handle empty bullet list items.
13587 + Stop parsing "list lines" when we hit a block tag.
13588 This fixes exponential slowdown in certain input, e.g.
13589 a series of lists followed by `</div>`.
13591 * Slides: Preserve `<div class="references">` in references slide.
13593 * `Text.Pandoc.Writer.Shared`:
13595 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
13596 attributes, leading to invalid HTML.
13597 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
13598 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
13599 encoded bytestring was returned. We now decode it so it's a proper
13600 image!
13602 * DocBook reader: Handle numerical attributes starting with decimal.
13603 Also use `safeRead` instead of `read`.
13605 * `Text.Pandoc.Parsing`:
13607 + Generalized type of `registerHeader`, using new type classes
13608 `HasReadeOptions`, `HasIdentifierList`, `HasHeaderMap`.
13609 These allow certain common functions to be reused
13610 even in parsers that use custom state (instead of `ParserState`),
13611 such as the MediaWiki reader.
13612 + Moved inlineMath, displayMath from Markdown reader to Parsing.
13613 Generalize their types and export them from Parsing. (API change.)
13615 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
13616 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
13617 in all the writers. Require `texmath >= 0.6.5.2`.
13619 * `Text.Pandoc.MIME`:
13621 + Add entry for `jfif`.
13622 + In looking up extensions, drop the encoding info.
13623 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
13625 * Templates: Changed how array variables are resolved. Previously if
13626 `foo` is an array (which might be because multiple values were set on
13627 the command line), `$foo$` would resolve to the concatenation of the
13628 elements of foo. This is rarely useful behavior. It has been changed
13629 so that the first value is rendered. Of course, you can still iterate
13630 over the values using `$for(foo)$`. This has the result that you can
13631 override earlier settings using `-V` by putting new values later on the
13632 command line, which is useful for many purposes.
13634 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
13636 * Allow "epub2" as synonym for "epub", "html4" for "html".
13638 * Don't look for slidy files in data files with `--self-contained`.
13640 * Allow `https:` command line arguments to be downloaded.
13642 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
13644## pandoc 1.12.1 (2013-10-20)
13646 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
13647 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
13648 "c": "foo"}`. This new format is easier to work with outside of Haskell.
13649 Incidentally, "t" stands for "tag", "c" for "contents".
13651 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
13652 when converting to markdown (#1027).
13654 * LaTeX reader:
13656 + Ensure that preamble doesn't contribute to the text of
13657 the document.
13658 + Fixed character escaping in `\url{}`. Previously `\~` wasn't handled
13659 properly, among others.
13660 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
13661 bibtex titles, since we need to know what was protected from
13662 titlecase conversions.
13664 * LaTeX writer:
13666 + Specially escape non-ascii characters in labels.
13667 Otherwise we can get compile errors and other bugs when
13668 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
13669 + Add link anchors for code blocks with identifiers (#1025).
13671 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
13672 It allows fragments identifiers.
13674 * Slide formats:
13676 + A Div element with class "notes" is treated as speaker
13677 notes. Currently beamer goes to `\note{}`, revealjs to
13678 `<aside class="notes">`, and the notes are simply suppressed in
13679 other formats (#925).
13680 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
13681 The old version caused a pause to be inserted before the first
13682 material on a slide. This has been fixed.
13683 + Removed data files for s5, slideous, slidy.
13684 Users of s5 and slideous will have to download the needed
13685 files, as has been documented for some time in the README.
13686 By default, slidy code will be sought on the web, as before.
13688 * HTML writer: Insert command to typeset mathjax only in slideous output
13689 (#966, #1012).
13691 * RST writer: Skip spaces after display math. Otherwise we get indentation
13692 problems, and part of the next paragraph may be rendered as part of the
13693 math.
13695 * OpenDocument writer: Fix formatting of strikeout code (#995),
13696 thanks to wilx. don't use `font-face-decls` variable.
13698 * Fixed test suite so it works with cabal sandboxes.
13700## pandoc 1.12.0.2 (2013-09-20)
13702 * Removed an unused dependency (`stringable`) from pandoc.cabal.
13703 This will help packagers, but users should not need to upgrade.
13705## pandoc 1.12.0.1 (2013-09-20)
13707 * Allow `--metadata` to be repeated for the same key to form a list.
13708 This also has the effect that `--bibliography` can be repeated,
13709 as before.
13711 * Handle boolean values in `--metadata`. Note that anything not parseable
13712 as a YAML boolean or string is treated as a literal string.
13713 You can get a string value with "yes", or any of the strings interpretable
13714 as booleans, by quoting it:
13716 -M boolvalue=yes -M stringvalue='"yes"'
13718 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
13719 option used.
13721 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
13722 in which docx files could not be read by some versions of Word
13723 and LibreOffice (#990).
13725 * Fixed a regression involving slide shows with bibliographies.
13726 The Div container around references messed up the procedure for carving
13727 a document into slides. So we now remove the surrounding Div in
13728 `prepSlides`.
13730 * More informative error message when a filter is not found in path.
13732 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
13733 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
13735 * Don't use unicode_collation in building OSX package:
13736 it adds something like 50MB of dependencies to the package.
13738 * Declare alex and happy as build-tools (#986).
13740## pandoc 1.12 (2013-09-15)
13742### New features
13744 * Much more flexible metadata, including arbitrary fields and structured
13745 values. Metadata can be specified flexibly in pandoc markdown using
13746 YAML metadata blocks, which may occur anywhere in the document:
13748 ---
13749 title: Here is my title.
13750 abstract: |
13751 This is the abstract.
13753 1. It can contain
13754 2. block content
13755 and *inline markup*
13757 tags: [cat, dog, animal]
13758 ...
13760 Metadata fields automatically populate template variables.
13762 * Added `opml` (OPML) as input and output format. The `_note` attribute,
13763 used in OmniOutliner and supported by multimarkdown, is supported.
13764 We treat the contents as markdown blocks under a section header.
13766 * Added `haddock` (Haddock markup) as input format (David Lazar).
13768 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
13769 (Thanks to Jamie F. Olson for the initial patch.)
13770 Nested vertical stacks are used for hierarchical structure.
13771 Results for more than one level of nesting may be odd.
13773 * Custom writers can now be written in lua.
13775 pandoc -t data/sample.lua
13777 will load the script sample.lua and use it as a custom writer.
13778 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
13779 Note that pandoc embeds a lua interpreter, so lua need not be
13780 installed separately.
13782 * New `--filter/-F` option to make it easier to run "filters"
13783 (Pandoc AST transformations that operate on JSON serializations).
13784 Filters are always passed the name of the output format, so their
13785 behavior can be tailored to it. The repository
13786 <https://github.com/jgm/pandocfilters> contains
13787 a python module for writing pandoc filters in python, with
13788 a number of examples.
13790 * Added `--metadata/-M` option.
13791 This is like `--variable/-V`, but actually adds to metadata, not
13792 just variables.
13794 * Added `--print-default-data-file` option, which allows printing
13795 of any of pandoc's data files. (For example,
13796 `pandoc --print-default-data-file reference.odt` will print
13797 `reference.odt`.)
13799 * Added syntax for "pauses" in slide shows:
13801 This gives
13803 . . .
13805 me pause.
13807 * New markdown extensions:
13809 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
13810 rather than being treated as hard line breaks or spaces. This is useful
13811 for some East Asian languages, where spaces aren't used between words,
13812 but text is separated into lines for readability.
13813 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
13814 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
13815 only. (Default for `markdown_github`.) (#807)
13816 + `lists_without_preceding_blankline`: Allow lists to start without
13817 preceding blank space. (Default for `markdown_github`.) (#972)
13819### Behavior changes
13821 * `--toc-level` no longer implies `--toc`.
13822 Reason: EPUB users who don't want a visible TOC may still want
13823 to set the TOC level for in the book navigation.
13825 * `--help` now prints in and out formats in alphabetical order, and
13826 says something about PDF output (#720).
13828 * `--self-contained` now returns less verbose output (telling you
13829 which URLs it is fetching, but not giving the full header). In
13830 addition, there are better error messages when fetching a URL fails.
13832 * Citation support is no longer baked in to core pandoc. Users who
13833 need citations will need to install and use a separate filter
13834 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
13835 `csl`, and `citation-abbreviations` from the metadata, though it
13836 may still be specified on the command line as before.
13838 * A `Cite` element is now created in parsing markdown whether or not
13839 there is a matching reference.
13841 * The `pandoc-citeproc` script will put the bibliography at the
13842 end of the document, as before. However, it will be put inside a `Div`
13843 element with class "references", allowing users some control
13844 over the styling of references. A final header, if any, will
13845 be included in the `Div`.
13847 * The markdown writer will not print a bibliography if the
13848 `citations` extension is enabled. (If the citations are formatted
13849 as markdown citations, it is redundant to have a bibliography,
13850 since one will be generated automatically.)
13852 * Previously we used to store the directory of the first input file,
13853 even if it was local, and used this as a base directory for finding
13854 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
13855 users. So we now look for images relative to the current
13856 working directory, even if the first file argument is in another
13857 directory. Note that this change may break some existing workflows.
13858 If you have been assuming that relative links will be interpreted
13859 relative to the directory of the first file argument, you'll need
13860 to make that the current directory before running pandoc. (#942)
13862 * Better error reporting in some readers, due to changes in `readWith`:
13863 the line in which the error occurred is printed, with a caret pointing
13864 to the column.
13866 * All slide formats now support incremental slide view for definition lists.
13868 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
13869 Parse `:<math>...</math>` as display math. These notations are used with
13870 the MathJax MediaWiki extension.
13872 * All writers: template variables are set automatically from metadata
13873 fields. However, variables specified on the command line with
13874 `--variable` will completely shadow metadata fields.
13876 * If `--variable` is used to set many variables with the same name,
13877 a list is created.
13879 * Man writer: The `title`, `section`, `header`, and `footer` can now
13880 all be set individually in metadata. The `description` variable has been
13881 removed. Quotes have been added so that spaces are allowed in the
13882 title. If you have a title that begins
13884 COMMAND(1) footer here | header here
13886 pandoc will still parse it into a title, section, header, and
13887 footer. But you can also specify these elements explicitly (#885).
13889 * Markdown reader
13891 + Added support for YAML metadata blocks, which can come anywhere
13892 in the document (not just at the beginning). A document can contain
13893 multiple YAML metadata blocks.
13894 + HTML span and div tags are parsed as pandoc Span and Div elements.
13896 * Markdown writer
13898 + Allow simple tables to be printed as grid tables,
13899 if other table options are disabled. This means you can do
13900 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
13901 and all tables will render as grid tables.
13902 + Support YAML title block (render fields in alphabetical order
13903 to make output predictable).
13905### API changes
13907 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
13908 structured metadata. (Note: existing code that pattern-matches
13909 on `Meta` will have to be revised.) Metadata can now contain
13910 indefinitely many fields, with content that can be a string,
13911 a Boolean, a list of `Inline` elements, a list of `Block`
13912 elements, or a map or list of these.
13914 * A new generic block container (`Div`) has been added to `Block`,
13915 and a generic inline container (`Span`) has been added to `Inline`.
13916 These can take attributes. They will render in HTML, Textile,
13917 MediaWiki, Org, RST and Markdown (with `markdown_in_html`
13918 extension) as HTML `<div>` and `<span>` elements; in other formats
13919 they will simply pass through their contents. But they can be
13920 targeted by scripts.
13922 * `Format` is now a newtype, not an alias for String.
13923 Equality comparisons are case-insensitive.
13925 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
13926 functions that are much faster than the SYB functions from
13927 `Text.Pandoc.Generic`. These functions are now used where possible
13928 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
13929 match the generic traversals `bottomUp` and `queryWith`.)
13931 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
13932 instances for the basic pandoc types. They use GHC generics and
13933 should be faster than the old JSON serialization using
13934 `Data.Aeson.Generic`.
13936 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
13937 This is a souped-up version of `readProcessWithErrorcode` that
13938 uses lazy bytestrings instead of strings and allows setting
13939 environment variables. (Used in `Text.Pandoc.PDF`.)
13941 * New module `Text.Pandoc.Readers.OPML`.
13943 * New module `Text.Pandoc.Writers.OPML`.
13945 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
13946 This is based on Haddock's own lexer/parser.
13948 * New module `Text.Pandoc.Writers.Custom`.
13950 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
13951 Either, for better error handling.
13953 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
13955 * Removed `stripTags` from `Text.Pandoc.XML`.
13957 * `Text.Pandoc.Templates`:
13959 + Simplified `Template` type to a newtype.
13960 + Removed `Empty`.
13961 + Changed type of `renderTemplate`: it now takes a JSON context
13962 and a compiled template.
13963 + Export `compileTemplate`.
13964 + Export `renderTemplate'` that takes a string instead of a compiled
13965 template.
13966 + Export `varListToJSON`.
13968 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
13970 * `Text.Pandoc`:
13972 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
13973 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
13974 `Text.Pandoc.JSON` should be used instead. (Compiling against
13975 pandoc-types instead of pandoc will also produce smaller executables.)
13976 * Removed the deprecated `jsonFilter` function.
13977 + Added `readJSON`, `writeJSON` to the API (#817).
13979 * `Text.Pandoc.Options`:
13981 + Added `Ext_lists_without_preceding_blankline`,
13982 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
13983 `Ext_yaml_metadataBlock` to `Extension`.
13984 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
13985 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
13986 first command-line argument is an absolute URL. (So, relative links
13987 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
13988 + All bibliography-related fields have been removed from
13989 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
13990 `readerReferences`, `readerCitationStyle`.
13992 * The `Text.Pandoc.Biblio` module has been removed. Users of the
13993 pandoc library who want citation support will need to use
13994 `Text.CSL.Pandoc` from `pandoc-citeproc`.
13996### Bug fixes
13998 * In markdown, don't autolink a bare URI that is followed by `</a>`
13999 (#937).
14001 * `Text.Pandoc.Shared`
14003 + `openURL` now follows redirects (#701), properly handles `data:`
14004 URIs, and prints diagnostic output to stderr rather than stdout.
14005 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
14006 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
14007 + Fixed `readDefaultDataFile` so it works on Windows.
14008 + Better error messages for `readDefaultDataFile`. Instead of
14009 listing the last path tried, which can confuse people who are
14010 using `--self-contained`, so now we just list the data file name.
14011 + URL-escape pipe characters. Even though these are legal, `Network.URI`
14012 doesn't regard them as legal in URLs. So we escape them first (#535).
14014 * Mathjax in HTML slide shows: include explicit "Typeset" call.
14015 This seems to be needed for some formats (e.g. slideous) and won't
14016 hurt in others (#966).
14018 * `Text.Pandoc.PDF`
14020 + On Windows, create temdir in working directory, since the system
14021 temp directory path may contain tildes, which can cause
14022 problems in LaTeX (#777).
14023 + Put temporary output directory in `TEXINPUTS` (see #917).
14024 + `makePDF` tries to download images that are not found locally,
14025 if the first argument is a URL (#917).
14026 + If compiling with `pdflatex` yields an encoding error, offer
14027 the suggestion to use `--latex-engine=xelatex`.
14029 * Produce automatic header identifiers in parsing textile, RST,
14030 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
14032 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
14033 before treating as a filename. This fixes `--self-contained` when used
14034 with CSS files that include web fonts using the method described here:
14035 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
14036 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
14038 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
14039 percent-encoding, or a `+` character, as final punctuation.
14041 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
14042 EPS images properly sized on conversion to Word.
14044 * Slidy: Use slidy.js rather than slidy.js.gz.
14045 Reason: some browsers have trouble with the gzipped js file,
14046 at least on the local file system (#795).
14048 * Markdown reader
14050 + Properly handle blank line at beginning of input (#882).
14051 + Fixed bug in unmatched reference links. The input
14052 `[*infile*] [*outfile*]` was getting improperly parsed:
14053 "infile" was emphasized, but "*outfile*" was literal (#883).
14054 + Allow internal `+` in citation identifiers (#856).
14055 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
14056 + Do not generate blank title, author, or date metadata elements.
14057 Leave these out entirely if they aren't present.
14058 + Allow backtick code blocks not to be preceded by blank line (#975).
14060 * Textile reader:
14062 + Correctly handle entities.
14063 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
14064 in code blocks, rather than printing them verbatim. Parse attributes
14065 on `<pre>` tag for code blocks.
14067 * HTML reader: Handle non-simple tables (#893). Column widths are read from
14068 `col` tags if present, otherwise divided equally.
14070 * LaTeX reader
14072 + Support alltt environment (#892).
14073 + Support `\textasciitilde`, `\textasciicircum` (#810).
14074 + Treat `\textsl` as emphasized text reader (#850).
14075 + Skip positional options after `\begin{figure}`.
14076 + Support `\v{}` for hacek (#926).
14077 + Don't add spurious ", " to citation suffixes.
14078 This is added when needed in pandoc-citeproc.
14079 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
14080 + Improved support for accented characters (thanks to Scott Morrison).
14081 + Parse label after section command and set id (#951).
14083 * RST reader:
14085 + Don't insert paragraphs where docutils doesn't.
14086 `rst2html` doesn't add `<p>` tags to list items (even when they are
14087 separated by blank lines) unless there are multiple paragraphs in the
14088 list. This commit changes the RST reader to conform more closely to
14089 what docutils does (#880).
14090 + Improved metadata. Treat initial field list as metadata when
14091 standalone specified. Previously ALL fields "title", "author",
14092 "date" in field lists were treated as metadata, even if not at
14093 the beginning. Use `subtitle` metadata field for subtitle.
14094 + Fixed 'authors' metadata parsing in reST. Semicolons separate
14095 different authors.
14097 * MediaWiki reader
14099 + Allow space before table rows.
14100 + Fixed regression for `<ref>URL</ref>`.
14101 `<` is no longer allowed in URLs, according to the uri parser
14102 in `Text.Pandoc.Parsing`. Added a test case.
14103 + Correctly handle indented preformatted text without preceding
14104 or following blank line.
14105 + Fixed `|` links inside table cells. Improved attribute parsing.
14106 + Skip attributes on table rows. Previously we just crashed if
14107 rows had attributes, now we ignore them.
14108 + Ignore attributes on headers.
14109 + Allow `Image:` for images (#971).
14110 + Parse an image with caption in a paragraph by itself as a figure.
14112 * LaTeX writer
14114 + Don't use ligatures in escaping inline code.
14115 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
14116 wherein notes were numbered incorrectly in tables (#827).
14117 + Always create labels for sections. Previously the labels were only
14118 created when there were links to the section in the document (#871).
14119 + Stop escaping `|` in LaTeX math.
14120 This caused problems with array environments (#891).
14121 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
14122 `\` will cause major problems if unescaped.
14123 + Write id for code block to label attribute in LaTeX when listings
14124 is used (thanks to Florian Eitel).
14125 + Scale LaTeX tables so they don't exceed columnwidth.
14126 + Avoid problem with footnotes in unnumbered headers (#940).
14128 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
14129 to the slide if it is one of the header classes. It is recommended
14130 that your bibliography slide have this attribute:
14132 # References {.allowframebreaks}
14134 This causes multiple slides to be created if necessary, depending
14135 on the length of the bibliography.
14137 * ConTeXt writer: Properly handle tables without captions. The old output
14138 only worked in MkII. This should work in MkIV as well (#837).
14140 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
14142 * HTML writer:
14144 + Fixed `--no-highlight` (Alexander Kondratskiy).
14145 + Don't convert to lowercase in email obfuscation (#839).
14146 + Ensure proper escaping in `<title>` and `<meta>` fields.
14148 * AsciiDoc writer:
14150 + Support `--atx-headers` (Max Rydahl Andersen).
14151 + Don't print empty identifier blocks `([[]])` on headers (Max
14152 Rydahl Andersen).
14154 * ODT writer:
14156 + Fixing wrong numbered-list indentation in open document format
14157 (Alexander Kondratskiy) (#369).
14158 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
14159 + Minor changes for ODF 1.2 conformance (#939). We leave the
14160 nonconforming `contextual-spacing` attribute, which is provided by
14161 LibreOffice itself and seems well supported.
14163 * Docx writer:
14165 + Fixed rendering of display math in lists.
14166 In 1.11 and 1.11.1, display math in lists rendered as a new list
14167 item. Now it always appears centered, just as outside of lists,
14168 and in proper display math style, no matter how far indented the
14169 containing list item is (#784).
14170 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
14171 Previously we used `w:cr` (#873).
14172 + Use Compact style for Plain block elements, to
14173 differentiate between tight and loose lists (#775).
14174 + Ignore most components of `reference.docx`.
14175 We take the `word/styles.xml`, `docProps/app.xml`,
14176 `word/theme/theme1.xml`, and `word/fontTable.xml` from
14177 `reference.docx`, ignoring everything else. This should help
14178 with the corruption problems caused when different versions of
14179 Word resave the reference.docx and reorganize things.
14180 + Made `--no-highlight` work properly.
14182 * EPUB writer
14184 + Don't add `dc:creator` tags if present in EPUB metadata.
14185 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
14186 + Don't put blank title page in reading sequence.
14187 Set `linear="no"` if no title block. Addresses #797.
14188 + Download webtex images and include as data URLs.
14189 This allows you to use `--webtex` in creating EPUBs.
14190 Math with `--webtex` is automatically made self-contained.
14191 + In `data/epub.css`, removed highlighting styles (which
14192 are no longer needed, since styles are added by the HTML
14193 writer according to `--highlighting-style`). Simplified
14194 margin fields.
14195 + If resource not found, skip it, as in Docx writer (#916).
14197 * RTF writer:
14199 + Properly handle characters above the 0000-FFFF range.
14200 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
14201 + Fixed regression with RTF table of contents.
14202 + Only autolink absolute URIs. This fixes a regression, #830.
14204 * Markdown writer:
14206 + Only autolink absolute URIs. This fixes a regression, #830.
14207 + Don't wrap attributes in fenced code blocks.
14208 + Write full metadata in MMD style title blocks.
14209 + Put multiple authors on separate lines in pandoc titleblock.
14210 Also, don't wrap long author entries, as new lines get treated
14211 as new authors.
14213 * `Text.Pandoc.Templates`:
14215 + Fixed bug retrieving default template for markdown variants.
14216 + Templates can now contain "record lookups" in variables;
14217 for example, `author.institution` will retrieve the `institution`
14218 field of the `author` variable.
14219 + More consistent behavior of `$for$`. When `foo` is not a list,
14220 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
14221 So if `foo` resolves to "", no output should be produced.
14222 See pandoc-templates#39.
14224 * Citation processing improvements (now part of pandoc-citeproc):
14226 + Fixed `endWithPunct` The new version correctly sees a sentence
14227 ending in '.)' as ending with punctuation. This fixes a bug which
14228 led such sentences to receive an extra period at the end: '.).'.
14229 Thanks to Steve Petersen for reporting.
14230 + Don't interfere with Notes that aren't citation notes.
14231 This fixes a bug in which notes not generated from citations were
14232 being altered (e.g. first letter capitalized) (#898).
14233 + Only capitalize footnote citations when they have a prefix.
14234 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
14235 inserted before it before passing to citeproc-hs, so that bare numbers
14236 are treated as page numbers by default. A suffix not beginning with
14237 punctuation has a space added at the beginning (rather than a comma and
14238 space, as was done before for not-author-in-text citations).
14239 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
14240 properly, with '23' treated as a locator of type 'page'.
14241 + Many improvements to citation rendering, due to fixes in citeproc-hs
14242 (thanks to Andrea Rossato).
14243 + Warnings are issued for undefined citations, which are rendered
14244 as `???`.
14245 + Fixed hanging behavior when locale files cannot be found.
14247### Template changes
14249 * DocBook: Use DocBook 4.5 doctype.
14251 * Org: '#+TITLE:' is inserted before the title.
14252 Previously the writer did this.
14254 * LaTeX: Changes to make mathfont work with xelatex.
14255 We need the mathspec library, not just fontspec, for this.
14256 We also need to set options for setmathfont (#734).
14258 * LaTeX: Use `tex-ansi` mapping for `monofont`.
14259 This ensures that straight quotes appear as straight, rather than
14260 being treated as curly. See #889.
14262 * Made `\includegraphics` more flexible in LaTeX template.
14263 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
14265 * LaTeX/Beamer: Added `classoption` variable.
14266 This is intended for class options like `oneside`; it may
14267 be repeated with different options. (Thanks to Oliver Matthews.)
14269 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
14271 * LaTeX: Added `biblio-style` variable (#920).
14273 * DZSlides: title attribute on title section.
14275 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
14277### Under-the-hood improvements
14279 * Markdown reader:Improved strong/emph parsing, using the strategy of
14280 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
14281 no backtracking, and no keeping track of nesting levels. It will give
14282 different results in some edge cases, but these should not affect normal
14283 uses.
14285 * Added `Text.Pandoc.Compat.Monoid`.
14286 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
14287 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
14289 * Added `Text.Pandoc.Compat.TagSoupEntity`.
14290 This allows pandoc to compile with `tagsoup` 0.13.x.
14291 Thanks to Dirk Ullrich for the patch.
14293 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
14294 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
14295 handle simple math in bibliography fields.)
14297 * Added `Text.Pandoc.Writers.Shared` for shared functions used
14298 only in writers. `metaToJSON` is used in writers to create a
14299 JSON object for use in the templates from the pandoc metadata
14300 and variables. `getField`, `setField`, and `defField` are
14301 for working with JSON template contexts.
14303 * Added `Text.Pandoc.Asciify` utility module.
14304 This exports functions to create ASCII-only versions of identifiers.
14306 * `Text.Pandoc.Parsing`
14308 + Generalized state type on `readWith` (API change).
14309 + Specialize readWith to `String` input. (API change).
14310 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
14311 with `stateMeta` and `stateMeta'`.
14313 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
14314 bytestrings seemed to cause problems using pandoc on 64-bit Windows
14315 7/8 (#874).
14317 * Factored out `registerHeader` from markdown reader, added to
14318 `Text.Pandoc.Parsing`.
14320 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
14321 Reason: < 0.5 does not provide a monoid instance for Attribute,
14322 which is now needed by the HTML writer (#803).
14324 * Added `http-conduit` flag, which allows fetching https resources.
14325 It also brings in a large number of dependencies (`http-conduit`
14326 and its dependencies), which is why for now it is an optional flag
14327 (#820).
14329 * Added CONTRIBUTING.md.
14331 * Improved INSTALL instructions.
14333 * `make-windows-installer.bat`: Removed explicit paths for executables.
14335 * `aeson` is now used instead of `json` for JSON.
14337 * Set default stack size to 16M. This is needed for some large
14338 conversions, esp. if pandoc is compiled with 64-bit ghc.
14340 * Various small documentation improvements.
14341 Thanks to achalddave and drothlis for patches.
14343 * Removed comment that chokes recent versions of CPP (#933).
14345 * Removed support for GHC version < 7.2, since pandoc-types now
14346 requires at least GHC 7.2 for GHC generics.
14349## pandoc 1.11.1 (2013-03-17)
14351 * Markdown reader:
14353 + Fixed regression in which parentheses were lost in link URLs.
14354 Added tests. Closes #786.
14355 + Better handling of unmatched double quotes in `--smart` mode.
14356 These occur frequently in fiction, since it is customary not to
14357 close quotes in dialogue if the speaker does not change between
14358 paragraphs. The unmatched quotes now get turned into literal
14359 left double quotes. (No `Quoted` inline is generated, however.)
14360 Closes #99 (again).
14362 * HTML writer: Fixed numbering mismatch between TOC and sections.
14363 `--number-offset` now affects TOC numbering as well
14364 as section numbering, as it should have all along. Closes #789.
14366 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
14367 as markdown citations, even if `--bibliography` was specified, unless
14368 `citation` extension is disabled. Now, formatted citations are always
14369 printed if `--bibliography` was specified. If you want to reformat
14370 markdown keeping pandoc markdown citations intact, don't use
14371 `--bibliography`. Note that citations parsed from LaTeX documents will
14372 be rendered as pandoc markdown citations when `--bibliography` is not
14373 specified.
14375 * ODT writer: Fixed regression leading to corrupt ODTs.
14376 This was due to a change in the `Show` instance for
14377 `Text.Pandoc.Pretty.Doc`. Closes #780.
14379 * Fixed spacing bugs involving code block attributes in
14380 RST reader and Markdown writer. Closes #763.
14382 * Windows package: Various improvements due to Fyodor Sheremetyev.
14384 + Automatically set installation path (Program Files or Local App Data).
14385 + Set system PATH environment variable when installing for all users.
14386 + Pandoc can installed for all users using the following command.
14387 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
14389 * Bumped QuickCheck version bound.
14391## pandoc 1.11 (2013-03-09)
14393 * Added `--number-offset` option. (See README for description.)
14395 * Added `--default-image-extension` option. (See README for description.)
14397 * `--number-sections` behavior change: headers with class `unnumbered`
14398 will not be numbered.
14400 * `--version` now reports the default data directory.
14402 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
14404 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
14406 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
14407 a field for `Attr` rather than just `String`. (API change.)
14409 * Added `markdown_github` as input format. This was an accidental
14410 omission in 1.10.
14412 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
14413 change.)
14415 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
14417 * Beamer template:
14419 + Fixed captions with longtable. Thanks to Joost Kremers.
14420 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
14422 * LaTeX template:
14424 + Load microtype after fonts. Microtype needs to know
14425 what fonts are being used. Thanks to dfc for the patch.
14426 + Set `secnumdepth` to 5 if `--number-sections` specified.
14427 This yields behavior equivalent to the other writers, numbering
14428 level 4 and 5 headers too. Closes #753.
14430 * HTML reader:
14432 + Handle `<colgroup>` tag.
14433 + Preserve all header attributes.
14435 * LaTeX reader:
14437 + Parse `\hrule` as `HorizontalRule`. Closes #746.
14438 + Parse starred variants of `\section` etc. as headers with
14439 attribute `unnumbered`.
14440 + Read optional attributes in `lstlisting` and `Verbatim` environments.
14441 We convert these to pandoc standard names, e.g. `numberLines`
14442 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
14443 + Handle language attribute for lstlistings.
14444 + Better support for Verbatim and minted environments. Closes #763.
14446 * Markdown reader:
14448 + `-` in an attribute context = `.unnumbered`. The point of this
14449 is to provide a way to specify unnumbered headers in non-English
14450 documents.
14451 + Fixed bug parsing key/value attributes. Parsing failed if you
14452 had an unquoted attribute immediately before the final '}'.
14453 + Make backslash escape work in attributes.
14454 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
14455 pandoc will parse a MMD title block if it sees one, even if
14456 `pandoc_title_blocks` is enabled.
14457 + Refactoring: `litChar` now includes entities, so we don't need
14458 to use `fromEntities` e.g. on titles.
14459 + Allow spaces around borders in pipe tables. Closes #772.
14460 + Allow all punctuation in angle-bracket autolinks. Previously
14461 things like `----` were disallowed, because the uri parser
14462 treated them as trailing punctuation. Closes #768.
14463 + Make `implicit_header_references` work properly when
14464 headers are given explicit identifiers.
14465 + Check for tables before line blocks. Otherwise some pipe
14466 tables get treated as line blocks.
14467 + Allow `&` in emails (for entities).
14468 + Properly handle entities in titles and links. A markdown link
14469 `<http://g&ouml;ogle.com>` should be a link to `http://göogle.com`.
14470 Closes #723.
14472 * Textile reader:
14474 + Handle attributes on headers.
14476 * LaTeX reader:
14478 + Add `fig:` as title for images with captions.
14479 This is needed for them to be rendered as figures. Closes #766.
14480 + Never emit an empty paragraph. See #761.
14481 + Handle `\caption` for images in figures. Closes #766.
14482 + Parse `\section*`, etc. as unnumbered sections.
14484 * HTML writer:
14486 + Support header attributes. The attributes go on
14487 the enclosing `section` or `div` tag if `--section-divs` is specified.
14488 + Fixed a regression (only now noticed) in html+lhs output.
14489 Previously the bird tracks were being omitted.
14491 * LaTeX writer:
14493 + Omit lists with no items to avoid LaTeX errors.
14494 + Support line numbering with `--listings`.
14495 If `numberLines` class is present, we add `numbers=left`;
14496 if `startFrom` is present, we add `firstnumber=`. (#763)
14498 * ConTeXt writer:
14500 + Removed `\placecontent`. This produced a duplicate toc,
14501 in conjunction with `\placelist`.
14502 + Use `\title`, `\subject` etc. for headers with
14503 `unnumbered` class.
14505 * Textile writer:
14507 + Support header attributes.
14509 * Markdown writer:
14511 + Use grid tables when needed, and if enabled. Closes #740.
14512 + Render citations as pandoc-markdown citations.
14513 Previously citations were rendered as citeproc-formatted citations
14514 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
14515 unless the `citations` extension is disabled.
14516 If you still want formatted citations in your markdown output,
14517 use `pandoc -t markdown-citations`.
14519 * RST writer:
14521 + Support `:number-lines:` in code blocks.
14523 * Docx writer:
14525 + Better treatment of display math. Display math inside a
14526 paragraph is now put in a separate paragraph, so it will render
14527 properly (centered and without extra blank lines around it).
14528 Partially addresses #742.
14529 + Content types and document rels xml files are now created from
14530 scratch, rather than being taken over from `reference.docx`.
14531 This fixes problems that arise when you edit the `reference.docx`
14532 with Word.
14533 + We also now encode mime types for each individual image rather
14534 than using defaults. This should allow us to handle a wider
14535 range of image types (including PDF). Closes #414.
14536 + Changed style names in `reference docx`.
14537 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
14538 The old names got changed by Word when the `reference.docx` was
14539 edited. Closes #414.
14541 * EPUB writer:
14543 + Fix section numbering. Previously the numbering restarted from 1
14544 in each chapter (with `--number-sections`), though the numbers in
14545 the table of contents were correct.
14546 + Headers with "unnumbered" attribute are not numbered. (Nor do they
14547 cause an increment in running numbering.) Section numbers now work
14548 properly, even when there is material before the first numbered section.
14549 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
14550 but `linear` is set to `no` unless the `--toc` option is specified.
14551 Include `<guide>` element in OPF. This should allow the TOC to
14552 be usable in Kindles when converted with kindlegen. Closes #773.
14554 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
14555 This dramatically reduces the speed penalty that comes from enabling the
14556 `autolink_bare_uris` extension. The penalty is still substantial (in one
14557 test, from 0.33s to 0.44s), but nowhere near what it used to be.
14558 The RST reader is also much faster now, as it autodetects URIs.
14560 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
14561 with class "unnumbered". Unnumbered sections get `[]` for their
14562 section number.
14564 * `Text.Pandoc.Pretty`:
14566 + Fixed `chomp` so it works inside `Prefixed` elements.
14567 + Changed `Show` instance so it is better for debugging.
14569 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
14571 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
14573 * Windows installer improvements:
14575 + The installer is now signed with a certificate (thanks to
14576 Fyodor Sheremetyev).
14577 + WiX is used instead of InnoSetup. The installer is now a
14578 standard msi file.
14579 + The version number is now auto-detected, and need not be
14580 updated separately.
14582 * OSX installer improvements:
14584 + The package and pandoc executable are now signed with a
14585 certificate (thanks to Fyodor Sheremetyev).
14586 + RTF version of license is used.
14587 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
14588 Closes #580.
14590 * Converted COPYING to markdown.
14592 * pandoc.cabal: Require latest versions of highlighting-kate,
14593 texmath, citeproc-hs, zip-archive.
14595## pandoc 1.10.1 (2013-01-23)
14597 * Markdown reader: various optimizations, leading to a
14598 significant performance boost.
14600 * RST reader: Allow anonymous form of inline links:
14601 `` `hello <url>`__ `` Closes #724.
14603 * Mediawiki reader: Don't require newlines after tables.
14604 Thanks to jrunningen for the patch. Closes #733.
14606 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
14607 when output is LaTeX, and applied when it is another format.
14608 Partially addresses #730.
14610 * Markdown and RST readers: Added parser to `block` that skips blank
14611 lines. This fixes a subtle regression involving grid tables with
14612 empty cells. Also added test for grid table with empty cells.
14613 Closes #732.
14615 * RST writer: Use `.. code:: language` for code blocks with language.
14616 Closes #721.
14618 * DocBook writer: Fixed output for hard line breaks, adding a newline
14619 between `<literallayout>` tags.
14621 * Markdown writer: Use an autolink when link text matches url.
14622 Previously we also checked for a null title, but this
14623 test fails for links produced by citeproc-hs in bibliographies.
14624 So, if the link has a title, it will be lost on conversion
14625 to an autolink, but that seems okay.
14627 * Markdown writer: Set title, author, date variables as before.
14628 These are no longer used in the default template, since we use
14629 titleblock, but we set them anyway for those who use custom templates.
14631 * LaTeX writer: Avoid extra space at start/end of table cell.
14632 Thanks to Nick Bart for the suggestion of using @{}.
14634 * `Text.Pandoc.Parsing`:
14636 + More efficient version of `anyLine`.
14637 + Type of `macro` has changed; the parser now returns `Blocks`
14638 instead of `Block`.
14640 * Relaxed old-time version bound, allowing 1.0.*.
14642 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
14643 should create a symlink as described in the README.
14645## pandoc 1.10.0.5 (2013-01-23)
14647 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
14648 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
14649 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
14651 * Markdown reader: Fixed bug with headerless grid tables.
14652 The 1.10 code assumed that each table header cell contains exactly one
14653 block. That failed for headerless tables (0) and also for tables with
14654 multiple blocks in a header cell. The code is fixed and tests provided.
14655 Thanks to Andrew Lee for pointing out the bug.
14657 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
14659 + Tilde code fences can again take a bare language string
14660 (`~~~ haskell`), not just curly-bracketed attributes
14661 (`~~~ {.haskell}`).
14662 + Backtick code blocks can take the curly-bracketed attributes.
14663 + Backtick code blocks don't *require* a language.
14664 + Consolidated code for the two kinds of fenced code blocks.
14666 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
14668 * Markdown writer: Use proportional font for email autolinks with
14669 obfuscation. Closes #714.
14671 * Corrected name of `blank_before_blockquote` in README. Closes #718.
14673 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
14674 The bug prevented an autolink at the end of a string (e.g.
14675 at the end of a line block line) from counting as a link. Closes #711.
14677 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
14678 This should work on Windows, unlike the TH solution with
14679 file-embed.
14681 * Eliminated use of TH in test suite.
14683 * Added `Text.Pandoc.Data` (non-exported) to hold the association
14684 list of embedded data files, if the `embed_data_files` flag is selected.
14685 This isolates the code that needs special treatment with file-embed or
14686 `hsb2hs`.
14688 * Changes to `make-windows-installer.bat`.
14690 + Exit batch file if any of the cabal-dev installs fail.
14691 + There's no longer any need to reinstall `highlighting-kate`.
14692 + Don't start with a `cabal update`; leave that to the user.
14693 + Force reinstall of pandoc.
14695 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
14696 Jens Petersen.
14698## pandoc 1.10.0.4 (2013-01-20)
14700 * Fixed bug with escaped % in LaTeX reader. Closes #710.
14702## pandoc 1.10.0.3 (2013-01-20)
14704 * Added further missing fb2 tests to cabal file.
14706## pandoc 1.10.0.2 (2013-01-20)
14708 * Added fb2 tests to cabal file's extra-source-files.
14710## pandoc 1.10.0.1 (2013-01-20)
14712 * Bump version bounds on test-framework packages.
14714## pandoc 1.10 (2013-01-19)
14716### New features
14718 * New input formats: `mediawiki` (MediaWiki markup).
14720 * New output formats: `epub3` (EPUB v3 with MathML),
14721 `fb2` (FictionBook2 ebooks).
14723 * New `--toc-depth` option, specifying how many levels of
14724 headers to include in a table of contents.
14726 * New `--epub-chapter-level` option, specifying the header
14727 level at which to divide EPUBs into separate files.
14728 Note that this normally affects only performance, not the
14729 visual presentation of the EPUB in a reader.
14731 * Removed the `--strict` option. Instead of using `--strict`,
14732 one can now use the format name `markdown_strict` for either input
14733 or output. This gives more fine-grained control that `--strict`
14734 did, allowing one to convert from pandoc's markdown to strict
14735 markdown or vice versa.
14737 * It is now possible to enable or disable specific syntax
14738 extensions by appending them (with `+` or `-`) to the writer
14739 or reader name. For example,
14741 pandoc -f markdown-footnotes+hard_line_breaks
14743 disables footnotes and enables treating newlines as hard
14744 line breaks. The literate Haskell extensions are now implemented
14745 this way as well, using either `+lhs` or `+literate_haskell`.
14746 For a list of extension names, see the README under
14747 "Pandoc's Markdown."
14749 * The following aliases have been introduced for specific
14750 combinations of markdown extensions: `markdown_phpextra`,
14751 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
14752 work just like regular reader and writer names, and can be modified
14753 with extension modifiers as described above. (Note that conversion
14754 from one markdown dialect to another does not work perfectly,
14755 because there are differences in markdown parsers besides
14756 just the extensions, and because pandoc's internal document model is
14757 not rich enough to capture all of the extensions.)
14759 * New `--html-q-tags` option. The previous default was to use `<q>`
14760 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
14761 Moreover, they are not a robust way of typesetting quotes, since
14762 some user agents don't support them, and some CSS resets (e.g.
14763 bootstrap) prevent pandoc's quotes CSS from working properly.
14764 We now just insert literal quote characters by default in both
14765 `html` and `html5` output, but this option is provided for
14766 those who still want `<q>` tags.
14768 * The markdown reader now prints warnings (to stderr) about
14769 duplicate link and note references. Closes #375.
14771 * Markdown syntax extensions:
14773 + Added pipe tables. Thanks to François Gannaz for the initial patch.
14774 These conform to PHP Markdown Extra's pipe table syntax. A subset
14775 of org-mode table syntax is also supported, which means that you can
14776 use org-mode's nice table editor to create tables.
14778 + Added support for RST-style line blocks. These are
14779 useful for verse and addresses.
14781 + Attributes can now be specified for headers, using the same
14782 syntax as in code blocks. (However, currently only the
14783 identifier has any effect in most writers.) For example,
14785 # My header {#foo}
14787 See [the header above](#foo).
14789 + Pandoc will now act as if link references have been defined
14790 for all headers without explicit identifiers.
14791 So, you can do this:
14793 # My header
14795 Link to [My header].
14796 Another link to [it][My header].
14798 Closes #691.
14800 * LaTeX reader:
14802 + Command macros now work everywhere, including non-math.
14803 Environment macros still not supported.
14804 + `\input` now works, as well as `\include`. TEXINPUTS is used.
14805 Pandoc looks recursively into included files for more included files.
14807### Behavior changes
14809 * The Markdown reader no longer puts the text of autolinks in a
14810 `Code` inline. This means that autolinks will no longer appear
14811 in a monospace font.
14813 * The character `/` can now appear in markdown citation keys.
14815 * HTML blocks in strict_markdown are no longer required to begin
14816 at the left margin. Technically this is required, according to
14817 the markdown syntax document, but `Markdown.pl` and other markdown
14818 processors are more liberal.
14820 * The `-V` option has been changed so that if there are duplicate
14821 variables, those specified later on the command line take precedence.
14823 * Tight lists now work in LaTeX and ConTeXt output.
14825 * The LaTeX writer no longer relien on the `enumerate` package.
14826 Instead, it uses standard LaTeX commands to change the list numbering
14827 style.
14829 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
14830 tables to be split over page boundaries.
14832 * The RST writer now uses a line block to render paragraphs containing
14833 linebreaks (which previously weren't supported at all).
14835 * The markdown writer now applies the `--id-prefix` to footnote IDs.
14836 Closes #614.
14838 * The plain writer no longer uses backslash-escaped line breaks
14839 (which are not very "plain").
14841 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
14842 Read bytestring and use `Text`'s decodeUtf8 instead of using
14843 `System.IO.hGetContents`. This way you get a message saying
14844 "invalid UTF-8 stream" instead of "invalid byte sequence."
14845 You are also told which byte caused the problem.
14847 * Docx, ODT, and EPUB writers now download images specified by a URL
14848 instead of skipping them or raising an error.
14850 * EPUB writer:
14852 + The default CSS now left-aligns headers by default, instead of
14853 centering. This is more consistent with the rest of the writers.
14854 + A proper multi-level table of contents is now used in `toc.ncx`.
14855 There is no longer a subsidiary table of contents at the beginning
14856 of each chapter.
14857 + Code highlighting now works by default.
14858 + Section divs are used by default for better semantic markup.
14859 + The title is used instead of "Title Page" in the table of contents.
14860 Otherwise we have a hard-coded English string, which looks
14861 strange in ebooks written in other languages. Closes #572.
14863 * HTML writer:
14865 + Put mathjax in span with class "math". Closes #562.
14866 + Put citations in a span with class "citation." In HTML5, also include
14867 a `data-cite` attribute with a space-separated list of citation
14868 keys.
14870 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
14871 This treats both `\r\n` and `\n` as `\n` on input, no matter
14872 what platform we're running on.
14874 * Citation processing is now done in the Markdown and LaTeX
14875 readers, not in `pandoc.hs`. This makes it easier for library users
14876 to use citations.
14878### Template changes
14880 * HTML: Added css to template to preserve spaces in `<code>` tags.
14881 Thanks to Dirk Laurie.
14883 * Beamer: Remove English-centric strings in section pages.
14884 Section pages used to have "Section" and a number as well as the
14885 section title. Now they just have the title. Similarly for part
14886 and subsection. Closes #566.
14888 * LaTeX, ConTeXt: Added papersize variable.
14890 * LaTeX, Beamer templates: Use longtable instead of ctable.
14892 * LaTeX, Beamer templates: Don't require 'float' package for tables.
14893 We don't actually seem to use the '[H]' option.
14895 * Markdown, plain: Fixed titleblock so it is just a single string.
14896 Previously separate title, author, and date variables were used,
14897 but this didn't allow different kinds of title blocks.
14899 * EPUB:
14901 + Rationalized templates. Previously there were three different
14902 templates involved in epub production. There is now just one
14903 template, `default.epub` or `default.epub3`. It can now be
14904 overridden using `--template`, just like other templates.
14905 The titlepage is now folded into the default template.
14906 A `titlepage` variable selects it.
14907 + UTF-8, lang tag, meta tags, title element.
14909 * Added scale-to-width feature to beamer template
14911### API changes
14913 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
14914 Previously header identifiers were autogenerated by the writers.
14915 Now they are added in the readers (either automatically or explicitly).
14917 * `Text.Pandoc.Builder`:
14919 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
14920 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
14921 custom Monoid instances for `Many Inline` and `Many Block. This
14922 allows `Many` to be made an instance of `Foldable` and `Traversable`.
14923 + The old `Listable` class has been removed.
14924 + The module now exports `isNull`, `toList`, `fromList`.
14925 + The old `Read` and `Show` instances have been removed; derived
14926 instances are now used.
14927 + Added `headerWith`.
14929 * The readers now take a `ReaderOptions` rather than a `ParserState`
14930 as a parameter. Indeed, not all parsers use the `ParserState` type;
14931 some have a custom state. The motivation for this change was to separate
14932 user-specifiable options from the accounting functions of parser state.
14934 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
14935 formerly in `Text.Pandoc.Shared`, and its associated
14936 data types. It also includes a new type `ReaderOptions`, which
14937 contains many options formerly in `ParserState`, and its associated
14938 data types:
14940 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
14941 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
14942 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
14943 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
14944 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
14945 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
14946 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
14947 + `ParserState.stateIndentedCodeClasses` ->
14948 `ReaderOptions.readerIndentedCodeClasses`.
14949 + Added `ReaderOptions.readerCitationStyle`.
14951 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
14952 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
14953 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
14954 been renamed `writerEpubMetadata` for consistency.
14956 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
14957 longer stylesheet, fonts, reference files as separate parameters.
14959 * Removed `writerLiterateHaskell` from `WriterOptions`, and
14960 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
14961 by an extension (`Ext_literate_haskell`).
14963 * Removed deprecated `writerXeTeX`.
14965 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
14966 Strict is now handled through extensions.
14968 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
14969 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
14970 and `multimarkdownExtensions`, as well as the `Extensions` type.
14972 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
14973 `readMediaWiki`.
14975 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
14976 (thanks to Sergey Astanin).
14978 * `Text.Pandoc`:
14980 + Added `getReader`, `getWriter` to `Text.Pandoc`.
14981 + `writers` is now an association list `(String, Writer)`.
14982 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
14983 an `IOByteStringWriter`. ALL writers are now in the 'writers'
14984 list, including the binary writers and FB2 writer. This allows
14985 code in `pandoc.hs` to be simplified.
14986 + Changed type of `readers`, so all readers are in IO.
14987 Users who want pure readers can still get them form the reader
14988 modules; this just affects the function `getReader` that looks up
14989 a reader based on the format name. The point of this change is to
14990 make it possible to print warnings from the parser.
14992 * `Text.Pandoc.Parsing`:
14994 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
14995 No other module directly imports Parsec. This will make it easier
14996 to change the parsing backend in the future, if we want to.
14997 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
14998 + Export the type synonym `Parser`.
14999 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
15000 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
15001 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
15002 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
15003 + `ParserState` is no longer an instance of `Show`.
15004 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
15005 + Generalized type of `withQuoteContext`.
15006 + Added `guardEnabled`, `guardDisabled`, `getOption`.
15007 + Removed `failIfStrict`.
15008 + `lookupKeySrc` and `fromKey` are no longer exported.
15010 * `Data.Default` instances are now provided for `ReaderOptions`,
15011 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
15012 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
15013 of `defaultWriterOptions` (which is still defined). Closes #546.
15015 * `Text.Pandoc.Shared`:
15017 + Added `safeRead`.
15018 + Renamed `removedLeadingTrailingSpace` to `trim`,
15019 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
15020 + Count `\r` as space in `trim` functions.
15021 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
15022 to `Shared`.
15023 + Removed `failUnlessLHS`.
15024 + Export `compactify'`, formerly in Markdown reader.
15025 + Export `isTightList`.
15026 + Do not export `findDataFile`.
15027 + `readDataFile` now returns a strict ByteString.
15028 + Export `readDataFileUTF8` which returns a String, like the
15029 old `readDataFile`.
15030 + Export `fetchItem` and `openURL`.
15032 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
15033 Removed `readImageSize`.
15035 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
15036 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
15037 `fromStringLazy`.
15039 * `Text.Pandoc.UTF8` is now an exposed module.
15041 * `Text.Pandoc.Biblio`:
15043 + csl parameter now a `String` rather than a `FilePath`.
15044 + Changed type of `processBiblio`. It is no longer in the IO monad.
15045 It now takes a `Maybe Style` argument rather than parameters for CSL
15046 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
15047 the style file and add abbreviations.)
15049 * Markdown reader now exports `readMarkdownWithWarnings`.
15051 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
15052 `rtfEmbedImage`.
15054### Bug fixes
15056 * Make `--ascii` work properly with `--self-contained`. Closes #568.
15058 * Markdown reader:
15060 + Fixed link parser to avoid exponential slowdowns. Closes #620.
15061 Previously the parser would hang on input like this:
15063 [[[[[[[[[[[[[[[[[[hi
15065 We fixed this by making the link parser parser characters
15066 between balanced brackets (skipping brackets in inline code spans),
15067 then parsing the result as an inline list. One change is that
15069 [hi *there]* bud](/url)
15071 is now no longer parsed as a link. But in this respect pandoc behaved
15072 differently from most other implementations anyway, so that seems okay.
15074 + Look for raw html/latex blocks before tables.
15075 Otherwise the following gets parsed as a table:
15077 \begin{code}
15078 --------------
15079 -- My comment.
15080 \end{code}
15082 Closes #578.
15084 * RST reader:
15086 + Added support for `:target:` on `.. image::` blocks
15087 and substitutions.
15088 + Field list fixes:
15090 - Fixed field lists items with body beginning after a new line
15091 (Denis Laxalde).
15092 - Allow any char but ':' in names of field lists in RST reader
15093 (Denis Laxalde).
15094 - Don't allow line breaks in field names.
15095 - Require whitespace after field list field names.
15096 - Don't create empty definition list for metadata field lists.
15097 Previously a field list consisting only of metadata fields (author,
15098 title, date) would be parsed as an empty DefinitionList, which is
15099 not legal in LaTeX and not needed in any format.
15101 + Don't recognize inline-markup starts inside words.
15102 For example, `2*2 = 4*1` should not contain an emphasized
15103 section. Added test case for "Literal symbols". Closes #569.
15104 + Allow dashes as separator in simple tables. Closes #555.
15105 + Added support for `container`, `compound`, `epigraph`,
15106 `rubric`, `highlights`, `pull-quote`.
15107 + Added support for `.. code::`.
15108 + Made directive labels case-insensitive.
15109 + Removed requirement that directives begin at left margin.
15110 This was (correctly) not in earlier releases; docutils doesn't
15111 make the requirement.
15112 + Added support for `replace::` and `unicode::` substitutions.
15113 + Ignore unknown interpreted roles.
15114 + Renamed image parser to `subst`, since it now handles all
15115 substitution references.
15117 * Textile reader:
15119 + Allow newlines before pipes in table. Closes #654.
15120 + Fixed bug with list items containing line breaks.
15121 Now pandoc correctly handles hard line breaks inside list items.
15122 Previously they broke list parsing.
15123 + Implemented comment blocks.
15124 + Fixed bug affected words ending in hyphen.
15125 + Properly handle links with surrounding brackets.
15126 Square brackets need to be used when the link isn't surrounded by
15127 spaces or punctuation, or when the URL ending may be ambiguous.
15128 Closes #564.
15129 + Removed nullBlock. Better to know about parsing problems than
15130 to skip stuff when we get stuck.
15131 + Allow ID attributes on headers.
15132 + Textile reader: Avoid parsing dashes as strikeout.
15133 Previously the input
15135 text--
15136 text--
15137 text--
15138 text--
15140 would be parsed with strikeouts rather than dashes. This fixes
15141 the problem by requiring that a strikeout delimiting - not be
15142 followed by a -. Closes #631.
15143 + Expanded list of `stringBreakers`.
15144 This fixes a bug on input like "(_hello_)" which should
15145 be a parenthesized emphasized "hello".
15146 The new list is taken from the PHP source of textile 2.4.
15147 + Fixed autolinks. Previously the textile reader and writer
15148 incorrectly implemented RST-style autolinks for URLs and email
15149 addresses. This has been fixed. Now an autolink is done this way:
15150 `"$":http://myurl.com`.
15151 + Fixed footnotes bug in textile. This affected notes occurring
15152 before punctuation, e.g. `foo[1].`. Closes #518.
15154 * LaTeX reader:
15156 + Better handling of citation commands.
15157 + Better handling of `\noindent`.
15158 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
15159 Closes #622.
15160 + Made `rawLaTeXInline` try to parse block commands as well. This
15161 is usually what we want, given how `rawLaTeXInline` is used in
15162 the markdown and textile readers. If a block-level LaTeX command
15163 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
15164 we can treat it as raw inline LaTeX.
15165 + Handle `\slash` command. Closes #605.
15166 + Basic `\enquote` support.
15167 + Fixed parsing of paragraphs beginning with a group. Closes #606.
15168 + Use curly quotes for bare straight quotes.
15169 + Support obeylines environment. Closes #604.
15170 + Guard against "begin", "end" in inlineCommand and
15171 blockCommand.
15172 + Better error messages for environments. Now it should tell you that
15173 it was looking for \end{env}, instead of giving "unknown parse error."
15175 * HTML reader:
15177 + Added HTML 5 tags to list of block-level tags.
15178 + HTML reader: Fixed bug in `htmlBalanced`, which
15179 caused hangs in parsing certain markdown input using
15180 strict mode.
15181 + Parse `<q>` as `Quoted DoubleQuote`.
15182 + Handle nested `<q>` tags properly.
15183 + Modified `htmlTag` for fewer false positives.
15184 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
15185 This makes it more useful in the wikimedia and markdown parsers.
15187 * DocBook reader: Support title in "figure" element. Closes #650.
15189 * MediaWiki writer:
15191 + Remove newline after `<br/>` in translation of `LineBreak`
15192 There's no particular need for a newline (other than making the
15193 generated MediaWiki source look nice to a human), and in fact
15194 sometimes it is incorrect: in particular, inside an enumeration, list
15195 items cannot have embedded newline characters. (Brent Yorgey)
15196 + Use `<code>` not `<tt>` for Code.
15198 * Man writer: Escape `-` as `\-`.
15199 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
15200 signs. That is preferable for use with command-line options. See
15201 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
15202 to Andrea Bolognani for bringing the issue to our attention.
15204 * RST writer:
15206 + Improved line block output. Use nonbreaking spaces for
15207 initial indent (otherwise lost in HTML and LaTeX).
15208 Allow multiple paragraphs in a single line block.
15209 Allow soft breaks w continuations in line blocks.
15210 + Properly handle images with no alt text. Closes #678.
15211 + Fixed bug with links with duplicate text. We now (a) use anonymous
15212 links for links with inline URLs, and (b) use an inline link instead
15213 of a reference link if the reference link would require a label that
15214 has already been used for a different link. Closes #511.
15215 + Fixed hyperlinked images. Closes #611. Use `:target:`
15216 field when you have a simple linked image.
15217 + Don't add `:align: center` to figures.
15219 * Texinfo writer: Fixed internal cross-references.
15220 Now we insert anchors after each header, and use `@ref` instead of `@uref`
15221 for links. Commas are now escaped as `@comma{}` only when needed;
15222 previously all commas were escaped. (This change is needed, in part,
15223 because `@ref` commands must be followed by a real comma or period.) Also
15224 insert a blank line in from of `@verbatim` environments.
15226 * DocBook writer:
15228 + Made --id-prefix work in DocBook as well as HTML.
15229 Closes #607.
15230 + Don't include empty captions in figures. Closes #581.
15232 * LaTeX writer:
15234 + Use `\hspace*` for nonbreaking space after line break,
15235 since `~` spaces after a line break are just ignored.
15236 Closes #687.
15237 + Don't escape `_` in URLs or hyperref identifiers.
15238 + Properly escape strings inside `\url{}`. Closes #576.
15239 + Use `[fragile]` only for slides containing code rendered
15240 using listings. Closes #649.
15241 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
15242 highlighting-kate's macros, which redefine `|` as a short verbatim
15243 delimiter. Thanks to Björn Peemöller for raising this issue.
15244 + Use minipage rather than parbox for block containers in tables.
15245 This allows verbatim code to be included in grid tables.
15246 Closes #663.
15247 + Prevent paragraphs containing only linebreaks or spaces.
15249 * HTML writer:
15251 + Included `highlighting-css` for code spans, too.
15252 Previously it was only included if used in a code block. Closes #653.
15253 + Improved line breaks with `<dd>` tags. We now put a newline between
15254 `</dd>` and `<dd>` when there are multiple definitions.
15255 + Changed mathjax cdn url so it doesn't use https. (This caused
15256 problems when used with `--self-contained`.) See #609.
15258 * EPUB writer:
15260 + `--number-sections` now works properly.
15261 + Don't strip meta and link elements in epub metadata.
15262 Patch from aberrancy. Closes #589.
15263 + Fixed a couple validation bugs.
15264 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
15265 of chapters in some readers, which apparently sort ch2 after ch10.
15266 Closes #610.
15268 * ODT writer: properly set title property (Arlo O'Keeffe).
15270 * Docx writer:
15272 + Fixed bug with nested lists. Previously a list like
15274 1. one
15275 - a
15276 - b
15277 2. two
15279 would come out with a bullet instead of "2."
15280 Thanks to Russell Allen for reporting the bug.
15281 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
15282 This seems to fix a problem viewing pandoc-generated
15283 docx files in LibreOffice.
15284 + Use integer ids for bookmarks. Closes #626.
15285 + Added nsid to abstractNum elements. This helps when merging
15286 word documents with numbered or bulleted lists. Closes #627.
15287 + Use separate footnotes.xml for notes.
15288 This seems to help LibreOffice convert the file, even though
15289 it was valid docx before. Closes #637.
15290 + Use rIdNN identifiers for r:embed in images.
15291 + Avoid reading image files again when we've already processed them.
15292 + Fixed typo in `referenc.docx` that prevented image captions from
15293 working. Thanks to Huashan Chen.
15295 * `Text.Pandoc.Parsing`:
15297 + Fixed bug in `withRaw`, which didn't correctly handle the case
15298 where nothing is parsed.
15299 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
15300 though it still doesn't implement quoted strings in email addresses.
15301 + Revised URI parser. It now allows many more schemes, allows
15302 uppercase URIs, and better handles trailing punctuation and
15303 trailing slashes in bare URIs. Added many tests.
15304 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
15305 etc. parse properly. Formerly we had some English-centric heuristics,
15306 but they are no longer needed. Closes #698.
15308 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
15309 This fixes bug with Chinese commas in markdown and reST tables, and
15310 a bug that caused combining characters to be dropped.
15312 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
15314 * `Text.Pandoc.Biblio`:
15316 + Run `mvPunc` and `deNote` on metadata too.
15317 This fixed a bug with notes on titles using footnote styles.
15318 + Fixed bug in fetching CSL files from CSL data directory.
15320 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
15321 is provided. It should be the URL up to the path.
15323 * Fixed/simplified diff output for tests.
15324 Biblio: Make sure mvPunc and deNote run on metadata too.
15325 This fixed a bug with notes on titles using footnote styles.
15327### Under the hood improvements
15329 * We no longer depend on `utf8-string`. Instead we use functions
15330 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
15332 * Use `safeRead` instead of using `reads` directly (various modules).
15334 * "Implicit figures" (images alone in a paragraph) are now handled
15335 differently. The markdown reader gives their titles the prefix `fig:`; the
15336 writers look for this before treating the image as a figure. Though this
15337 is a bit of a hack, it has two advantages: (i) implicit figures can be
15338 limited to the markdown reader, and (ii) they can be deactivated by turning
15339 off the `implicit_figures` extension.
15341 * `catch` from `Control.Exception` is now used instead of the
15342 old Preface `catch`.
15344 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
15345 and `oneOfStrings` (which is now non-backtracking).
15347 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
15348 Now citeproc-hs is fixed upstream, so this is no longer needed.
15349 Closes #531.
15351 * Textile reader: Improved speed of `hyphenedWords`.
15352 This speeds up the textile reader by about a factor of 4.
15354 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
15355 better performance, and automatic normalization.
15357 * Major rewrite of markdown reader:
15359 + Use `Text.Pandoc.Builder` instead of lists. This also
15360 means that everything is normalized automatically.
15361 + Move to a one-pass parsing strategy, returning values in the reader
15362 monad, which are then run (at the end of parsing) against the final
15363 parser state.
15365 * In HTML writer, we now use `toHtml` instead of pre-escaping.
15366 We work around the problem that blaze-html unnecessarily escapes `'`
15367 by pre-escaping just the `'` characters, instead of the whole string.
15368 If blaze-html later stops escaping `'` characters, we can simplify
15369 `strToHtml` to `toHtml`. Closes #629.
15371 * Moved code for embedding images in RTFs from `pandoc.hs` to the
15372 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
15374 * Moved citation processing from `pandoc.hs` into the readers.
15375 This makes things more convenient for library users.
15377 * The man pages are now built by an executable `make-pandoc-man-pages`,
15378 which has its own stanza in the cabal file so that dependencies can be
15379 handled by Cabal. Special treatment in `Setup.hs` ensures that this
15380 executable never gets installed; it is only used to create the man pages.
15382 * The cabal file has been modified so that the pandoc library is used
15383 in building the pandoc executable. (This required moving `pandoc.hs`
15384 from `src` to `.`.) This cuts compile time in half.
15386 * The `executable` and `library` flags have been removed.
15388 * `-threaded` has been removed from ghc-options.
15390 * Version bounds of dependencies have been raised, and the
15391 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
15392 GHC 7.6.
15394 * We now require base >= 4.2.
15396 * Integrated the benchmark program into cabal. One can now do:
15398 cabal configure --enable-benchmarks && cabal build
15399 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
15401 The benchmark now uses README + testsuite, so benchmark results
15402 from older versions aren't comparable.
15404 * Integrated test suite with cabal.
15405 To run tests, configure with `--enable-tests`, then `cabal test`.
15406 You can specify particular tests using `--test-options='-t markdown'`.
15407 No output is shown unless tests fail. The Haskell test modules
15408 have been moved from `src/` to `tests/`.
15410 * Moved all data files and templates to the `data/` subdirectory.
15412 * Added an `embed_data_files` cabal flag. This causes all
15413 data files to be embedded in the binary, so that the binary
15414 is self-sufficient and can be relocated anywhere, copied on
15415 a USB key, etc. The Windows installer now uses this.
15416 (Since we no longer have the option to build the executable
15417 without the library, this is the only way to get a relocatable
15418 binary on Windows.)
15420 * Removed pcre3.dll from windows package.
15421 It isn't needed unless highlighting-kate is compiled with the
15422 `pcre-light` flag. By default, regex-prce-builtin is used.
15425## pandoc 1.9.4.5 (2012-10-21)
15427 * Raised version bounds on network, base64-bytestring, json,
15428 and template-haskell.
15430## pandoc 1.9.4.4 (2012-10-20)
15432 * Removed `tests` flag and made test suite into a proper cabal
15433 test suite, which can now be enabled using `--enable-tests`
15434 and run with `cabal test`.
15436 * Moved man page creation out of `Setup.hs` and into an
15437 executable built by Cabal, but never installed. This
15438 allows dependencies to be specified, and solves a problem
15439 with 1.9.4.3, which could only be installed if `data-default`
15440 had already been installed.
15442 * Updated `lhs-latex.tex` test for latest highlighting-kate
15443 representation of backticks.
15445## pandoc 1.9.4.3 (2012-10-20)
15447 * Removed `-threaded` from default compile flags.
15449 * Modified modules to compile with GHC 7.6 and latest version of time
15450 package.
15452## pandoc 1.9.4.2 (2012-06-29)
15454 * Don't encode/decode file paths if base >= 4.4.
15455 Prior to base 4.4, filepaths and command line arguments were treated
15456 as unencoded lists of bytes, not unicode strings, so we had to work
15457 around that by encoding and decoding them. This commit adds CPP
15458 checks for the base version that intelligibly enable encoding/decoding
15459 when needed. Fixes a bug with multilingual filenames when pandoc was
15460 compiled with ghc 7.4 (#540).
15462 * Don't generate an empty H1 after hrule slide breaks.
15463 We now use a slide-level header with contents `[Str "\0"]` to mark
15464 an hrule break. This avoids creation of an empty H1 in these
15465 contexts. Closes #484.
15467 * Docbook reader: Added support for "bold" emphasis. Thanks to mb21.
15469 * In make_osx_package.sh, ensure citeproc-hs is built with the
15470 embed_data_files flag.
15472 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
15474 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
15475 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
15477 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
15478 Closes #535.
15480 * Added webm to mime types. Closes #543.
15482 * Added some missing exports and tests to the cabal file
15483 (Alexander V Vershilov).
15485 * Compile with `-rtsopts` and `-threaded` by default.
15487## pandoc 1.9.4.1 (2012-06-08)
15489 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
15491 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
15492 variables. Make TOC links black.
15494 * LaTeX template improvements.
15496 + Don't print date unless one is given explicitly in the document.
15497 + Simplified templates.
15498 + Use fontenc [T1] by default, and lmodern.
15499 + Use microtype if available.
15501 * Biblio:
15503 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
15504 Motivation: `@item1 [50]` should be as close as possible to
15505 `[@item1, 50]`.
15506 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
15507 beginning with a citation to be empty. Closes #531.
15509 * Fixed documentation on mixed lists. Closes #533.
15511## pandoc 1.9.4 (2012-06-03)
15513 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
15514 footnotes and captions. We now handle note citations by inserting
15515 footnotes during initial citation processing, and doing a separate
15516 pass later to remove notes inside notes.
15518 * Added 'zenburn' highlight style from highlighting-kate.
15520 * Added Slideous writer. Slideous is an HTML + javascript slide show
15521 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
15523 * LaTeX writer:
15525 + Ensure we don't have extra blank lines at ends of cells.
15526 This can cause LaTeX errors, as they are interpreted as new paragraphs.
15527 + More consistent interblock spacing.
15528 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
15529 code in LaTeX. Closes #527.
15530 + Ensure that a Verbatim at the end of a footnote is followed by
15531 a newline. (Fixes a regression in the previous version.)
15532 + In default template, use black for internal links and TOC.
15533 Added commented-out code to use footnotes for links, as would
15534 be suitable in print output.
15536 * Beamer writer: When `--incremental` is used, lists inside
15537 a block quote should appear all at once. (This makes Beamer
15538 output consistent with the HTML slide show formats.)
15540 * ConTeXt writer:
15542 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
15543 to avoid gobbling spaces after the `%` sign.
15544 + Ensure space after `\stopformula`.
15546 * Markdown writer:
15548 + Use `:` form instead of `~` in definition lists, for better
15549 compatibility with other markdown implementations.
15550 + Don't wrap the term, because it breaks definition lists.
15551 + Use a nonzero space to prevent false recognition
15552 of list marker in ordered lists. Closes #516.
15554 * Org writer: Add space before language name. Closes #523.
15556 * Docx writer: Simplified bullet characters so they work properly
15557 with Word 2007. Closes #520.
15559 * LaTeX reader: Support `\centerline`.
15561 * RST reader: handle figures. Closes #522.
15563 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
15564 (Paul Rivier)
15566## pandoc 1.9.3 (2012-05-12)
15568 * Added docbook reader (with contributions from Mauro Bieg).
15570 * Fixed bug in `fromEntities`. The previous version would turn
15571 `hi & low you know;` into `hi &`.
15573 * HTML reader:
15575 + Don't skip nonbreaking spaces.
15576 Previously a paragraph containing just `&nbsp;` would be rendered
15577 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
15578 + Support `<col>` and `<caption>` in tables. Closes #486.
15580 * Markdown reader:
15582 + Don't recognize references inside delimited code blocks.
15583 + Allow list items to begin with lists.
15585 * LaTeX reader:
15587 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
15588 + Control sequences can't be followed by a letter.
15589 This fixes a bug where `\begingroup` was parsed as `\begin`
15590 followed by `group`.
15591 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
15592 + Make `\label` and `\ref` sensitive to `--parse-raw`.
15593 If `--parse-raw` is selected, these will be parsed as raw latex
15594 inlines, rather than bracketed text.
15595 + Don't crash on unknown block commands (like `\vspace{10pt}`)
15596 inside `\author`; just skip them. Closes #505.
15598 * Textile reader:
15600 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
15601 + Added support for LaTeX blocks and inlines (Paul Rivier).
15602 + Better conformance to RedCloth inline parsing (Paul Rivier).
15603 + Parse '+text+' as emphasized (should be underlined, but this
15604 is better than leaving literal plus characters in the output.
15606 * Docx writer: Fixed multi-paragraph list items. Previously they each
15607 got a list marker. Closes #457.
15609 * LaTeX writer:
15611 + Added `--no-tex-ligatures` option to avoid replacing
15612 quotation marks and dashes with TeX ligatures.
15613 + Use `fixltx2e` package to provide `\textsubscript`.
15614 + Improve spacing around LaTeX block environments:
15615 quote, verbatim, itemize, description, enumerate.
15616 Closes #502.
15617 + Use blue instead of pink for URL links in latex/pdf output.
15619 * ConTeXt writer: Fixed escaping of `%`.
15620 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
15621 Inside URLs, `%` needs to be escaped as `\%`
15622 Thanks to jmarca and adityam for the fix. Closes #492.
15624 * Texinfo writer: Escape special characters in node titles.
15625 This fixes a problem pointed out by Joost Kremers. Pandoc used
15626 to escape an '@' in a chapter title, but not in the corresponding
15627 node title, leading to invalid texinfo.
15629 * Fixed document encoding in texinfo template.
15630 Resolves Debian Bug #667816.
15632 * Markdown writer:
15634 + Don't force delimited code blocks to be flush left.
15635 Fixes bug with delimited code blocks inside lists etc.
15636 + Escape `<` and `$`.
15638 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
15639 Previously we used `\href{\#ident}{text}`, which didn't work on
15640 all systems. Thanks to Dirk Laurie.
15642 * RST writer: Don't wrap link references. Closes #487.
15644 * Updated to use latest versions of blaze-html, mtl.
15647## pandoc 1.9.2 (2012-04-05)
15649 * LaTeX reader:
15651 + Made `lstlisting` work as a proper verbatim environment.
15652 + Fixed bug parsing LaTeX tables with one column.
15654 * LaTeX writer:
15656 + Use `{}` around `ctable` caption, so that formatting can be used.
15657 + Don't require eurosym package unless document has a €.
15659 * LaTeX template: Added variables for `geometry`, `romanfont`,
15660 `sansfont`, `mathfont`, `mainfont` so users can more easily
15661 customize fonts.
15663 * PDF writer:
15665 + Run latex engine at least two times, to ensure
15666 that PDFs will have hyperlinked bookmarks.
15667 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
15669 * Texinfo writer: retain directories in image paths. (Peter Wang)
15671 * RST writer: Better handling of inline formatting, in accord
15672 with docutils' "inline markup recognition rules" (though we don't
15673 implement the unicode rules fully). Now `hi*there*hi` gets
15674 rendered properly as `hi\ *there*\ hi`, and unnecessary
15675 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
15677 * RST reader:
15679 + Parse `\ ` as null, not escaped space.
15680 + Allow `` :math:`...` `` even when not followed by blank
15681 or `\`. This does not implement the complex rule docutils follows,
15682 but it should be good enough for most purposes.
15683 + Add support for the rST default-role directive. (Greg Maslov)
15685 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
15686 (Greg Maslov)
15688 * Markdown reader: Properly handle citations nested in other inline
15689 elements.
15691 * Markdown writer: don't replace empty alt in image with "image".
15693 * DZSlides: Updated template.html and styles in default template.
15694 Removed bizarre CSS for `q` in dzslides template.
15696 * Avoid repeated `id` attribute in section and header in HTML slides.
15698 * README improvements: new instructions on internal links,
15699 removed misleading note on reST math.
15701 * Build system:
15703 + Fixed Windows installer so that dzslides works.
15704 + Removed stripansi.sh.
15705 + Added .travis.yml for Travis continuous integration support..
15706 + Fixed upper bound for zlib (Sergei Trofimovich).
15707 + Fixed upper bound for test-framework.
15708 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
15711## pandoc 1.9.1.2 (2012-03-09)
15713 * Added `beamer+lhs` as output format.
15715 * Don't escape `<` in `<style>` tags with `--self-contained`.
15716 This fixes a bug which prevented highlighting from working
15717 when using `--self-contained`.
15719 * PDF: run latex engine three times if `--toc` specified.
15720 This fixes page numbers in the table of contents.
15722 * Docx writer: Added TableNormal style to tables.
15724 * LaTeX math environment fixes. `aligned` is now used instead of
15725 the nonexistent `aligned*`. `multline` instead of the nonexistent
15726 `multiline`.
15728 * LaTeX writer: Use `\textasciitilde` for literal `~`.
15730 * HTML writer: Don't escape contents of EQ tags with --gladtex.
15731 This fixes a regression from 1.8.
15733 * Use `<q>` tags for Quoted items for HTML5 output.
15734 The quote style can be changed by modifying the template
15735 or including a css file. A default quote style is included.
15737 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
15738 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
15740 * Updated LaTeX template for better language support.
15741 Use `polyglossia` instead of `babel` with xetex.
15742 Set `lang` as documentclass option.
15743 `\setmainlanguage` will use the last of a comma-separated
15744 list of languages. Thanks to François Gannaz.
15746 * Fixed default LaTeX template so `\euro` and `€` work. The
15747 `eurosym` package is needed if you are using pdflatex.
15749 * Fixed escaping of period in man writer (thanks to Michael Thompson).
15751 * Fixed list label positions in beamer.
15753 * Set `mainlang` variable in context writer.
15754 This parallels behavior of latex writer. `mainlang` is the last
15755 of a comma-separated list of languages in lang.
15757 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
15759 * Changed `-V` so that you can specify a key without a value.
15760 Such keys get the value `true`.
15762 * Fixed permissions on installed man pages - thanks Magnus Therning.
15764 * Windows installer: require XP or higher. The installer is
15765 now compiled on a Windows 7 machine, which fixes a problem
15766 using citation functions on Windows 7.
15768 * OSX package: Check for 64-bit Intel CPU before installing.
15771## pandoc 1.9.1.1 (2012-02-11)
15773 * Better handling of raw latex environments in markdown. Now
15775 \begin{equation}
15776 a_1
15777 \end{equation}
15779 turns into a raw latex block as expected.
15781 * Improvements to LaTeX reader:
15783 + Skip options after block commands.
15784 + Correctly handle `{\\}` in braced.
15785 + Added a needed 'try'.
15786 + Citations: add `, ` to suffix if it doesn't start with space or
15787 punctuation. Otherwise we get no space between the year and the
15788 suffix in author-date styles.
15790 * Added two needed data files for S5. This fixes a problem with
15791 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
15792 which was no longer being used.
15794 * Fixed some minor problems in `reference.docx`:
15795 name on "Date" style, `xCs` instead of `xIs`.
15797 * Fixed a problem creating docx files using a reference docx
15798 modified using Word. The problem seems to be that Word
15799 modifies `_rels/.rels`, changing the Type of the Relationship to
15800 `docProps/core.xml`. Pandoc now changes this back to the correct
15801 value if it has been altered, fixing the problem.
15803 * Fixed html5 template so it works properly with highlighting.
15805## pandoc 1.9.1 (2012-02-09)
15807 * LaTeX reader:
15809 + Fixed regression in 1.9; properly handle escaped $ in latex math.
15810 + Put LaTeX verse environments in blockquotes.
15812 * Markdown reader:
15814 + Limit nesting of strong/emph. This avoids exponential lookahead
15815 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
15816 + Improved attributes syntax (in code blocks/spans): (1)
15817 Attributes can contain line breaks. (2) Values in key-value
15818 attributes can be surrounded by either double or single quotes, or
15819 left unquoted if they contain no spaces.
15821 * Headers no longer wrap in markdown or RST writers.
15823 * Added `stateMaxNestingLevel` to `ParserState`.
15824 We set this to 6, so you can still have `Emph` inside `Emph`,
15825 just not indefinitely.
15827 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
15829 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
15830 is present.
15832 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
15834## pandoc 1.9.0.5 (2012-02-06)
15836 * Changed cabal file so that build-depends for the test program
15837 are not required unless the tests flag is used.
15839 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
15840 form ligatures (dashes) in code spans.
15842## pandoc 1.9.0.4 (2012-02-06)
15844 * Raised version bound on test-framework to avoid problems
15845 compiling tests on GHC 7.4.1.
15847 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
15848 so citations don't just disappear unless you process with
15849 citeproc. Ignore `\bibliographystyle`, `\nocite`.
15851 * Simplified tex2pdf; it will always run latex twice to
15852 resolve table of contents and hyperrefs.
15854## pandoc 1.9.0.3 (2012-02-06)
15856 * Require Cabal >= 1.10.
15858 * Tweaked cabal file to meet Cabal 1.10 requirements.
15860## pandoc 1.9.0.2 (2012-02-05)
15862 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
15863 ghc 6.12.
15865## pandoc 1.9 (2012-02-05)
15867### New features
15869 * Added a Microsoft Word `docx` writer. The writer includes support
15870 for highlighted code and for math (which is converted from TeX to OMML,
15871 Office's native math markup language, using texmath's new OMML module).
15872 A new option `--reference-docx` allows the user to customize the
15873 styles.
15875 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
15877 * Better support for slide shows:
15879 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
15880 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
15882 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
15883 slide presentations.
15885 + New, flexible rules for dividing documents into sections and slides
15886 (see the "Structuring the slide show" in the User's Guide). These
15887 are backward-compatible with the old rules, but they allow slide
15888 shows to be organized into sections and subsections containing
15889 multiple slides.
15891 + A new `--slide-level` option allows users to override defaults
15892 and select a slide level below the first header level with content.
15894 * A new `--self-contained` option produces HTML output that does not
15895 depend on an internet connection or the presence of any external
15896 files. Linked images, CSS, and javascript is downloaded (or fetched
15897 locally) and encoded in `data:` URIs. This is useful for making portable
15898 `HTML slide shows. The --offline` option has been deprecated and is now
15899 `treated as a synonym or --self-contained`.
15901 * Support for PDF output:
15903 + Removed the old `markdown2pdf`.
15904 + `pandoc` can now create PDFs (assuming you have latex and a set of
15905 appropriate packages installed): just specify an output file with the
15906 `.pdf` extension.
15907 + A new option `--latex-engine` allows you to specify `pdflatex`,
15908 `xelatex`, or `lualatex` as the processor.
15910 * Highlighting changes:
15912 + Syntax highlighting is now a standard feature; the `highlighting`
15913 flag is no longer needed when compiling.
15914 + A new `--no-highlight` option allows highlighting to be disabled.
15915 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
15916 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
15917 + A new `--highlight-style` option selects between various highlighting
15918 color themes.
15920 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
15922 * LaTeX `\include` and `\usepackage` commands are now processed,
15923 provided the files are in the working directory.
15925 * EPUB improvements:
15927 + Internal and external links now work in EPUB.
15928 + Raw HTML is allowed.
15929 + New `--epub-embed-font` option.
15930 + Customizable templates for EPUB pages offer more control over
15931 formatting: `epub-page.html`, `epub-coverimage.html`,
15932 `epub-titlepage.html`.
15934 * `--mathml` now works with DocBook.
15936 * Added support for math in RST reader and writer. Inline math uses the
15937 `` :math:`...` `` construct. Display math uses
15939 .. math:: ...
15941 or if the math is multiline,
15943 .. math::
15945 ...
15947 These constructions are now supported now by `rst2latex.py`.
15949 * Github syntax for fenced code blocks is supported in pandoc's
15950 markdown. You can now write
15952 ```ruby
15953 x = 2
15954 ```
15956 instead of
15958 ~~~ {.ruby}
15959 x = 2
15960 ~~~~
15962 * Easier scripting: a new `toJsonFilter` function makes it easier to
15963 write Haskell scripts to manipulate the Pandoc AST.
15964 See [Scripting with pandoc](scripting.html#pandoc-1.9-changes).
15966### Behavior changes
15968 * Fixed parsing of consecutive lists in markdown.
15969 Pandoc previously behaved like Markdown.pl for consecutive
15970 lists of different styles. Thus, the following would be parsed
15971 as a single ordered list, rather than an ordered list followed
15972 by an unordered list:
15974 1. one
15975 2. two
15977 - one
15978 - two
15980 This change makes pandoc behave more sensibly, parsing this as
15981 two lists. Any change in list type (ordered/unordered) or in
15982 list number style will trigger a new list. Thus, the following
15983 will also be parsed as two lists:
15985 1. one
15986 2. two
15988 a. one
15989 b. two
15991 Since we regard this as a bug in Markdown.pl, and not something
15992 anyone would ever rely on, we do not preserve the old behavior
15993 even when `--strict` is selected.
15995 * Dashes work differently with `--smart`: `---` is always em-dash,
15996 and `--` is always en-dash. Pandoc no longer tries to guess when
15997 `-` should be en-dash. *Note:* This may change how existing documents
15998 look when processed with pandoc. A new option, `--old-dashes`,
15999 is provided for legacy documents.
16001 * The markdown writer now uses setext headers for levels 1-2.
16002 The old behavior (ATX headers for all levels) can be restored
16003 using the new `--atx-headers` option.
16005 * Links are now allowed in markdown image captions. They are also
16006 allowed in links, but will appear there as regular text. So,
16008 [link with [link](/url)](/url)
16010 will turn into
16012 <p><a href="/url">link with link</a></p>
16014 * Improved handling of citations using `citeproc-hs-0.3.4`.
16015 Added `--citation-abbreviations` option.
16017 * Citation keys can no longer end with a punctuation character.
16018 This means that `@item1.` will be parsed as a citation with key
16019 'item1', followed by a period, instead of a citation with key
16020 'item1.', as was the case previously.
16022 * In HTML output, citations are now put in a span with class `citation`.
16024 * The markdown reader now recognizes DocBook block and inline tags.
16025 It was always possible to include raw DocBook tags in a markdown
16026 document, but now pandoc will be able to distinguish block from
16027 inline tags and behave accordingly. Thus, for example,
16029 <sidebar>
16030 hello
16031 </sidebar>
16033 will not be wrapped in `<para>` tags.
16035 * The LaTeX parser has been completely rewritten; it is now much more
16036 accurate, robust, and extensible. However, there are two important
16037 changes in how it treats unknown LaTeX. (1) Previously, unknown
16038 environments became BlockQuote elements; now, they are treated
16039 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
16040 same as `xyz`. (2) Previously, arguments of unknown commands
16041 were passed through with their braces; now the braces are stripped
16042 off.
16044 * `--smart` is no longer selected automatically with `man` output.
16046 * The deprecated `--xetex` option has been removed.
16048 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
16049 instead. `html5` and `html5+lhs` are now separate output formats.
16051 * Single quotes are no longer escaped in HTML output. They do not
16052 need to be escaped outside of attributes.
16054 * Pandoc will no longer transform leading newlines in code
16055 blocks to `<br/>` tags.
16057 * The ODT writer now sizes images appropriately, using the image
16058 size and DPI information embedded in the image.
16060 * `--standalone` is once again implicitly for a non-text output format
16061 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
16062 and get a standalone ODT file.
16064 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
16065 `<section>`.
16067 * The HTML writer now uses `<del>` for strikeout.
16069 * In HTML output with `--section-divs`, the classes `section` and
16070 `level[1,2,..6]` are put on the `div` tags so they can be styled.
16071 In HTML 5 output with `--section-divs`, the classes
16072 `level[1,2,...6]` are put on `section` tags.
16074 * EPUB writer changes:
16076 + The `lang` variable now sets the language
16077 in the metadata (if it is not set, we default to the locale).
16078 + EPUB: UTF-8 is used rather than decimal entities.
16080 * Added `titleslide` class to title slide in S5 template.
16082 * In HTML, EPUB, and docx metadata, the date is normalized into
16083 YYYY-MM-DD format if possible. (This is required for validation.)
16085 * Attributes in highlighted code blocks are now preserved in HTML.
16086 The container element will have the classes, id, and key-value attributes
16087 you specified in the delimited code block. Previously these were stripped
16088 off.
16090 * The reference backlink in the HTML writer no longer has a special
16091 `footnoteBacklink` class.
16093 * The HTML template has been split into `html` and `html5` templates.
16095 * Author and date are treated more consistently in HTML templates.
16096 Authors are now `<h2>`, date `<h3>`.
16098 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
16100 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
16102### Bug fixes
16104 * Better support for combining characters and East Asian wide characters
16105 in markdown and reST.
16107 * Better handling of single quotes with `--smart`.
16108 Previously `D'oh l'*aide*` would be parsed with left and right single
16109 quotes instead of apostrophes. This kind of error is now fixed.
16111 * Highlighting: Use `reads` instead of `read` for better error handling.
16112 Fixes crash on `startNum="abc"`.
16114 * Added blank comment after directives in rst template.
16116 * Unescape entities in citation `refId`. The `refId`s coming
16117 from citeproc contain XML numeric entities, and these don't match with the
16118 citation keys parsed by pandoc. Solution is to unescape them.
16120 * HTML reader: Fixed bug parsing tables with both thead and tbody.
16122 * Markdown reader:
16124 + Better handling of escapes in link URLs and titles.
16125 + Fixed backslash escapes in reference links.
16126 + Fixed bug in table/hrule parsing, by checking that the top
16127 line of a table is not followed by a blank line. This bug caused
16128 slowdowns on some files with hrules and tables, as pandoc tried to
16129 interpret the hrules as the tops of multiline tables.
16130 + Fixed bug in code block attribute parser. Previously the ID attribute
16131 got lost if it didn't come first. Now attributes can come in any order.
16133 * RST reader: allow footnotes followed by newline without space characters.
16135 * LaTeX reader:
16137 + Ignore empty groups {}, { }.
16138 + LaTeX reader: Handle `\@`.
16139 + LaTeX reader: Don't crash on commands like `\itemsep`.
16140 + LaTeX reader: Better handling of letter environments.
16142 * RST writer: Fixed bug involving empty table cells. isSimple was being
16143 calculated in a way that assumed there were no non-empty cells.
16145 * ConTeXt writer:
16147 + Made `--toc` work even without `--number-sections`.
16148 + Escape # in link URLs.
16149 + Use buffering for footnotes containing code blocks.
16150 + Changed 'descr' to 'description', fixed alignment.
16152 * LaTeX writer:
16154 + Escape euro character.
16155 + Don't escape `~` inside `\href{...}`.
16156 + Escape `#` in href URLs.
16157 + Improved detection of book classes. We now check the
16158 `documentclass` variable, and if that is not set, we look through
16159 the template itself. Also, we have added the KOMA classes scrreprt
16160 and scrbook. You can now make a book using
16161 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
16162 + LHS files now set the "listings" variable, so that the definition
16163 of the `code` environment will be included in the template.
16164 + Links are colored blue by default (this can be changed by
16165 modifying `hyperref` settings in the template).
16166 + Added `lang` variable to LaTeX template.
16168 * HTML writer:
16170 + Fixed bug in HTML template with html5 and mathml.
16171 + Don't use self-closing img, br, hr tags for HTML5.
16172 + Use `<section>` for footnotes if HTML5.
16173 + Update HTML templates to use Content-Style-Type meta tag.
16174 + Use separate variables for meta-date, meta-author.
16175 This makes footnotes work in author and date fields.
16176 + Use 'vertical-align:middle' in WebTeX math for better alignment.
16178 * S5/slidy writer: Make footnotes appear on separate slide at end.
16180 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
16181 META-INF/manifest.xml for ODT files will have everything it needs, so
16182 that ODT files modified by LibreOffice can be used as `--reference-odt`.
16184 * `Text.Pandoc.Templates`: Return empty string for json template.
16186 * `Text.Pandoc.Biblio`:
16188 + Expand citations recursively inside nested inlines.
16189 + Treat `\160` as space when parsing locator and suffix.
16190 This fixes a bug with "p. 33" when `--smart` is used. Previously
16191 the whole "p. 33" would be included in the suffix, with no locator.
16192 + Put whole author-in-text citation in a Cite. Previously just the
16193 date and other info went in the Cite.
16194 + Don't add comma+space to prefix if it ends in punctuation.
16196 * Updated chicago-author-date.csl. The old version did not work
16197 properly for edited volumes with no author.
16199 * EPUB writer:
16201 + Add date to EPUB titlepage and metadata.
16202 + Added TOC identifier in EPUB page template.
16203 + Don't generate superfluous file `cover-image.jpg`.
16205### Under the hood improvements
16207 * Modified `make_osx_package.sh` to use cabal-dev.
16208 Items are no longer installed as root.
16209 Man pages are zipped and given proper permissions.
16211 * Modified windows installer generator to use cabal-dev.
16213 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
16214 Setup.hs we now invoke 'runghc' in a way that points it to the correct
16215 package databases, instead of always falling back to the default user
16216 package db.
16218 * Updated to work with GHC 7.4.1.
16220 * Removed dependency on old-time.
16222 * Removed dependency on dlist.
16224 * New slidy directory for "self-contained."
16226 * TeXMath writer: Use unicode thin spaces for thin spaces.
16228 * Markdown citations: don't strip off initial space in locator.
16230### API changes
16232 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
16233 from the native `Inline` type in pandoc-types. Now we use `Str`
16234 elements with unicode.
16236 * Improvements to `Text.Pandoc.Builder`:
16238 + `Inlines` and `Blocks` are now newtypes (not synonyms for
16239 sequences).
16240 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
16241 and a new `Listable` class, which allows these to be manipulated
16242 to some extent like lists. Monoid append includes automatic
16243 normalization.
16244 + `+++` has been replaced by `<>` (mappend).
16246 * Use blaze-html instead of xhtml for HTML generation.
16247 This changes the type of `writeHtml`.
16249 * `Text.Pandoc.Shared`:
16251 + Added `warn` and `err`.
16252 + Removed `unescapeURI`, modified `escapeURI`.
16253 (See under [behavior changes], above.)
16255 * Changes in URI escaping: Previously the readers escaped URIs by
16256 converting unicode characters to octets and then percent encoding.
16257 Now unicode characters are left as they are, and `escapeURI` only
16258 percent-encodes space characters. This gives more readable
16259 URIs, and works well with modern user agents. URIs are no longer unescaped
16260 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
16262 * New module `Text.Pandoc.SelfContained`.
16264 * New module `Text.Pandoc.Docx`.
16266 * New module `Text.Pandoc.PDF`.
16268 * Added `writerBeamer` to `WriterOptions`.
16270 * Added `normalizeDate` to `Text.Pandoc.Shared`.
16272 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
16273 This is like `splitWithIndices`, but it is sensitive to distinctions
16274 between wide, combining, and regular characters.
16276 * `Text.Pandoc.Pretty`:
16278 + Added `chomp` combinator.
16279 + Added `beforeNonBreak` combinator. This allows you to include
16280 something conditionally on it being before a nonblank.
16281 Used for RST inline math.
16282 + Added `charWidth` function. All characters marked W or F in the unicode
16283 spec EastAsianWidth.txt get width 2.
16284 + Added `realLength`, based on `charWidth`. `realLength` is now
16285 used in calculating offsets.
16287 * New module `Text.Pandoc.Slides`, for common functions for breaking
16288 a document into slides.
16290 * Removed `Text.Pandoc.S5`, which is no longer needed.
16292 * Removed `Text.Pandoc.CharacterReferences`. Moved
16293 `characterReference` to `Text.Pandoc.Parsing`.
16294 `decodeCharacterReferences` is replaced by `fromEntities`
16295 in `Text.Pandoc.XML`.
16297 * Added `Text.Pandoc.ImageSize`. This is intened for use
16298 in `docx` and `odt` writers, so the size and dpi of images
16299 can be calculated.
16301 * Removed `writerAscii` in `WriterOptions`.
16303 * Added `writerHighlight` to `WriterOptions`.
16305 * Added `DZSlides` to `HTMLSlideVariant`.
16307 * `writeEPUB` has a new argument for font files to embed.
16309 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
16310 of whether we're parsing the position immediately after a regular
16311 (non-space, non-symbol) string, which is useful for distinguishing
16312 apostrophes from single quote starts.
16314 * `Text.Pandoc.Parsing`:
16316 + `escaped` now returns a `Char`.
16317 + Removed `charsInBalanced'`, added a character parser as
16318 a parameter of `charsInBalanced`. This is needed for
16319 proper handling of escapes, etc.
16320 + Added `withRaw`.
16322 * Added `toEntities` to `Text.Pandoc.XML`.
16324 * `Text.Pandoc.Readers.LaTeX`:
16326 + Export `handleIncludes`.
16327 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
16329 * Added `ToJsonFilter` class and `toJsonFilter` function to
16330 `Text.Pandoc`, deprecating the old `jsonFilter` function.
16332 * `Text.Pandoc.Highlighting`:
16334 + Removed `highlightHtml`, `defaultHighlightingCss`.
16335 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
16336 key functions from highlighting-kate.
16337 + Changed types of highlighting function. `highlight` returns a
16338 `Maybe`, not an `Either`.
16341## pandoc 1.8.2.1 (2011-08-01)
16343 * Adjusted Arbitrary instance to help avoid timeouts in tests.
16345 * Added `Tests.Writers.Markdown` to cabal file.
16347 * Relaxed version bounds on pandoc-types, test-framework.
16349## pandoc 1.8.2 (2011-07-30)
16351 * Added script to produce OS X package.
16353 * Made `templates` directory a git submodule. This should make it
16354 easier for people to revise their custom templates when the default
16355 templates change.
16357 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
16358 **Note:** If you have existing templates in `~/.pandoc/templates`, you
16359 must rename them to conform to the new scheme!
16361 * Default template improvements:
16363 + HTML: Display author and date after title.
16364 + HTML: Made table of contents more customizable. The container
16365 for the TOC is now in the template, so users can insert a header
16366 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
16367 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
16368 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
16369 hard-coding. If you want to put your slidy files in the slidy
16370 subdirectory, for example, you can do
16371 `pandoc -t slidy -V slidy-url=slidy -s`.
16372 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
16373 & writer). Closes #279.
16374 + LaTeX: Set `\emergencystretch` to prevent overfull lines.
16375 + LaTeX: Use different `hyperref` options for `xetex`, fixing
16376 problems with unicode bookmarks (thanks to CircleCode).
16377 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
16378 with `inputenc`. This covers fewer characters but is more
16379 robust with other packages, and `ucs` is unmaintained. Users
16380 who need better unicode support should use xelatex or lualatex.
16382 * If a template specified with `--template` is not found, look for it
16383 in `datadir`. Also, if no extension is provided, supply one based
16384 on the writer. So now you can put your `special.latex` template in
16385 `~/.pandoc/templates`, and use it from any directory via
16386 `pandoc -t latex --template special`.
16388 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
16390 * Fixed smart quotes bug, now handling `'...hi'` properly.
16392 * RST reader:
16394 + Partial support for labeled footnotes.
16395 + Improved accuracy of `simpleReferenceName` parser.
16397 * HTML reader:
16399 + Substitute correct unicode characters for
16400 characters in the 128..159 range, which are often found even in
16401 HTML that purports to be UTF-8.
16403 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
16404 to the title, after a colon and linebreak). Closes #280.
16406 * Leaner `reference.odt`.
16408 * Added unexported module `Text.Pandoc.MIME` for use in
16409 the ODT writer.
16411 * ODT writer: Construct `manifest.xml` based on archive contents.
16412 This fixes a bug in ODTs containing images. Recent versions of
16413 LibreOffice would reject these as corrupt, because `manifest.xml`
16414 did not contain a reference to the image files.
16416 * LaTeX writer:
16418 + Make verbatim environments flush to avoid spurious
16419 blank lines. Closes #277.
16420 + Use `\texttt` and escapes insntead of `\verb!...!`, which
16421 is too fragile (doesn't work in command arguments).
16422 + Use `\enquote{}` for quotes if the template includes
16423 the `csquotes` package. This provides better support for
16424 local quoting styles. (Thanks to Andreas Wagner for the idea.)
16426 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
16427 margin, preventing spurious blank lines.
16429 * Slidy writer:
16431 + Use non-minimized version of `slidy.css` with `--offline`
16432 option, so users can more easily edit it.
16433 + Also fixed a bug in the CSS that prevented proper centering
16434 of title (now reported and fixed upstream).
16436 * S5 writer:
16438 + Replaced `s5/default/slides.js.{comment,packed}` with
16439 new compressed `s5/default/slides.min.js`.
16440 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
16441 when `--offline` is specified. Using inline CSS didn't
16442 work with Chrome or Safari. This fixes offline
16443 S5 on those browsers.
16445 * HTML writer: Removed English title on footnote backlinks.
16446 This is incongrous in non-English documents.
16448 * Docbook writer:
16450 + Use CALS tables. (Some older docbook software does not work
16451 well with XHTML tables.) Closes #77.
16452 + Use `programlisting` tags (instead of `screen`) for code blocks.
16454 * `markdown2pdf`:
16456 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
16457 of `-interaction=batchmode`, which essentially just ignored errors,
16458 leading to bad results. Better to know when something is wrong.
16459 + Fixed issues with non-UTF-8 output of `pdflatex`.
16460 + Better error reporting.
16462 * `--mathjax` now takes an optional URL argument. If it is not
16463 provided, pandoc links directly to the (secure) mathjax CDN,
16464 as now recommended (thanks to dsanson).
16466 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
16467 since the LaTeX writer now produces a file that can be processed by
16468 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
16470 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
16471 to be used to create the PDF.
16474## pandoc 1.8.1.2 (2011-07-16)
16476 * Added `--epub-cover-image` option.
16478 * Documented `--biblatex` and `--natbib` options.
16480 * Allow `--section-divs` with slidy output. Resolves Issue #296.
16482 * Disallow notes within notes in reST and markdown.
16483 These previously caused infinite looping and stack overflows.
16484 For example:
16486 [^1]
16488 [^1]: See [^1]
16490 Note references are allowed in reST notes, so this isn't a full
16491 implementation of reST. That can come later. For now we need to
16492 prevent the stack overflows. Partially resolves Issue #297.
16494 * EPUB writer: Allow non-plain math methods.
16496 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
16497 `(@item1; @item2)` because the final paren was being parsed as part of
16498 the item key.
16500 * Changed URI parser so it doesn't include trailing punctuation.
16501 So, in RST, `http://google.com.` should be parsed as a link followed by a
16502 period. The parser is smart enough to recognize balanced parentheses, as
16503 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
16505 * Markdown+lhs reader: Require space after inverse bird tracks, so that
16506 HTML tags can be used freely at the left margin of a markdown+lhs document.
16507 Thanks to Conal Elliot for the suggestion.
16509 * Markdown reader: Fixed bug in footnote order (reported by CircleCode).
16511 * RST reader:
16512 + Fixed bug in in field lists with multi-line items at the
16513 end of the list.
16514 + Added parentheses to RST `specialChars`, so
16515 `(http://google.com)` will be parsed as a link in parens.
16516 Resolves Issue #291.
16517 + Allow `|` followed by newline in RST line block.
16519 * LaTeX reader:
16520 + Support `\dots`.
16521 + Gobble option & space after linebreak `\\[10pt]`.
16523 * Textile reader:
16524 + Make it possible to have colons after links. (qerub)
16525 + Make it possible to have colons after links. (Christoffer Sawicki)
16527 * HTML reader:
16528 + Skip spaces after `<b>`, `<emph>`, etc.
16529 + Handle tbody, thead in simple tables. Closes #274.
16530 + Implicit `Para`s instead of `Plains` in some contexts.
16532 * OpenDocument writer: Use special `First paragraph` style for
16533 first paragraph after most non-paragraph blocks. This allows users to
16534 specify e.g. that only paragraphs after the first paragraph of a block are
16535 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
16537 * LaTeX writer: use `deVerb` on table and picture captions.
16538 Otherwise LaTeX complains about `\verb` inside command argument.
16539 Thanks to bbanier for reporting the bug.
16541 * Markdown writer: Insert HTML comment btw list and indented code block.
16542 This prevents the code block from being interpreted as part of the list.
16544 * EPUB writer: Add a meta element specify the cover.
16545 Some EPUB e-readers, such as the Nook, require a meta element inside the
16546 OPF metadata block to ensure the cover image is properly displayed.
16547 (Kelsey Hightower)
16549 * HTML writer: Use embed tag for images with non-image extensions.
16550 (e.g. PDFs). Closes #264.
16552 * LaTeX writer: Improved tables.
16554 + More space between lines, top-align cells.
16555 + Use ctable package, which allows footnotes and
16556 provides additional options.
16557 + Made cell alignments work in multiline tables.
16558 + Closes #271, #272.
16560 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
16561 Also do this when copying image files into EPUBs and ODTs.
16562 Closes #263.
16564 * Changed to github issue tracker.
16566 * Added failing emph/strong markdown test case due to Perry Wagle.
16568 * Slidy improvements:
16569 + Updated to use Slidy2.
16570 + Fixed bug, unclosed div tag.
16571 + Added `duration` variable in template.
16572 Setting this activates the timer.
16573 + Use 'titlepage' instead of 'cover' for title div.
16576## pandoc 1.8.1.1 (2011-02-13)
16578 * `markdown2pdf`: Removed some debugging lines accidentally included
16579 in the 1.8.1 release. With those lines, the temp directory is created
16580 in the working directory, and it is not deleted. This fix restores
16581 the original behavior.
16583## pandoc 1.8.1 (2011-02-13)
16585 * Added `--ascii` option. Currently supported only in HTML writer,
16586 which it causes to use numerical entities instead of UTF-8.
16588 * EPUB writer: `--toc` now works to provide a table of contents
16589 at the beginning of each chapter.
16591 * LaTeX writer: Change figure defaults to `htbp`.
16592 This prevents "too many unprocessed floats." Resolves
16593 Issue #285.
16595 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
16596 base.
16598 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
16599 Tanimoto. Resolves Issue #286.
16601 * HTML writer: Put line breaks in section divs.
16603 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
16605## pandoc 1.8.0.3 (2011-02-05)
16607 * Fixed Source-repository stanza in cabal file.
16609## pandoc 1.8.0.2 (2011-02-05)
16611 * HTML writer:
16613 + Stringify alt text instead of converting to HTML.
16614 + Break lines after block elements, not inside tags.
16615 HTML output now closely resembles that of tidy. Resolves Issue #134.
16617 * Markdown reader: Fixed bug in footnote block parser (pointed out
16618 by Jesse Rosenthal). The problem arose when the blank line
16619 at the end of a footnote block contained indenting spaces.
16621 * Shared: Improved 'normalize' function so it normalizes Spaces too.
16622 In normal form, Space elements only occur to separate two non-Space
16623 elements. So, we never have [Space], or [, ..., Space].
16625 * Tests:
16627 + Improved Arbitrary instance.
16628 + Added timeout for test instances.
16630 * README:
16632 + Added section on four-space rule for lists. Resolves Issue #283.
16633 + Clarified optional arguments on math options.
16635 * markdown2pdf: Fixed bug with output file extensions.
16636 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
16637 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
16639## pandoc 1.8.0.1 (2011-01-31)
16641 * Revised Interact.hs so that it works with the CPP macros
16642 in the UTF8 module.
16644 * Revised Setup.hs so that we don't call MakeManPage.hs unless
16645 the man pages are out of date.
16647## pandoc 1.8 (2011-01-30)
16649### New features
16651 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
16652 You can now write, for example,
16654 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
16656 and, when you process your document using `pandoc`, specifying
16657 a citation style using `--csl` and a bibliography using `--bibliography`,
16658 the citation will be replaced by an appropriately formatted
16659 citation, and a list of works cited will be added to the end
16660 of the document.
16662 This means that you can switch effortlessly between different citation
16663 and bibliography styles, including footnote, numerical, and author-date
16664 formats. The bibliography can be in any of the following formats: MODS,
16665 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
16666 See the README for further details.
16668 Citations are supported in the markdown reader, using a special
16669 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
16670 (Thanks to Nathan Gass for the natbib and biblatex support.)
16672 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
16673 the `textile` reader, an almost complete implementation of the textile
16674 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
16675 Resolves Issue #51.
16677 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
16679 * New `json` reader and writer, for reading and writing a JSON
16680 representation of the native Pandoc AST. These are much faster
16681 than the `native` reader and writer, and should be used for
16682 serializing Pandoc to text. To convert between the JSON representation
16683 and native Pandoc, use `encodeJSON` and `decodeJSON` from
16684 `Text.JSON.Generic`.
16686 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
16687 to write scripts that transform a JSON-encoded pandoc document.
16688 For example:
16690 -- removelinks.hs - removes links from document
16691 import Text.Pandoc
16692 main = interact $ jsonFilter $ bottomUp removeLink
16693 where removeLink (Link xs _) = Emph xs
16694 removeLink x = x
16696 To use this to remove links while translating markdown to LaTeX:
16698 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
16700 * Attributes are now allowed in inline `Code` elements, for example:
16702 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
16704 The attribute syntax is the same as for delimited code blocks.
16705 `Code` inline has an extra argument place for attributes, just like
16706 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
16707 is compiled with highlighting support. Resolves Issue #119.
16709 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
16710 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
16711 scripts to transform Pandoc documents. Scripts can now change
16712 how each element is rendered in each output format.
16714 * You can now define LaTeX macros in markdown documents, and pandoc
16715 will apply them to TeX math. For example,
16717 \newcommand{\plus}[2]{#1 + #2}
16718 $\plus{3}{4}$
16720 yields `3+4`. Since the macros are applied in the reader, they
16721 will work in every output format, not just LaTeX.
16723 * LaTeX macros can also be used in LaTeX documents (both in math
16724 and in non-math contexts).
16726 * A new `--mathjax` option has been added for displaying
16727 math in HTML using MathJax. Resolves issue #259.
16729 * Footnotes are now supported in the RST reader. (Note, however,
16730 that unlike docutils, pandoc ignores the numeral or symbol used in
16731 the note; footnotes are put in an auto-numbered ordered list.)
16732 Resolves Issue #258.
16734 * A new `--normalize` option causes pandoc to normalize the AST
16735 before writing the document. This means that, for example,
16736 `*hi**there*` will be rendered as `<em>hithere</em>`
16737 instead of `<em>hi</em><em>there</em>`. This is not the default,
16738 because there is a significant performance penalty.
16740 * A new `--chapters` command-line option causes headers
16741 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
16742 Resolves Issue #265.
16744 * In DocBook output, `<chapter>` is now used for top-level
16745 headers if the template contains `<book>`. Resolves Issue #265.
16747 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
16748 the LaTeX writer to use the listings package for code blocks.
16749 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
16750 Millon for the markdown2pdf patch.)
16752 * `markdown2pdf` now supports `--data-dir`.
16754 * URLs in autolinks now have class "url" so they can be styled.
16756 * Improved prettyprinting in most formats. Lines will be wrapped
16757 more evenly and duplicate blank lines avoided.
16759 * New `--columns` command-line option sets the column width for
16760 line wrapping and relative width calculations for tables.
16762 * Made `--smart` work in HTML, RST, and Textile readers, as well
16763 as markdown.
16765 * Added `--html5` option for HTML5 output.
16767 * Added support for listings package in LaTeX reader
16768 (Puneeth Chaganti).
16770 * Added support for simple tables in the LaTeX reader.
16772 * Added support for simple tables in the HTML reader.
16774 * Significant performance improvements in many readers and writers.
16776### API and program changes
16778 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
16779 auxiliary package, `pandoc-types`. This will make it possible for other
16780 programs to supply output in Pandoc format, without depending on the whole
16781 pandoc package.
16783 * Added `Attr` field to `Code`.
16785 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
16786 `RawBlock` and `RawInline`.
16788 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
16789 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
16790 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
16792 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
16794 * `Text.Pandoc` now exports association lists `readers` and `writers`.
16796 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
16797 `readNative` can now read full pandoc documents, block lists, blocks,
16798 inline lists, or inlines. It will interpret `Str "hi"`
16799 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
16800 This should make testing easier.
16802 * Removed deprecated `-C/--custom-header` option.
16803 Use `--template` instead.
16805 * `--biblio-file` has been replaced by `--bibliography`.
16806 `--biblio-format` has been removed; pandoc now guesses the format
16807 from the file extension (see README).
16809 * pandoc will treat an argument as a URI only if it has an
16810 `http(s)` scheme. Previously pandoc would treat some
16811 Windows pathnames beginning with `C:/` as URIs.
16813 * The `--sanitize-html` option and the `stateSanitize` field in
16814 `ParserState` have been removed. Sanitization is better done in the
16815 resulting HTML using `xss-sanitize`, which is based on pandoc's
16816 sanitization, but improved.
16818 * pandoc now adds a newline to the end of its output in fragment
16819 mode (= not `--standalone`).
16821 * Added support for `lang` in `html` tag in the HTML template,
16822 so you can do `pandoc -s -V lang=es`, for example.
16824 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
16825 a boolean argument that selects between "inline" and
16826 "block" HTML.
16828 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
16829 Images are embedded in RTF output when possible (png, jpeg).
16830 Resolves Issue #275.
16832 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
16833 `pretty` package. Changed all writers that used
16834 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
16836 * Rewrote `writeNative` using the new prettyprinting module. It is
16837 now much faster. The output has been made more consistent and compressed.
16838 `writeNative` is also now sensitive to writerStandalone`, and will simply
16839 `print a block list if writerStandalone` is False.
16841 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
16842 blocks and concatenate them, so a separate module is no longer needed.
16844 * `Text.Pandoc.Shared`:
16846 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
16847 `WriterOptions`.
16848 + Added `normalize`.
16849 + Removed unneeded prettyprinting functions:
16850 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
16851 `BlockWrapper`, `wrappedBlocksToDoc`.
16852 + Made `splitBy` take a test instead of an element.
16853 + Added `findDataFile`, refactored `readDataFile`.
16854 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
16855 + Fixed `inlineListToIdentifier` to treat `\160` as ' '.
16857 * `Text.Pandoc.Readers.HTML`:
16859 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
16860 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
16861 `htmlBlockElement`, `htmlComment`
16862 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
16863 `isTextTag`
16865 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
16866 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
16867 an inline parser.
16869 * Ellipses are no longer allowed to contain spaces.
16870 Previously we allowed '. . .', ' . . . ', etc. This caused
16871 too many complications, and removed author's flexibility in
16872 combining ellipses with spaces and periods.
16874 * Allow linebreaks in URLs (treat as spaces). Also, a string of
16875 consecutive spaces or tabs is now parsed as a single space. If you have
16876 multiple spaces in your URL, use `%20%20`.
16878 * `Text.Pandoc.Parsing`:
16880 + Removed `refsMatch`.
16881 + Hid `Key` constructor.
16882 + Removed custom `Ord` and `Eq` instances for `Key`.
16883 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
16884 + Generalized type on `readWith`.
16886 * Small change in calculation of relative widths of table columns.
16887 If the size of the header > the specified column width, use
16888 the header size as 100% for purposes of calculating
16889 relative widths of columns.
16891 * Markdown writer now uses some pandoc-specific features when `--strict`
16892 is not specified: `\` newline is used for a hard linebreak instead of
16893 two spaces then a newline. And delimited code blocks are used when
16894 there are attributes.
16896 * HTML writer: improved gladTeX output by setting ENV appropriately
16897 for display or inline math (Jonathan Daugherty).
16899 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
16901 * LaTeX reader:
16903 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
16904 + `\index{}` commands are skipped.
16906 * Added `fontsize` variable to default LaTeX template.
16907 This makes it easy to set the font size using `markdown2pdf`:
16908 `markdown2pdf -V fontsize=12pt input.txt`.
16910 * Fixed problem with strikeout in LaTeX headers when using
16911 hyperref, by adding a command to the default LaTeX template
16912 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
16913 for the fix.
16915 * The `COLUMNS` environment variable no longer has any effect.
16917### Under-the-hood improvements
16919 * Pandoc now compiles with GHC 7. (This alone leads to a
16920 significant performance improvement, 15-20%.)
16922 * Completely rewrote HTML reader using tagsoup as a lexer. The
16923 new reader is faster and more accurate. Unlike the
16924 old reader, it does not get bogged down on some input
16925 (Issues #277, 255). And it handles namespaces in tags
16926 (Issue #274).
16928 * Replaced `escapeStringAsXML` with a faster version.
16930 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
16931 for a significant performance boost.
16933 * Improved performance of all readers by rewriting parsers.
16935 * Simplified Text.Pandoc.CharacterReferences by using
16936 entity lookup functions from TagSoup.
16938 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
16939 from `System.IO` if base >= 4.2. This gives support for
16940 windows line endings on windows.
16942 * Remove duplications in documentation by generating the
16943 pandoc man page from README, using `MakeManPage.hs`.
16945 * README now includes a full description of markdown syntax,
16946 including non-pandoc-specific parts. A new `pandoc_markdown`
16947 man page is extracted from this, so you can look up markdown
16948 syntax by doing `man pandoc_markdown`.
16950 * Completely revised test framework (with help from Nathan Gass).
16951 The new test framework is built when the `tests` Cabal flag is set. It
16952 includes the old integration tests, but also some new unit and quickcheck
16953 tests. Test output has been much improved, and you can now specify a glob
16954 pattern after `cabal test` to indicate which tests should be run;
16955 for example `cabal test citations` will run all the citation tests.
16957 * Added a shell script, `stripansi.sh`, for filtering ANSI control
16958 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
16960 * Added `Interact.hs` to make it easier to use ghci while developing.
16961 `Interact.hs` loads `ghci` from the `src` directory, specifying
16962 all the options needed to load pandoc modules (including
16963 specific package dependencies, which it gets by parsing
16964 dist/setup-config).
16966 * Added `Benchmark.hs`, testing all readers + writers using criterion.
16968 * Added `stats.sh`, to make it easier to collect and archive
16969 benchmark and lines-of-code stats.
16971 * Added upper bounds to all cabal dependencies.
16973 * Include man pages in extra-source-files. This allows users to
16974 install pandoc from the tarball without needing to build the man
16975 pages.
16977### Bug fixes
16979 * Filenames are encoded as UTF8. Resolves Issue #252.
16981 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
16982 were just parsed literally, leading to problems in some output formats.
16983 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
16984 Resolves Issue #270.
16986 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
16987 Spaces at end of line were not being stripped properly,
16988 resulting in unintended LineBreaks.
16990 * Markdown reader:
16992 + Allow HTML comments as inline elements in markdown.
16993 So, `aaa <!-- comment --> bbb` can be a single paragraph.
16994 + Fixed superscripts with links: `^[link](/foo)^` gets
16995 recognized as a superscripted link, not an inline note followed by
16996 garbage.
16997 + Fixed regression, making markdown reference keys case-insensitive again.
16998 Resolves Issue #272.
16999 + Properly handle abbreviations (like `Mr.`) at the end of a line.
17000 + Better handling of intraword underscores, avoiding exponential
17001 slowdowns in some cases. Resolves Issue #182.
17002 + Fixed bug in alignments in tables with blank rows in the header.
17004 * RST reader:
17006 + Field lists now allow spaces in field names, and
17007 block content in field values. (Thanks to Lachlan Musicman
17008 for pointing out the bug.)
17009 + Definition list items are now always `Para` instead of
17010 `Plain`, matching behavior of `rst2xml.py`.
17011 + In image blocks, the description is parsed properly and
17012 used for the alt attribute, not also the title.
17013 + Skip blank lines at beginning of file. Resolves
17014 Debian #611328.
17016 * LaTeX reader:
17018 + Improved parsing of preamble.
17019 Previously you'd get unexpected behavior on a document that
17020 contained `\begin{document}` in, say, a verbatim block.
17021 + Allow spaces between `\begin` or `\end` and `{`.
17022 + Support `\L` and `\l`.
17023 + Skip comments inside paragraphs.
17025 * LaTeX writer:
17027 + Escape strings in `\href{..}`.
17028 + In nonsimple tables, put cells in `\parbox`.
17030 * OpenDocument writer: don't print raw TeX.
17032 * Markdown writer:
17034 + Fixed bug in `Image`. URI was getting unescaped twice!
17035 + Avoid printing extra blank lines at the end if there are
17036 no notes or references.
17038 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
17039 This avoids unwanted interpretation as an optional argument.
17041 * ConTeXt writer: Fixed problem with inline code. Previously
17042 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
17043 If it contains neither, use `\type{}`; otherwise use `\mono{}`
17044 with an escaped version of the string.
17046 * `:` now allowed in HTML tags. Resolves Issue #274.
17050## pandoc 1.6 (2010-07-24)
17052+ New EPUB and HTML Slidy writers. (Issue #122)
17054 - [EPUB] is a standard ebook format, used in Apple's iBooks for
17055 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
17056 reader, and many other devices, and by online ebook readers like
17057 [bookworm]. (Amazon's Kindle uses a different format, MobiPocket,
17058 but EPUB books can easily be converted to Kindle format.) Now you
17059 can write your book in markdown and produce an ebook with a single
17060 command! I've put up a short [tutorial here].
17061 - [Slidy], like S5, is a system for producing HTML+javascript slide shows.
17063+ All input is assumed to be UTF-8, no matter what the locale and ghc
17064 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
17065 Also, a BOM, if present, is stripped from the input.
17067+ Markdown now supports grid tables, whose cells can contain
17068 arbitrary block elements. (Issue #43)
17070+ Sequentially numbered example lists in markdown with `@` marker.
17072+ Markdown table captions can begin with a bare colon and no longer need
17073 to include the English word "table." Also, a caption can now occur
17074 either before or after the table. (Issue #227)
17076+ New command-line options:
17078 - `--epub-stylesheet` allows you to specify a CSS file that will
17079 be used to style your ebook.
17080 - `--epub-metadata` allows you to specify metadata for the ebook.
17081 - `--offline` causes the generated HTML slideshow to include all
17082 needed scripts and stylesheets.
17083 - `--webtex` causes TeX math to be converted to images using the
17084 Google Charts API (unless a different URL is specified).
17085 - `--section-divs` causes div tags to be added around each section
17086 in an HTML document. (Issue #230, 239)
17088+ Default behavior of S5 writer in standalone mode has changed:
17089 previously, it would include all needed scripts and stylesheets
17090 in the generated HTML; now, only links are included unless
17091 the `--offline` option is used.
17093+ Default behavior of HTML writer has changed. Between 1.2 and 1.5,
17094 pandoc would enclose sections in div tags with identifiers on the
17095 div tags, so that the sections can be manipulated in javascript.
17096 This caused undesirable interactions with raw HTML div tags. So,
17097 starting with 1.6, the default is to put the identifiers directly
17098 on the header tags, and not to include the divs. The `--section-divs`
17099 option selects the 1.2-1.5 behavior.
17101+ API changes:
17103 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
17104 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
17105 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
17106 `writerIncludeAfter`.
17107 - Added `headerShift` to `Text.Pandoc.Shared`.
17108 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
17109 to a new module, `Text.Pandoc.Parsing`.
17110 - Added `stateHasChapters` to `ParserState`.
17111 - Added `HTMLSlideVariant`.
17112 - Made `KeyTable` a map instead of an association list.
17113 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`, `docDate`).
17114 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord` instances.
17115 - Reference keys now have a type of their own (`Key`), with its
17116 own `Ord` instance for case-insensitive comparison.
17117 - Added `Text.Pandoc.Writers.EPUB`.
17118 - Added `Text.Pandoc.UUID`.
17119 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
17120 Removed `saveOpenDocumentAsODT`, added `writeODT`.
17121 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
17122 Removed `prettyPandoc`.
17123 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
17124 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
17125 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
17126 To write S5, you now use `writeHtml` with `writerSlideVariant`
17127 set to `S5Slides` or `SlidySlides`.
17129+ Template changes. If you use custom templates, please update them,
17130 particularly if you use syntax highlighting with pandoc. The old HTML
17131 templates hardcoded highlighting CSS that will no longer work with
17132 the most recent version of highlighting-kate.
17134 - HTML template: avoid empty meta tag if no date.
17135 - HTML template: Use default highlighting CSS from highlighting-kate
17136 instead of hard-coding the CSS into the template.
17137 - HTML template: insert-before text goes before the title, and
17138 immediately after the `<body>` tag, as documented. (Issue #241)
17139 - Added slidy and s5 templates.
17140 - Added amssymb to preamble of latex template. (github Issue 1)
17142+ Removed excess newlines at the end of output. Note: because output
17143 will not contain an extra newline, you may need to make adjustments
17144 if you are inserting pandoc's output into a template.
17146+ In S5 and slidy, horizontal rules now cause a new slide, so you
17147 are no longer limited to one slide per section.
17149+ Improved handling of code in man writer. Inline code is now monospace,
17150 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
17152+ HTML reader parses `<tt>` as Code. (Issue #247)
17154+ html+lhs output now contains bird tracks, even when compiled without
17155 highlighting support. (Issue #242)
17157+ Colons are now no longer allowed in autogenerated XML/HTML identifiers,
17158 since they have a special meaning in XML.
17160+ Code improvements in ODT writer. Remote images are now replaced with
17161 their alt text rather than a broken link.
17163+ LaTeX reader improvements:
17165 - Made latex `\section`, `\chapter` parsers more forgiving of whitespace.
17166 - Parse `\chapter{}` in latex.
17167 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
17168 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
17169 for use in markdown reader.
17170 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
17171 in markdown document.
17173+ LaTeX writer: images are automatically shrunk if they would extend
17174 beyond the page margin.
17176+ Plain, markdown, RST writers now use unicode for smart punctuation.
17178+ Man writer converts math to unicode when possible, as in other writers.
17180+ `markdown2pdf` can now recognize citeproc options.
17182+ Command-line arguments are converted to UTF-8. (Issue #234)
17184+ `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
17185 This allows it to handle a wider range of formulas. Also, if a formula
17186 cannot be converted, it is left in raw TeX; formulas are no longer
17187 partially converted.
17189+ Unicode curly quotes are left alone when parsing smart quotes. (Issue #143)
17191+ Cabal file changes:
17193 - Removed parsec < 3 restriction.
17194 - Added 'threaded' flag for architectures where GHC lacks a threaded
17195 runtime.
17196 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
17197 - Require highlighting-kate 0.2.7.
17199+ Use explicit imports from `Data.Generics`. Otherwise we have a
17200 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
17202+ New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
17204[EPUB]: http://en.wikipedia.org/wiki/EPUB
17205[Slidy]: http://www.w3.org/Talks/Tools/Slidy
17206[bookworm]: http://bookworm.oreilly.com/
17207[tutorial here]: http://johnmacfarlane.net/pandoc/epub.html
17209## pandoc 1.5.1.1 (2010-03-29)
17211+ Fixed header identifiers (uniqueIdent in Shared) so they
17212 work as advertized in README and are guaranteed to be
17213 valid XHTML names. Thanks to Xyne for reporting the bug.
17215## pandoc 1.5.1 (2010-03-23)
17217+ Fixed treatment of unicode characters in URIs.
17218+ Revised Setup.hs so it works with debian's build process.
17219+ Fixed bug in OpenDocument writer that led to invalid
17220 XML for some input.
17222## pandoc 1.5.0.1 (2010-03-21)
17224+ HTML writer: Fixed error in math writer (with MathML option)
17225 that caused an infinite loop for unparsable MathML.
17227## pandoc 1.5 (2010-03-20)
17229+ Moved repository to [github](http://github.com/jgm/pandoc).
17230+ New `--mathml` option, for display of TeX math as MathML.
17231+ New `--data-dir` option, allowing users to specify a data
17232 directory other than `~/.pandoc`. Files placed in this directory
17233 will be used instead of system defaults.
17234+ New `--base-header-level` option. For example, `--base-header-level=2`
17235 changes level 1 headers to level 2, level 2 to level 3, etc.
17236+ New 'plain' output format: plain text without pictures, hyperlinks,
17237 inline formatting, or anything else that looks even vaguely
17238 markupish.
17239+ Titles and authors in title blocks can now span multiple lines,
17240 as long as the continuation lines begin with a space character.
17241+ When given an absolute URI as a parameter, pandoc will fetch
17242 the content via HTTP.
17243+ The HTML reader has been made much more forgiving. It no
17244 longer requires well-formed xhtml as input.
17245+ `html2markdown` has been removed; it is no longer necessary, given
17246 the last two changes. `pandoc` can be used by itself to convert
17247 web pages to markdown or other formats.
17248+ `hsmarkdown` has also been removed. Use `pandoc --strict` instead.
17249 Or symlink pandoc's executable to `hsmarkdown`; `pandoc` will then
17250 behave like `hsmarkdown` used to.
17251+ An image in a paragraph by itself is now rendered as a figure
17252 in most writers, with the alt text as the caption.
17253+ Incomplete support for reST tables (simple and grid). Thanks to
17254 Eric Kow. Colspans and rowspans not yet supported.
17255+ In mediawiki, links with relative URLs are now formatted as wikilinks.
17256 Also, headers have been promoted: `= head =` is now level 1 instead of
17257 level 2.
17258+ The markdown reader now handles "inverse bird tracks" when parsing
17259 literate haskell. These are used for haskell example code that
17260 is not part of the literate program.
17261+ The `-B` and `-A` options now imply `-s` and no longer work in
17262 fragment mode.
17263+ Headerless tables are now printed properly in all writers.
17264 In addition, tbody, thead, and cols are used in HTML and Docbook
17265 tables.
17266+ Improved build system; removed obsolete Makefile.
17267+ In LaTeX writer, `\chapter` is now used instead of `\section`.
17268 when the documentclass is book, report, or memoir.
17269+ Many small bug fixes. See [changelog] for details.
17271## pandoc 1.4 (2010-01-02)
17273+ New template system replaces old headers, giving users much
17274 more control over pandoc's output in `--standalone` mode.
17275 Added `--template` and `--variable` options. The `--print-default-header`
17276 option is now `--print-default-template`. See README under
17277 "Templates" for details.
17278+ The old `--custom-header` option should still work, but it has
17279 been deprecated.
17280+ New `--reference-odt` option allows users to customize styles
17281 in ODT output.
17282+ Users may now put custom templates, s5 styles, and a reference
17283 ODT in the `~/.pandoc` directory, where they will override system
17284 defaults. See README for details.
17285+ Unicode is now used whenever possible in HTML and XML output. Entities
17286 are used only where necessary (`&gt;`, `&lt;`, `&quot;`, `&amp;`).
17287+ Authors and dates may now include formatting and notes.
17288+ Added `--xetex` option for `pandoc` and `markdown2pdf`.
17289+ Windows installer now includes highlighting support and
17290 `markdown2pdf` and `hsmarkdown` wrappers.
17291+ Pandoc no longer requires Template Haskell, which should make
17292 it more portable.
17293+ Pandoc can now be built on GHC 6.12, as well as earlier versions.
17294+ See README for other small improvements and bug fixes.
17296## pandoc 1.3 (2009-12-10)
17298+ Added `--id-prefix` option to help prevent duplicate
17299 identifiers when you're generating HTML fragments.
17300+ Added `--indented-code-classes` option, which specifies
17301 default highlighting syntax for indented code blocks.
17302+ `--number-sections` now affects HTML output.
17303+ Improved syntax for markdown definition lists.
17304+ Better looking simple tables.
17305+ Markdown tables without headers are now possible.
17306+ New hard line break syntax: backslash followed by newline.
17307+ Improved performance of markdown reader by ~10% by eliminating the
17308 need for a separate parsing pass for notes.
17309+ Improved syntax highlighting for literate Haskell.
17310+ Support for "..code-block" directive in RST reader.
17311+ Windows binary now includes highlighting support.
17312+ Many bug fixes and small improvements. See [changelog]
17313 for details.
17315## pandoc 1.2.1 (2009-07-18)
17317+ Improved the efficiency of the markdown reader's
17318 abbreviation parsing (should give a big performance
17319 boost with `--smart`).
17320+ HTML writer now wraps sections in divs with unique
17321 identifiers, for easier manipulation.
17322+ Improved LaTeX reader's coverage of math modes.
17323+ Added a portable Haskell version of markdown2pdf (thanks
17324 to Paolo Tanimoto).
17325+ Made `--strict` compatible with `--standalone` and `--toc.`
17326+ Many other small improvements and bug fixes.
17327 See [changelog] for details.
17329## pandoc 1.2 (2009-03-01)
17331+ Added support for literate Haskell. lhs support is triggered by
17332 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
17333 Haskell LaTeX. '.lhs' files are treated by default as literate
17334 markdown.
17335+ Added `--email-obfuscation` option.
17336+ Brought citeproc support up to date for citeproc-hs-0.2.
17337+ Many bugs fixed. See [changelog] for details.
17339## pandoc 1.1 (2008-11-06)
17341+ New `--jsmath` option supporting use of pandoc with [jsMath].
17342+ Classes on HTML table output for better CSS styling.
17343+ Windows installer no longer requires admin privileges.
17344+ Many bugs fixed. See [changelog] for details.
17346## pandoc 1.0 (2008-09-13)
17348+ New writers for MediaWiki, GNU Texinfo (thanks to Peter Wang),
17349 OpenDocument XML (thanks to Andrea Rossato), and ODT (OpenOffice
17350 document).
17351+ New [delimited code blocks](README.html#delimited-code-blocks),
17352 with optional syntax highlighting.
17353+ Reorganized build system: pandoc can now be built using standard
17354 Cabal tools. It can be compiled on Windows without Cygwin.
17355 The tests can also be run without perl or unix tools.
17356+ LaTeXMathML replaces ASCIIMathML for rendering math in HTML.
17357+ Support for "displayed" math.
17358+ Common abbreviations are now handled more intelligently, with
17359 a non-breaking space (and not a sentence-ending space) after
17360 the period.
17361+ Code is -Wall clean.
17362+ Many bug fixes and small improvements. See [changelog] for
17363 full details.
17365## pandoc 0.46 (2008-01-08)
17367+ Added a `--sanitize-html` option (and a corresponding parameter
17368 in `ParserState` for those using the pandoc libraries in programs).
17369 This option causes pandoc to sanitize HTML (in HTML or Markdown
17370 input) using a whitelist method. Possibly harmful HTML elements
17371 are replaced with HTML comments. This should be useful in the
17372 context of web applications, where pandoc may be used to convert
17373 user input into HTML.
17374+ Made -H, -A, and -B options cumulative: if they are specified
17375 multiple times, multiple files will be included.
17376+ Many bug fixes and small improvements. See [changelog] for full
17377 details.
17379## pandoc 0.45 (2007-12-09)
17381+ Many bug fixes and structural improvements. See [changelog] for
17382 full details.
17383+ Improved treatment of math. Math is now rendered using unicode
17384 by default in HTML, RTF, and DocBook output. For more accurate
17385 display of math in HTML, `--gladtex`, `--mimetex`, and `--asciimathml`
17386 options are provided. See the [User's Guide](README.html#math) for
17387 details.
17388+ Removed support for box-style block quotes in markdown.
17389+ More idiomatic ConTeXt output.
17390+ Text wrapping in ConTeXt and LaTeX output.
17391+ Pandoc now correctly handles all standard line endings
17392 (CR, LF, CRLF).
17393+ New `--no-wrap` option that disables line wrapping and minimizes
17394 whitespace in HTML output.
17395+ Build process is now compatible with both GHC 6.8 and GHC 6.6.
17396 GHC and GHC_PKG environment variables may be used to specify
17397 which version of the compiler to use, when multiple versions are
17398 installed.
17400## pandoc 0.44 (2007-09-03)
17402 [ John MacFarlane ]
17404 * Fixed bug in HTML writer: when --toc was used, anchors were put around
17405 headers, which is invalid XHTML (block content within inline element).
17406 Now the anchors are put inside the header tags. Resolves Issue #23.
17408 * Added xmlns attribute to html element in html writer tests.
17409 This attribute is added by more recent versions of the
17410 xhtml library (>= 3000), and is required for valid XHTML.
17412 [ Recai Oktaş ]
17414 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
17415 command instead of 'runhaskell', which, on some platforms (such as s390,
17416 alpha, m68k), throws the following error:
17418 runhaskell Setup.hs configure --prefix=/usr
17419 ghc-6.6.1: not built for interactive use
17421 This causes a serious FTBFS bug. Closes: #440668.
17423## pandoc 0.43 (2007-09-02)
17425 [ John MacFarlane ]
17427 * The focus of this release is performance. The markdown parser
17428 is about five times faster than in 0.42, based on benchmarks
17429 with the TextMate manual.
17431 * Main.hs: Replaced CRFilter and tabFilter with single function
17432 tabFilter, which operates on the whole string rather than breaking
17433 it into lines, and handles dos-style line-endings as well as tabs.
17435 * Added separate LaTeX reader and native reader tests; removed
17436 round-trip tests.
17438 * Text.Pandoc.Shared:
17440 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
17441 + General code cleanup (to elimante warnings when compiling with -Wall.)
17442 + Added 'wrapped' function, which helps wrap text into paragraphs,
17443 using the prettyprinting library.
17444 + Rewrote charsInBalanced and charsInBalanced'.
17445 - Documented restriction: open and close must be distinct characters.
17446 - Rearranged options for greater efficiency.
17447 - Bug fix: Changed inner call to charsInBalanced inside
17448 charsInBalanced' to charsInBalanced'.
17449 + anyLine now requires that the line end with a newline (not eof).
17450 This is a harmless assumption, since we always add newlines to the
17451 end of a block before parsing with anyLine, and it yields a 10% speed
17452 boost.
17453 + Removed unnecessary 'try' in anyLine.
17454 + Removed unneeded 'try' from romanNumeral parser.
17455 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
17456 + Removed unneeded 'try' in parseFromString.
17457 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
17458 like 'string'.)
17459 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
17460 'try' is not automatically applied to the 'end' parser. Added
17461 'try' in calls to 'enclosed' where needed. Slight speed increase.
17463 * Writers:
17465 + Replaced individual wrapping routines in RST, Man, and Markdown
17466 writers with 'wrapped' from Text.Pandoc.Shared.
17467 + Rewrote LaTeX writer to use the prettyprinting library,
17468 so we get word wrapping, etc.
17469 + Modified latex writer tests for new latex writer using prettyprinter.
17470 + Fixed bug in LaTeX writer: autolinks would not cause
17471 `\usepackage{url}` to be put in the document header. Also, changes
17472 to state in enumerated list items would be overwritten.
17473 + In Markdown writer, escape paragraphs that begin with ordered list
17474 markers, so they don't get interpreted as ordered lists.
17476 * Text.Pandoc.Reades.LaTeX:
17478 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
17479 numeral after "enum" in "setcounter" would consist entirely of
17480 "i"s. 'enumiv' is legitimate.
17481 + LaTeX command and environment names can't contain numbers.
17482 + Rearranged order of parsers in inline for slight speed improvement.
17483 + Added '`' to special characters and 'unescapedChar'.
17485 * Text.Pandoc.Readers.RST:
17487 + Removed unneeded try's in RST reader; also minor code cleanup.
17488 + Removed tabchar.
17489 + Rearranged parsers in inline (doubled speed).
17491 * Text.Pandoc.Readers.Markdown:
17493 + Skip notes parsing if running in strict mode. (This yields a nice
17494 speed improvement in strict mode.)
17495 + Simplify autolink parsing code, using Network.URI to test for
17496 URIs. Added dependency on network library to debian/control and
17497 pandoc.cabal.
17498 + More perspicuous definition of nonindentSpaces.
17499 + Removed unneeded 'try' in 'rawLine'.
17500 + Combined linebreak and whitespace into a new whitespace parser, to
17501 avoid unnecessary reparsing of space characters.
17502 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
17503 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
17504 + Use lookAhead in parsers for setext headers and definition lists
17505 to see if the next line begins appropriately; if not, don't waste
17506 any more time parsing.
17507 + Don't require blank lines after code block. (It's sufficient to
17508 end code block with a nonindented line.)
17509 + Changed definition of 'emph': italics with '_' must not
17510 be followed by an alphanumeric character. This is to help
17511 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
17512 `[LC<em>TYPE]:my</em>type`.
17513 + Improved Markdown.pl-compatibility in referenceLink: the two parts
17514 of a reference-style link may be separated by one space, but not
17515 more... [a] [link], [not] [a link].
17516 + Fixed markdown inline code parsing so it better accords with
17517 Markdown.pl: the marker for the end of the code section is a clump
17518 of the same number of `'s with which the section began, followed
17519 by a non-` character. So, for example,
17520 ` h ``` i ` -> `<code>h ``` i</code>`.
17521 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
17522 rules are slightly different.
17523 + Rewrote 'para' for greater efficiency.
17524 + Rewrote link parsers for greater efficiency.
17525 + Removed redundant 'referenceLink' in definition of inline (it's
17526 already in 'link').
17527 + Refactored escapeChar so it doesn't need 'try'.
17528 + Refactored hrule for performance in Markdown reader.
17529 + More intelligent rearranging of 'inline' so that most frequently
17530 used parsers are tried first.
17531 + Removed tabchar parser, as whitespace handles tabs anyway.
17533 * Text.Pandoc.CharacterReferences:
17535 + Refactored.
17536 + Removed unnecessary 'try's for a speed improvement.
17537 + Removed unnecessary '&' and ';' from the entity table.
17539 * Build process:
17541 + Makefile: Get VERSION from cabal file, not Main.hs.
17542 + Modified MacPorts Portfile:
17543 - Depend on haddock
17544 - Build and install libraries and library documentation in
17545 addition to pandoc executable
17546 - Added template item for md5 sum in Portfile.in.
17547 - Incorporated changes from MacPorts repository (r28278).
17548 + FreeBSD port: Don't try to generate distinfo in Makefile.
17549 It can be made using 'make makesum' in FreeBSD.
17550 + Make both freebsd and macports targets depend on tarball.
17552 * Website and documentation:
17554 + Updated INSTALL instructions.
17555 + Added pandocwiki demo to website.
17556 + Removed local references to Portfile, since pandoc is now in the
17557 MacPorts repository.
17559## pandoc 0.42 (2007-08-26)
17561 [ John MacFarlane ]
17563 * Main.hs: Use utf8 conversion on the extra files loaded with
17564 the -H, -C, -B, and -A options. This fixes problems with unicode
17565 characters in these files.
17567 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
17568 Text.Pandoc.Readers.HTML and without it we get a linking error when
17569 using the library.
17571 * Markdown reader:
17573 + Added new rule for enhanced markdown ordered lists: if the list
17574 marker is a capital letter followed by a period (including a
17575 single-letter capital roman numeral), then it must be followed by
17576 at least two spaces. The point of this is to avoid accidentally
17577 treating people's initials as list markers: a paragraph might begin,
17578 "B. Russell was an English philosopher," and this shouldn't be
17579 treated as a list. Documented change in README.
17580 + Blocks that start with "p. " and a digit are no longer treated
17581 as ordered lists (it's a page number).
17582 + Added a needed 'try' to listItem.
17583 + Removed check for a following setext header in endline.
17584 A full test is too inefficient (doubles benchmark time), and the
17585 substitute we had before is not 100% accurate.
17586 + Don't use Code elements for autolinks if --strict specified.
17588 * LaTeX writer: When a footnote ends with a Verbatim environment, the
17589 close } of the footnote cannot occur on the same line or an error occurs.
17590 Fixed this by adding a newline before the closing } of every footnote.
17592 * HTML writer:
17593 + Removed incorrect "{}" around style information in HTML tables.
17594 Column widths now work properly in HTML.
17595 + If --strict option is specified (and --toc is not), don't include
17596 identifiers in headers, for better Markdown compatibility.
17598 * Build process:
17600 + Separated $(web_dest) and website targets.
17601 + In website, index.txt is now constructed from template index.txt.in.
17602 + Added freebsd target to Markefile. This creates the freebsd Makefile
17603 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
17604 from the repository.
17605 + Added macport target to Makefile. Portfile is built from template
17606 Portfile.in.
17607 + Removed OSX package targets. (Too many difficulties involving
17608 dependencies on dynamic libraries.)
17609 + More complete INSTALL instructions for all architectures.
17611 * Website:
17612 + Added a programming demo, pandocwiki.
17614 [ Recai Oktaş ]
17616 * Do not forget to close pandoc's ITP. Closes: #391666
17618## pandoc 0.41 (2007-08-19)
17620 [ John MacFarlane ]
17622 * Fixed bugs in HTML reader:
17623 + Skip material at end *only if* `</html>` is present (previously,
17624 only part of the document would be parsed if an error was
17625 found; now a proper error message is given).
17626 + Added new constant eitherBlockOrInline with elements that may
17627 count either as block-level or as inline. Modified isInline and
17628 isBlock to take this into account.
17629 + Modified rawHtmlBlock to accept any tag (even an inline tag):
17630 this is innocuous, because rawHtmlBlock is tried only if a regular
17631 inline element can't be parsed.
17632 + Added a necessary 'try' in definition of 'para'.
17634 * Fixed bug in markdown ordered list parsing. The problem was that
17635 anyOrderedListStart did not check for a space following the
17636 ordered list marker. So in 'A.B. 2007' the parser would be
17637 expecting a list item, but would not find one, causing an error.
17638 Fixed a similar bug in the RST reader. Resolves Issue #22.
17640 * Refactored RST and Markdown readers using parseFromString.
17642 * LaTeX reader will now skip anything after \end{document}.
17644 * Fixed blockquote output in markdown writer: previously, block
17645 quotes in indented contexts would be indented only in the first
17646 line.
17648 * Added note to INSTALL about variations in versions of the xhtml
17649 library that can lead to failed tests (thanks to Leif LeBaron).
17651## pandoc 0.4 (2007-01-16)
17653 [ John MacFarlane ]
17655 * Added two new output formats: groff man pages and ConTeXt. By
17656 default, output files with extensions ".ctx" and ".context" are
17657 assumed to be ConTeXt, and output files with single-digit extensions
17658 are assumed to be man pages.
17660 * Enhanced ordered lists (documented in README, under Lists):
17661 + The OrderedList block element now stores information about
17662 list number style, list number delimiter, and starting number.
17663 + The readers parse this information when possible.
17664 + The writers use this information to style ordered lists.
17665 + The enhancement can be disabled using the --strict option.
17667 * Added support for tables (with a new Table block element). Two kinds
17668 of tables are supported: a simple table with one-line rows, and a
17669 more complex variety with multiline rows. All output formats are
17670 supported, but only markdown tables are parsed at the moment. The
17671 syntax is documented in README.
17673 * Added support for definition lists (with a new DefinitionList block
17674 element). All output and input formats are supported. The syntax is
17675 documented in README.
17677 * Added support for superscripts and subscripts (with new Superscript
17678 and Subscript inline elements). All input and output
17679 formats. The syntax is documented in README.
17681 * Added support for strikeout (with a new Strikeout inline element).
17682 All input and output formats are supported. Thanks to Bradley Kuhn,
17683 who contributed a patch. The syntax is documented in README. Resolves
17684 Issue #18.
17686 * Added a --toc|--table-of-contents option. This causes an automatically
17687 generated table of contents (or an instruction that creates one) to
17688 be inserted at the beginning of the document. Not supported in S5,
17689 DocBook, or man page writers.
17691 * Modified the -m|--asciimathml option:
17693 + If an optional URL argument is provided, a link is inserted
17694 instead of the contents of the ASCIIMathML.js script.
17695 + Nothing is inserted unless the document actually contains
17696 LaTeX math.
17698 * Removed Blank block element as unnecessary.
17700 * Removed Key and Note blocks from the Pandoc data structure. All
17701 links are now stored as explicit links, and note contents are
17702 stored with the (inline) notes.
17704 + All link Targets are now explicit (URL, title) pairs; there
17705 is no longer a 'Ref' target.
17706 + Markdown and RST parsers now need to extract data from key and
17707 note blocks and insert them into the relevant inline elements.
17708 Other parsers have been simplified, since there is no longer any need
17709 to construct separate key and note blocks.
17710 + Markdown, RST, and HTML writers need to construct lists of
17711 notes; Markdown and RST writers need to construct lists of link
17712 references (when the --reference-links option is specified); and
17713 the RST writer needs to construct a list of image substitution
17714 references. All writers have been rewritten to use the State monad
17715 when state is required.
17716 + Several functions (generateReference, keyTable,
17717 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
17718 used by them) have been removed from Text.Pandoc.Shared, since
17719 they are no longer needed. New functions and data structures
17720 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
17721 added. The functions inTags, selfClosingTag, inTagsSimple, and
17722 inTagsIndented have been moved to the DocBook writer, since that
17723 is now the only module that uses them. NoteTable is now exported
17724 in Text.Pandoc.Shared.
17725 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
17726 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
17727 + Added writerNotes and writerReferenceLinks to WriterOptions.
17729 * Added Text.Pandoc module that exports basic readers, writers,
17730 definitions, and utility functions. This should export everything
17731 needed for most uses of Pandoc libraries. The haddock documentation
17732 includes a short example program.
17734 * Text.Pandoc.ASCIIMathML is no longer an exported module.
17736 * Added Text.Pandoc.Blocks module to help in printing markdown
17737 and RST tables. This module provides functions for working with
17738 fixed-width blocks of text--e.g., placing them side by side, as
17739 in a table row.
17741 * Refactored to avoid reliance on Haskell's Text.Regex library, which
17742 (a) is slow, and (b) does not properly handle unicode. This fixed
17743 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
17745 + Replaced 'gsub' with a general list function 'substitute'
17746 that does not rely on Text.Regex.
17747 + Rewrote extractTagType in HTML reader so that it doesn't use
17748 regexs.
17749 + In Markdown reader, replaced email regex test with a custom email
17750 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
17751 with a custom function isSelfClosingTag.
17752 + Modified Docbook writer so that it doesn't rely on Text.Regex for
17753 detecting 'mailto' links.
17754 + Removed escapePreservingRegex and reamped entity-handling
17755 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
17756 avoid reliance on Text.Regex (see below on character reference
17757 handling changes).
17759 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
17761 * Changed handling of XML entities. Entities are now parsed (and unicode
17762 characters returned) in the Markdown and HTML readers, rather than being
17763 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
17764 instead of entities for characters above 128. This makes the HTML and
17765 DocBook output much more readable and more easily editable.
17767 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
17768 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
17769 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
17770 Moved both functions to Text.Pandoc.Writers.Docbook.
17771 + Added characterReference parser to Text.Pandoc.CharacterReferences.
17772 This parses a string and return a unicode character.
17773 + Rewrote decodeCharacterReferences to use the new parser instead of
17774 Text.Regex.
17775 + Added new charRef parser for Markdown and HTML, which replaces the
17776 old 'entity' parser. Added '&' as a special character in Markdown reader.
17777 + Modified HTML and Markdown readers to call decodeEntities on all raw
17778 strings (e.g. authors, dates, link titles), to ensure that no
17779 unprocessed entities are included in the native representation of
17780 the document. (In the HTML reader, most of this work is done by a
17781 change in extractAttributeName.)
17782 + In XML and Markdown output, escape unicode nonbreaking space as '&nbsp;',
17783 since a unicode non-breaking space is impossible to distinguish visually
17784 from a regular space. (Resolves Issue #3.)
17785 + Removed encodeEntitiesNumerical.
17786 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
17787 slight performance boost over the old association list.
17788 + Removed unneeded decodeEntities from 'str' parser in HTML and
17789 Markdown readers.
17791 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
17792 fromUTF8, for clarity.
17794 * Replaced old haskell98 module names replaced by hierarchical module
17795 names, e.g. List by Data.List. Removed haskell98 from dependencies
17796 in pandoc.cabal, and added mtl (needed for state monad). Substituted
17797 xhtml for html.
17799 * Refactored and cleaned up character escaping in writers, using
17800 backslashEscapes and escapeStringUsing functions.
17802 * Instead of adding `\n\n` to the end of an input string in Main.hs,
17803 this is now done in the readers. This makes the libraries behave
17804 the way you'd expect from the pandoc program. Resolves Issue #10.
17806 * URLs and email addresses in autolinks are now typeset as Code.
17808 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
17809 doesn't display the whole output unless there's a line ending.
17811 * Major code cleanup in all modules, for greater consistency, concision,
17812 and readability.
17814 * HTML reader:
17816 + Fixed several bugs (extractTagType, attribute parsing).
17817 + Remove Null blocks in lists of blocks when possible.
17818 + Allow HTML comments as raw HTML inline.
17820 * Markdown reader:
17822 + Ordered list items may no longer begin with uppercase letters, or
17823 letters greater than 'n'. (This prevents first initials and page
17824 reference, e.g. 'p. 400', from being parsed as beginning lists.)
17825 Also, numbers beginning list items may no longer end with ')',
17826 which is now allowed only after letters. Note: These changes
17827 may cause documents to be parsed differently. Users should take
17828 care in upgrading.
17829 + Changed autoLink parsing to conform better to Markdown.pl's
17830 behavior. `<google.com>` is not treated as a link, but
17831 `<http://google.com>`, `<ftp://google.com>`, and
17832 `<mailto:google@google.com>` are.
17833 + Cleaned up handling of embedded quotes in link titles. Now these are
17834 stored as a '"' character, not as '&quot;'.
17835 + Use lookAhead parser for the 'first pass' (looking for reference keys),
17836 instead of parsing normally, then using setInput to reset input. This
17837 yields a slight performance boost.
17838 + Fixed several bugs in smart quote recognition.
17839 + Fixed bug in indentSpaces (which didn't properly handle
17840 cases with mixed spaces and tabs).
17841 + Consolidated 'text', 'special', and 'inline' into 'inline'.
17842 + Fixed bug which allowed URL and title to be separated by multiple blank
17843 lines in links and reference keys. They can be on separate lines but
17844 can't have blank lines between them.
17845 + Correctly handle bracketed text inside inline footnotes and links,using
17846 new function inlinesInBalanced. Resolves Issue #14.
17847 + Fixed bug in footnotes: links in footnotes were not being
17848 processed. Solution: three-stage parse. First, get all the
17849 reference keys and add information to state. Next, get all the
17850 notes and add information to state. (Reference keys may be needed
17851 at this stage.) Finally, parse everything else.
17852 + Replaced named constants like 'emphStart' with literals.
17853 + Removed an extra occurrence of escapedChar in definition of inline.
17855 * RST reader:
17857 + Allow the URI in a RST hyperlink target to start on the line
17858 after the reference key.
17859 + Added 'try' in front of 'string', where needed, or used a different
17860 parser. This fixes a bug where ````` would not be correctly parsed as
17861 a verbatim `.
17862 + Fixed slow performance in parsing inline literals in RST reader. The
17863 problem was that ``#`` was seen by 'inline' as a potential link or image.
17864 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
17865 Resolves Issue #8.
17866 + Use lookAhead instead of getInput/setInput in RST reader. Removed
17867 unneeded getState call, since lookAhead automatically saves and
17868 restores the parser state.
17869 + Allow hyperlink target URIs to be split over multiple lines, and
17870 to start on the line after the reference. Resolves Issue #7.
17871 + Fixed handling of autolinks.
17873 * LaTeX reader:
17875 + Replaced `choice [(try (string ...), ...]` idiom with `oneOfStrings`,
17876 for clarity.
17877 + Added clauses for tilde and caret. Tilde is `\ensuremath{\sim}`, and
17878 caret is `\^{}`, not `\^` as before.
17879 + Added parsing for `\url`.
17880 + Parse `\texttt{}` as code, provided there's nothing fancy inside.
17882 * HTML writer:
17884 + Modified HTML writer to use the Text.XHtml library. This results
17885 in cleaner, faster code, and it makes it easier to use Pandoc in
17886 other projects, like wikis, which use Text.XHtml. Two functions are
17887 now provided, writeHtml and writeHtmlString: the former outputs an
17888 Html structure, the latter a rendered string. The S5 writer is also
17889 changed, in parallel ways (writeS5, writeS5String).
17890 + The Html header is now written programmatically, so it has been
17891 removed from the 'headers' directory. The S5 header is still
17892 needed, but the doctype and some of the meta declarations have
17893 been removed, since they are written programmatically. This change
17894 introduces a new dependency on the xhtml package.
17895 + Fixed two bugs in email obfuscation involving improper escaping
17896 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
17897 Issue #9.
17898 + Fixed another bug in email obfuscation: If the text to be obfuscated
17899 contains an entity, this needs to be decoded before obfuscation.
17900 Thanks to thsutton for the patch. Resolves Issue #15.
17901 + Changed the way the backlink is displayed in HTML footnotes.
17902 Instead of appearing on a line by itself, it now generally
17903 appears on the last line of the note. (Exception: when the
17904 note does not end with a Plain or Para block.) This saves space
17905 and looks better.
17906 + Added automatic unique identifiers to headers:
17907 - The identifier is derived from the header via a scheme
17908 documented in README.
17909 - WriterState now includes a list of header identifiers and a table
17910 of contents in addition to notes.
17911 - The function uniqueIdentifiers creates a list of unique identifiers
17912 from a list of inline lists (e.g. headers).
17913 - This list is part of WriterState and gets consumed by blockToHtml
17914 each time a header is encountered.
17915 + Include CSS for .strikethrough class in header only if strikethrough
17916 text appears in the document.
17917 + If the 'strict' option is specified, elements that do not appear in
17918 standard markdown (like definition lists) are passed through as
17919 raw HTML.
17920 + Simplified treatment of autolinks, using pattern matching instead of
17921 conditionals.
17923 * Markdown writer:
17925 + Links in markdown output are now printed as inline links by default,
17926 rather than reference links. A --reference-links option has been added
17927 that forces links to be printed as reference links. Resolves Issue #4.
17928 + Use autolinks when possible. Instead of `[site.com](site.com)`,
17929 use `<site.com>`.
17931 * LaTeX writer:
17933 + Rewrote to use the State monad. The preamble now includes only those
17934 packages that are actually required, given the document's content.
17935 Thus, for example, if strikeout is not used, ulem is not required.
17936 Modified LaTeXHeader accordingly.
17937 + Modified LaTeX writer to insert `\,` between consecutive quotes.
17938 + Removed unused function tableRowColumnWidths.
17939 + Simplified code for escaping special characters.
17940 + Leave extra blank line after `\maketitle`.
17941 + Include empty `\author{}` when no author specified to avoid LaTeX
17942 errors.
17943 + Include fancyvrb code in header only if needed -- that is, only
17944 if there is actually code in a footnote.
17945 + Use `\url{}` for autolinks.
17946 + Include [mathletters] option in ucs package, so that basic unicode
17947 Greek letters will work correctly.
17949 * RST writer: Force blank line before lists, so that sublists will
17950 be handled correctly.
17952 * Docbook writer: Fixed a bug: email links with text, like
17953 [foo](me@bar.baz), were being incorrectly treated as autolinks.
17955 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
17956 Text.Pandoc.Shared.
17958 * Text.Pandoc.Shared:
17960 + Added defaultWriterOptions.
17961 + Added writerTableOfContents to WriterOptions.
17962 + Added writerIgnoreNotes option to WriterOptions. This is needed
17963 for processing header blocks for a table of contents, since notes on
17964 headers should not appear in the TOC.
17965 + Added prettyprinting for native Table format.
17966 + Removed some unneeded imports.
17967 + Moved escape and nullBlock parsers from
17968 Text.ParserCombinators.Pandoc, since the latter is for
17969 general-purpose parsers that don't depend on Text.Pandoc.Definition.
17970 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
17971 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
17972 writer, because HTML writer now uses these in constructing a table
17973 of contents.
17974 + Added clauses for new inline elements (Strikeout, Superscript,
17975 Subscript) to refsMatch.
17976 + Removed backslashEscape; added new functions escapeStringUsing and
17977 backslashEscapes.
17978 + Moved failIfStrict from markdown reader, since it is now used also
17979 by the HTML reader.
17980 + Added a 'try' to the definition of indentSpaces.
17981 + In definition of 'reference', added check to make sure it's not a note
17982 reference.
17983 + Added functions: camelCaseToHyphenated, toRomanNumeral,
17984 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
17985 charsInBalanced', withHorizDisplacement, romanNumeral
17986 + Fixed a bug in the anyLine parser. Previously it would parse an empty
17987 string "", but it should fail on an empty string, or we get an error
17988 when it is used inside "many" combinators.
17989 + Removed followedBy' parser, replacing it with the lookAhead parser from
17990 Parsec.
17991 + Added some needed 'try's before multicharacter parsers, especially in
17992 'option' contexts.
17993 + Removed the 'try' from the 'end' parser in 'enclosed', so that
17994 'enclosed' behaves like 'option', 'manyTill', etc.
17995 + Added lineClump parser, which parses a raw line block up to and
17996 including any following blank lines.
17997 + Renamed parseFromStr to parseFromString.
17998 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
17999 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
18000 in calling code.
18001 + Removed unneeded 'try' in blanklines.
18002 + Removed endsWith function and rewrote calling functions to use
18003 isSuffixOf instead.
18004 + Added >>~ combinator.
18005 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
18006 Space.
18008 * Refactored runtests.pl; added separate tests for tables.
18010 * Shell scripts:
18012 + Added -asxhtml flag to tidy in html2markdown. This will
18013 perhaps help the parser, which expects closing tags.
18014 + Modified markdown2pdf to run pdflatex a second time if --toc or
18015 --table-of-contents was specified; otherwise the table of
18016 contents won't appear.
18017 + Modified markdown2pdf to print a helpful message if the 'ulem'
18018 LaTeX package is required and not found.
18020 * Changes to build process:
18022 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
18023 is now required.
18024 + Removed cabalize and Pandoc.cabal.in. The repository now contains
18025 pandoc.cabal itself.
18026 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
18027 likes the cabal file to have the same name as the tarball.
18028 + Expanded and revised the package description in pandoc.cabal.
18029 Revised the package synopsis.
18030 + The tarball built by 'make tarball' now contains files built from
18031 templates (including man pages and shell scripts), so pandoc can
18032 be built directly using Cabal tools, without preprocessing.
18033 + Executable binaries are now stripped before installing.
18034 + Man pages are now generated from markdown sources, using pandoc's
18035 man page writer.
18036 + Use HTML version of README (instead of RTF) in Mac OS X installer.
18037 + Instead of testing for the existence of a pandoc symlink in build-exec,
18038 use ln -f.
18040 * Documentation:
18042 + Updated README and man pages with information on new features.
18043 + Updated INSTALL instructions with some useful clarifications and
18044 links.
18045 + Updated web content.
18047 * Added FreeBSD port.
18049 [ Recai Oktaş ]
18051 * debian/control:
18053 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
18054 libghc6-xhtml-dev. Removed libghc6-html-dev.
18055 + Suggest texlive-latex-recommended | tetex-extra instead of
18056 tetex-bin. This brings in fancyvrb and unicode support.
18059## pandoc 0.3 (2007-01-05)
18061 [ John MacFarlane ]
18063 * Changes in pandoc options:
18065 + Allow options to follow or precede arguments.
18066 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
18067 + Added '--strict' option.
18068 + Added '-o/--output' option.
18069 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
18070 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
18071 error conditions. This is helpful for writing wrappers.
18072 + Added copyright message to '-v' output, modeled after FSF messages.
18073 + Reformatted usage message so that it doesn't wrap illegibly.
18074 + Removed extra blanks after '-h' and '-D' output.
18076 * Added docbook writer.
18078 * Added implicit setting of default input and output format based
18079 on input and output filename extensions. These defaults are
18080 overridden if explicit input and output formats are specified using
18081 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
18082 and README.
18084 * Allow ordered list items to begin with (single) letters, as well
18085 as numbers. The list item marker may now be terminated either by
18086 '.' or by ')'. This extension to standard markdown is documented
18087 in README.
18089 * Revised footnote syntax. (See README for full details.) The
18090 '[^1]' format now standard in markdown extensions is supported,
18091 as are inline footnotes with this syntax: `^[My note.]`.
18092 The earlier footnote syntax `^(1)` is no longer supported.
18094 * Improved HTML representation of footnotes. All footnotes
18095 are now auto-numbered and appear in an ordered list at the
18096 end of the HTML document. Since the default appearance is now
18097 acceptable, the old footnote styles have been removed from the
18098 HTML header.
18100 * Bug fixes:
18102 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
18103 These readers ran 'runParser' on processed chunks of text to handle
18104 embedded block lists in lists and quotation blocks. But then
18105 any changes made to the parser state in these chunks was lost,
18106 as the state is local to the parser. So, for example, footnotes
18107 didn't work in quotes or list items. The fix: instead of calling
18108 runParser on some raw text, use setInput to make it the input, then
18109 parse it, then use setInput to restore the input to what it was
18110 before. This is shorter and more elegant, and it fixes the problem.
18111 + Fixed bug in notFollowedBy' combinator (adding 'try' before
18112 'parser'). Adjusted code that uses this combinator accordingly.
18113 + Fixed bug in RTF writer that caused improper indentation on
18114 footnotes occurring in indented blocks like lists.
18115 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
18116 and date are parsed correctly. Everything else in the preamble
18117 is skipped.
18118 + Modified escapedChar in LaTeX reader to allow a `\` at the end of a
18119 line to count as escaped whitespace.
18120 + Modified LaTeX reader to produce inline links rather than reference
18121 links. Otherwise, links in footnotes aren't handled properly.
18122 + Fixed handling of titles in links in Markdown reader, so that
18123 embedded quotation marks are now handled properly.
18124 + Fixed Markdown reader's handling of embedded brackets in links.
18125 + Fixed Markdown reader so that it only parses bracketed material
18126 as a reference link if there is actually a corresponding key.
18127 + Revised inline code parsing in Markdown reader to conform to
18128 markdown standard. Now any number of `s can begin inline code,
18129 which will end with the same number of `s. For example, to
18130 have two backticks as code, write ``` `` ```. Modified Markdown
18131 writer accordingly.
18132 + Fixed bug in text-wrapping routine in Markdown and RST writers.
18133 Now LineBreaks no longer cause wrapping problems.
18134 + Supported hexadecimal numerical entity references as well as
18135 decimal ones.
18136 + Fixed bug in Markdown reader's handling of underscores and other
18137 inline formatting markers inside reference labels: for example,
18138 in '[A_B]: /url/a_b', the material between underscores was being
18139 parsed as emphasized inlines.
18140 + Changed Markdown reader's handling of backslash escapes so that
18141 only non-alphanumeric characters can be escaped. Strict mode
18142 follows Markdown.pl in only allowing a select group of punctuation
18143 characters to be escaped.
18144 + Modified HTML reader to skip a newline following a `<br>` tag.
18145 Otherwise the newline will be treated as a space at the beginning
18146 of the next line.
18148 * Made handling of code blocks more consistent. Previously, some
18149 readers allowed trailing newlines, while others stripped them.
18150 Now, all readers strip trailing newlines in code blocks. Writers
18151 insert a newline at the end of code blocks as needed.
18153 * Modified readers to make spacing at the end of output more consistent.
18155 * Minor improvements to LaTeX reader:
18157 + `\thanks` now treated like a footnote.
18158 + Simplified parsing of LaTeX command arguments and options.
18159 commandArgs now returns a list of arguments OR options (in
18160 whatever order they appear). The brackets are included, and
18161 a new stripFirstAndLast function is provided to strip them off
18162 when needed. This fixes a problem in dealing with \newcommand
18163 and \newenvironment.
18165 * Revised RTF writer:
18167 + Default font is now Helvetica.
18168 + An `\f0` is added to each `\pard`, so that font resizing works
18169 correctly.
18171 * Moved handling of "smart typography" from the writers to the Markdown
18172 and LaTeX readers. This allows great simplification of the writers
18173 and more accurate smart quotes, dashes, and ellipses. DocBook can
18174 now use `<quote>`. The '--smart' option now toggles an option in
18175 the parser state rather than a writer option. Several new kinds
18176 of inline elements have been added: Quoted, Ellipses, Apostrophe,
18177 EmDash, EnDash.
18179 * Changes in HTML writer:
18181 + Include title block in header even when title is null.
18182 + Made javascript obfuscation of emails even more obfuscatory,
18183 by combining it with entity obfuscation.
18185 * Changed default ASCIIMathML text color to black.
18187 * Test suite:
18189 + Added --strip-trailing-cr option to diff in runtests.pl, for
18190 compatibility with Windows.
18191 + Added regression tests with footnotes in quote blocks and lists.
18193 * Makefile changes:
18195 + osx-pkg target creates a Mac OS X package (directory). New osx
18196 directory contains files needed for construction of the package.
18197 + osx-dmg target creates a compressed disk image containing the package.
18198 + win-pkg target creates Windows binary package.
18199 + tarball target creates distribution source tarball.
18200 + website target generates pandoc's website automatically, including
18201 demos. New 'web' directory contains files needed for construction
18202 of the website (which will be created as the 'pandoc' subdirectory
18203 of 'web').
18204 + Makefile checks to see if we're running Windows/Cygwin; if so,
18205 a '.exe' extension is added to each executable in EXECS.
18207 * Removed all wrappers except markdown2pdf and html2markdown.
18209 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
18210 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
18211 option and disables other options.
18213 * Added code to html2markdown that tries to determine the character
18214 encoding of an HTML file, by parsing the "Content-type" meta tag.
18216 + If the encoding can't be determined, then if the content is local,
18217 the local encoding is used; if it comes from a URL, UTF-8 is used
18218 by default.
18219 + If input is from STDIN, don't try to determine character encoding.
18220 + Encoding can be specified explicitly using '-e' option.
18222 * Improved warning messages in wrappers:
18224 + Print warning if iconv not available
18225 + More user-friendly error messages in markdown2pdf, when
18226 pdflatex fails.
18228 * Code cleanup:
18230 + Renamed 'Text/Pandoc/HtmlEntities' module to
18231 'Text/Pandoc/Entities'. Also changed function names so as
18232 not to be HTML-specific.
18233 + Refactored SGML string escaping functions from HTML and Docbook
18234 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
18235 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
18236 used anywhere.
18237 + Removed splitBySpace and replaced it with a general, polymorphic
18238 splitBy function.
18239 + Refactored LaTeX reader for clarity (added isArg function).
18240 + Converted some CR's to LF's in src/ui/default/print.css.
18241 + Added license text to top of source files.
18242 + Added module data for haddock to source files.
18243 + Reformatted code for consistency.
18245 * Rewrote documentation and man pages. Split README into INSTALL
18246 and README.
18248 * Split LICENSE into COPYING and COPYRIGHT.
18250 * Removed TODO, since we now maintain ToDo on the wiki.
18252 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
18253 duplication.
18255 [ Recai Oktaş ]
18257 * Revamped build process to conform to debian standards and created
18258 a proper debian package. Closes: #391666.
18260 * Modified build process to support GHC 6.6.
18262 + The package can still be compiled using GHC 6.4.2, though because
18263 of dependencies the "make deb" target works only with GHC 6.6+.
18264 + The script 'cabalize' is used to create an appropriate
18265 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
18266 Cabal versions.
18268 * Refactored template processing (fillTemplates.pl).
18270 * Modified wrapper scripts to make them more robust and portable.
18271 To avoid code duplication and ensure consistency, wrappers are
18272 generated via a templating system from templates in src/wrappers.
18274 + Wrappers now accept multiple filenames, when appropriate.
18275 + Spaces and tabs allowed in filenames.
18276 + getopts shell builtin is used for portable option parsing.
18277 + Improved html2markdown's web grabber code, making it more robust,
18278 configurable and verbose. Added '-e', '-g' options.
18281## pandoc 0.2 (2006-08-14)
18283 * Fixed unicode/utf-8 translation
18285## pandoc 0.1 (2006-08-14)
18287 * Initial creation of debian package