git.iko.soy/typeable/pandoc
on 2.11.1 help sign in
typeable/pandoc/changelog.md
18448 lines 792 kB history raw
1# Revision history for pandoc
3## pandoc 2.11.1 (2020-11-03)
5 * DocBook Reader: fix duplicate bibliography bug (#6773, Nils Carlson).
7 * HTML reader:
9 + Parse contents of iframes (#6770).
10 + Parse inline svg as image unless `raw_html` is set in the reader (in
11 which case the svg is passed through as raw HTML) (#6770).
13 * LaTeX reader:
15 + Fix bug parsing macro arguments (#6796). If `\cL` is
16 defined as `\mathcal{L}`, and `\til` as `\tilde{#1}`, then
17 `\til\cL` should expand to `\tilde{\mathcal{L}}`, but
18 pandoc was expanding it to `\tilde\mathcal{L}`. This is
19 fixed by parsing the arguments in "verbatim mode" when the
20 macro expands arguments at the point of use.
21 + Properly support optional (cite) argument for
22 `\blockquote` from `csquotes` (#6802).
24 * LaTeX writer: Improved calculation of table column widths.
25 We now have LaTeX do the calculation, using `\tabcolsep`.
26 So we should now have accurate relative column widths no
27 matter what the text width. The default template has been modified to load
28 the calc package if tables are used.
30 * HTML writer: Fix duplicate "class" attribute for table
31 rows (Andy Morris).
33 * Text.Pandoc.Filter: allow shorter YAML representation of Citeproc
34 (Albert Krewinkel). The map-based YAML representation of filters expects
35 `type` and `path` fields. The path field had to be present for all filter
36 types, but is not used for citeproc filters. The field can now be omitted
37 when type is "citeproc", as described in the MANUAL.
39 * Text.Pandoc.Error: Add `PandocBibliographyError` constructor
40 for `PandocError` [API change]. This ensures that bibliography parsing
41 errors generate messages that include the bibliography file name --
42 otherwise it can be quite mysterious where it is coming from.
44 * Citeproc: properly handle `csl` field with `data:` URI (#6783).
45 This is used with the JATS writer, so this fixes a regression
46 in pandoc 2.11 with JATS output and citeproc.
48 * Allow `citation-abbreviations` in defaults file.
50 * JATS templates: ensure `jats_publishing` output is valid
51 (Albert Krewinkel).
53 * LaTeX template: Fix `CSLRightInline`, so that it does not
54 run over the right margin.
56 * HTML template: default CSS tweaks (Mauro Bieg and John
57 MacFarlane).
59 - Fix margin before codeblock
60 - Add `monobackgroundcolor` variable, making the background color
61 and padding of code optional.
62 - Ensure that backgrounds from highlighting styles take precedence over
63 monobackgroundcolor
64 - Remove list markers from TOC
65 - Add margin-bottom where needed
66 - Remove italics from blockquote styling
67 - Change borders and spacing in tables to be more consistent with other
68 output formats
69 - Style h5, h6
70 - Set font-size for print media to 12pt.
71 - Reduce interline space.
72 - Reduce interparagraph space.
73 - Reduce line width.
74 - Remove the special `line-height: 1` for table cells.
75 - Remove the special line-height for pre.
76 - Ensure that there is a bit more space before a heading
77 than after.
78 - Slightly reduced space after title header.
79 - Add CSS example to MANUAL
81 * man template: Change comment that triggers `tbl` from
82 `.\"t` to `'\" t`, as specified in groff_man(7) (#6803).
84 * Use latest commonmark, commonmark-extensions.
85 This fixes a bug with nested blocks in footnotes with the
86 `footnote` extension to `commonmark`. See jgm/commonmark-hs#63.
88 * Citeproc: use comma for in-text citations inside footnotes.
89 When an author-in-text citation like `@foo` occurs in a footnote,
90 we now render it with: `AUTHOR NAME + COMMA + SPACE + REST`.
91 Previously we rendered: `AUTHOR NAME + SPACE + "(" + REST + ")"`.
92 This gives better results. Note that normal citations are still
93 rendered in parentheses.
95 * Use latest citeproc:
97 + citeproc no longer capitalizes notes, so we do it
98 in pandoc when appropriate.
99 + Closes #6783.
101 * Clarify manual on `--track-changes` (#6801).
103 * Add `doc/jats.md` to document pandoc's handling of JATS
104 (#6794, Albert Krewinkel).
106 * Fix code example in lua-filters.md (#6795).
108## pandoc 2.11.0.4 (2020-10-21)
110 * Commonmark writer: fix regression with fenced divs (#6768).
111 Starting with 2.10.1, fenced divs no longer render with
112 HTML div tags in commonmark output. This is a regression
113 due to our transition from cmark-gfm. This commit fixes it.
115 * Use released version of citeproc. (This fixes a mis-step
116 in the 2.11.0.3 release, which is now deprecated.)
118 * Use latest sylighting, with support for `groovy`.
120 * Document that --html-q-tags requires the smart extension on the reader
121 (#6766).
123## pandoc 2.11.0.3 (2020-10-20)
125 * Use latest citeproc (closes #6765). This fixes a problem with
126 author-in-text citations for references including both an author
127 and an editor. Previously, both were included in the text, but only
128 the author should be.
130 * With `--citeproc`, ensure that the final period is removed when
131 citations that occur in notes in note-based styles get put in
132 parentheses. See jgm/citeproc#20.
134 * Normalize rewritten image paths with `--extract-media` (#6761).
135 This change will avoid mixed paths like this one when
136 `--extract-media` is used with a Word file:
137 `![](C:\Git\TIJ4\Markdown/media/image30.wmf)`. Instead we'll get
138 `![](C:\Git\TIJ4\Markdown`media`image30.wmf)`.
140 * Modify `--version` output. Use space more efficiently and report the
141 citeproc and ipynb versions, along with skylighting, texmath, and
142 pandoc-types. Drop the word "default" before "user data directory."
144 * DocBook reader: bibliomisc and anchor support (#6754, Nils Carlson).
145 Also ensure that bibliodiv without a title no longer results in
146 an empty Header.
148 * ConTeXt template: adds `\setupinterlinespace` to fonts larger
149 than normal (#6763, Denis Maier).
151 * LaTeX template: Do not load amssymb if not needed (#6469, Angelo Peronio).
152 See <https://tex.stackexchange.com/a/549938>.
154 * Relax upper bound on hslua, allow hslua-1.3.* (Albert Krewinkel).
156 * MANUAL:
158 + Improve explanation of "indent" variable (#6767, Cyrus Yip).
159 + Remove org from list of input formats supporting raw_tex (#6753,
160 Nick Fleisher).
163## pandoc 2.11.0.2 (2020-10-15)
165 * Fix handling of `xdata` in bibtex/biblatex bibliographies (#6752).
167 * Fix some small typos in the API documentation (#6751, Michael Hoffmann).
169 * Require citeproc 0.1.0.2. This fixes a regression from pandoc-citeproc
170 involving spacing between components of a reference in certain styles
171 (e.g. `cell.csl`).
173 * Fix typos in comments, doc strings, error messages, and tests
174 (Albert Krewinkel, #6738).
176## pandoc 2.11.0.1 (2020-10-13)
178 * LaTeX reader: support more acronym commands (#6746):
179 `\acl`, `\aclp`, and capitalized versions of already
180 supported commands.
182 * Commonmark reader: add `pipe_table` extension *after* defaults (#6739).
183 Otherwise we get bad results for non-table, non-paragraph
184 lines containing pipe characters.
186 * Markdown writer: Fix autolinks rendering for gfm (#6740).
187 Previously, autolinks rendered as raw HTML, due to the
188 `class="uri"` added by pandoc's markdown reader.
190 * LaTeX writer:
192 + Escape option values in lstlistings environment (#6742).
193 + Fix handling of `lang` `pt-BR` (#2953). For polyglossia we now
194 use `\setmainlanguage[variant=brazilian]{portuguese}` and for babel
195 `\usepackage[shorthands=off,main=brazilian]{babel}`.
197 * Depend on latest citeproc (0.1.0.1).
199 + This fixes the citation number issue with ieee.csl and other
200 styles that do not explicitly sort bibliographies (#6741). (Pandoc
201 was numbering them by their order in the bibliography file,
202 rather than the order cited, as required by the CSL spec.)
203 + Fixes groupin/collapsing with citation items with prefixes.
205 * default.latex: fix `CSLReference` macro definition.
207 * Fix MANUAL.txt CSL JSON conversion examples.
209 * Fix spelling errors in changelog, MANUAL.txt, `doc/org.md` (#6738).
212## pandoc 2.11 (2020-10-11)
214 * Add `--citeproc` (`-C`) option to trigger built-in citation processing.
215 It is no longer necessary to use the external `pandoc-citeproc`
216 filter. `--citeproc` behaves like a filter and can be positioned
217 relative to other filters as they appear on the command line.
219 The new built-in citation processing uses the citeproc library,
220 a reimplementation of CSL citation processing that fixes many
221 of the shortcomings of pandoc-citeproc. In general, citation
222 processing should work much the same as it did with pandoc-citeproc,
223 but with greater fidelity to CSL styles and better performance.
224 (The tests from the pandoc-citeproc package have been carried
225 over to pandoc.) The following differences should be noted:
227 - At this point, only some of the writers (HTML, ms, LaTeX) properly
228 interpret CSL display styles. You should get decent output in
229 all formats (at least as good as with pandoc-citeproc), but
230 indentation and block-alignment may not be right.
232 - pandoc-citeproc searches the `~/.csl` directory for `.csl`
233 styles. Pandoc instead searches the `csl` subdirectory of
234 the pandoc user data directory (e.g., `~/.pandoc/csl` or
235 `~/.local/share/pandoc/csl`). Users who already keep
236 CSL styles in `~/.csl` may find it convenient to add a
237 symlink.
239 - Some of the bibliography formats supported by pandoc-citeproc (via
240 hs-bibutils) are no longer supported: Copac, EndNote,
241 ISI, MEDLINE, MODS, and RIS. If you use one of these formats,
242 you may use the `bibutils` utility to convert to BibLaTeX.
243 We now support only BibTeX, BibLaTeX, CSL JSON,
244 and pandoc's YAML/Markdown analogue of CSL JSON.
246 - pandoc-citeproc would always retrieve the independent parent
247 of a dependent style by doing an HTTP request. pandoc will
248 now first seek the independent parent locally (in the resource
249 path or in the `csl` subdirectory of the pandoc user data
250 directory) before resorting to HTTP. In addition, you may
251 omit the `.csl` extension, e.g. `--csl zoology`.
253 - Using the `--bibliography` option (or including
254 `bibliography` in YAML metadata) no longer triggers
255 citation processing implicitly: one must always use the
256 `--citeproc` option if citation processing is wanted.
258 * Add `csljson` as and input and output format. This allows pandoc
259 to convert between `csljson` and other bibliography formats
260 (e.g. `-f csljson -t markdown -s` or `-f bibtex -t csljson`),
261 and to generate formatted versions of CSL JSON bibliographies
262 (e.g., `pandoc -f csljson --citeproc pl.json -o pl.pdf`).
264 * Added `bibtex`, `biblatex` as input formats. This allows pandoc
265 to convert between BibLaTeX and BibTeX and other bibliography formats,
266 and to generated formatted versions of BibTeX/BibLaTeX bibliographies
267 (e.g., `pandoc -f biblatex --citeproc pl.bib -o pl.pdf`).
269 * Raise informative errors when YAML metadata parsing fails (#6730).
270 Previously the command would succeed, returning empty metadata,
271 with no errors or warnings.
273 * Sort languages in `--list-highlight-languages` output (#6718,
274 Albert Krewinkel). Languages were previously sorted by their
275 long name, which leads to unexpected results).
277 * Add CSS to default HTML template (#6601, Mauro Bieg). This
278 greatly improves the default typography in pandoc's HTML
279 output. The CSS is sensitive to a number of variables
280 (e.g. `mainfont`, `fontsize`, `linestretch`): see the manual for
281 details. To restore the earlier, more spartan output, you can
282 disable this with `-M document-css=false`.
284 * Support `--toc-depth` option for ODT writer (#6696, niszet).
286 * Fix issues with Windows UNC paths with some options (#5127).
288 * Remove `fenced_code_blocks` and `backtick_code_blocks` from allowed
289 `commonmark` and `gfm` extensions. These shouldn't really be counted
290 as extensions, because they can't be disabled in commonmark.
291 Adjust markdown writer to check for the commonmark variant in addition
292 to extensions.
294 * Add these extensions to `gfm` and `commonmark`:
295 `fenced_code_blocks`, `backtick_code_blocks`, `fenced_code_attributes`.
296 These can't really be disabled in the reader, but they need to be enabled
297 in the writer or we just get indented code.
299 * Make sure proper set of extensions is recognized for `commonmark_x`.
301 * Allow `gfm_auto_identifiers`, `ascii_identifiers` extensions for `docx`.
303 * Markdown reader:
305 + Add `Maybe FilePath` parameter to `yamlToMeta` [API change].
306 + Export `yamlToRefs` [API change], a version of `yamlToMeta`
307 specialized to references.
308 + Set `citationNoteNum` accurately in citations.
309 + Revise abbreviation support. Don't insert a nonbreaking space after a
310 potential abbreviation if it comes right before a note or citation.
311 This causes problems for citeproc's moving of note citations.
313 * LaTeX reader:
315 + Support missing siunitx commands (#6658).
316 + Support `squared`, `cubed`, `tothe` in siunitx (#6657).
317 + Improved uncertainty handling in slunitx.
318 + Factored out siunitx stuff into separate unexposed module.
319 + Fix improper empty cell filtering (#6689, Christian Despres).
320 + Fix parsing of "show name" in `\newtheorem` (#6734).
321 Previously we were just treating it as a string and
322 ignoring accents and formatting.
323 + Prevent wrong nesting of `\multirow` and `\multicolumn` table
324 cells (#6603, Laurent P. René de Cotret).
325 + Table cell parser not consuming spaces correctly (#6596,
326 Laurent P. René de Cotret).
327 + Change `SIRange` to `SIrange` (#6617, Emerson Harkin).
328 + Allow blank lines inside `\author` (#6324).
330 * DocBook reader:
332 + Don't squelch space at end of emphasis and other inline elements;
333 instead, move it outside the element (#6719).
334 + Implement table cell alignment (#6698, Nils Carlson).
335 + Implement column span support for tables (#6492, Nils Carlson).
336 + Update list of block level tags (#6610).
339 * JATS reader:
341 + Don't squelch space at end of emphasis and other inline elements;
342 instead, move it outside the element (#6719).
344 * RST reader:
346 + Apply `.. class::` directly to following Header rather than creating
347 a surrounding Div (#6699).
349 * Docx reader:
351 + Allow empty dates in comments and tracked changes (#6726, Diego
352 Balseiro).
354 * Markdown writer:
356 + Be less aggressive about using quotes for YAML values,
357 allowing e.g. a quotation mark or bracket as long as it's not at the
358 beginning of the line.
359 + Use double quotes for YAML metadata (#6727).
360 + Sort YAML metadata keys in Markdown output case-insensitive.
363 * Asciidoc writer:
365 + Support asciidoctor's block figures (#6538, argent0).
367 * LaTeX writer:
369 + Fix spacing issue with list in definition list.
370 When a list occurs at the beginning of a definition list definition,
371 it can start on the same line as the label, which looks bad.
372 Fix that by starting such lists with an `\item[]`.
374 * HTML writer:
376 + Support intermediate table headers (#5314, Albert Krewinkel).
377 + Support attributes on all table elements (Albert Krewinkel).
378 + Render table footers if present (#6314, Albert Krewinkel).
379 + Fix addition of `doc-biblioentry` role.
380 + Support colspans and rowspans in HTML tables (#6312, Albert Krewinkel).
382 * ICML writer:
384 + Support internal document links (#5541, Leonard Rosenthol).
385 + Changed default link state to invisible (#6676, Leonard Rosenthol).
387 * Docx writer:
389 + Better handle list items whose contents are lists (#5948, Michael
390 Hoffmann). If the first element of a bulleted or ordered list is
391 another list, then that first item would previously disappear if the
392 target format is docx.
393 + Separate adjacent tables (#4315). Word combines adjacent tables,
394 so to prevent this we insert an empty paragraph between two
395 adjacent tables.
397 * Org writer:
399 + Don't force blank line after headings (#6554).
401 * OpenDocument writer:
403 + Implement table cell alignment (#6700 Nils Carson, Mauro Bieg).
404 + New table cell support with row and column spans (#6682, Nils Carson).
405 + Syntax highlighting for inline code (#6711, niszet).
407 * Add Text.Pandoc.Citeproc module, exporting `processCitations`
408 [API change]. This depends on several other, unexported
409 modules under Text.Pandoc.Citeproc.
411 * Add module Text.Pandoc.Writers.CslJson, exporting `writeCslJson`.
412 [API change]
414 * Add module Text.Pandoc.Readers.CslJson, exporting `readCslJson`.
415 [API change]
417 * Add module Text.Pandoc.Readers.BibTeX, exporting `readBibTeX` and
418 `readBibLaTeX`. [API change]
420 * Text.Pandoc.Filter: Add `CiteprocFilter` constructor to Filter.
421 [API change] This runs the processCitations transformation.
422 We need to treat it like a filter so it can be placed
423 in the sequence of filter runs (after some, before others).
424 In FromYAML, this is parsed from `citeproc` or `{type: citeproc}`,
425 so this special filter may be specified either way in a defaults file
426 (or by `citeproc: true`, though this gives no control of positioning
427 relative to other filters).
429 * Add new exported module Text.Pandoc.Writers.AnnotatedTable [API change]
430 (#6655, Christian Despres). This module (which should generally
431 be imported qualified to avoid name conflicts) provides a
432 `Table` type that mirrors the structure of a pandoc `Table`,
433 but with added inferred information so that the writers do not have to
434 lay out tables themselves. The `toTable` and `fromTable` functions convert
435 between an annotated `Table` and a regular pandoc `Table`. In addition to
436 producing a `Table` with coherent and well-formed annotations, the
437 `toTable` function also normalizes its input table like the table
438 builder does. Tests ensure that `toTable` normalizes tables exactly
439 like the table builder, and that its annotations are coherent.
441 * Text.Pandoc.Logging:
443 + Remove unused `CouldNotParseYamlMetadata` constructor for `LogMessage`
444 [API change].
445 + Add `CiteprocWarning` constructor to `LogMessage` [API change].
447 * Text.Pandoc.Readers.Metadata: export `yamlBsToRefs` [API change].
448 These allow specifying an id filter so we parse only references
449 that are used in the document.
451 * Text.Pandoc.Parsing:
453 + Export ParseError [API change].
454 + Add `stateInNote` and `stateNoteNumber` to `ParserState`
455 [API change]. These are used to populate note numbers for citation
456 processing.
458 * Fix apparent typos in sample.lua (#6729, William Lupton).
459 Also make the writer less aggressive in escaping quotes.
461 * Text.Pandoc.Options:
463 + `defaultMathJaxURL`: use `tex-chtml-full` instead of `tex-mml-chtml`
464 (#6599, Kolen Cheung). This drops the MathML support (which we
465 don't need for HTML math rendering) and includes the full JavaScript,
466 which makes it possible to use `--self-contained` (though there may
467 still be issues if the required math fonts aren't available). This
468 change should also reduce latency in pages with lots of formulas.
469 + Add `/tex-chtml-full.js` to `defaultMathJaxURL` (#6593) Previously we
470 added this in processing command line options, but not in processing
471 defaults files, which was inconsistent.
473 * epub.css: Fix cover page selectors and add note explaining their use
474 (#6649, a-vrma).
476 * Add data files needed for Text.Pandoc.Citeproc: these include
477 `default.csl` in the data directory and a `citeproc` directory that
478 is only used at compile-time for biblatex localizations. Note that we've
479 added `file-embed` as a mandatory rather than a conditional
480 dependency, because of the biblatex localization files.
482 * Lua filters:
484 + Add SimpleTable for backwards compatibility (#6575, Albert Krewinkel).
485 A new type `SimpleTable` is made available to Lua filters. It is
486 similar to the `Table` type in pandoc versions before 2.10;
487 conversion functions from and to the new Table type are provided.
488 Old filters using tables now require minimal changes and can use, e.g.,
490 if PANDOC_VERSION > {2,10,1} then
491 pandoc.Table = pandoc.SimpleTable
492 end
494 and
496 function Table (tbl)
497 tbl = pandoc.utils.to_simple_table(tbl)
498 …
499 return pandoc.utils.from_simple_table(tbl)
500 end
502 to work with the current pandoc version.
504 + Make `attr` argument optional in `Table` constructor (Albert Krewinkel).
505 This changes the Lua API. It is highly unlikely for this change to affect
506 existing filters, since the documentation for the new Table constructor
507 (and type) was incomplete and partly wrong before. The Lua API is now
508 more consistent, as all constructors for elements with attributes now
509 take attributes as the last parameter.
511 * MANUAL.txt:
513 * Add a dedicated Citations section which consolidates the information
514 the manual used to contain about citation processing, and incorporates
515 some information formerly found in the pandoc-citeproc man page.
516 + Add note about lualatex using `selnolig`.
517 + Remove duplicate `seriespage` (#6568, Blake Eryx).
518 + Remove lists of support extensions for markdown variants (#6604).
519 Instead, offer the advice to use `--list-extensions=FORMAT`.
520 + Fix position of attributes in header (Albert Krewinkel).
521 + Delete obsolete section on compact and loose lists (#6684).
524 * doc/lua-filters.md:
526 + Add info on how to debug Lua filters (#6732, Ian Max Andolina).
527 + Document Underline type and constructor (Albert Krewinkel).
528 + Document `body` field (Albert Krewinkel).
529 + Add missing header attribute
530 + Add missing Link.title field (Albert Krewinkel).
531 + Make the setting-the-date example conditional (the-solipsist).
532 This makes the example a bit more realistic.
533 + Remove outdated link table example.
535 * doc/org.md:
537 + Add section on tables (Albert Krewinkel).
538 + Add section on handling of unknown directives (Albert Krewinkel).
540 * CONTRIBUTING.md: fix typo (#6584, Dmitry Volodin).
542 * Use golden test framework for command tests. This means that
543 `--accept` can be used to update expected output.
545 * Use the `smart` extension when generating pandoc's man page (#6613).
547 * Release-candidate: don't build windows i386.
548 So far we haven't been able to figure out how to get
549 stack to use a 32-bit ghc.
551 * Use `null` instead of deprecated `Builder.isNull`.
553 * Makefile:
555 + Fix macospkg target to fetch target from S3 artifacts.
556 + Fix pandoc-templates target to include all partials.
558 * Remove duplicated dependency in pandoc.cabal (#6591, Felix Yan).
560 * Sort build depends in pandoc.cabal alphabetically (#6691,
561 Albert Krewinkel).
563 * Add .travis.yml for macos release candidate build (#6622).
564 We need to build the release candidate on Travis rather
565 than GitHub actions, because GH has macos 10.15, and
566 binaries compiled on that OS will not work with 10.13.
567 This build is only triggered on `rc/*` branches.
569 * Remove instructions for building pandoc-citeproc from CI and
570 release binary build instructions. We will no longer distribute
571 pandoc-citeproc.
573 * Fix math rendering in trypandoc (this broke after
574 commit d8ad766d17603784b86fc5c2e1b22864125d04d1).
576 * Use latest versions of skylighting, commonmark (#6589),
577 comonmark-extensions, commonmark-pandoc, texmath.
579 * Relax version bounds for hslua, hslua-module-text, bytestring.
581 * Use released pandoc-types 1.22. This changes the JSON
582 encoding slightly for the new table types introduced
583 in 1.21, so they're more consistent with the rest.
584 Developers of libraries for pandoc filters will want
585 to take note.
587 * Fix hlint suggestions, update hlint.yaml (#6680, Christian Despres).
589 * Code cleanup (#6678, Joseph C. Sible).
591 * Add haddocks to functions in Text.Pandoc.Writers.Shared (Albert
592 Krewinkel).
594 * Remove duplicate `tshow` definition.
596 * Linux release candidate build: use ghc-musl container. This simplifies
597 our build process (over using a customized alpine container).
600## pandoc 2.10.1 (2020-07-23)
602 * Add `commonmark_x` output format. This is `commonmark` with a number
603 of useful pandoc extensions enabled.
605 * Many more extensions now work with `commonmark` and `gfm`.
607 * Add generic `attributes` extension. This allows attributes to
608 be added to any block or inline element in a uniform way. Since
609 the Pandoc AST doesn't include attributes on each element type,
610 the attributes will sometimes be added by creating a surrounding
611 Div or Span container. Currently this extension is only
612 compatible with the `commonmark` and `gfm` readers.
614 To add an attribute to a block-level element, e.g. a paragraph,
615 put it before the block:
616 ```
617 {#mypara}
618 This is a paragraph.
619 ```
620 Multiple attributes may be used and will be combined:
621 ```
622 {#mypara}
623 {.blue .warning key="val"}
624 This is a paragraph.
625 ```
626 To add an attribute to an inline-level element, put it
627 immediately after the element:
628 ```
629 *emphasized text*{.special}
630 ```
632 * Support `--number-sections` for docx output (#1413).
634 * LaTeX reader:
636 + Support `\SIRange` reader (#6418, Emerson Harkin).
637 + Support table col-span and row-span (#6311, Laurent P. René de Cotret).
638 Supports `\multirow` and `\multicolumn`.
639 + Support amsthm: `\newtheorem`, `\theoremstyle`, and theorem and
640 proof environments, including labels and references. The only thing
641 that is unsupported is the second optional argument, which causes
642 numbering to be reset after the specified series is incremented.
643 + Moved some code to T.P.LaTeX.Parsing. We need to reduce the size
644 of the LaTeX reader to ease compilation on resource-limited systems.
646 * RST reader:
648 + Fix csv tables with multiline cells (#6549).
649 + Fix spurious newlines in some attributes from directives.
650 + Avoid extra newline in included code blocks.
652 * Commonmark reader:
654 + Switch from cmark-gfm to commonmark-hs for commonmark and gfm
655 parsing. This avoids depending on a C library
656 and allows us to support more pandoc extensions for
657 `commonmark` and `gfm`.
659 * DocBook reader:
661 + Parse releaseinfo as metadata (#6542).
663 * Docx reader:
665 + Only use `bCs/iCs` on runs with `rtl` or `cs` property (#6514, Nikolay
666 Yakimov).
667 + Code cleanup/refactoring (Nikolay Yakimov).
669 * Org reader (Albert Krewinkel):
671 + Respect export setting which disables entities
672 MathML-like entities, e.g., `\alpha`, can be disabled with the
673 `#+OPTION: e:nil` export setting (Albert Krewinkel).
674 + Respect export setting disabling footnotes. Footnotes can be removed
675 from the final document with the `#+OPTION: f:nil` export setting.
676 + Respect tables-excluding export setting. Tables can be removed from
677 the final document with the `#+OPTION: |:nil` export setting.
679 * Markdown writer:
681 + Move `asciify` out of `escapeString`. Otherwise `unsmartify`
682 doesn't catch quotes that have already been turned to entities.
683 + Add `writeCommonmark` (new exported function, API change).
684 + Use unicode super/subscript characters when possible if the
685 `superscript` or `subscript` extension or `raw_html` aren't available.
686 + Render caption as following paragraph when `table_caption` extension
687 is not enabled.
688 + Use numerical labels for reference links that are longer
689 than 999 characters or contain square brackets, for conformity
690 with commonmark (#6560).
692 * Commonmark writer:
694 + Instead of using cmark-gfm, use `writeCommonmark` from the
695 Markdown writer. This function calls the markdown writer
696 with appropriate extensions and a few small modifications
697 (e.g. not requiring backslashes before spaces inside
698 super/subscripts). With this change `comonmark` and
699 `gfm` output can be used with a wider selection of
700 extensions.
702 * Jira writer: keep image caption as alt attribute (#6529, Albert
703 Krewinkel).
705 * HTML writer:
707 + Improve alt-text/caption handling for HTML5 (#6491, Albert Krewinkel).
708 Screen readers read an image's `alt` attribute and the figure caption,
709 both of which come from the same source in pandoc. The figure caption is
710 hidden from screen readers with the `aria-hidden` attribute. This
711 improves accessibility. For HTML4, where `aria-hidden` is not allowed,
712 pandoc still uses an empty `alt` attribute to avoid duplicate contents.
714 * Ms writer:
716 + Fix code highlighting with blank lines. Previously blank lines
717 were simply omitted from highlighted code.
718 + Escape starting periods in ms writer code blocks (#6505, Michael
719 Hoffmann). If a line of ms code block output starts with a period (.),
720 it should be prepended by `\&` so that it is not interpreted as a roff
721 command.
723 * Text.Pandoc.Extensions:
725 + Add `raw_markdown` extension (which only affects `ipynb`
726 input).
727 + Trim down `githubMarkdownExtensions`.
728 Previously it included all of the following, which make
729 sense for the legacy `markdown_github` but not for `gfm`,
730 since they are part of base commonmark and thus
731 can't be turned off in `gfm`:
733 - `Ext_all_symbols_escapable`
734 - `Ext_backtick_code_blocks`
735 - `Ext_fenced_code_blocks`
736 - `Ext_space_in_atx_header`
737 - `Ext_intraword_underscores`
738 - `Ext_lists_without_preceding_blankline`
739 - `Ext_shortcut_reference_links`
741 These have been removed from `githubMarkdownExtensions`, though
742 they're still turned on for legacy `markdown_github`.
743 + Add `Ext_attributes` constructor for `Extension` [API change].
745 * LaTeX template: use selnolig to selectively suppress ligatures with
746 lualatex (#6534).
748 * Benchmark bytestring readers (Nikolay Yakimov).
750 * Documentation:
752 + Update using-the-pandoc-api.md (favonia).
753 + Fix Typos in lua-filters.md (tajmone).
754 + Rewrite Raw HTML/TeX section in MANUAL.txt to avoid duplicate
755 headings for the extensions.
756 + Fix typo in MANUAL.txt (Benjamin Wuethrich).
757 + Remove duplicate 'titlepage' in MANUAL.txt (Blake Eryx).
758 + CONTRIBUTING.md: Advertise the official nightlies in GitHub actions.
759 Replaces #6500, thanks to @ickc.
763## pandoc 2.10 (2020-06-29)
765 * Use pandoc-types 1.21. This adds two things:
767 + A native Underline constructor for Inline (#6277, Vaibhav Sagar).
768 + More expressive types for tables (#1024, Christian Despres).
769 Tables can now take attributes; and rowspans and colspans,
770 column headers, multiple row headers, table head and foot
771 can all be represented. (Note, however, that reader and
772 writer support for these features is still lacking, so
773 most users won't see any differences in table conversion
774 yet. These changes just lay the foundation for further
775 improvements.)
777 * Support new Underline element in readers and writers (#6277,
778 Vaibhav Sagar).
780 * Support new Table type (Christian Despres).
781 The Builder.simpleTable now only adds a row to the TableHead
782 when the given header row is not null. This uncovered an
783 inconsistency in the readers: some would unconditionally
784 emit a header filled with empty cells, even if the header
785 was not present. Now every reader has the conditional
786 behaviour. Only the XWiki writer depended on the header row
787 being always present; it now pads its head as necessary.
789 * Add an option to disable certificate validation (#6156, Cédric Couralet,
790 Cécile Chemin, Juliette Fourcot). This commit adds the option
791 `--no-check-certificate`, which disables certificate checking when
792 resources are fetched by HTTP.
794 * Unify defaults and markdown metadata parsers (#6328, Nikolay
795 Yakimov). Clean up code in Text.Pandoc.Readers.Metadata and
796 properly handle errors in `yamlToMeta`. This fixes parsing
797 of Boolean fields in metadata withinin defaults files and reduces
798 code duplication.
800 * Docbook reader:
802 + Implement `<procedure>` (#6442, Mathieu Boespflug).
803 + Implement `<phrase>` (#6438, Mathieu Boespflug).
804 + Treat envar and systemitem like code (#6435, Mathieu Boespflug).
805 + Implement `<replaceable>` (#6437, Mathieu Boespflug)
806 + Map `<simplesect>` to unnumbered section (#6436, Mathieu Boespflug).
808 * JATS reader:
810 + Handle "label" element in section title (#6288).
811 + Parse abstract element into metadata field of same name
812 (#6480, Albert Krewinkel).
814 * Jira reader (Albert Krewinkel):
816 + Resolve multiple parsing problems, including issues with empty
817 table cells, faulty recognition of closing emphasis characters, and
818 parsing of image attributes (#6212, #6219, #6220).
819 + Two consecutive markup chars are now parsed verbatim (#6343);
820 styled text must not be empty.
821 + Newlines are no longer allowed within styled text (#6325).
822 + Links to anchors are now parsed as links (#6407).
823 + Retain image attributes (#6234). Jira images attributes as in
824 `!image.jpg|align=right!` are retained as key-value pairs. Thumbnail
825 images, such as `!example.gif|thumbnail!`, are marked by a
826 `thumbnail` class in their attributes.
827 + Use Underline for inserted text (#6237). Previously, the span was
828 marked with the non-standard class `inserted`.
829 + Improve icon conversion for `(/)`, `(x)`, `(!)`, `(?)`
830 `(+)`, `(-)`, `(off)`, `(*)`. (#6236, #6264).
831 + Support citations, attachment links, and user links (#6231, #6238,
832 #6239).
833 + Resolve parsing issues of blockquote, color (#6233, #6235).
835 * HTML reader:
837 + Parse attributes into table attributes.
838 + Support `<bdo>` (#5794, Tristan de Cacqueray).
839 + Add `summary` to list of block-level HTML tags (#6385).
840 This improves support for summary/details inside Markdown.
841 NOTE: you need to include a blank line before the closing
842 `</details>`, if you want the last part of the content to
843 be parsed as a paragraph.
844 + Fix parsing unclosed th elements in a table (#6247).
846 * Commonmark reader: Implement `implicit_figures` extension (#6350).
848 * Markdown Reader:
850 + Fix inline code in lists (#6284, Nikolay Yakimov).
851 Previously inline code containing list markers was sometimes
852 parsed incorrectly.
853 + Don't require blank line after grid table (#6481).
854 This allows grid tables to be enclosed in fenced divs with no
855 intervening blank lines.
857 * LaTeX reader:
859 + Don't parse beyond `\end{document}` (#6380).
860 This required some internal changes to `\subfile` handling.
861 + Better handling of `\lettrine`. SmallCaps instead of Span
862 for the part after the initial capital. Ensure that both
863 arguments are parsed, so that in Markdown both
864 are treated as raw LateX. (Closes #6258.)
866 * Org reader (Albert Krewinkel):
868 + Recognize images with uppercase extensions (#6472).
869 + Keep unknown keyword lines as raw org. The lines of unknown
870 keywords, like `#+SOMEWORD: value` are no longer read as metadata,
871 but kept as raw `org` blocks. This ensures that more information
872 is retained when round-tripping org-mode files; additionally,
873 this change makes it possible to support non-standard org
874 extensions via filters.
875 + Unify keyword handling. Handling of export settings and other
876 keywords (like `#+LINK`) has been combined and unified.
877 + Support `LATEX_HEADER_EXTRA` and `HTML_HEAD_EXTRA`
878 settings. These export settings are treated like their non-extra
879 counterparts, i.e., the values are added to the `header-includes`
880 metadata list.
881 + Allow multiple `#+SUBTITLE` export settings. The values of all
882 lines are read as inlines and collected in the `subtitle`
883 metadata field.
884 + Read `#+INSTITUTE` values as text with markup. The value is
885 stored in the `institute` metadata field and used in the
886 default beamer presentation template.
887 + The behavior of the `#+AUTHOR` and `#+KEYWORD` export
888 settings has changed: Org now allows multiple such lines
889 and adds a space between the contents of each line. Pandoc
890 now always parses these settings as meta inlines; setting
891 values are no longer treated as comma-separated lists.
892 Note that a Lua filter can be used to restore the previous
893 behavior.
894 + Read description lines as inlines (#6485). `#+DESCRIPTION` lines
895 are now treated as text with markup. If multiple such
896 lines are given, then all lines are read and separated by soft
897 linebreaks.
898 + Honor tex export option (#4070). The `tex` export option can be set
899 with `#+OPTION: tex:nil` and allows three settings:
900 `t` (the default) causes LaTeX fragments to be parsed as TeX or added
901 as raw TeX. `nil` removes all LaTeX fragments from the document.
902 `verbatim` treats LaTeX as text.
905 * RST reader:
907 + Pass arbitrary attributes through in code blocks (#6465).
908 Exceptions: name (which becomes the id), class (which becomes the
909 classes), and number-lines (which is treated specially to fit
910 with pandoc highlighting).
911 + Handle `date::` directive (#6276).
913 * Textile reader: support `pre.` for code blocks (#6454).
915 * Ipynb reader:
917 + Implement `raw_markdown` extension (#5408). Specifying
918 `-f ipynb+raw_markdown` will cause Markdown cells
919 to be represented as raw Markdown blocks, instead of being
920 parsed. This is not what you want when going from `ipynb`
921 to other formats, but it may be useful when going from `ipynb`
922 to Markdown or to `ipynb`, to avoid semantically insignificant
923 changes in the contents of the Markdown cells that might
924 otherwise be introduced.
925 + Handle application/pdf output as image (#6430).
926 + Properly handle image/svg+xml as an image (#6430).
928 * Docx reader:
930 + Distinguish between docx parsing and docx container unpacking errors.
932 * MediaWiki reader:
934 + Fix `gfm_auto_identifiers` so that `-` is not replaced by `_` (#6335).
936 * Vimwiki reader:
938 + Add nested syntax highlighting (#6256, Vlad Hanciuta).
939 Nested syntaxes are specified like this:
940 ```
941 {{{sql
942 SELECT * FROM table
943 }}}
944 ```
945 The preformatted code block parser has been extended to check if the
946 first attribute of the block is not a `key=value` pair, and in that
947 case it will be considered as a class.
950 * Jira writer (Albert Krewinkel):
952 + Always escape braces (#6478). Braces are now always escaped, even
953 within words or when surrounded by whitespace. Jira and
954 Confluence treat braces specially.
955 + Convert Underline to inserted text (`+inserted+`).
956 + Add image attributes (#6234). Image attributes are added
957 to the output as image parameters. If the image has a
958 class "thumbnail", then a thumbnail image is generated;
959 all other attributes are discarded in this case.
961 * LaTeX writer:
963 + Ensure that `-M csquotes` works even in fragment mode (#6265).
964 + Escape `^` specially for listings (#6460).
965 + Create hypertarget for links with identifier (#6360).
966 + Distinguish between single and double quotes when using enquote
967 package (#6457, dbecher-ito).
968 + Add support for customizable alignment of columns in beamer (#6331,
969 andrebauer).
970 + Add support for customizable alignment of columns in beamer
971 (#4805, #4150, andrebauer).
973 * HTML writer:
975 + Use CSS in favor of `<br>` for display math (#6372)
976 Some CSS to ensure that display math is
977 displayed centered and on a new line is now included
978 in the default HTML-based templates; this may be
979 overridden if the user wants a different behavior.
981 * Org writer:
983 + Clean-up Div handling (Albert Krewinkel).
985 * Docx writer:
987 + Enable column and row bands for tables (#6371).
988 This change will not have any effect with the default style.
989 However, it enables users to use a style (via a reference.docx)
990 that turns on row and/or column bands.
992 * OpenDocument (and ODT) writer:
994 + Add custom-style "Abstract" in metadata abstract.
995 This ensures that the abstract is rendered with style Abstract.
996 + Enable custom-style attribute on a Div.
997 This allows you to apply a custom style to contained paragraphs.
999 * DocBook writer:
1001 + Add id of figure to enclosed image.
1002 + Add personname element to docbook author (#6244).
1004 * FB2 writer:
1006 + Properly handle cover-image containing spaces (#6391).
1008 * Markdown writer:
1010 + Ensure consistent padding for pipe tables (#6240).
1011 + Avoid unnecessary escapes before intraword `_` when
1012 `intraword_underscores` extension is enabled (#6296).
1014 * RST writer:
1016 + Properly handle images with same alt text (#6194).
1017 Previously we created duplicate references for these in rendering RST.
1019 * AsciiDoc writer:
1021 + Add blank line after Div (#6308).
1023 * Haddock Writer:
1025 + Support Haddock tables (Joe Hermaszewski).
1026 See this PR on Haddock for details on the table format:
1027 <https://github.com/haskell/haddock/pull/718>.
1029 * PowerPoint writer (Jesse Rosenthal):
1031 + Write math input verbatim in speaker notes (#6301).
1032 OMML in speaker notes would lead to corrupt PowerPoint output. We now
1033 output the OMML verbatim as LaTeX in the speaker notes.
1035 * LaTeX template: Make polyglossia package options list-aware
1036 (#6444, Frederik Elwert).
1038 * Reveal.js template:
1040 + Update template for reveal.js 4.0.0 (#6390, Salim B).
1041 + Update template with newly available options (#6347, Jake Zimmerman).
1042 + Use CDN version of revealjs v4 by default (#6408).
1044 * opendocument template: Add abstract and subtitle to opendocument
1045 template (#6369).
1047 * reference.odt: clean up styles. Add Abstract.
1048 Change Author, Date to centered paragraphs with no character
1049 styling.
1051 * epub.css: wrap overlong lines in highlighted code blocks (#6242).
1052 This fixes a problem in iBooks v2.4 with our earlier
1053 horizontally scrolling code blocks. The problem seems to
1054 be a bug in iBooks, not pandoc, but since iBooks is a major
1055 target we're changing pandoc's default behavior so that
1056 pandoc-produced epubs work on that platform.
1058 * Text.Pandoc.PDF:
1060 + Use `--enable-local-file-access` in invoking `wkhtmltopdf` (#6474).
1061 `wkhtmltopdf` changed in recent versions to require this for
1062 access to local files. This fixes PDF via HTML5 with `--css`.
1063 + Send verbose output to stderr, not stdout (#6483).
1065 * Text.Pandoc.MIME: Fix MIME type for TrueType fonts in EPUBs
1066 (#6464, Michael Reed).
1068 * Text.Pandoc.Shared:
1070 + `makeSections`: omit number attribute when unnumbered class
1071 is present (#6339). Previously the attribute was included but given
1072 an empty value, and this caused the table of contents creation
1073 functions in Text.Pandoc.Writers.Shared to think these items had
1074 numbers, which meant that they were included in the TOC even if the
1075 `unlisted` class was used.
1076 + Deprecate `underlineSpan` in Shared in favor of
1077 `Text.Pandoc.Builder.underline` (Vaibhav Sagar).
1078 + `renderTags'`: use self-closing tag for col element (#6295).
1080 * Text.Pandoc.UUID: Fix `getRandomUUID`, which previously would
1081 return the same value twice in a row. Make `getRandomUUID`
1082 polymorphic in PandocMonad. Remove `getUUID` (#6228, Joseph C. Sible).
1084 * Text.Pandoc.Class: Generalize `PandocIO` functions to `MonadIO`.
1086 * Fixed Katex standalone script (#6399, Lucas Escot).
1087 Global macros are now persistent when using the HTML Writer with the
1088 `--katex` option.
1090 * Lua subsystem (Albert Krewinkel):
1092 + Use new type PandocLua for all pandoc Lua operations (API change).
1093 The new type `PandocLua` is an instance of the `PandocMonad` typeclass
1094 and can thus be used in a way similar to `PandocIO`.
1095 + Use PandocError for exceptions in Lua subsystem (API change).
1096 The PandocError type is used throughout the Lua subsystem. All Lua
1097 functions throw an exception of this type if an error occurs. The
1098 `LuaException` type is removed and no longer exported from
1099 `Text.Pandoc.Lua`. In its place, a new constructor `PandocLuaError`
1100 is added to PandocError.
1102 * Lua filters: improve error messages for failing filters (#6332,
1103 Albert Krewinkel). Print the Lua error properly instead of
1104 displaying their `show` string.
1106 * Use latest skylighting. This fixes a bug with lua multiline
1107 comments (and may improve handling of other syntaxes as well).
1108 IT also adds `aria-hidden="true"` to the empty a elements, which
1109 helps people who use screen readers.
1111 * Use latest texmath.
1113 * Require latest doctemplates 0.8.2.
1114 This adds support for template pipes `first`, `rest`,
1115 `last`, `allbutlast`.
1117 * Revert 0e48a02 and dependency on base-noprelude, which hasn't
1118 been updated for ghc 8.10 (see #6187).
1120 * Dependency adjustments:
1122 + Allow haddock-library 1.9.x.
1123 + Allow hslua 1.1 (#6243, Felix Yan).
1124 + Allow base64-bytestring 1.1.
1125 + Use latest jira-wiki-markup.
1126 + Allow http-client 0.7.
1127 + Allow tasty 1.3.x.
1128 + Allow aeson 1.5 (#6400, Felix Yan).
1129 + Remove unused dependency `vector` (#6462, Laurent P. René de Cotret).
1130 + Bump QuickCheck upper bound.
1132 * Significant code cleanup and simplification (Joseph C. Sible, #6223,
1133 #6209, #6225, #6229, #6226, #6340).
1135 * Remove unnecessary hlint ignores (#6341, Joseph C. Sible).
1137 * Remove obsolete RelaxedPolyRec extension (#6487, Nikolay Yakimov).
1139 * trypandoc improvements (Mike Tzou):
1141 + Add standalone option to the command text (#6210).
1142 + Update third party libraries.
1144 * MANUAL.txt:
1146 + Clarify template partial naming (#6476, Mauro Bieg).
1147 + Describe `jira` as "Jira/Confluence wiki markup" (#6351, Albert
1148 Krewinkel). In the past, Jira's wiki markup was also used by -- and
1149 could be imported into -- Atlassian Confluence.
1150 + Add link to print-css.rocks (#6272, Mauro Bieg).
1151 + Clarify pipe table column width adjustment (#6254).
1152 + Fix ATX header syntax.
1153 + Fix misleading note about image size conversions (#6353).
1154 + Update links to reveal.js documentation (#6386, Salim B).
1155 + Separate adjacent verbatim code blocks (#6307, tom-audm).
1157 * org.md:
1159 + Document behavior of `smart` extension (#4387, Albert Krewinkel).
1160 + Describe all supported export options in detail.
1162 * lua-filters.md:
1164 + Fix description of BulletList Lua type (Levi Gruspe).
1165 + Use pandoc.system module in TikZ example (Albert
1166 Krewinkel). Showcase temporary directory handling with
1167 `with_temporary_directory` and `with_working_directory`.
1169 * INSTALL.md: fix FreeBSD port link (#6422, Mo).
1170 The FreeBSD port was renamed from pandoc to hs-pandoc in 2010.
1171 The old pandoc port is still at version 1.5.1.1
1173 * Propagate `(DY)LD_LIBRARY_PATH` in tests (#6376, Lila).
1175 * Bump `cabal-version` to 2.2 (#6377).
1177 * Make it possible to compile using Stack on NixOS (#6439, Mathieu
1178 Boespflug).
1180 * CI action to check for commit message length (Nikolay Yakimov, #6398).
1183## pandoc 2.9.2.1 (2020-03-23)
1185 * Markdown reader: Fix table alignment when heading begins with t (#6153).
1186 Due to a typo (`t` instead of `\t`) we were center aligning column
1187 headings that begin with a lowercase `t`!
1189 * Text.Pandoc.Readers.Roff:
1191 + Fix parsing of `\.` in man/ms readers (#6175).
1192 Previously due to a typo it was being parsed as `` ` ``.
1193 + Fix parsing of `\'` in man/ms readers (#6175). It was being parsed
1194 as a backtick.
1196 * Jira reader (Albert Krewinkel):
1198 + Fix parsing of tables without preceding blankline (#6198).
1199 A bug was fixed which caused faulty parsing if a table was not
1200 preceded by a newline and the first table cell had no space
1201 after the initial `|` characters.
1202 + Fix parsing of strikeout, emphasis (#6196). A bug was fixed which
1203 caused non-emphasized text containing digits and/or non-special
1204 symbols (like dots) to sometimes be parsed incorrectly.
1205 + Support colored inline text, indented lists (#6183, #6184).
1207 * Ms writer:
1209 + Fix definition lists so indent even when paragraph indent is
1210 set to 0 (as is the default). Also ensure indent for display math
1211 that falls back to TeX.
1212 + Use `.QS/.QE` instead of `.RS/.RE` for block quotes.
1214 * EPUB writer: fix regression on detection of front/back/bodymatter
1215 (#6170). This bug caused sections with epub:type `dedication` to be
1216 misplaced in bodymatter instead of frontmatter as specified
1217 in the manual. The same problem would affect other epub:types.
1218 The pattern matching needed to be changed with the use of
1219 `makeSection`.
1221 * AsciiDoc writer: remove redundant `otherwise` guard in
1222 `inlineToAsciiDoc` (#6146, Ryan Scott).
1224 * Text.Pandoc.Class:
1226 + Fix missing import when data files are not embedded (Albert Krewinkel).
1227 + Subdivide Text.Pandoc.Class into small unexported modules
1228 and ensure that all functions have Haddock documentation (#6106,
1229 Albert Krewinkel).
1230 + Finer grained imports of Text.Pandoc.Class submodules (#6203, Albert
1231 Krewinkel).
1233 * Text.Pandoc.XML: Add to list of HTML5 attributes:
1234 `allow`, `autocapitalize`, `decoding`, `enterkeyhint`,
1235 `imagesizes`, `imagesrcset`, `loading`.
1237 * Use implicit Prelude (#6187, Albert Krewinkel).
1238 The previous behavior was introduced as a fix for #4464. It seems that
1239 this change alone did not fix the issue, and `stack ghci` and `cabal
1240 repl` only work with GHC 8.4.1 or newer, as no custom Prelude is loaded
1241 for these versions. Given this, it seems cleaner to revert to the
1242 implicit Prelude.
1244 * Always use custom prelude (#6187, Albert Krewinkel).
1245 Previously, the custom prelude was used only with older GHC versions, as
1246 a workaround for problems with ghci. The ghci problems are resolved by
1247 replacing package `base` with `base-noprelude`, allowing for consistent
1248 use of the custom prelude across all GHC versions.
1250 * Remove outdated checks for no longer supported base versions
1251 (Albert Krewinkel).
1253 * PDF via wkhtmltopdf: put user-specified options last (#6171).
1254 Certain options (e.g. `cover`) need to come after flags on
1255 the command line.
1257 * Text.Pandoc.App: set resource path at the beginning so it can affect
1258 things like include-in-header (#5982).
1260 * Change macOS release candidate CI process so that notarized
1261 packages can be produced (#6169).
1263 * Make MANUAL more explicit about nonbreaking space handling by
1264 `all_symbols_escapable` (#6154, Fabien Schurter).
1266 * trypandoc (Mike Tzou):
1268 + Add checkbox for standalone option (#6189).
1269 + Use strict mode for JavaScript code (#6188).
1270 + Fetch resources over https (#6188).
1271 + Remove unnecessary attributes on style, script elements (#6188).
1273 * Use details tag to make GitHub releases changelog collapsible.
1275 * Update filter code in doc/filters.md so it works with latest pandoc
1276 (#6185).
1278 * linux/Dockerfile: upgrade to alpine 3.11 (#6180, Albert Krewinkel).
1279 This is used to build the static linux binaries.
1282## pandoc 2.9.2 (2020-02-15)
1284 * Add `csv` as an input format (#6100). The CSV table is converted into a
1285 pandoc simple table. A new module Text.Pandoc.Readers.CSV
1286 exports `readCSV` [API change].
1288 * Introduce new format variants for JATS writer (#6014, Albert Krewinkel):
1290 - `jats_archiving` for the "Archiving and Interchange Tag Set",
1291 - `jats_publishing` for the "Journal Publishing Tag Set", and
1292 - `jats_articleauthoring` for the "Article Authoring Tag Set."
1294 The `jats` output format is now an alias for `jats_archiving`.
1295 The module Text.Pandoc.Writers.JATS now exports
1296 `writeJatsArchiving`, `writeJatsPublishing`, and
1297 `writeJatsArticleAuthoring`, as well as the legacy
1298 `writeJATS` [API change].
1300 * `--defaults`: Support `bibliography` and `csl` fields.
1301 Move `addMeta` from Text.Pandoc.App.CommandLineOptions to
1302 Text.Pandoc.App.Opt (internal change).
1304 * Add timing info for filters in `--verbose` mode (#6112).
1305 When verbose mode is specified (verbosity == INFO), print a
1306 notice when running a filter and when a filter completes (including
1307 timing).
1309 * LaTeX reader:
1311 + Allow `&` in LaTeX citation keys (#6110).
1312 + Improve caption and label parsing.
1313 + Don't emit empty Span elements for labels.
1314 + Put tables with labels in a surrounding Div.
1315 + Resolve `\ref` to table numbers (#6137).
1316 + Skip comments in more places where this is needed (#6114).
1317 + Allow beamer overlays for all commands in all raw tex (#6043).
1318 This affects parsing of raw tex in LaTeX and in Markdown and
1319 other formats.
1320 + Improve parsing of raw environments (#6034). If parsing fails
1321 in a raw environment (e.g. due to special characters like unescaped
1322 `_`), try again as a verbatim environment, which is less sensitive to
1323 special characters. This allows us to capture special environments
1324 that change catcodes as raw tex when `-f latex+raw_tex` is used.
1326 * RST reader:
1328 + Add highlight directive (#6140, Lucas Escot).
1330 * MediaWiki writer:
1332 + Prevent triple `[[[` which confuses MediaWiki (#6119).
1334 * HTML reader:
1336 + Don't parse `data-id` as `id` attribute. And similarly don't
1337 parse any `data-X` as `X` when `X` is a valid HTML attribute.
1339 * Org reader:
1341 + Simplify parsing of sub- and superscripts (#6127, Albert Krewinkel).
1342 Speeds up parsing of single-word, markup-less sub- and superscripts.
1344 * LaTeX writer:
1346 + Group biblatex citations even with prefix and suffix (#5849, Ethan
1347 Riley). Previously biblatex citations were only grouped if there
1348 was no prefix. This patch allows them to be grouped in subgroups split
1349 by prefixes and suffixes, which allows better citation sorting.
1350 + Fix regression in handling of columns in beamer slides (#6033).
1351 Columns in title slides were causing problems with
1352 slide division.
1353 + Fix duplicate frame classes in LaTeX/Beamer output (#6107).
1355 * HTML writer:
1357 + Fix duplicate attributes on headings (#6062), regression from 2.7.x.
1358 + Fix `--number-offset` with HTML TOC. Eventually it would be worth
1359 adding a parameter to `makeSections` so this could be done at that
1360 level; then it would also affect other writers that construct
1361 TOC manually.
1362 + reveal.js: restore old behavior for 2D nesting (#6032).
1363 The fix to #6030 actually changed behavior, so that the
1364 2D nesting occurred at slide level N-1 and N, instead of
1365 at the top-level section. This commit restores the v2.7.3 behavior.
1366 If there are more than 2 levels, the top level is horizontal
1367 and the rest are collapsed to vertical.
1368 + reveal.js: ensure that pauses work even in title slides (#5819).
1370 * Markdown writer:
1372 + Fix regression: spurious dots in markdown_mmd metadata output (#6133).
1374 * Docx writer:
1376 + Fix regression with Compact style on tight lists (#6072).
1377 Starting in 2.8, the docx writer no longer distinguishes between tight
1378 and loose lists, since the Compact style is omitted. This is a
1379 side-effect of the fix to #5670, as explained in the changelog. This
1380 patch fixes the problem by extending the exception currently offered to
1381 Plain blocks inside tables to Plain blocks inside list items.
1383 * Jira writer:
1385 + Fix output of table headers (Albert Krewinkel, #6035).
1387 * Add Text.Pandoc.Image with unexported svgToPng.
1389 * Text.Pandoc.XML: Export `html5Attributes`, `html4Attributes`,
1390 `rdfaAttributes` (formerly unexported in Text.Pandoc.Writers.HTML).
1391 [API change]
1393 * Text.Pandoc.Shared: Export a new function `findM` (#6125,
1394 Joseph C. Sible).
1396 * Text.Pandoc.Logging: Add `RunningFilter`, `FilterCompleted`
1397 constructors to LogMessage [API change].
1399 * Text.Pandoc.CSV: fix bug in CSV parser; previously an extra blank record
1400 would sometimes be inserted at the end.
1402 * LaTeX template: add space option to xeCJK with PassOptionsToPackage
1403 (#6002). Otherwise we can get a clash with documentclasses that
1404 already load the package.
1406 * Lua filters:
1408 + Allow filtering of element lists (#6038, Albert Krewinkel). Lists of
1409 Inline and Block elements can now be filtered via `Inlines` and
1410 `Blocks` functions, respectively. This is helpful if a filter
1411 conversion depends on the order of elements rather than a single
1412 element. For example, the following filter can be used to remove all
1413 spaces before a citation:
1415 function isSpaceBeforeCite (spc, cite)
1416 return spc and spc.t == 'Space'
1417 and cite and cite.t == 'Cite'
1418 end
1420 function Inlines (inlines)
1421 for i = #inlines-1,1,-1 do
1422 if isSpaceBeforeCite(inlines[i], inlines[i+1]) then
1423 inlines:remove(i)
1424 end
1425 end
1426 return inlines
1427 end
1429 + Add methods `insert`, `remove`, and `sort` to pandoc.List
1430 (Albert Krewinkel). Example of use:
1432 local numbers = pandoc.List {2, 3, 1}
1433 numbers:sort() -- numbers is now {1, 2, 3}
1434 + Make `pandoc.List` a callable constructor (Albert Krewinkel).
1435 It is now possible to construct a new List via
1436 `pandoc.List()` instead of `pandoc.List:new()`.
1437 + Add tests for pandoc.List module (Albert Krewinkel).
1439 * Text.Pandoc.App.CommandLineOptions: Change `setVariable` to use `Text`
1440 instead of `String`. This avoids some unnecessary unpacking.
1442 * Use versioned directory for windows release zipfile.
1443 Also remove old `make-windows-installer.bat`, superseded by GitHub
1444 actions workflow, and modify `pandoc.wxs` for new paths.
1446 * Extensive code cleanup (#6141, #6128, #6129, #6130, #6123,
1447 #6105, 6102, #6117, #6124, #6115, #6116, #6111, Joseph C. Sible).
1449 * Fix hlint warnings (Albert Krewinkel).
1451 * Use latest doclayout, doctemplates (#6031). The new version of
1452 doclayout fixes a memory leak that affected `--include-in-header` with
1453 large files (and possibly other cases involving extremely long lines).
1455 * Use latest texmath.
1457 * Use latest skylighting and fix test suite (#6086).
1459 * sample.lua: Fix typo in descriptive comments (#6136, Caleb Maclennan).
1460 Fix typo in error message (#6135).
1462 * Add Docker and GH Actions instructions/links to INSTALL.md.
1464 * Update filter documentation (#6065). Improve cabal v2 instructions.
1465 Remove example using pandoc API directly (we have other
1466 docs for that and it was outdated).
1468 * Lua filter docs:
1470 + Cross-link constructors and types (Albert Krewinkel).
1471 Thanks to @bpj for the idea.
1472 + Sort pandoc.List methods alphabetically (Albert Krewinkel).
1473 + Unify, fix anchors and internal links (#6061, Albert Krewinkel).
1474 Links and anchors now follow consistent conventions, like
1475 lowercase-only anchor names. This breaks some links to specific
1476 sections in the document, but will make it much easier to link
1477 documentation in the future.
1478 + Clarify filter function execution order (#6059, Albert Krewinkel).
1480 * In docs, update URLs and use `https:` wherever possible (#6090,
1481 Salim B).
1483## pandoc 2.9.1.1 (2020-01-05)
1485 * Markdown reader:
1487 + Fix parsing bug affected indented code after raw HTML (#6009, #5360).
1489 * LaTeX writer:
1491 + Fix regression in beamer slide structure with certain slide levels
1492 (#6030).
1493 + Allow framebreaks for beamer's TOC (Heiko Schlittermann, #6012)
1494 + Properly handle unnumbered headings level 4+ (#6018).
1495 Previously the `\paragraph` command was used instead of
1496 `\paragraph*` for unnumbered level 4 headings.
1498 * HTML writer:
1500 + Fix revealjs slide structure regression with certain slide levels
1501 (#6030).
1502 + Add newlines to make slide show output more readable.
1504 * Org writer:
1506 + Remove extra spaces from table cells (Albert Krewinkel, #6024).
1508 * JATS template: Update JATS dtd (Arfon Smith, #6020). Use the archiving
1509 and interchange DTD rather than the more restrictive journal publishing
1510 DTD (which doesn't permit ext-link as a valid child).
1512 * Text.Pandoc.PDF: Fix `runTeXProgram` so that the input source is always
1513 overwritten (#6027). Previously it wasn't overridden if the file already
1514 existed, which led to bad results on subsequent runs when
1515 `pdf-engine-opt=-output-directory=` was used to specify an explicit temp
1516 dir.
1518 * Text.Pandoc.BCP47: Change `getLang` to handle block-level contents
1519 (#6008). Some readers (e.g. RST) will populate the `lang` metadata field
1520 with block-level content. `getLang` has been modified to handle this.
1521 Previously in these cases the LaTeX writer would not properly set the
1522 "main language" of the document.
1524 * Fix `test/tables.org` (Albert Krewinkel).
1526 * Use HTTPS in copyright message (Felix Yan, #6010)
1529## pandoc 2.9.1 (2019-12-23)
1531 * Add Jira reader (Albert Krewinkel, #5556).
1533 * Jira writer: use jira-wiki-markup renderer (Albert Krewinkel,
1534 #5926). The following improvements are included in this change:
1536 + non-jira raw blocks are fully discarded instead of showing
1537 as blank lines;
1538 + table cells can contain multiple blocks;
1539 + unnecessary blank lines are removed from the output;
1540 + markup chars within words are properly surrounded by
1541 braces;
1542 + preserving soft linebreaks via `--wrap=preserve` is
1543 supported.
1545 Note that backslashes are rendered as HTML entities, as there
1546 appears no alternative to produce a plain backslash if it is
1547 followed by markup. This may cause problems when used with
1548 confluence, where rendering seems to fail in this case.
1550 * Fix regression with `--number-sections`. Starting with 2.8,
1551 `--number-sections` also had the effect of `--section-divs`,
1552 even if `--section-divs` was not specified.
1554 * Improved table of contents generation in markdown, RTF,
1555 commonmark, better handling cases where section headings are
1556 enclosed in divs.
1558 * Ensure that later default file values for `variable` replace
1559 earlier ones (5988).
1561 * HTML reader: Add `nav` to list of block-level tags.
1563 * Org reader (Albert Krewinkel):
1565 + Wrap named table in Div, using name as id (#5984).
1566 Tables which are given a name via `#+NAME:` or `#+LABEL:`
1567 are wrapped in an additional Div, with the name set as the
1568 Div's ID.
1569 + Report parsing errors properly.
1570 + Fix parsing problem for colons in headline (#5993).
1572 * Text.Pandoc.PDF: Ensure UTF8 when printing source in
1573 `--verbose` mode, avoiding an error on platforms that
1574 default to something other than UTF-8 (#5997).
1576 * Text.Pandoc.Templates: Strip directory before trying to find
1577 partial in data files (#5987).
1579 * Text.Pandoc.Shared: Improve `makeSections` so we don't get
1580 doubled "number" attributes in EPUB output (or anywhere
1581 else) (#5986).
1583 * Added tests for `--toc` and `--section-divs`.
1585 * Text.Pandoc.MIME: Added glsl MIME type for WebGL maps (#6000,
1586 Jared Lander).
1588 * MANUAL: A bit clearer explanation for `--base-header-level`.
1589 We now say exactly how to translate between the deprecated
1590 `--base-header-level` and `--shift-heading-level-by`.
1592 * lua-filters.md:
1594 + Remove spurious dot in title (#5996, Mauro Bieg).
1595 + Replace metadata example with image centering (#6004,
1596 Albert Krewinkel). Thanks to @efx for proposing this filter.
1599## pandoc 2.9 (2019-12-11)
1601 * Text.Pandoc.Templates [API change]
1603 + Add Monad wrappers `WithDefaultPartials` and `WithPartials`.
1604 Wrapping these around an instance of `PandocMonad` gives
1605 us different instances of `TemplateMonad`, with different
1606 search behavior in retrieving partials.
1607 To compile a template and limit partial search to pandoc's
1608 data files, use `runWithDefaultPartials (compileTemplate ...)`.
1609 To compile a template and allow partials to be found locally
1610 (either on the file system or via HTTP, in the event that
1611 the main template has an absolute URL), ue
1612 `runWithPartials (compileTemplate ...)`.
1613 + Export `getTemplate`, which seeks a template locally,
1614 or via HTTP if the template has an absolute URL, falling
1615 back to the data files if not found.
1616 + Export `compileDefaultTemplate` -- does `getDefaultTemplate`
1617 and compiles the result, raising an error on failure.
1619 * Text.Pandoc.Class [API change]
1621 + Remove `TemplateMonad` instances for `PandocIO` and `PandocPure`.
1622 These were too limiting and caused a bug whereby a local
1623 partial could be used even when the default template was requested.
1624 We now rely on instances provided in the Templates module.
1626 * Text.Pandoc.App.OutputSettings: Simplify template retrieval code.
1628 * ConTeXt template: Adjust to title formatting (#5949, Denis Maier).
1629 Add `\setupinterlinespace` to `title`, `subtitle`, `date` and `author`
1630 elements: otherwise longer titles that run over multiple lines will look
1631 squashed as `\tfd` etc. won't adapt the line spacing to the font size.
1633 * reveal.js template: Add title-slide-attributes variable (#5981,
1634 Frederik Elwert).
1636 * More informative JSON parse error (#5973).
1638 * Use external emojis package (forked from pandoc). Removed emoji data
1639 in Text.Pandoc.Emoji.
1641 * Fix regression in `makeSections` (#5965).
1642 Previously `hierarchicalize` (the ancestor of `makeSections`) would put
1643 header attributes on the containing Div. In 2.8 this behavior changed,
1644 which broke some tools depending on pandoc. Here we roll back this change,
1645 so that attributes again migrate from the header to the containing Div when
1646 `makeSections` is run. Note that attributes are retained on the header as
1647 well (unlike before) -- with the exception of the `id` attribute, which of
1648 course cannot be duplicated.
1650 * Fix `--toc-depth` regression in 2.8 (#5967).
1652 * Use doctemplates 0.8. Rename template 'filters' as 'pipes'
1653 to avoid confusion with the other notion of filter used by pandoc.
1655 * Fix README.md so that relative links from manual become absolute.
1656 Previously they'd be broken links when viewed on GitHub or Hackage.
1657 So we add the base URL for the pandoc manual.
1659 * Document display math syntax in manual.
1661## pandoc 2.8.1 (2019-12-05)
1663 * Add `ascii_identifiers` as a supported extension for `markdown`.
1664 This fixes a regression in 2.8.
1666 * Fix regression with behavior of `--variable` (#5962).
1667 Previously `-Vfoo=1 -Vfoo=2` would produce a list value for foo;
1668 with 2.8 it produced just `2`. This commit restores the earlier
1669 behavior.
1671 * Roll back part of of `--shift-heading-level-by` change (#5957).
1672 With positive heading shifts, starting in 2.8 this option
1673 caused metadata titles to be removed and changed to regular
1674 headings. This behavior is incompatible with the old
1675 behavior of `--base-header-level` and breaks old workflows,
1676 so we have rolled back the change. Note that there is now an
1677 asymmetry in positive and negative heading level shifts:
1678 With positive shifts, the metadata title stays the same and
1679 does not get changed to a heading in the body, while with
1680 negative shifts, a heading can be converted into the
1681 metadata title.
1683 * Text.Pandoc.Shared: Fix `makeSections` so it doesn't turn
1684 column Divs into sections.
1686 * HTML writer: add task-list class to ul if all elements are
1687 task list items. This will allow styling unordered task
1688 lists in a way that omits the bullet.
1690 * HTML-based templates: Add CSS to suppress bullet on unordered task lists.
1692 * ConTeXt template: Fix `\startcslreferences` and use ConTeXt syntax
1693 conventions (#5945, Denis Maier). The old version had a too large
1694 a skip at the beginning of the reference list.
1696 * LaTeX template: keep the `\author{}` command even if author is not
1697 specified (#5961, Yihui Xie). Avoids a LaTeX warning.
1699 * Generate Emoji module with TH.
1701 + Add Text.Pandoc.Emoji.TH.
1702 + Replace long literal list in Text.Pandoc.Emoji with one-liner
1703 generating it from `emoji.json` using TH.
1704 + Add Makefile target to download `emoji.json`.
1705 + Remove `tools/emoji.hs`.
1707 * Increase GC allocation space for compilation in cabal.project.
1709 * Clean up manual on PDF generation backend options (#5940).
1711 * Update release checklist to include code signing step and update
1712 Windows release-candidate builds (#5950).
1715## pandoc 2.8.0.1 (2019-11-26)
1717 * List `pdf` in `--list-output-formats`.
1718 * EPUB writer: Fix regression with `--css` (#5937). In 2.8 `--css`
1719 would not have an effect on EPUB output.
1720 * RST writer: Use grid tables for one-column tables, since
1721 simple tables clash with heading syntax in this case (#5936).
1722 * Add unexported module Text.Pandoc.Readers.Metadata (see #5914).
1723 * Use doctemplates 0.7.2, which adds the `nowrap` filter to
1724 templates.
1725 * Update default man template using `nowrap` for .TH heading (#5929).
1726 * HTML templates: Add support for `toc-title` variable (#5930,
1727 Alexandre Franke).
1728 * Remove `grffile` (LaTeX package) requirement in MANUAL.txt
1729 (#5927, Ian Max Andolina).
1730 * Use skylighting 0.8.3.
1732## pandoc 2.8 (2019-11-22)
1734 * Improvements in templates system (from doctemplates):
1736 + Pandoc templates now support a number of new features that
1737 have been added in doctemplates: notably, `elseif`, `it`,
1738 partials, filters, and syntax to control nesting and reflowing of
1739 text. These changes make pandoc more suitable out of the
1740 box for generating plain-text documents from data in YAML
1741 metadata. It can create enumerated lists and even tabular
1742 structures.
1743 + We now used templates parameterized on doclayout Doc types.
1744 The main impact of this change is better reflowing of
1745 content interpolated into templates. Previously,
1746 interpolated variables were rendered independently and
1747 interpolated as strings, which could lead to overly long
1748 lines. Now the templates interpolated as Doc values which
1749 may include breaking spaces, and reflowing occurs after
1750 template interpolation rather than before.
1751 + Remove code from the LaTeX, Docbook, and JATS writers that
1752 looked in the template for strings to determine whether it
1753 is a book or an article, or whether csquotes is used. This
1754 was always kludgy and unreliable.
1755 + Change template code to use new API for doctemplates.
1757 * Add `--defaults`/`-d` option. This adds the ability to specify
1758 a collection of default values for options in a YAML file. For
1759 example, one might define a set of defaults for letters,
1760 and then do `pandoc -d letter myletter.md -o myletter.pdf`.
1761 See the documentation of this feature in MANUAL.txt.
1763 * Raise error on unsupported extensions (#4338).
1765 * The `--list-extensions[=FORMAT]` option now lists only
1766 extensions that affect the given FORMAT.
1768 * Add `-L` option as shortcut for `--lua-filter`.
1770 * Add `--shift-heading-level-by` option and deprecate
1771 `--base-heading-level` (#5615). The new option does
1772 everything the old one does, but also allows negative shifts.
1773 It also promotes the document metadata (if not null) to a
1774 level-1 heading with a +1 shift, and demotes an initial
1775 level-1 heading to document metadata with a -1 shift. This
1776 supports converting documents that use an initial level-1
1777 heading for the document title.
1779 * Allow `--metadata-file` to be used repeatedly to include
1780 multiple metadata files (Owen McGrath, #5702). Values in
1781 files specified first will be overridden by those in later
1782 files.
1784 * `--ascii` now uses numerical hex character references (#5718).
1786 * Allow PDF output to stdout (#5751). PDF output now behaves like other
1787 binary formats: it will not be output to the terminal, but can be
1788 sent to stdout using either `-o -` or a pipe. The intermediate format
1789 will be determined based on the setting of `--pdf-engine`.
1791 * Make some writers sensitive to 'unlisted' class on headings (#1762).
1792 If this is present on a heading with the 'unnumbered' class,
1793 the heading won't appear in the TOC. This class has no
1794 effect if 'unnumbered' is not also specified. This affects HTML-based
1795 writers (including slide shows and EPUB), LateX (including beamer), RTF,
1796 and PowerPoint. Other writers do not yet support `unlisted`.
1798 * Fix `gfm_auto_identifiers` behavior with emojis (#5813). Note that
1799 we also now use emoji names for emojis when `ascii_identifiers`
1800 is enabled.
1802 * When `--ipynb-output` is used with the default "best" format, strip
1803 ANSI escape codes for non-ipynb output (#5633). These cause problems
1804 in many formats, including LaTeX.
1806 * Don't look for template files remotely for remote input (#5579).
1807 Previously pandoc would look for the template at a remote URL when a
1808 URL was used for the input file, instead of taking it from the
1809 data directory.
1811 * Allow combining `-Vheader-includes` and `--include-in-header` (#5904).
1812 Previously `header-includes` set as a variable would be
1813 clobbered by material included using `--include-in-header`.
1815 * Change merge behavior for metadata. Previously, if a document
1816 contained two YAML metadata blocks that set the same field, the
1817 conflict would be resolved in favor of the first. Now it is resolved
1818 in favor of the second (due to a change in pandoc-types).
1819 This makes the behavior more uniform with other things in pandoc
1820 (such as reference links and `--metadata-file`).
1822 * Don't add a newline to fragment output if there's already one.
1824 * Change exit codes and document in MANUAL.txt:
1826 + `PandocAppError` was 1, is now 4
1827 + `PandocOptionError` was 2, is now 6
1828 + `PandocMakePDFError` was 65, is now 66
1830 * Switch to new pandoc-types and use Text instead of String [API change].
1831 (Christian Despres, #5884).
1833 * HTML reader:
1835 + Better handling of `<q>` with cite attribute (#5798, Ole Martin Ruud).
1836 If a `<q>` tag has a `cite` attribute, we interpret it as a Quoted
1837 element with an inner Span.
1838 + Add support for HTML `<samp>` element (#5792, Amogh Rathore).
1839 The `<samp>` element is parsed as Code with class `sample`.
1840 + Add support for HTML `<var>` element (#5799, Amogh Rathore).
1841 The `<var>` element is parsed as Code with class `variable`.
1842 + Add support for `<mark>` elements (Florian B, #5797). Parse
1843 `<mark>` elements from HTML as Spans with class `mark`.
1844 + Add support for `<kbd>` elements, parsing them as Span with class
1845 `kbd` (Daniele D'Orazio, #5796).
1846 + Add support for `<dfn>`, parsing this as a Span with class `dfn`
1847 (#5882, Florian Beeres).
1849 * Markdown reader:
1851 + Headers: don't parse content over newline boundary (#5714).
1852 + Handle inline code more eagerly within lists (Brian Leung, #5627).
1853 + Removed some needless lookaheads.
1854 + Don't parse footnote body unless extension enabled.
1855 + Fix small super/subscript issue (#5878). Superscripts and subscripts
1856 cannot contain spaces, but newlines were previously allowed
1857 (unintentionally). This led to bad interactions in some cases
1858 with footnotes. With this change newlines are also not allowed inside
1859 super/subscripts.
1860 + Use `take1WhileP` for `str`, table row. This yields a small but
1861 measurable performance improvement.
1864 * LaTeX reader:
1866 + Fix parsing of optional arguments that contain braced text (#5740).
1867 + Don't try to parse includes if `raw_tex` is set (#5673).
1868 When the `raw_tex` extension is set, we just carry through
1869 `\usepackage`, `\input`, etc. verbatim as raw LaTeX.
1870 + Properly handle optional arguments for macros (#5682).
1871 + Fix `\\` in `\parbox` inside a table cell (#5711).
1872 + Improve `withRaw` so it can handle cases where the token string is
1873 modified by a parser (e.g. accent when it only takes part of a Word
1874 token) (#5686). This fixes a bug that caused the ends of
1875 certain documents to be dropped.
1876 + Handle `\passthrough` macro used by latex writer (#5659).
1877 + Support tex `\tt` command (#5654).
1878 + Search for image with list of extensions like latex does, if an
1879 extension is not provided (#4933).
1880 + Handle `\looseness` command values better (#4439).
1881 + Add `mbox` and `hbox` handling (Vasily Alferov, #5586).
1882 When `+raw_tex` is enabled, these are passed through literally.
1883 Otherwise, they are handled in a way that emulates LaTeX's behavior.
1884 + Properly handle `\providecommand` and `\provideenvironment` (#5635).
1885 They are now ignored if the corresponding command or environment
1886 is already defined.
1887 + Support epigraph command in LaTeX Reader (oquechy, #3523).
1888 + Ensure that expanded macros in raw LaTeX end with a space
1889 if the original did (#4442).
1890 + Treat `ly` environment from lilypond as verbatim (Urs Liska, #5671).
1891 + Add `tikzcd` to list of special environments (Eigil Rischel).
1892 This allows it to be processed by filters, in the same way that
1893 one can do for `tikzpicture`.
1895 * Roff reader:
1897 + Better support for `while`.
1898 + More improvements in parsing conditionals.
1899 + Fix problem parsing comments before macro.
1900 + Improve handling of groups.
1901 + Better parsing of groups (#5410). We now allow groups
1902 where the closing `\\}` isn't at the beginning of a line.
1904 * RST reader:
1906 + Keep `name` property in `imgAttr` (Brian Leung, #5619).
1907 + Fixed parsing of indented blocks (#5753). We were requiring
1908 consistent indentation, but this isn't required by RST.
1909 + Use title, not admonition-title, for admonition title.
1910 This puts RST reader into alignment with docbook reader.
1911 + Don't strip final underscore from absolute URI (#5763).
1912 + Avoid spurious warning when resolving links to internal anchors
1913 ending with `_` (#5763).
1915 * Org reader:
1917 + Accept `ATTR_LATEX` in block attributes (Albert Krewinkel, #5648).
1918 Attributes for LaTeX output are accepted as valid block attributes;
1919 however, their values are ignored.
1920 + Modify handling of example blocks (Brian Leung, #5717).
1921 + Allow the `-i` switch to ignore leading spaces (Brian Leung).
1922 + Handle awkwardly-aligned code blocks within lists (Brian Leung).
1923 Code blocks in Org lists must have their `#+BEGIN_` aligned in a
1924 reasonable way, but their other components can be
1925 positioned otherwise.
1926 + Fix parsing of empty comment lines (#5856, Albert Krewinkel).
1927 Comment lines in Org-mode can be completely empty.
1929 * Muse reader (Alexander Krotov):
1931 + Add RTL support (#5551).
1932 + Do not allow closing asterisks to be followed by `*`.
1933 + Do not split series of asterisks into symbols and emphasis (#5821).
1934 + Do not terminate emphasis on `*` not followed by space.
1936 * DokuWiki reader:
1938 + Parse markup inside monospace ('') (#5916, Alexander Krotov).
1940 * Docx reader:
1942 + Move style-parsing-specific code to a new unexported module,
1943 Text.Pandoc.Readers.Docx.Parse.Styles (Nikolay Yakimov).
1944 + Move StyleMap to docx writer (Nikolay Yakimov).
1945 + Only use LTR when it is overriding BiDi setting (#5723, Jesse
1946 Rosenthal). The left-to-right direction setting in docx is used
1947 in the spec only for overriding an explicit right-to-left setting.
1948 We only process it when it happens in a paragraph set with BiDi.
1949 This is especially important for docs exported from Google Docs,
1950 which explicitly (and unnecessarily) set `rtl=0` for every paragraph.
1951 + Fix list number resumption for sublists (#4324).
1952 The first list item of a sublist should not resume numbering
1953 from the number of the last sublist item of the same level,
1954 if that sublist was a sublist of a different list item.
1956 * Docbook reader:
1958 + Richer parse for admonitions (Michael Peyton Jones, #1234).
1959 Instead of parsing admonitions as blockquotes, we now parse
1960 them as Divs with an appropriate class. We also handle titles
1961 for admonitions as a nested Div with the "title" class.
1962 + Fix nesting of chapters and sections (#5864, Florian Klink,
1963 Félix Baylac-Jacqué).
1964 + Fix bug with entities in mathphrase element (#5885).
1966 * MediaWiki reader:
1968 + Skip optional `{{table}}` template (#5757).
1970 * LaTeX reader:
1972 + Fix dollar-math parsing to ensure that space is left between a
1973 control sequence and a following letter (#5836).
1974 + In `untokenize`, ensure space between control sequence
1975 and following letter (#5836).
1976 + Don't omit macro definitions defined in the preamble.
1977 These were formerly omitted (though they still affected macro
1978 resolution if `latex_macros` was set). Now they are included in
1979 the document body.
1980 + Parse macro definitions as raw LaTeX when `latex_macros` is
1981 disabled. (When `latex_macros` is enabled, we omit them, since
1982 pandoc is applying the macros itself.)
1983 + Fix a hang/memory leak in certain circumstances (#5845).
1984 + Text.Pandoc.Readers.LaTeX.Parsing: add `[Tok]` parameter to
1985 `rawLaTeXParser`. This allows us to repeat retokenizing
1986 unnecessarily in e.g. `rawLaTeXBlock`.
1987 + Add KOMA-Script metadata commands (#5910, Andrew Dunning).
1988 Add all titling commands to existing definition for `\dedication`.
1989 + Parse `\micro` siunitx unit command (#5921, Jose Luis Duran).
1991 * Markdown writer:
1993 + Ensure proper nesting when we have long ordered list markers (#5705).
1994 + Make `plain` output plainer (#5741). Previously we used the following
1995 Project Gutenberg conventions for plain output: extra space before and
1996 after level 1 and 2 headings, all-caps for strong emphasis,
1997 underscores surrounding regular emphasis. Now these
1998 conventions are used only when the `gutenberg` extension is
1999 enabled. By default, Strong and Emph are rendered without
2000 special formatting, and headings are rendered without
2001 special formatting, and with only one blank line following.
2002 To restore the former behavior, use `-t plain+gutenberg`.
2003 + Prefer using raw_attribute when enabled (#4311).
2004 The `raw_attribute` will be used to mark raw bits, even HTML
2005 and LaTeX, and even when `raw_html` and `raw_tex` are
2006 enabled, as they are by default. To get the old behavior,
2007 disable `raw_attribute` in the writer.
2008 + Prefer `pipe_tables` to raw HTML even when we must
2009 lose width information (#2608, #4497).
2010 + Improve escaping in list items (#5918).
2012 * AsciiDoc writer:
2014 + Don't include `+` in code blocks for regular asciidoc.
2015 This is asciidoctor-specific.
2016 + Handle admonitions (#5690).
2018 * LaTeX writer:
2020 + Add thin space when needed in LaTeX quote ligatures (#5684).
2021 + Use `\hspace{0pt}` for 0-width space U+200B (#5756).
2022 + Use `cslreferences` environment for csl bibliographies.
2023 This allows bibliographies to receive special formatting.
2024 The template now contains definition of this environment (enabled
2025 only when CSL is used). It also defines a `\cslhangindent` length.
2026 This is set to 2em by default when the bibliography style specifies
2027 a hanging indent. To override the length, you can use e.g.
2028 `\setlength{\cslhangindent}{7em}` in header-includes.
2029 See jgm/pandoc-citeproc#410.
2030 + Strip off `{}` around locator for biblatex/natbib output (#5722).
2031 + Fix line breaks at start of paragraph (#3324).
2032 Previously we just omitted these. Now we render them
2033 using `\hfill\break` instead of `\\`. This is a revision
2034 of a PR by @sabine (#5591) who should be credited with the idea.
2035 + We no longer look in the template or header-includes to see if a
2036 book or article documentclass is used, or to see whether the
2037 `csquotes` package is used. To use `csquotes` for LaTeX, set
2038 `csquotes` in your variables or metadata. To specify a book
2039 style, use the `documentclass` variable or
2040 `--top-level-division`.
2041 + Fix horizontal rule (#5801). We change to use 0.5pt rather than
2042 `\linethickness`, which apparently only ever worked "by accident"
2043 and no longer works with recent updates to texlive.
2045 * ConTeXt writer:
2047 + Add option to include source files in ConTeXt PDFs (Tristan
2048 Stenner, #5578). The metadata field or variable
2049 (`includesource`) can be set to attach the source documents
2050 to the resulting PDF.
2051 + Customizable type of PDF/A for the ConTeXt writer (Karl
2052 Pettersson, #5608). The `pdfa` variable may now be set in metadata.
2053 Also updated color profile settings in accordance with ConTeXt wiki,
2054 and made ICC profile and output intent for PDF/A customizable
2055 using `pdfaiccprofile` and `pdfaintent`.
2056 + Unit tests: adjust code property to avoid an irrelevant
2057 failure involving inline code with two consecutive newlines.
2058 + Set `csl-hanging-indent` variable if needed.
2059 + Use special environment for CSL references.
2060 + Use braces, not start/stop, for inline language tags.
2061 This prevents unwanted gobbling of spaces.
2063 * HTML writer:
2065 + Use numeric character references with `--ascii` (#5718).
2066 Previously we used named character references with html5 output.
2067 But these aren't valid XML, and we aim to produce html5 that is
2068 also valid XHTML (polyglot markup). (This is also needed for epub3.)
2069 + Ensure that line numbers in code blocks get id-prefix (#5650).
2070 + Ensure TeX formulas are rendered correctly (Philip Pesca,
2071 #5658). The web service passed in to `--webtex` may render
2072 formulas using inline or display style by default.
2073 Prefixing formulas with the appropriate command ensures
2074 they are rendered correctly.
2075 + Render inline formulas correctly with `--webtex` (Philip
2076 Pesca, #5655). We add `\textstyle` to the beginning of the
2077 formula to ensure it will be rendered in inline style.
2078 + Pass through `aria-` attributes to HTML5 (#5642).
2079 + Render a Quoted element with an inner Span with
2080 `cite` attribute using a `<q>` tag (#5798, Ole Martin Ruud).
2081 + Render a Span with class `mark` using the `<mark>` element
2082 (Florian Beeres, #5797).
2083 + Render Span with class `dfn` using `<dfn>` element
2084 (Florian Beeres, #5882).
2085 + Render Span with class `kbd` using `<kbd>` element (Daniele
2086 D'Orazio, #5796).
2087 + Render Code with class `variable` using `<var>` element
2088 (Amogh Rathore, #5799).
2089 + Render Code with class `sample` using `<samp>` element
2090 (Amogh Rathore, #5799).
2092 * EPUB writer:
2094 + Improve splitting into chapters (#5761), using `makeSection`.
2095 + Avoid issuing warning multiple times when title not set (see #5760).
2096 + Use svg tag wrapper for cover image (#5638). In addition, the
2097 code generating the image has been moved to the template, to make it
2098 more customizable. NOTE: Those who use custom EPUB
2099 templates will need to adjust their templates, adding the
2100 code to generate the cover image. (Previously this was just
2101 inserted into 'body'.)
2102 + Improve toChapters, making it work better if there are Divs
2103 around sections.
2104 + Add support for EPUB2 covers (blmage, #3992).
2105 + Do not override existing "fileN" medias when writing to EPUB format
2106 (blmage, #4206).
2107 + Ensure that `lang` variable is set on all chapters (so that it
2108 will add an `xml:lang` attribute on the `html` element).
2110 * RST writer:
2112 + Removed remnants of `admonition-title`.
2113 + Fix handling of `:align:` on figures and images (#4420).
2114 When the image has the `align-right` (etc.) class, we now use
2115 an `:align:` attribute.
2116 + Improve spacing for tables with no width information (#5899).
2117 If a simple table would be too wide, we use a grid table.
2118 + Fix backslash escaping after strings (Albert Krewinkel, #5906).
2119 The check whether a complex inline element following a string must
2120 be escaped, now depends on the last character of the string instead
2121 of the first.
2122 + Ensure there's a blank line before tables (#5898).
2124 * Dokuwiki writer:
2126 + Handle mixed lists without HTML fallback (#5107).
2128 * XWiki writer:
2130 + Fix multiline table (Zihang Chen, #5683).
2132 * Muse writer:
2134 + Add RTL support (Alexander Krotov, #5551).
2136 * Man writer:
2138 + Suppress non-absolute link URLs (#5770). Absolute URLs are
2139 still printed in parentheses following the link text, but relative
2140 URLs are suppressed (just as internal links starting with '#'
2141 always have been).
2142 + Improved definition list term output. Now we boldface code but
2143 not other things. This matches the most common style in man pages
2144 (particularly option lists).
2146 * Ms writer:
2148 + Use `.LP` instead of `.PP` for line block (#5588).
2149 + Use boldface for definition terms in DefinitionLists.
2151 * JATS writer:
2153 + Do not emit empty `<fn-group>` (Mauro Bieg, #5595).
2154 + Update template to v1.1dtd (#5632, Arfon Smith).
2155 + Update `data/jats.csl` to avoid commas between editor
2156 name-part elements. (#5629)
2157 + Add `abstract` to template (Mauro Bieg).
2159 * TEI writer:
2161 + Don't strip hash from internal links (#5922).
2163 * Jira writer:
2165 + Remove escapeStringForJira for code blocks (Jan-Otto Kröpke).
2166 + Remove extraneous newline after single-line block quotes
2167 (#5858, Albert Krewinkel).
2168 + Improve escaping of special characters, using backslash escapes
2169 instead of HTML entities (#5858, Albert Krewinkel).
2171 * OpenDocument writer:
2173 + Avoid duplicate attributes (#4634). We use the innermost
2174 attribute in nested cases.
2175 + If `native_numbering` extension is set, use native OpenDocument
2176 enumeration for figures and tables (Nils Carlson).
2177 + Place caption before table (#5681, Dmitry Pogodin).
2179 * ODT writer:
2181 + Add a test for MathML formulas in ODT documents (blmage).
2182 + Improve the parsing of frames in ODT documents (blmage).
2184 * Docx writer:
2186 + Make handling of styles more robust in localized versions
2187 of Word (Nikolay Yakimov, #5523, #5052, #5074). We now use
2188 style names, not ids, for assigning semantic meaning, since
2189 the ids can change depending on the locale. Style name
2190 comparisons are case-insensitive, since those are
2191 case-insensitive in Word. Since docx style names can have
2192 spaces in them, and pandoc-markdown classes can't, anywhere
2193 when style name is used as a class name, spaces are
2194 replaced with ASCII dashes `-`. Code styles, i.e. "Source
2195 Code" and "Verbatim Char" now honor style inheritance. Docx
2196 Reader now honours "Compact" style (used in
2197 Pandoc-generated docx). The side-effect is that "Compact"
2198 style no longer shows up in docx+styles output. Styles
2199 inherited from "Compact" will still show up.
2200 + Re-use Readers.Docx.Parse for StyleMap (#5766, Nikolay Yakimov).
2201 + Internal improvements and code simplification (Nikolay Yakimov).
2202 + Preserve built-in styles in DOCX with custom style (Ben Steinberg,
2203 #5670). This change prevents custom styles on divs and spans
2204 from overriding styles on certain elements inside them, like
2205 headings, blockquotes, and links. On those elements, the
2206 "native" style is required for the element to display correctly.
2207 This change also allows nesting of custom styles; in order to do so,
2208 it removes the default "Compact" style applied to Plain blocks,
2209 except when inside a table.
2210 + Add `proofState` to list of elements carried over from
2211 settings.xml in the reference.docx (Krystof Beuermann, #5703).
2212 + Change order of `ilvl` and `numId` in `document.xml` (Agustín
2213 Martín Barbero, #5645). Also, make list para properties go first.
2214 This reordering of properties shouldn't be necessary but
2215 it seems Word Online does not understand the docx correctly otherwise.
2217 * PowerPoint writer:
2219 + Code formatting is now context dependent (Jeroen de Haas, #5573).
2220 This commit alters the way in which the Powerpoint writer treats
2221 inline code and code blocks. Inline code is now formatted at
2222 the same size as the surrounding text. Code blocks are now given
2223 a margin and font size according to their level.
2224 Furthermore this commit allows changing the font with which code is
2225 formatted via the `monofont` option.
2226 + Start numbering at appropriate numbers (Jesse Rosenthal, #5709).
2227 Starting numbers for ordered lists were previously ignored. Now
2228 we specify the number if it is something other than 1.
2230 * Text.Pandoc.Parsing:
2232 + Add `manyChar`, `many1Char`, `manyTillChar`, `many1TillChar`,
2233 `many1Till`, `manyUntil`, `mantyUntilChar`: these are like their
2234 unsuffixed counterparts but pack some or all of their output
2235 (Christian Despres, #5884).
2236 + Add `stateAllowLineBreaks` to `ParserState` [API change].
2237 + Fix inline parsing in grid table cells (#5708).
2238 + Change type of `setLastStrPos` so it takes a `Maybe SourcePos`
2239 rather than a `SourcePos` [API change].
2240 + Make `parseFromString'` and `gridTableWith` and
2241 `gridTableWith'` polymorphic in the parser state,
2242 constraining it with `HasLastStrPosition` [API change].
2243 + `parseFromString'`: reset `stateLastStrPos` to `Nothing` before parse.
2244 + Rename takeWhileP -> take1WhileP and clean it up.
2245 (It doesn't match the empty sequence.)
2247 * Text.Pandoc.PDF:
2249 + For PDFs via HTML, ensure temp file is deleted even if the pdf
2250 program is not found (#5720).
2251 + Better detection of a Cygwin environment (#5451).
2252 + Don't assume tex log file is UTF8-encoded (#5872).
2253 Fall back to latin1 if it can't be read as UTF-8.
2255 * Text.Pandoc.Extensions:
2257 + Export new function `getAllExtensions`, which returns the
2258 extensions that affect a given format (whether enabled by default
2259 or not) [API change].
2260 + Change type of `parseFormatSpec` from
2261 `Either ParseError (String, Extensions -> Extensions)`
2262 to `Either ParseError (String, [Extension], [Extension])`
2263 [API change].
2264 + Add `Ext_gutenberg` constructor to `Extension` [API change].
2265 + Add `Ext_native_numbering` constructor to `Extension` [API change]
2266 (Nils Carlson).
2268 * Text.Pandoc.Readers, Text.Pandoc.Writers:
2270 + Change type of `getReader` and `getWriter` so they return
2271 a value in the PandocMonad instance rather than an Either
2272 [API change]. Exceptions for unknown formats and unsupported
2273 extensions are now raised by these functions.
2275 * Text.Pandoc.App
2277 + Change `optMetadataFile` type from `Maybe FilePath` to `[FilePath]`
2278 (Owen McGrath, #5702) [API change].
2280 * Text.Pandoc.Logging:
2282 + Add `CouldNotDeduceFormat` constructor to `LogMessage` [API change].
2283 Issue this warning when we're falling back to markdown or
2284 html because we don't recognize the extension of the input or
2285 output files.
2286 + Clarify warning for missing title (#5760).
2287 + Add `UnusualConversion` constructor to `LogMessage` [API change]
2288 (Mauro Bieg, #5736). Emit warning on `-f latex -o out.pdf`.
2290 * Lua filters:
2292 + Improve function documentation (Albert Krewkinkel).
2293 + Traverse nested blocks and inlines in correct order (Albert
2294 Krewinkel, #5667). Traversal methods are updated to use the new
2295 Walk module so that sequences with nested Inline (or Block) elements
2296 are traversed in the order in which they appear in the linearized
2297 document.
2298 + New unexported module `Text.Pandoc.Lua.Walk` (Albert Krewinkel).
2299 Lua filters must be able to traverse sequences of AST
2300 elements and to replace elements by splicing sequences back
2301 in their place. Special `Walkable` instances can be used for
2302 this; those are provided in a new module
2303 `Text.Pandoc.Lua.Walk`.
2304 + `Attr` values can now be given as normal Lua tables (Albert
2305 Krewinkel, #5744). This can be used as a convenient alternative
2306 to constructing `Attr` values with `pandoc.Attr`. Identifiers
2307 are taken from the `id` field, classes must be given as
2308 space separated words in the `class` field. All remaining fields
2309 are included as attributes. With this change, the following lines
2310 now create equal elements:
2311 ```
2312 pandoc.Span('test', {id = 'test', class = 'a b', check = 1})
2313 pandoc.Span('test', pandoc.Attr('test', {'a','b'}, {check = 1}))
2314 ```
2315 This also works when using the *attr* setter:
2316 ```
2317 local span = pandoc.Span 'text'
2318 span.attr = {id = 'test', class = 'a b', check = 1}
2319 ```
2320 Furthermore, the *attributes* field of AST elements can now be a
2321 plain key-value table even when using the `attributes` accessor:
2322 ```
2323 local span = pandoc.Span 'test'
2324 span.attributes = {check = 1} -- works as expected now
2325 ```
2326 + Export `make_sections`, remove `hierarchicalize`. Lua filters that
2327 use `hierarchicalize` will need to be rewritten to use
2328 `make_sections`.
2329 + Add a `clone()` method to all AST elements (Albert Krewinkel, #5568).
2330 + Fix Lua function names in pandoc.system (niszet). Change
2331 `get_current_directory` to `get_working_directory` and
2332 `with_temp_directory` to `with_temporary_directory`, to
2333 conform to the manual.
2335 * Text.Pandoc.Error:
2337 + Add constructors `PandocUnknownReaderError`,
2338 `PandocUnknownWriterError`, `PandocUnsupportedExtensionError`.
2339 [API change].
2340 + Better message for `PandocShouldNeverHappenError`.
2341 + Better message for `PandocTemplateError`.
2343 * Text.Pandoc.Emoji:
2345 + Update emoji list (#5666). Done using new `tools/emojis.hs`,
2346 which uses the list from the gem GitHub uses. Future updates
2347 can be done with this tool.
2349 * Text.Pandoc.PDF:
2351 + Pass value of `--dpi` to `rsvg-convert` when converting SVG to PDF
2352 in the process of creating a PDF (#5721).
2354 * Text.Pandoc.Shared:
2356 + Replace `Element` and `makeHierarchical` with `makeSections`.
2357 Now that we have Divs, we can use them to represent the
2358 structure of sections, and we don't need a special Element type.
2359 `makeSections` reorganizes a block list, adding Divs with class
2360 `section` around sections, and adding numbering if needed.
2361 This change also fixes some longstanding issues recognizing section
2362 structure when the document contains Divs (#3057, see also #997).
2363 + Remove `Element` type [API change]
2364 + Remove `makeHierarchicalize` [API change]
2365 + Add `makeSections` [API change]
2366 + Export `deLink` [API change]
2367 + Make `filterIpynbOutput` strip ANSI escapes from code in output
2368 for non-ipynb formats, when the default "best" option is used with
2369 `--ipynb-output` (#5633).
2370 + Fix `camelCaseToHyphenated` so it handles `ABCDef` better.
2371 + Improve `isTight` (#5857). If a list has an empty item,
2372 this should not count against its being a tight list.
2373 + Export `htmlSpanLikeElements` [API change] (Daniele D'Orazio, #5796).
2374 This is a mapping of HTML span-like elements that are internally
2375 represented as a Span with a single class.
2376 + Change the implementation of `htmlSpanLikeElements` to retain
2377 classes and attributes (#5882, Florian Beeres).
2379 * Text.Pandoc.Slides: recognize content in Divs when determining
2380 slide level.
2382 * Text.Pandoc.SelfContained:
2384 + Omit content-type on type attribute for `<style>` (#5725).
2385 It doesn't seem to be valid for HTML5, and as a result Chrome
2386 ignores the style element.
2388 * Text.Pandoc.Pretty has been removed [API change].
2389 We now use the new external doclayout module instead.
2391 * Text.Pandoc.Writers.Shared:
2393 + Remove `metaToJSON`, `metaToJSON'` [API change].
2394 + Modify `addVariablesToContext`, `defField`, `setField`, `getField`,
2395 `resetField` to work with Context rather than JSON values. [API change]
2396 + Export new function `endsWithPlain` [API change].
2397 + Change `gridTables` so it does better at keeping the widths of
2398 columns (#4320) and does better at figuring out column widths
2399 when no widths are given (#5899).
2401 * Text.Pandoc.Options
2403 + Change type of `writerTemplate` to `Maybe Template` instead
2404 of `Maybe String`.
2405 + Change To/FromJSON instances for `HTMLMathMethod`, `CiteMethod`,
2406 `ObfuscationMethod`, `TrackChanges`, `WrapOption`,
2407 `TopLevelDivision`, `ReferenceLocation`, `HTMLSlideVariant` (#5790).
2408 In each case we use lowercase (or hyphenated lowercase) for
2409 constructors to line up more closely with command-line option
2410 values. This is a breaking change for those who manually decode or
2411 encode JSON for these data types (e.g. for `ReaderOptions` or
2412 `WriterOptions`).
2414 * Text.Pandoc.Filters:
2416 + Add `FromYAML` instance for `Filter`.
2417 + `applyFilters`: Add and apply filters in order (not reversed)
2418 This changes `applyFilters` from Text.Pandoc.Filter so
2419 that it does a left fold rather than a right fold, applying
2420 the filters in the order listed.
2422 * Text.Pandoc.XML:
2424 + Change `toEntities` to emit numerical hex character references
2425 (#5718).
2427 * Text.Pandoc.Highlighting:
2429 + Add additional listings languages (Wandmalfarbe).
2431 * Text.Pandoc.MediaBag:
2433 + Some of the types using Strings were switched to use FilePath instead
2434 (Christian Despres, #5884).
2436 * Text.Pandoc.Templates:
2438 + Don't import/export `varListToJSON` [API change]. It is removed in
2439 doctemplates >= 0.3.
2440 + Change type of `renderTemplate'` [API change]. Return value is
2441 now Text rather than being polymorphic. This makes room for
2442 upcoming removal of the `TemplateTarget` class from doctemplates.
2444 * Text.Pandoc.App.Opt [API changes]:
2446 + More convenient To/FromJSON instances. Make the field names
2447 like `strip-empty-paragraphs` rather than `optStripEmptyParagraphs`.
2448 Anyone who is using JSON serialization of Opt will need to adjust
2449 things accordingly.
2450 + Change `optHighlightStyle` to a `Maybe String` instead of
2451 `Maybe Style`. Do the parsing/loading of themes later, after
2452 option parsing.
2453 + Remove `optBaseHeaderLevel` from `Opt`. We now just use
2454 `optShiftHeadingLevelBy`, to avoid redundancy.
2455 + Change `optShiftHeadingLevel` to `optShiftHeadingLevelBy` to
2456 match the option.
2457 + Custom FromJSON instance for `LineEnding`, so either `CRLF`
2458 or `crlf` will work.
2459 + Change `optVariables` from `[(String, String)]` to `Context Text`.
2460 + Change `optMetadata` to `Meta`, to allow structured values.
2461 The current behavior of the `--metadata` option stays the same.
2462 + Rename `optReader`, `optWriter` as `optFrom`, `optTo`.
2463 + Add `FromYAML` instances to `Opt` and to all subsidiary types.
2464 + Rename `optMetadataFile` to `optMetadataFiles`.
2465 + Rename `optPDFEngineArgs` to `optPDFEngineOpts`.
2466 + Rename `optWrapText` to `optWrap`.
2467 + Add `IpynbOutput` enumerated type: use this instead of
2468 a string for `optIpynbOutput`.
2469 + Change optInputFiles to a `Maybe [FilePath]` (#5888) [API change].
2470 `Nothing` means: nothing specified.
2471 `Just []` means: an empty list specified (e.g. in defaults).
2472 + List fields in Opt so they aren't reversed (#5881) [API change].
2473 Previously `optIncludeInHeader`, etc. were in reverse order.
2474 + The `sourcefile` variable is now always a list. It used to be
2475 sometimes a string, sometimes a list (when there was more than one).
2477 * Template changes:
2479 + default.latex: added code for `cslreferences` environment,
2480 to be used for pandoc-citeproc references. A `csl-hanging-indent`
2481 variable (set automatically if there is a `hanging-ident`
2482 class on the references Div) controls whether contents of this
2483 environment receive a hanging indent.
2484 + default.latex: Add `space` as default option for xeCJK, so that
2485 spaces between words are preserved (#5855, jeongminkim-islab).
2486 This is necessary for Korean.
2487 + default.latex: Remove include of `grffile` (#5848).
2488 This package used to be needed for proper handling of image filenames
2489 containing periods (in addition to the period before the extension).
2490 It no longer works with the latest LaTeX kernel and graphicx,
2491 so we have removed it. Future versions of graphicx will handle
2492 these filenames without the need for `grffile`.
2493 + default.context: add a saner default for page numbers.
2494 Previously they appeared centered at the top of the page;
2495 now we put them centered at the bottom, unless the `pagenumbering`
2496 variable is set.
2497 + default.context: define a start-stop-pair `cslreferences` to
2498 allow for hanging indents in the bibliography (#5875, Denis Maier).
2499 + default.ms: update defaults. Use Palatino font, use slightly
2500 wider interparagraph space, don't indent paragraphs,
2501 and put page numbers on the bottom. This brings ms output
2502 closer to default LaTeX output.
2503 + default.revealjs: add navigationMode (Mauro Bieg, #5657).
2504 + default.muse: handle multiple authors better.
2505 + docbook4, docbook5 templates: add indentation to body.
2506 + HTML-based templates: use `styles.html` partial to avoid
2507 code duplication.
2508 + HTML-based templates: change indentation of styles in template.
2510 * reference.docx (#5820):
2512 + Change Block Text (block quote) style so that the same font
2513 is used as in the body text, and the block text is indented
2514 left and right.
2515 + All headings now have a uniform color.
2516 + Level-1 headings no longer set `w:themeShade="B5"`.
2517 + Level-2 headings are now 14 point rather than 16 point.
2518 + Level-3 headings are now 12 point rather than 14 point.
2519 + Level-4 headings are italic rather than bold.
2521 * epub.css: Add CSS for hanging-indent div to support pandoc-citeproc's
2522 new hanging indents.
2524 * pandoc.cabal:
2526 + Repeat ghc-options in all stanzas.
2527 + Remove conditionals for ghc < 8 (Albert Krewinkel, #5693).
2528 + Compile with `-Wcpp-undef` and `-fhide-source-paths` when possible
2529 (Albert Krewinkel).
2530 + Add cabal.project to extra-source-files (Albert Krewinkel).
2531 + Add dependency on skylighting-core (#5729). Even though it shouldn't
2532 be needed, some tools require it.
2533 + Require latest pandoc-types, texmath, skylighting, haddock-library.
2534 + Ensure TemplateHaskell is added to other-extensions when it is
2535 used (Vanessa McHale, #5728).
2536 + Remove `derive_json_via_th` flag; always use TH. This cuts down
2537 on code duplication and reduces the chance for errors. See #4083.
2539 * Makefile:
2541 + Add ghci target.
2542 + Add ghcid target.
2543 + Remove references to obsolete flag (#5694).
2545 * Benchmarks: fix failure on ipynb.
2547 * Use MathJax 3 (zorkow).
2549 * KaTeX math: respect `classoption=fleqn` variable,
2550 bump KaTeX version to 0.11.1 (#5815, Mauro Bieg).
2552 * Fix redundant constraint compiler warnings (Pete Ryland, #5625).
2554 * Use throwError instead of fail when appropriate.
2556 * Use Prelude.fail to avoid ambiguity with fail from GHC.Base.
2558 * Add `diff-zip.sh` to tools (John MacFarlane, Agustín Martín Barbero).
2559 This is intended to make it easier to test differences in zip
2560 containers, like epub, docx, or odt.
2562 * Add `.gitattributes` (#5747). This ensures that the golden files
2563 in `test/fb2/reader/` don't have newlines converted. This should fix
2564 a test failure on GitHub CI with Windows.
2566 * Reorder options in `--help`.
2568 * Revise code for HsYAML-0.2.0.0 (@vijayphoenix, #5704).
2570 * Remove blank line in code example in Haddocks (Leif Metcalf, #5679).
2572 * Fix trypandoc with `getReader`/`getWriter` changes.
2574 * Allow building pandoc with GHC 8.8.
2576 * linux tarball: add architecture `-amd64` to filename.
2577 Now it will be: `pandoc-VERSION-linux-ARCH.tar.gz`.
2579 * MANUAL.txt:
2581 + Add section for exit codes.
2582 + Document some pptx limitations in slide show section:
2583 No incremental display (#5689). No pause with `. . .` (#5701).
2584 + reveal.js flags (Mauro Bieg, #5653).
2585 + Document addition of `data-` prefix to unknown attributes in HTML5.
2586 + Link to YAML spec (Mauro Bieg, #5687).
2587 + Fix capitalization of "Linux" (#5859, Marcus Stollsteimer).
2588 + Use a table for exit codes.
2589 + Put all template variable docs into one section.
2590 + Use ATX headers consistently.
2591 + Add fuller documentation of templates (#5779), including
2592 new template syntax, partials, etc.
2593 + Add documentation for the variable `hyperrefoptions` (Wandmalfarbe).
2594 + Clarify when macro definitions are passed as raw latex.
2595 In Markdown input, they are always passed through. In LaTeX, only if
2596 `latex_macros` is disabled.
2597 + Clarify that `--dpi` provides a default and doesn't override
2598 dpi values specified in the images themselves (#5721).
2599 + Document how to use custom writers with `--standalone` (#5866).
2600 + Clarify `--preserve-tabs` default.
2602 * INSTALL.md:
2604 + Fix instructions for libicu.
2605 + Add Void Linux instructions (Volodymyr Kozachnyskyi).
2607 * CONTRIBUTING.md:
2609 + Add information on tests (Agustín Martín Barbero, #5652).
2610 + Add information about command test naming to CONTRIBUTING (Florian B).
2612 * Fix typos in changelog and comments (#5896, Brian Wignall).
2614 * doc/lua-filters.md:
2616 + Fix mistakes in mediabag module docs (#5851, Albert Krewinkel).
2617 + Improve metadata replacement example in lua-filters doc (#5851).
2618 + Mention which Lua version is shipped with pandoc (Albert Krewinkel,
2619 #5892).
2621## pandoc 2.7.3 (2019-06-11)
2623 * Add `jira` (Atlassian's Jira wiki markup) as output format (#2497,
2624 Albert Krewinkel).
2626 * Add `tex_math_dollars` to `multimarkdownExtensions` (#5512).
2627 This form is now supported in multimarkdown,
2628 in addition to `tex_math_double_backslash`.
2630 * Fix `--self-contained` so it works when output format has extensions.
2631 Previously if you used `--self-contained` with `html-smart` or
2632 `html+smart`, it wouldn't work.
2634 * Add template variable `curdir` with working directory
2635 from which pandoc is run (#5464).
2637 * Markdown reader: don't create implicit reference for empty header
2638 (#5549).
2640 * Muse reader: allow images inside link descriptions (Alexander Krotov).
2642 * HTML reader: epub related fixes.
2644 + With epub extensions, check for `epub:type` in addition to `type`.
2645 + Fix problem with noteref parsing which caused block-level
2646 content to be eaten with the noteref.
2647 + Rename `pAnyTag` to `pAny`.
2648 + Refactor note resolution.
2649 + Trim definition list terms (Alexander Krotov).
2651 * LaTeX reader:
2653 + Add braces when resolving `\DeclareMathOperator`
2654 (#5441). These seem to be needed for xelatex but not pdflatex.
2655 + Allow newlines in `\mintinline`.
2656 + Pass through unknown listings language as class (#5540).
2657 Previously if the language was not in the list of languages supported
2658 by listings, it would not be added as a class, so highlighting
2659 would not be triggered.
2660 + `rawLaTeXInline`: Include trailing `{}`s in raw latex commands (#5439).
2661 This change affects the markdown reader and other readers that allow raw
2662 LaTeX. Previously, trailing `{}` would be included for unknown
2663 commands, but not for known commands. However, they are sometimes used
2664 to avoid a trailing space after the command. The chances that a `{}`
2665 after a LaTeX command is not part of the command are very small.
2667 * MediaWiki reader: handle multiple attributes in table row (#5471,
2668 chinapedia).
2670 * Docx reader: Add support for `w:rtl` (#5545). Elements with this
2671 property are put into Span inlines with `dir="rtl"`.
2673 * DocBook reader: Issue `IgnoredElement` warnings.
2675 * Org reader (Albert Krewinkel):
2677 + Fix planning elements in headers level 3 and higher
2678 (#5494). Planning info is now always placed before
2679 the subtree contents. Previously, the planning info was placed after
2680 the content if the header's subtree was converted to a list, which
2681 happens with headers of level 3 and higher per default.
2682 + Omit, but warn about unknown export options. Unknown export
2683 options are properly ignored and omitted from the output.
2684 + Prefer plain symbols over math symbols (#5483).
2685 Symbols like `\alpha` are output plain and unemphasized, not as math.
2686 + Recognize emphasis after TODO/DONE keyword (#5484).
2688 * FB2 reader:
2690 + Skip unknown elements rather than throwing errors (#5560).
2691 Sometimes custom elements are used (e.g. `id` element
2692 inside `author`); previously the reader would halt with an error.
2693 Now it skips the element and issues an `IgnoredElement` warning.
2694 + Parse notes (#5493, Alexander Krotov).
2695 + Internal improvements (Alexander Krotov).
2697 * OpenDocument writer: Roll back automatic figure/table numbering
2698 (#5474). This was added in pandoc 2.7.2, but it makes it impossible
2699 to use pandoc-crossref. So this has been rolled back for now,
2700 until we find a good solution to make this behavior optional
2701 (or a creative way to let pandoc-crossref and this feature
2702 to coexist).
2704 * New module Text.Pandoc.Writers.Jira, exporting `writeJira` [API
2705 change] (Albert Krewinkel).
2707 * EPUB writer:
2709 + Don't include 'landmarks' if there aren't any.
2710 Previously we could get an empty ol element, which caused
2711 validation errors with epubcheck.
2712 + Ensure unique ids for styleesheets in content.opf (#5463).
2713 + Make stylesheet link compatible with kindlegen (#5466,
2714 Eric Schrijver). Pandoc omitted `type="text/css"` from both
2715 `<style>` and `<rel="stylesheet">` elements in all templates, which
2716 is valid according to the spec. However, Amazon’s kindlegen software
2717 relies on this attribute on `<link>` elements when detecting
2718 stylesheets to include.
2720 * HTML writer:
2722 + Output video and audio elements depending on file
2723 extension of the image path (Mauro Bieg).
2724 + Emit empty alt tag in figures (#5518, Mauro Bieg).
2725 The same text is already in the <figcaption> and
2726 screen-readers would read it twice, see #4737.
2727 + Don't add variation selector if it's already there.
2728 This fixes round-trip failures.
2729 + Prevent gratuitous emojification on iOS (#5469).
2730 iOS chooses to render a number of Unicode entities, including '↩', as
2731 big colorful emoji. This can be defeated by appending Unicode
2732 VARIATION SELECTOR-15'/'VARIATION SELECTOR-16'. So we now append this
2733 character when escaping strings, for both '↩' and '↔'. If other
2734 characters prove problematic, they can simply be added to
2735 `needsVariationSelector`. + Add `class="heading"` to level 7+ Headers
2736 rendered as `<p>` elements (#5457).
2738 * RST writer: treat Span with no attributes as transparent (#5446).
2739 Previously an Emph inside a Span was being treated as
2740 nested markup and ignored. With this patch, the Span
2741 is just ignored.
2743 * LaTeX writer:
2745 + Include inline code attributes with `--listings` (#5420).
2746 + Don't produce columns environment unless beamer (#5485).
2747 + Fix footnote in image caption. Regression: the fix for #4683 broke
2748 this case.
2749 + Don't highlight code in headings (#5574). This causes
2750 compilation errors.
2751 + Use `\mbox` to get proper behavior inside `\sout` (#5529).
2753 * EPUB writer: Fix document section assignments (#5546).
2754 For example, introduction should go in bodymatter, not frontmatter, and
2755 epigraph, conclusion, and afterward should go in bodymatter, not
2756 backmatter. For the full list of assignments, see the manual.
2758 * Markdown writer:
2760 + Add backslashes to avoid unwanted interpretation of
2761 definition list terms as other kinds of block (#554).
2762 + Ensure the code fence is long enough (#5519).
2763 Previously too few backticks were used when the code block
2764 contained an indented line of backticks. (Ditto tildes.)
2765 + Handle labels with integer names (Jesse Rosenthal, #5495).
2766 Previously if labels had integer names, it could produce a conflict
2767 with auto-labeled reference links. Now we test for a conflict and
2768 find the next available integer. This involves adding a new state
2769 variable `stPrevRefs` to keep track of refs used in other document
2770 parts when using `--reference-location=block|section`
2772 * Textile writer: fix closing tag for math output (Albert Krewinkel).
2773 Opening and closing tag for math output match now.
2775 * Org writer: always indent src blocks content by 2 spaces (#5440, Albert
2776 Krewinkel). Emacs always uses two spaces when indenting the content of
2777 src blocks, e.g., when exiting a `C-c '` edit-buffer. Pandoc used to
2778 indent contents by the space-equivalent of one tab, but now always uses
2779 two spaces, too.
2781 * Asciidoc writer:
2783 + Use `` `+...+` `` form for inline code.
2784 The old `` `a__b__c` `` yields emphasis inside code in asciidoc.
2785 To get a pure literal code span, use `` `+a__b__c+` ``.
2786 + Use proper smart quotes with asciidoctor (#5487).
2787 Asciidoctor has a different format for smart quotes.
2788 + Use doubled ## when necessary for spans (#5566).
2789 + Ensure correct nesting of strong/emph (#5565): strong
2790 must be the outer element.
2792 * JATS writer:
2794 + Wrap elements with p when needed (#5570). The JATS spec restricts
2795 what elements can go inside `fn` and `list-item`. So we wrap other
2796 elements inside `<p specific-use="wrapper">` when needed.
2797 + Properly handle footnotes (#5511) according to "best practice."
2798 (Group them at the end in `<fn-group>` and use `<xref>` elements
2799 to link them.)
2800 + Fix citations with PMID so they validate (#5481). This includes
2801 an update to data/jats.csl.
2802 + Ensure validity of `<pub-date>` by parsing the date and
2803 extracting year, month, and day, as expected. Also add an
2804 iso-8601-date attribute automatically.
2805 + Don't use `<break>` element for LineBreak. It is only
2806 allowed in a few special contexts, and not in `<p>` elements.
2807 + Don't make `<string-name>` a child of `<string>`, which is illegal.
2809 * FB2 writer:
2811 + Do not wrap note references into `<sup>` and brackets
2812 (Alexander Krotov). Existing FB2 readers, such as FBReader, already
2813 display links with type="note" as a superscript.
2814 + Use genre metadata field (#5478).
2816 * Muse writer: do not escape empty line after `<br>` (Alexander Krotov).
2818 * Add unicode code point in "Missing character" warning (#5538).
2819 If the character isn't in the console font, the message is pretty useless,
2820 so we show the code point for anything non-ASCII.
2822 * Lua: add Version type to simplify comparisons (Albert Krewinkel).
2823 Version specifiers like `PANDOC_VERSION` and `PANDOC_API_VERSION` are
2824 turned into `Version` objects. The objects simplify version-appropriate
2825 comparisons while maintaining backward-compatibility.
2826 A function `pandoc.types.Version` is added as part of the newly
2827 introduced module `pandoc.types`, allowing users to create version
2828 objects in scripts.
2830 * pandoc lua module (Albert Krewinkel):
2832 - Fix deletion of nonexistent attributes (#5569).
2833 - Better tests for Attr and AttributeList.
2835 * pandoc.mediabag lua module (Albert Krewinkel):
2837 + Add function `delete` for deleting a single item.
2838 + Add function `empty` for removing all entries.
2839 + Add function `items` for iterating over mediabag.
2841 * Text.Pandoc.Class: Fix handling of `file:` URL scheme in
2842 `downloadOrRead` (#5517, Mauro Bieg). Previously `file:/`
2843 URLs were handled wrongly and pandoc attempted to make HTTP
2844 requests, which failed.
2846 * Text.Pandoc.MIME: add `mediaCategory` [API change] (Mauro Bieg).
2848 * Text.Pandoc.Shared:
2850 + Add `onlySimpleTableCells` [API change]
2851 (Mauro Bieg) and use this to consolidate simple-table detection
2852 (#5524). This fixes an inconsistency in the HTML reader, which did not
2853 treat tables with `<p>` inside cells as simple.
2854 + `metaToJSON`: treat digits starting with 0 as a string, not a number
2855 (#5479). This fixes a regression in YAML metadata in pandoc 2.7.2.
2857 * Text.Pandoc.Logging: Add `IgnoredElement` constructor for
2858 `LogMessage`. `SkippedConetnt` doesn't work for some XML-based
2859 readers which don't have access to parsec source positions.
2861 * Text.Pandoc.Asciify: Add Turkish undotted-i (#5433, Mauro Bieg).
2863 * Improve output of Lua tests (#5499, Albert Krewinkel).
2864 This makes use of tasty-lua, a package to write tests in Lua
2865 and integrate the results into Tasty output. Test output becomes
2866 more informative: individual tests and test groups become visible
2867 in test output. Failures are reported with helpful error messages.
2869 * Lua: add `pandoc.system` module (#5468, Albert Krewinkel).
2870 The `system` Lua module provides utility functions to interact with the
2871 operating- and file system. E.g.
2872 `print(pandoc.system.get_current_directory())`
2873 or
2874 ```lua
2875 pandoc.system.with_temporary_directory('tikz', function (dir)
2876 -- write and compile a TikZ file with pdflatex
2877 end)
2878 ```
2880 * LaTeX template: Add pdflang to hypersetup if lang is set (#5443).
2882 * beamer template: Fix using Beamer with geometry (#5505, Daniel Maslowski).
2883 Beamer already loads geometry, so we need to use the `\geometry`
2884 command to set geometry options.
2886 * EPUB2/3 templates: Move inline styles to default epub.css (#5466).
2887 NOTE: Those who use a custom CSS stylesheet with EPUB should
2888 add these lines:
2890 code{ white-space: pre-wrap; }
2891 span.smallcaps{ font-variant: small-caps; }
2892 span.underline{ text-decoration: underline; }
2893 q { quotes: "“" "”" "‘" "’"; }
2894 div.column{ display: inline-block; vertical-align: top; width: 50%; }
2896 * reveal.js template:
2898 + Updates for revealjs 3.8.0 (#5435, ebiim).
2899 + Remove reference to head.min.js (#5448, Winnie Hellmann).
2900 NOTE: users will need to update reveal.js to at least 3.8.0
2901 for their presentations generated with this version of pandoc
2902 to work correctly.
2904 * Text.Pandoc.PDF:
2906 + Replace `</>` with literal `/` (#5451).
2907 We use forward-slash for a directory separator in tmpDir,
2908 even on Windows (because that's what tex likes). So we
2909 should not put a backslash between the tmpDir and the
2910 filename on Windows. This is harmless enough in normal
2911 Windows setups, but it breaks on Cygwin.
2912 Thanks to @cc2x for noticing and diagnosing the problem.
2913 + Allow use of `-output-directory` in `--pdf-engine-opt` (#5462).
2914 This is currently possible with `mklatex` and `-outdir`, but
2915 was not yet possible with xelatex and `-output-directory`.
2916 + For PDF via ms/pdfroff, make TOC appear at beginning and in
2917 PDF bookmarks (#5553). Previously the TOC appeared at the end
2918 of the document, and was not bookmarked. To keep it at the end,
2919 add `--pdf-engine-opt=--no-toc-relocation` to your command line.
2921 * Fix broken links in documents (#5473, Shim Myeongseob).
2922 Also, use absolute links to pandoc.org when possible, so that
2923 the links can be followed by people viewing these documents
2924 on GitHub.
2926 * Improved sample lua tikz filter in lua-filters docs (#5445,
2927 Matthew Doty). There are three changes:
2929 + It only processes elements which begin with `\begin{tikzpicture}`
2930 + It uses pdf2svg instead of imagemagick to preserve fidelity
2931 + The images produced have transparent backgrounds
2933 * MANUAL.txt:
2935 + Add note about `title-meta`, `author-meta`, `date-meta` (#5486).
2936 + Fix typo (#5489, Christian Krause).
2938 * add test/tables.xwiki to git and pandoc.cabal (#5498, Mauro Bieg).
2940 * Disable missing-home-modules warning in `stack.yaml`.
2941 Otherwise `stack ghci` fails.
2944## pandoc 2.7.2 (2019-04-05)
2946 * Add XWiki writer (#1800, Derek Chen-Becker).
2947 Add `Text.Pandoc.Writers.XWiki`, exporting `writeXWiki` [API change].
2949 * Dokuwiki Reader: parse single curly brace (#5416, Mauro Bieg).
2951 * Vimwiki reader: improve handling of internal links (#5414).
2952 We no longer append `.html` to link targets, and we add a title
2953 `wikilink`. This mirrors behavior of other wiki readers. Generally
2954 the `.html` extension is not wanted. It may be important for output
2955 to HTML in certain circumstances, but it can always be added using a
2956 filter that matches on links with title `wikilink`.
2958 If your workflow requires the current behavior, here is a lua filter
2959 that will add the `.html` extension:
2961 ```lua
2962 function Link(el)
2963 if el.title == 'wikilink' then
2964 el.target = el.target .. ".html"
2965 end
2966 return el
2967 end
2968 ```
2969 * ipynb reader:
2971 + Use format `ipynb` for raw cell where no format given.
2972 + Avoid introducing spurious `.0` on integers in metadata.
2974 * Markdown reader: fenced div takes priority over setext header.
2976 * HTML reader: read `data-foo` attribute into `foo` (#5392).
2977 The HTML writer adds the `data-` prefix for HTML5 for nonstandard
2978 attributes. But the attributes are represented in the AST without
2979 the `data-` prefix, so we should strip this when reading HTML.
2981 * LaTeX reader: Improve autolink detection (#5340).
2983 * PowerPoint writer (Jesse Rosenthal):
2985 + Expand builtin reference doc to model all layouts.
2986 The previous built-in reference doc had only title and content
2987 layouts. Add in a section-header slide and a two-content slide, so
2988 users can more easily modify it to build their own templates.
2989 + Always open up in slide view. When editing a
2990 template/reference-doc, the user might be in Master view, but when
2991 producing a slide show, it is assumed that slide view will be
2992 desired.
2993 + Remove `handoutsMasterList` from template presentation.xml
2994 + Fix numerous errors in templating (#5402). Previously, some templates
2995 produced by Office 365 (MacOS) would not render with `--reference-doc`
2996 correctly. We now apply correct shapes for content, and build
2997 shape trees correctly.
2998 + Make default placeholder type for template lookup.
2999 + Apply speaker notes to metadata slide if applicable.
3000 + Test for speaker notes after breaking header.
3001 + Correctly handle notes after section-title header.
3002 Previously, if notes came after a section-title header (ie, a level-1
3003 header in a slide-level=2 presentation), they would go on the next
3004 slide. This keeps them on the slide with the header.
3005 + Internal improvements.
3007 * ipynb writer:
3009 + Use format `ipynb` for raw cell where no format given.
3010 According to nbformat docs, this is supposed to render in every
3011 format. We don't do that, but we at least preserve it as a raw
3012 block in markdown, so you can round-trip.
3013 + Consolidate adjacent raw blocks. Sometimes pandoc creates two
3014 HTML blocks, e.g. one for the open tag and one for a close tag.
3015 If these aren't consolidated, only one will show up in output cell.
3016 + Fixed carry-over of nbformat from metadata.
3017 + Preserve `nbformat_minor` if it's given. This helps with round-tripping.
3019 * LaTeX writer:
3021 + Avoid inadvertently creating ?` or !` ligatures (#5407).
3022 These are upside down ? and !, resp.
3023 + Fix footnotes in table caption and cells (#5367). This fixes a
3024 bug wherein footnotes appeared in the wrong order, and with
3025 duplicate numbers, when in table captions and cells.
3026 We now use regular `\footnote` commands, even in the table
3027 caption and the minipages containing cells. Apparently
3028 longtable knows how to handle this.
3030 * HTML writer: Don't add data- prefix to RDFa attributes (#5403).
3032 * JATS writer: Ensure that plain strings go inside `<pub-id>` tag (#5397).
3034 * Markdown writer:
3036 + Better rendering of numbers (#5398). If the number is integral,
3037 we render it as an integral not a float.
3038 + Proper rendering of empty map in YAML metadata (#5398). Should
3039 be `{}`, not empty string.
3040 + Properly escape attributes in Markdown writer (#5369).
3041 + Be sure implicit figures work in list contexts (#5368).
3042 Previously they would sometimes not work: e.g., when they
3043 occurred in final paragraphs in lists that were originally
3044 parsed as Plain and converted later using PlainToPara.
3046 * Docx writer: Use `w:br` without attributes for line breaks (#5377).
3047 We previously added the attribute `type="textWrapping"`, but
3048 this causes problems on Word Online.
3050 * LaTeX template (Andrew Dunning):
3052 + Ensure correct heading/table order (#5365). Improve workaround
3053 (#1658) for tables following headings. The new solution works whether
3054 or not the `indent` variable is enabled.
3055 + Remove `subparagraph` variable. The default is now to use run-in
3056 style for level 4 and 5 headings (`\paragraph` and `\subparagraph`).
3057 To get the previous default behavior (where these were formatted as
3058 blocks, like `\subsubsection`), set the `block-headings` variable.
3059 + Add pandoc to PDF metadata (#5388).
3060 + Group graphics-related code (#5389).
3061 + Move `\setstretch` after front matter (#5179). Ensures that
3062 `\maketitle`, `\tableofcontents`, and so forth are not affected by
3063 changes to line spacing.
3065 * Update data/jats.csl to avoid commas between name-part elements
3066 (#5397).
3068 * Add support for golang (`go`) with `--listings` (#5427).
3070 * Text.Pandoc.Shared - improve `metaToJSON` behavior with numbers.
3071 We now do a better job marshalling numbers from MetaString
3072 or MetaInlines into JSON Number.
3074 * Text.Pandoc.Writers.Shared: `metaValueToJSON`: use Number Values for
3075 integers. Pandoc's MetaValue doesn't have a distinguished number type,
3076 so numbers are put in MetaStrings. If the MetaString consists
3077 entirely of digits, we convert it to a Number. We should probably
3078 consider adding a MetaNumber constructor to MetaValue, for better
3079 round-tripping with JSON etc. This change aids round-tripping in
3080 ipynb metadata fields, like `toc_depth`.
3082 * Text.Pandoc.Class: `fetchItem`: don't treat UNC paths as
3083 protocol-relative URLs (#5127). These are paths beginning `//?/UNC/...`.
3085 * Text.Pandoc.ImageSize: Improve `pdfSize` so it handles
3086 a wider range of PDFs (#4322, with help from Richard Davis).
3088 * Text.Pandoc.Pretty: avoid stack overflow by using strict sum (#5401).
3090 * Fix harmless error in file-scope code (#5422).
3092 * MANUAL.txt:
3094 + Improve 'header' and 'heading' usage (#5423, Andrew
3095 Dunning). The term 'header' was being used where 'heading'
3096 is more appropriate.
3097 + Add paragraph on options affecting markdown in ipynb.
3099 * stack.yaml - remove -Wmissing-home-modules
3100 This seems to cause problems with stack ghci. Remove RTS options.
3102 * Add ghc-options to cabal.project.
3104 * appveyor.yml - use ghc 8.6.4. Fixes segfault issues on Windows (#5037).
3106 * linux build process: Remove clone of pandoc-citeproc (#5366).
3107 It wasn't being used; cabal.project specifies the version to use.
3109## pandoc 2.7.1 (2019-03-14)
3111 * Add tectonic as an option for --pdf-engine (#5345, Cormac Relf).
3112 Runs tectonic on STDIN instead of a temporary .tex file, so that it
3113 looks in the working directory for `\include` and `\input` like the rest
3114 of the engines. Allows overriding the output directory
3115 args with `--pdf-engine-opt=--outdir --pdf-engine-opt="$DIR"`.
3117 * Allow `-o/--output` to be used with `--print-default-data-file`,
3118 `--print-highlighting-style`, `--print-default-template`.
3119 Note that `-o` must occur BEFORE the `--print*` command on the command
3120 line (this is documented, #5357).
3122 * LaTeX reader:
3124 + Support `\underline`, `\ul`, `\uline` (#5359, Paul
3125 Tilley). These are parsed as a Span with class `underline`, as
3126 with other readers.
3127 + Ensure that `\Footcite` and `\Footcites` get put in a note.
3129 * ipynb reader:
3131 + Remove sensitivity to `raw_html`, `raw_tex` extensions.
3132 We now include every output format. Pruning is handled by
3133 `--ipynb-output`.
3134 + Better handling of cell metadata. We now include even complex cell
3135 metadata in the Div's attributes (as JSON, in complex cases, or
3136 as plain strings in simple cases).
3138 * ipynb writer:
3140 + Recurse into native divs for output cell data (#5354).
3141 + Render cell metadata fields from div attributes.
3143 * Docx writer: avoid extra copy of abstractNum and num elements
3144 in numbering.xml. This caused pandoc-produced docx files to
3145 be uneditable using Word Online (#5358).
3147 * Markdown writer: improve handling of raw blocks/inline.
3148 We now emit raw content using `raw_attribute` when no more
3149 direct method is available. Use of `raw_attribute` can be
3150 forced by disabling `raw_html` and `raw_tex`.
3152 * LaTeX writer: Add classes for frontmatter support (#5353, Andrew Dunning)
3153 and remove frontmatter from `scrreprt`.
3155 * LaTeX template:
3157 + Improve readability (#5363, Andrew Dunning).
3158 + Robust section numbering removal (#5351, Andrew Dunning).
3159 Ensures that section numbering does not reappear with custom
3160 section levels. See <https://tex.stackexchange.com/questions/473653/>.
3161 + Better handling of front/main/backmatter (#5348).
3162 In pandoc 2.7 we assumed that every class with chapters would accept
3163 `\frontmatter`, `\mainmatter`, and `\backmatter`. This is not so (e.g.
3164 report does not). So pandoc 2.7 breaks on report class by including an
3165 unsupported command. Instead of the `book-class` variable, we use two
3166 variables, `has-chapters` and `has-frontmatter`, and set these
3167 intelligently in the writer.
3169 * Text.Pandoc.Shared: Improve `filterIpynbOutput`. Ensure that
3170 images are prioritized over text. `best` should include everything
3171 for ipynb.
3173 * Tests.Old: specify `--data-dir=../data` to ensure tests can find
3174 data files even if they haven't been installed. Remove old
3175 `pandoc_datadir` environment variable, which hasn't done anything for a
3176 long time.
3178 * MANUAL.txt: Add recommendation to use `raw_attribute` with ipynb (#5354).
3180 * Use cmark-gfm-hs 0.1.8 (note that 0.1.7 is buggy).
3182 * Use latest pandoc-citeproc, texmath.
3185## pandoc 2.7 (2019-03-03)
3187 * Use XDG data directory for user data directory (#3582). Instead of
3188 `$HOME/.pandoc`, the default user data directory is now
3189 `$XDG_DATA_HOME/pandoc`, where `XDG_DATA_HOME` defaults to
3190 `$HOME/.local/share` but can be overridden by setting the
3191 environment variable. If this directory is missing, then
3192 `$HOME/.pandoc` is searched instead, for backwards compatibility.
3193 However, we recommend moving local pandoc data files from
3194 `$HOME/.pandoc` to `$HOME/.local/share/pandoc`. On Windows the
3195 default user data directory remains the same.
3197 * Slide show formats behavior change: content under headers
3198 less than slide level is no longer ignored, but included in
3199 the title slide (for HTML slide shows) or in a slide after
3200 the title slide (for beamer). This change makes possible
3201 2D reveal.js slideshows with content in the top slide on
3202 each stack (#4317, #5237).
3204 * Add command line option `--ipynb-output=all|none|best` (#5339).
3205 Output cells in ipynb notebooks often contain several different
3206 versions of an output, with different MIME types, e.g. an HTML
3207 table and a plain-text fallback. Specifying `--ipynb-output=best`
3208 (the default) ensures that the best version for the output format
3209 is used. `all` includes all versions, and `none` suppresses them
3210 all, leaving output cells empty.
3212 * `asciidoctor` is now an output format separate from `asciidoc`,
3213 to accommodate some minor implementation-specific differences
3214 (currently just in the treatment of display math).
3216 * Add `latexmk` as an option for `--pdf-engine` (#3195).
3217 Note that you can use `--pdf-engine-opt=-outdir=bar` to specify
3218 a persistent temp directory.
3220 * Markdown reader:
3222 + Improve tight/loose list handling (#5285). Previously the
3223 algorithm allowed list items with a mix of Para and Plain, which
3224 is never wanted.
3225 + Add newline when parsing blocks in YAML (#5271). Otherwise last
3226 block gets parsed as a Plain rather than a Para. This is a
3227 regression in pandoc 2.x. This patch restores pandoc 1.19
3228 behavior.
3229 + Make `yamlToMeta` respect extensions (#5272, Mauro Bieg).
3230 This adds a `ReaderOptions` parameter to `yamlToMeta` [API change].
3231 + Fix bug parsing fenced code blocks (#5304). Previously parsing
3232 would break if the code block contained a string of backticks of
3233 sufficient length followed by something other than end of line.
3235 * LaTeX reader: don't let `\egroup` match `{`. `braced` now actually
3236 requires nested braces. Otherwise some legitimate command and
3237 environment definitions can break.
3239 * Docx reader (Jesse Rosenthal):
3241 + Rename `getDocumentPath` as `getDocumentXmlPath`.
3242 + Use field notation for setting `ReaderEnv`.
3243 + Figure out `document.xml` path once at the beginning of parsing, and
3244 add it to the environment, so we can avoid repeated lookups.
3245 + Dynamically determine main document xml path (#5277).
3246 The desktop Word program places the main document file in
3247 `word/document.xml`, but the online word places it in
3248 `word/document2.xml`. This file path is actually stated in the root
3249 `_rels/.rels` file, in the `Relationship` element with an
3250 `http://../officedocument` type.
3251 + Fix paths in archive to prevent Windows failure (#5277).
3252 Some paths in archives are absolute (have an opening slash) which, for
3253 reasons unknown, produces a failure in the test suite on MS
3254 Windows. This fixes that by removing the leading slash if it exists.
3255 + Add comments to aid code readability.
3256 + Trim space inside the last inline (#5273).
3257 + Unwrap sdt elements in footnotes and comments (#5302).
3259 * Muse reader (Alexander Krotov):
3261 + Test that block level markup does not break `<verbatim>`.
3262 + Add secondary note support.
3264 * ipynb reader: handle images referring to attachments. Previously
3265 we didn't strip off the attachment: prefix, so even though the
3266 attachment was available in the mediabag, pandoc couldn't find it.
3268 * JATS reader:
3270 + Fix parsing of figures (#5321). This ensures that a figure
3271 containing a single image is parsed as a pandoc "implicit
3272 figure" (i.e., a Para with a single Image whose title attribute
3273 begins with `fig:`). More complex figures will still be parsed
3274 as divs.
3275 + Support `fig-group` block element (#5317).
3276 + Handle citations with multiple references (#5310). The `rid`
3277 attribute can have a space-separated list of ids.
3279 * AsciiDoc Writer: Add `writeAsciiDoctor` [API change, Tarik Graba].
3280 Handle display math appropriately for Asciidoctor.
3282 * JATS writer: wrap figure caption in `<p>` to fix validation (#5290,
3283 Mauro Bieg).
3285 * HTML writer:
3287 + Implement WAI-ARIA roles for (end)notes, citations, and
3288 bibliography (#4213). Note that doc-biblioref is only used when
3289 link-citations produces links, since it belongs on links.
3290 + Include content (including speaker notes) in title slides
3291 (#4317, #5237).
3293 * ipynb writer:
3295 + Ensure final newline.
3296 + Only include metadata under `jupyter` field.
3297 + Don't create attachments for images with absolute URIs,
3298 including data: URIs (#5303).
3299 + Keep plain text fallbacks in output even if a richer format is
3300 included (#5293). We don't know what output format will be needed.
3301 See the `--ipynb-output` command line option for a way to control
3302 what formats are included in the output.
3304 * Markdown writer: use `markdown="1"` when appropriate for Divs:
3305 when `native_divs` and `markdown_in_html_blocks` are disabled
3306 but `raw_html` and `markdown_attribute` are enabled.
3308 * LaTeX writer:
3310 + Use right fold for `escapeString`. This is more elegant than
3311 the explicit recursive code we were using.
3312 + Avoid `{}` after control sequences when escaping.
3313 `\ldots{}.` doesn't behave as well as `\ldots.` with the latex
3314 ellipsis package. This patch causes pandoc to avoid emitting
3315 the `{}` when it is not necessary. Now `\ldots` and other
3316 control sequences used in escaping will be followed by either
3317 a `{}`, a space, or nothing, depending on context.
3318 + For beamer, include contents under headers superordinate to
3319 slidelevel (#4317). Currently we keep the fancy title slide, and
3320 add a new slide with the same title and whatever content was
3321 under the header.
3323 * Powerpoint writer (Jesse Rosenthal): support underlines.
3324 Use span with single class "underline" as in docx writer.
3326 * Muse writer: escape secondary notes (Alexander Krotov).
3328 * FB2 writer: add section identifiers support (#5229, John KetzerX).
3330 * Make `--fail-if-warnings` work for PDF output (#5343).
3332 * Lua filters (Albert Krewinkel):
3334 + Load module `pandoc` before calling `init.lua` (#5287). The file
3335 `init.lua` in pandoc's data directory is run as part of pandoc's
3336 Lua initialization process. Previously, the `pandoc` module was
3337 loaded in `init.lua`, and the structure for marshaling was
3338 set up after. This allowed simple patching of element
3339 marshaling, but made using `init.lua` more difficult. Now, all
3340 required modules are now loaded before calling `init.lua`. The
3341 file can be used entirely for user customization. Patching
3342 marshaling functions, while discouraged, is still possible via
3343 the `debug` module.
3344 + All Lua modules bundled with pandoc, i.e., `pandoc.List`,
3345 `pandoc.mediabag`, `pandoc.utils`, and `text` are re-exported from the
3346 `pandoc` module. They are assigned to the fields `List`, `mediabag`,
3347 `utils`, and `text`, respectively.
3349 * Text.Pandoc.Lua (Albert Krewinkel):
3351 + Split `StackInstances` into smaller Marshaling modules.
3352 + Get `CommonState` from Lua global. This allows more control over
3353 the common state from within Lua scripts.
3355 * LaTeX template:
3357 + Support the `subject` metadata variable (#5289, Pascal Wagler).
3358 + Add `\frontmatter`, `\mainmatter`, `\backmatter`
3359 for book classes (#5306).
3361 * epub3 template: Add titlepage class to section (#5269).
3363 * HTML5 template: Add ARIA role `doc-toc` for table of contents (#4213).
3365 * Make `--metadata-file` use selected extensions (#5279, #5272, Mauro Bieg).
3367 * Text.Pandoc.Shared:
3369 + Remove `withTempDir` [API change].
3370 + Add new exported function `defaultUserDataDirs` [API change].
3371 + Add `filterIpynbOutput` [API change].
3372 + `compactify`: Avoid lists with a mix of Plain and Para elements
3373 (#5285).
3375 * Text.Pandoc.Translations: reorder alphabetically and remove `Author`
3376 (#5334, Mauro Bieg).
3378 * Text.Pandoc.Extensions:
3380 + More carefully groom ipynb default extensions.
3381 + Add `all_symbols_escapable` to `githubMarkdownExtensions`.
3383 * Text.Pandoc.PDF:
3385 + Use system temp directory when possible (#1192). Previously we
3386 created temp dirs in the working directory, partly (a) because
3387 there were problems using the system temp directory on Windows,
3388 when their pathnames included tildes, and partly (b) because
3389 programs like `epstopdf.pl` would not be allowed to write to
3390 directories outside the working directory in restricted mode. We
3391 now (a) use the system temp dir except when the path includes
3392 tildes, and (b) set `TEXMFOUTPUT` when creating the PDF, so that
3393 subsidiary programs can use the system temp directory. This
3394 addresses problems that occurred when pandoc was used in a
3395 synced directory (such as Dropbox).
3396 + Change types of subsidiary functions to PandocIO, to allow
3397 warnings to be threaded through (#5343).
3399 * Text.Pandoc.MIME: add WebP (#5267, Mauro Bieg).
3401 * Tests: avoid calling `findPandoc` multiple times.
3403 * Old tests: remove need for temp files by using `pipeProcess`.
3405 * Added simple ipynb reader/writer tests (#5274).
3407 * Rearrange `--help` output in a more rational way, with common
3408 options at the beginning and options grouped by function (#5336).
3410 * trypandoc: Add JATS and other missing formats (Arfon Smith, #5291).
3412 * Add missing copyright notices and remove license boilerplate (#4592,
3413 Albert Krewinkel).
3415 * Use latest basement/foundation on 32bit windows.
3417 * Use latest skylighting (#5328). Custom syntax definitions no
3418 longer try to load `language.dtd`.
3420 * Require texmath 0.11.2.1
3422 * Use latest pandoc-citeproc (0.16.1.1).
3424 * MANUAL.txt:
3426 + Clarify variable substitution indentation in templates (#5338,
3427 Agustín Martín Barbero).
3428 + Reorder custom-styles section (#5324, Mauro Bieg).
3430## pandoc 2.6 (2019-01-30)
3432 * Support ipynb (Jupyter notebook) as input and output format.
3434 + Add `ipynb` as input and output format (extension `.ipynb`).
3435 + Added Text.Pandoc.Readers.Ipynb [API change].
3436 + Added Text.Pandoc.Writers.Ipynb [API change].
3437 + Add `PandocIpynbDecodingError` constructor to Text.Pandoc.Error.Error
3438 [API change].
3439 + Depend on ipynb library.
3440 + Note: there is no template for ipynb.
3442 * Add DokuWiki reader (#1792, Alexander Krotov). This adds
3443 Text.Pandoc.Readers.DokuWiki [API change], and adds `dokuwiki`
3444 as an input format.
3446 * Implement task lists (#3051, Mauro Bieg). Added `task_lists`
3447 extension. Task lists are supported from markdown and gfm input.
3448 They should work, to some degree, in all output formats, though in
3449 most formats you'll get a bullet list with a unicode character for
3450 the box. In HTML, you get checkboxes and in LaTeX/PDF output, a
3451 box is used as the list marker. API changes:
3453 + Added constructor `Ext_task_lists` to `Extension`.
3454 + Added `taskListItemFromAscii` and `taskListItemToAscii` to
3455 Text.Pandoc.Shared.
3457 * Allow some command line options to take URL in addition to FILE.
3458 `--include-in-header`, `--include-before-body`, `--include-after-body`.
3460 * HTML reader:
3462 + Handle empty `start` attribute (see #5162).
3463 + Treat `textarea` as a verbatim environment (#5241) and preserve
3464 spacing.
3466 * RST reader:
3468 + Change treatment of `number-lines` directive (Brian Leung,
3469 #5207). Directives of this type without numeric inputs should
3470 not have a `startFrom` attribute; with a blank value, the
3471 writers can produce extra whitespace.
3472 + Removed superfluous `sourceCode` class on code blocks (#5047).
3473 + Handle `sourcecode` directive as synonynm for `code` (#5204).
3475 * Markdown reader:
3477 + Remove `sourceCode` class for literate Haskell code blocks
3478 (#5047). Reverse order of `literate` and `haskell` classes on
3479 code blocks when parsing literate Haskell, so `haskell` is
3480 first.
3481 + Treat `<textarea>` as a verbatim environment (#5241).
3483 * Org reader:
3485 + Handle `minlevel` option differently (#5190, Brian Leung).
3486 When `minlevel` exceeds the original minimum level observed in
3487 the file to be included, every heading should be shifted
3488 rightward.
3489 + Allow for case of `:minlevel == 0` (#5190).
3490 + Fix treatment of links to images (#5191, Albert Krewinkel).
3491 Links with descriptions which are pointing to images are no
3492 longer parsed as inline images, but as links.
3493 + Add support for #+SELECT_TAGS (Brian Leung).
3494 + Separate filtering logic from conversion function (Brian Leung).
3496 * TWiki reader: Fix performance issue with underscores (#3921).
3498 * MediaWiki reader: use `_` instead of `-` in auto-identifiers (#4731).
3499 We may not still be exactly matching mediawiki's algorithm.
3501 * LaTeX reader:
3503 + Remove `sourceCode` class for literate Haskell code blocks
3504 (#5047). Reverse order of `literate` and `haskell` classes on
3505 code blocks when parsing literate Haskell, so `haskell` is
3506 first.
3507 + Support `\DeclareMathOperator` (#5149).
3508 + Support `\inputminted` (#5103).
3509 + Support `\endinput` (#5233).
3510 + Allow includes with dots like `cc_by_4.0`. Previously the `.0`
3511 was interpreted as a file extension, leading pandoc not to add
3512 `.tex` (and thus not to find the file). The new behavior matches
3513 tex more closely.
3515 * Man reader:
3517 + Use `mapLeft` from Shared instead of defining own.
3519 * Docx reader (Jesse Rosenthal):
3521 + Handle level overrides (#5134).
3523 * Docx writer:
3525 + Support custom properties (#3024, #5252, Agustín Martín Barbero).
3526 Also supports additional core properties: `subject`, `lang`,
3527 `category`, `description`.
3528 + Make Level into a real type, instead of an alias for a tuple
3529 (Jesse Rosenthal).
3531 * ICML writer (Mauro Bieg):
3533 + Support custom-styles (#5137, see #2106).
3534 + Support unnumbered headers (#5140).
3536 * Texinfo writer: Use header identifier for anchor if present (#4731).
3537 Previously we were overwriting an existing identifier with a new one.
3539 * Org writer: Preserve line-numbering for example and code blocks
3540 (Brian Leung).
3542 * Man/Ms writers: Don't escape `-` as `\-`. The `\-` gets rendered
3543 in HTML and PDF as a unicode minus sign.
3545 * Ms writer: Ensure we have a newline after .EN in display math (#5251).
3547 * RST writer: Don't wrap simple table header lines (#5128).
3549 * Asciidoc writer: Shorter delimiters for tables, blockquotes
3550 (#4364). This matches asciidoctor reference docs.
3552 * Dokuwiki writer: Remove automatic `:` prefix before internal image
3553 links (#5183, Damien Clochard). This prevented users from making
3554 relative image links.
3556 * Zimwiki writer: remove automatic colon prefix before internal
3557 images (#5183, Damien Clochard).
3559 * MediaWiki writer: fix caption, use 'thumb' instead of 'frame'
3560 (#5105). Captions used to have the word 'caption' prepended; this
3561 has been removed. Also, 'thumb' is used instead of 'frame' to
3562 allow images to be resized.
3564 * reveal.js writer:
3566 + Ensure that we don't get > 2 levels of section nesting,
3567 even with slide level > 2 (#5168).
3568 + If slide level == N but there is no N-level header, make
3569 sure the next header with level > N gets treated as a slide
3570 and put in a section, rather than remaining loose (#5168).
3572 * Markdown writer:
3574 + Make `plain` RawBlocks pass through in `plain` output.
3575 + Include needed whitespace after HTML figure (#5121).
3576 We use HTML for a figure in markdown dialects that can't
3577 represent it natively.
3579 * Commonmark writer:
3581 + Fix handling of SoftBreak with `hard_line_breaks` (#5195).
3582 + Implement `--toc` (`writerTableOfContents`)
3583 in commonmark/gfm writers (#5172).
3585 * EPUB writer:
3587 + Ensure that picture transforms are done on metadata too.
3588 + Small fixes to `nav.xhtml`:
3589 Add 'landmarks' id attribute to the landmarks nav.
3590 Replace old default CSS removing numbers from ol.toc li
3591 with new rules that match `nav#toc ol, nav#landmarks ol`.
3592 We keep the `toc` class on `ol` for backwards compatibility.
3594 * LaTeX writer:
3596 + Make raw content marked `beamer` pass through in `beamer`
3597 output (pandoc/lua-filters#40).
3598 + Beamer: avoid duplicated `fragile` property in some cases
3599 (#5208).
3600 + Add `#` special characters for listings (#4939).
3601 This character needs special handling in `\lstinline`.
3603 * RTF writer: use `toTableOfContents` from Shared to replace
3604 old duplicated code.
3606 * Pptx writer:
3608 + Support custom properties. Also supports additional core
3609 properties: `subject`, `category`, `description` (#5252,
3610 Agustín Martín Barbero).
3611 + Use `toTableOfContents` from Shared to replace old duplicated code.
3613 * ODT writer (Augustín Martín Barbero):
3615 + Fix typo in custom properties (#2839).
3616 + Improve standard properties, including the following core
3617 properties: `generator` (Pandoc/VERSION), `description`, `subject`,
3618 `keywords`, `initial-creator` (from authors), `creation-date`
3619 (actual creation date) (#5252).
3621 * Custom writers:
3623 + Allow '-' in filenames for custom lua writers (#5187).
3624 + sample.lua: add `SingleQuoted`, `DoubleQuoted` (#5104).
3625 + sample.lua: Add a missing `>` (MichaWiedenmann).
3627 * reveal.js template: Add `zoomKey` config (#4249).
3629 * HTML5 template: Remove unnecessary type="text/css" on style and
3630 link for HTML5 (#5146).
3632 * LaTeX template (Andrew Dunning, except where noted):
3634 + Prevent fontspec from scaling `mainfont` to match the default
3635 font, Latin Modern. A main font set to 12pt could
3636 previously appear between 11pt to 13pt depending on its design.
3637 To return to the earlier rendering, use `-V
3638 mainfontoptions="Scale=MatchLowercase"` (#5212, #5218).
3639 + Display monospaced fonts without TeX ligatures when using
3640 `--pdf-engine=lualatex`. It now matches the behaviour of other
3641 engines (#5212, #5218).
3642 + Remove the deprecated `romanfont` variable. The functionality of
3643 `mainfont` is identical (#5218).
3644 + Render `\subtitle` with the standard document classes.
3645 Previously, `subtitle` only appeared when using the KOMA-Script
3646 classes or Beamer (#5213, #5244).
3647 + Use Babel instead of Polyglossia for LuaLaTeX. This avoids
3648 several language selection problems, notably with retaining
3649 French spacing conventions when switching to a verbatim
3650 environment or another language; and in printing Greek text
3651 without hyphenation (#5193).
3652 + Use the [`xurl`](https://ctan.org/pkg/xurl) package if
3653 available, improving the appearance of URLs by allowing them to
3654 break at additional points (#5193).
3655 + Use [`bookmark`](https://ctan.org/pkg/bookmark) if available
3656 to correct heading levels in PDF bookmarks: see the [KOMA-Script
3657 3.26 release notes](https://komascript.de/release3.26) (#5193).
3658 + Require the [`xcolor`](https://ctan.org/pkg/xcolor) package to
3659 avoid a possible error when using additional packages alongside
3660 footnotes in tables (#5193, closes #4861).
3661 + Remove obsolete `fixltx2e` package, which has no functionality
3662 with TeX Live 2015 or later (#5193).
3663 + Allow multiple `fontfamilies.options` (#5193, closes #5194).
3664 + Restrict `institute` variable to Beamer (#5219).
3665 + Use [`footnotehyper`](https://ctan.org/pkg/footnotehyper)
3666 package if available to make footnotes in tables compatible
3667 with `hyperref` (#5234).
3668 + Number parts and chapters in book classes only if the
3669 `numbersections` variable is set, for consistency with other
3670 output formats. To return to the previous behaviour, use
3671 `-V numbersections -V secnumdepth=0` (#5235).
3672 + Reindent file (#5193).
3673 + Use built-in parskip handling with KOMA-Script classes (#5143, Enno).
3674 + Set default listings language for lua, assembler (#5227, John
3675 MacFarlane). Otherwise we get an error when trying to compile code
3676 with lua or assembler code. To change the default dialect
3677 (currently 5.3 for lua and x86masm for assembler), you can use
3678 `--include-in-header` to inject something like
3679 `\lstset{defaultdialect=[5.2]Lua}`.
3681 * Text.Pandoc.Readers: Changed types of `readJSON`; it now runs
3682 in an instance of PandocMonad, like the other readers and
3683 writers. [API change]
3685 * Text.Pandoc.Writers: Changed types of `writeJSON`; it now runs
3686 in an instance of PandocMonad, like the other readers and
3687 writers. [API change]
3689 * Text.Pandoc.Error: Added `PandocUTF8DecodingError` constructor
3690 for `PandocError`. [API change]
3692 * Text.Pandoc.Writers.Shared - add `toTableOfContents`. [API change]
3693 This is refactored out from the Markdown writer.
3694 It can be used in other writers to create a table of contents.
3696 * Improve error messages for UTF-8 decoding errors. Now we give
3697 the filename and byte offset (#4765).
3699 * Text.Pandoc.XML: Strip out illegal XML characters in
3700 `escapeXMLString` (#5119).
3702 * Text.Pandoc.Process: update `pipeProcess` (Albert Krewinkel).
3703 The implementation of `pipeProcess` was rewritten to fix sporadic
3704 failures caused by prematurely closed pipes.
3706 * Use `safeRead` instead of `read` everywhere in the code
3707 (John MacFarlane, Mauro Bieg, #5162, #5180).
3709 * Text.Pandoc.SelfContained: Decompress `.svgz` when
3710 converting to `data:` URI (#5163, Alexander Krotov).
3712 * Text.Pandoc.Parsing: Remove unused `HasHeaderMap`
3713 (#5175, Alexander Krotov). [API change]
3715 * Normalize Windows paths to account for change in ghc 8.6 (#5127).
3716 When pandoc is compiled with ghc 8.6, Windows paths are treated
3717 differently, and paths beginning `\\server` no longer work.
3718 This commit rewrites such patsh to `\\?\UNC\server` which works.
3719 The change operates at the level of argument parsing, so it
3720 only affects the command line program.
3722 * Simplify/fix reading of `--metadata` values on command line
3723 to avoid problems relating to hvr/HsYAML#7 (#5177).
3725 * data/pandoc.lua: auto-fix nested constructor arguments (Albert
3726 Krewinkel). Incorrect types to pandoc element constructors are
3727 automatically converted to the correct types when possible. This was
3728 already done for most constructors, but conversions are now also done
3729 for nested types (like lists of lists).
3731 * Removed custom Setup.hs, use build-type: simple. The only thing we
3732 gained from the custom build was automatic installation of the man
3733 page when using 'cabal install'. But custom builds cause problems,
3734 e.g., with cross-compilation. Installation of the man page is
3735 better handled by packagers. Note to packagers (e.g. Debian): it
3736 may be necessary to add a step installing the man page with the
3737 next release.
3739 * Allow latest http-client, tasty, zip-archive, Glob.
3741 * Require skylighting >= 0.7.5, adding support for sml, J,
3742 typescript.
3744 * Tests: Cleaned up `findPandoc` in `Tests.Helpers`, so it
3745 works well with cabal v2.
3747 * INSTALL.md:
3749 + Use button for installer links (John MacFarlane, Mauro Bieg,
3750 #5167).
3751 + Fix links and bump required stack version (max).
3752 + Improve installation notes on associated software (Andrew
3753 Dunning). Includes explanation of how to install related tools
3754 with package managers (since the method of installing
3755 `rsvg-convert` is not obvious).
3757 * doc/org.md: improve documentation of org features (Albert
3758 Krewinkel).
3760 * doc/lua-filters.md: use 3rd level headers for module fields.
3762 * MANUAL:
3764 + Clarify automatic identifiers (#5201). We remove
3765 non-alphanumerics. This includes, e.g., emojis.
3766 + Fix example for Div with id (Geoffrey Ely).
3767 + Update list of LaTeX packages used.
3768 + Make it clear that `hard_line_breaks` works in `gfm` (see #5195).
3769 + Mention `raw_attribute` in documentation for `raw_html` and
3770 `raw_tex` (#5240, thanks to @eiro).
3771 + Clarify that `$sep$` must come right before `$endfor$` in templates
3772 (#5243, Lev Givon).
3773 + Document metadata support for docx, odt, pptx writers (Agustín
3774 Martín Barbero).
3775 + Reorganize template variables (#5249, Andrew Dunning).
3776 Add additional headings to categorize variables, and
3777 alphabetize when there is large number; add more examples.
3778 + Document `date-meta` template variable (#5260, Tristan Stenner).
3780 * trypandoc: Fix CSS and viewport.
3782## pandoc 2.5 (2018-11-27)
3784 * Text.Pandoc.App: split into several unexported submodules (Albert
3785 Krewinkel): Text.Pandoc.App.FormatHeuristics,
3786 Text.Pandoc.App.Opt, Text.Pandoc.App.CommandLineOptions,
3787 Text.Pandoc.App.OutputSettings. This is motivated partly by the
3788 desire to reduce recompilations when something is modified,
3789 since App previously depended on virtually every other module.
3791 * Text.Pandoc.Extensions
3793 + Semantically, `gfm_auto_identifiers` is now a modifier of
3794 `auto_identifiers`; for identifiers to be set, `auto_identifiers` must
3795 be turned on, and then the type of identifier produced depends on
3796 `gfm_auto_identifiers` and `ascii_identifiers` are set. Accordingly,
3797 `auto_identifiers` is now added to `githubMarkdownExtensions` (#5057).
3798 + Remove `ascii_identifiers` from `githubMarkdownExtensions`.
3799 GitHub doesn't seem to strip non-ascii characters any more.
3801 * Text.Pandoc.Lua.Module.Utils (Albert Krewinkel)
3803 + Test AST object equality via Haskell (#5092). Equality of Lua
3804 objects representing pandoc AST elements is tested by unmarshalling
3805 the objects and comparing the result in Haskell.
3806 A new function `equals` which performs this test has been added to the
3807 `pandoc.utils` module.
3808 + Improve stringify. Meta value strings (MetaString)
3809 and booleans (MetaBool) are now converted to the literal string and the
3810 lowercase boolean name, respectively. Previously, all values of these
3811 types were converted to the empty string.
3813 * Text.Pandoc.Parsing: Remove Functor and Applicative constraints where Monad
3814 already exists (Alexander Krotov).
3816 * Text.Pandoc.Pretty: Don't render BreakingSpace at end of line
3817 or beginning of line (#5050).
3819 * Text.Pandoc.Readers.Markdown
3821 + Fix parsing of citations, quotes, and underline emphasis
3822 after symbols. Starting with pandoc 2.4, citations, quoted inlines,
3823 and underline emphasis were no longer recognized after certain
3824 symbols, like parentheses (#5099, #5053).
3825 + In pandoc 2.4, a soft break after an abbreviation would be
3826 relocated before it to allow for insertion of a nonbreaking
3827 space after the abbreviation. This behavior is here reverted.
3828 A soft break after an abbreviation will remain, and no nonbreaking
3829 space will be added. Those who care about this issue should take care not
3830 to end lines with an abbreviation, or to insert nonbreaking spaces
3831 manually.
3833 * Text.Pandoc.Readers.FB2: Do not throw error for unknown elements in
3834 `<body>` (Alexander Krotov). Some libraries include custom elements
3835 in their FB2 files.
3837 * Text.Pandoc.Readers.HTML
3839 + Allow `tfoot` before body rows (#5079).
3840 + Parse `<small>` as a Span with class "small" (#5080).
3841 + Allow thead containing a row with `td` rather than `th` (#5014).
3843 * Text.Pandoc.Readers.LaTeX
3845 + Cleaned up handling of dimension arguments. Allow decimal points,
3846 preceding space.
3847 + Don't allow arguments for verbatim, etc.
3848 + Allow space before bracketed options.
3849 + Allow optional arguments after `\\` in tables.
3850 + Improve parsing of `\tiny`, `\scriptsize`, etc. Parse as raw,
3851 but know that these font changing commands take no arguments.
3853 * Text.Pandoc.Readers.Muse
3855 + Trim whitespace before parsing grid table cells (Alexander Krotov).
3856 + Add grid tables support (Alexander Krotov).
3858 * Text.Pandoc.Shared
3860 + For bibliography match Div with id `refs`, not class `references`.
3861 This was a mismatch between pandoc's docx, epub, latex, and markdown
3862 writers and the behavior of pandoc-citeproc, which actually looks for a
3863 div with id `refs` rather than one with class `references`.
3864 + Exactly match GitHub's identifier generating algorithm (#5057).
3865 + Add parameter for `Extensions` to `uniqueIdent` and
3866 `inlineListToIdentifier` (#5057). [API change]
3867 This allows these functions to be sensitive to the settings of
3868 `Ext_gfm_auto_identifiers` and `Ext_ascii_identifiers`, and allows us to
3869 use `uniqueIdent` in the CommonMark reader, replacing custom code. It
3870 also means that `gfm_auto_identifiers` can now be used in all formats.
3872 * Text.Pandoc.Writers.AsciiDoc
3874 + Use `.`+ as list markers to support nested ordered lists (#5087).
3875 + Support list number styles (#5089).
3876 + Render Spans using `[#id .class]#contents#` (#5080).
3878 * Text.Pandoc.Writers.CommonMark
3880 + Respect `--ascii` (#5043, quasicomputational).
3881 + Make sure `--ascii` affects quotes, super/subscript.
3883 * Text.Pandoc.Writers.Docx
3885 + Fix bookmarks to headers with long titles (#5091).
3886 Word has a 40 character limit for bookmark names. In addition, bookmarks
3887 must begin with a letter. Since pandoc's auto-generated identifiers may
3888 not respect these constraints, some internal links did not work. With
3889 this change, pandoc uses a bookmark name based on the SHA1 hash of the
3890 identifier when the identifier isn't a legal bookmark name.
3891 + Add bookmarks to code blocks (Nikolay Yakimov).
3892 + Add bookmarks to images (Nikolay Yakimov).
3893 + Refactor common bookmark creation code into a function (Nikolay Yakimov).
3895 * Text.Pandoc.Writers.EPUB: Handle calibre metadata (#5098).
3896 Nodes of the form
3898 <meta name="calibre:series" content="Classics on War and Politics"/>
3900 are now included from an epub XML metadata file. You can also include
3901 this information in your YAML metadata, like so:
3903 calibre:
3904 series: Classics on War and Policitics
3906 In addition, ibooks-specific metadata can now be included via an XML
3907 file. (Previously, it could only be included via YAML metadata, see
3908 #2693.)
3910 * Text.Pandoc.Writers.HTML: Use plain `"` instead of `&quot;` outside of
3911 attributes.
3913 * Text.Pandoc.Writers.ICML: Consolidate adjacent strings, inc. spaces.
3914 This avoids splitting up the output unnecessarily into separate elements.
3916 * Text.Pandoc.Writers.LaTeX: Don't emit `[<+->]` unless beamer output, even
3917 if `writerIncremental` is True (#5072).
3919 * Text.Pandoc.Writers.Muse (Alexander Krotov).
3921 + Output tables as grid tables if they have multi-line cells.
3922 + Indent simple tables only on the top level.
3923 + Output tables with one column as grid tables.
3924 + Add support for `--reference-location`.
3925 + Internal improvements.
3927 * Text.Pandoc.Writers.OpenDocument: Fix list indentation (Nils Carlson,
3928 #5095). This was a regression in pandoc 2.4.
3930 * Text.Pandoc.Writers.RTF: Fix warnings for skipped raw inlines.
3932 * Text.Pandoc.Writers.Texinfo: Add blank line before `@menu` section (#5055).
3934 * Text.Pandoc.XML: in `toHtml5Entities`, prefer shorter entities
3935 when there are several choices for a particular character.
3937 * data/abbreviations
3939 + Add additional abbreviations (Andrew Dunning)
3940 Many of these borrowed from the Chicago Manual of Style 10.42,
3941 'Scholarly abbreviations'.
3943 * Templates
3945 + Asciidoc template: add :lang: to title header is lang is set in
3946 metadata (#5088).
3948 * pandoc.cabal: Add cabal flag `derive_json_via_th` (Albert Krewinkel)
3949 Disabling the flag will cause derivation of ToJSON and FromJSON
3950 instances via GHC Generics instead of Template Haskell. The flag is
3951 enabled by default, as deriving via Generics can be slow (see #4083).
3953 * trypandoc:
3955 + Tweaked drop-down lists.
3956 + Put link to site in footer.
3957 + Preselect output format.
3958 + Update on change of in or out format.
3959 + Add man input format.
3961 * MANUAL.txt:
3963 + Fix outdated description of latex_macros extension.
3964 + Clarified placement of bibliography.
3965 + Added "A note on security."
3966 + Fix note on curly brace syntx for locators.
3967 + Document new explicit syntax for citeproc locators.
3968 + Remove confusing cross-links for some extensions.
3969 + Don't put pandoc in code ticks in heading.
3970 + Document that `--ascii` works for gfm and commonmark too.
3971 + Add `man` to `--from` options.
3973 * doc/customizing-pandoc.md: various improvements (Mauro Bieg).
3976## pandoc 2.4 (2018-11-03)
3978### New features
3980 * New input format `man` (Yan Pashkovsky, John MacFarlane).
3982### Behavior changes
3984 * `--ascii` is now implemented in the writers, not in Text.Pandoc.App,
3985 via the new `writerPreferAscii` field in `WriterOptions`.
3986 Now the `write*` functions for Docbook, HTML, ICML, JATS, LaTeX,
3987 Ms, Markdown, and OPML are sensitive to `writerPreferAscii`.
3988 Previously the to-ascii translation was done in Text.Pandoc.App,
3989 and thus not available to those using the writer functions
3990 directly.
3992 * `--ascii` now works with Markdown output. HTML5 character reference
3993 entities are used.
3995 * `--ascii` now works with LaTeX output. 100% ASCII output can't be
3996 guaranteed, but the writer will use commands like `\"{a}` and `\l`
3997 whenever possible, to avoid emitting a non-ASCII character.
3999 * For HTML5 output, `--ascii` now uses HTML5 character reference
4000 entities rather than numerical entities.
4002 * Improved detection of format based on extension (in Text.Pandoc.App).
4003 We now ensure that if someone tries to convert a file for a
4004 format that has a pandoc writer but not a reader, it won't just
4005 default to markdown.
4007 * Add viz. to abbreviations file (#5007, Nick Fleisher).
4009 * AsciiDoc writer: always use single-line section headers,
4010 instead of the old underline style (#5038). Previously the single-line
4011 style would be used if `--atx-headers` was specified, but
4012 now it is always used.
4014 * RST writer: Use simple tables when possible (#4750).
4016 * CommonMark (and gfm) writer: Add plain text fallbacks. (#4528,
4017 quasicomputational). Previously, the writer would unconditionally
4018 emit HTML output for subscripts, superscripts, strikeouts (if the
4019 strikeout extension is disabled) and small caps, even with
4020 `raw_html` disabled. Now there are plain-text (and, where
4021 possible, fancy Unicode) fallbacks for all of these corresponding
4022 (mostly) to the Markdown fallbacks, and the HTML output is only
4023 used when `raw_html` is enabled.
4025 * Powerpoint writer: support raw openxml (Jesse Rosenthal, #4976).
4026 This allows raw openxml blocks and inlines to be used in the pptx
4027 writer. Caveats: (1) It's up to the user to write
4028 well-formed openxml. The chances for corruption, especially with
4029 such a brittle format as pptx, is high. (2) Because of
4030 the tricky way that blocks map onto shapes, if you are using
4031 a raw block, it should be the only block on a slide
4032 (otherwise other text might end up overlapping it). (3) The
4033 pptx ooxml namespace abbreviations are different from the
4034 docx ooxml namespaces. Again, it's up to the user to get it
4035 right. Unzipped document and ooxml specification should be
4036 consulted.
4038 * With `--katex` in HTML formats, do not use the autorenderer (#4946).
4039 We no longer surround formulas with `\(..\)` or `\[..\]`. Instead,
4040 we tell katex to convert the contents of span elements with
4041 class "math". Since math has already been identified, this
4042 avoids wasted time parsing for LaTeX delimiters. Note, however,
4043 that this may yield unexpected results if you have span elements
4044 with class "math" that don't contain LaTeX math.
4045 Also, use latest version of KaTeX by default (0.9.0).
4047 * The man writer now produces ASCII-only output, using groff escapes,
4048 for portability.
4050 * ODT writer:
4052 + Add title, author and date to metadata; any remaining
4053 metadata fields are added as `meta:user-defined` tags.
4054 + Implement table caption numbering (#4949, Nils Carlson).
4055 Captioned tables are numbered and labeled with format "Table 1:
4056 caption", where "Table" is replaced by a translation, depending
4057 on the value of `lang` in metadata. Uncaptioned tables are not
4058 enumerated.
4059 + OpenDocument writer: Implement figure numbering in captions (#4944,
4060 Nils Carlson). Figure captions are now numbered 1, 2, 3, ...
4061 The format in the caption is "Figure 1: caption" and so on
4062 (where "Figure" is replaced by a translation, depending on the
4063 value of `lang` in the metadata). Captioned figures are numbered
4064 consecutively and uncaptioned figures are not enumerated. This
4065 is necessary in order for LibreOffice to generate an
4066 Illustration Index (Table of Figures) for included figures.
4068 * RST reader: Pass through fields in unknown directives as div attributes
4069 (#4715). Support `class` and `name` attributes for all directives.
4071 * Org reader: Add partial support for `#+EXCLUDE_TAGS` option. (#4284,
4072 Brian Leung). Headers with the corresponding tags should not
4073 appear in the output.
4075 * Log warnings about missing title attributes now include a
4076 suggestion about how to fix the problem (#4909).
4078 * Lua filter changes (Albert Krewinkel):
4080 + Report traceback when an error occurs. A proper Lua traceback is
4081 added if either loading of a file or execution of a filter
4082 function fails. This should be of help to authors of Lua filters
4083 who need to debug their code.
4085 + Allow access to pandoc state (#5015). Lua filters and custom
4086 writers now have read-only access to most fields of pandoc's
4087 internal state via the global variable `PANDOC_STATE`.
4089 + Push ListAttributes via constructor (Albert Krewinkel).
4090 This ensures that ListAttributes, as present in OrderedList elements,
4091 have additional accessors (viz. `start`, `style`, and `delimiter`).
4093 + Rename ReaderOptions fields, use snake_case. Snake case is used
4094 in most variable names, using camelCase for these fields was an
4095 oversight. A metatable is added to ensure that the old field
4096 names remain functional.
4098 + Iterate over AST element fields when using `pairs`. This makes
4099 it possible to iterate over all ield names of an AST element by
4100 using a generic `for` loop with pairs`:
4102 for field_name, field_content in pairs(element) do
4103 ...
4104 end
4106 Raw table fields of AST elements should be considered an
4107 implementation detail and might change in the future. Accessing
4108 element properties should always happen through the fields
4109 listed in the Lua filter docs.
4111 Note that the iterator currently excludes the `t`/`tag` field.
4113 + Ensure that MetaList elements behave like Lists. Methods usable
4114 on Lists can also be used on MetaList objects.
4116 + Fix MetaList constructor (Albert Krewinkel). Passing a MetaList
4117 object to the constructor `pandoc.MetaList` now returns the
4118 passed list as a MetaList. This is consistent with the
4119 constructor behavior when passed an (untagged) list.
4121 * Custom writers: Custom writers have access to the global variable
4122 `PANDOC_DOCUMENT`(Albert Krewinkel, #4957). The variable contains
4123 a userdata wrapper around the full pandoc AST and exposes two
4124 fields, `meta` and `blocks`. The field content is only
4125 marshaled on-demand, performance of scripts not accessing the
4126 fields remains unaffected.
4128### API changes
4130 * Text.Pandoc.Options: add `writerPreferAscii` to `WriterOptions`.
4132 * Text.Pandoc.Shared:
4134 + Export `splitSentences`. This was previously duplicated in the Man and
4135 Ms writers.
4136 + Add `ToString` typeclass (Alexander Krotov).
4138 * New exported module Text.Pandoc.Filter (Albert Krewinkel).
4140 * Text.Pandoc.Parsing
4142 + Generalize `gridTableWith` to any `Char` Stream (Alexander Krotov).
4143 + Generalize `readWithM` from `[Char]` to any `Char` Stream
4144 that is a `ToString` instance (Alexander Krotov).
4146 * New exposed module Text.Pandoc.Filter (Albert Krewinkel).
4148 * Text.Pandoc.XML: add `toHtml5Entities`.
4150 * New exported module Text.Pandoc.Readers.Man (Yan Pashkovsky, John
4151 MacFarlane).
4153 * Text.Pandoc.Writers.Shared
4155 + Add exported functions `toSuperscript` and
4156 `toSubscript` (quasicomputational, #4528).
4157 + Remove exported functions `metaValueToInlines`,
4158 `metaValueToString`. Add new exported functions
4159 `lookupMetaBool`, `lookupMetaBlocks`, `lookupMetaInlines`,
4160 `lookupMetaString`. Use these whenever possible for uniformity
4161 in writers (Mauro Bieg, #4907). (Note that
4162 removed function `metaValueToInlines` was in previous
4163 released versions.)
4164 + Add `metaValueToString`.
4166 * Text.Pandoc.Lua
4168 + Expose more useful internals (Albert Krewinkel):
4170 - `runFilterFile` to run a Lua filter from file;
4171 - data type `Global` and its constructors; and
4172 - `setGlobals` to add globals to a Lua environment.
4174 This module also contains `Pushable` and `Peekable` instances
4175 required to get pandoc's data types to and from Lua. Low-level
4176 Lua operation remain hidden in Text.Pandoc.Lua.
4178 + Rename `runPandocLua` to `runLua` (Albert Krewinkel).
4180 + Remove `runLuaFilter`, merging this into Text.Pandoc.Filter.Lua's
4181 `apply` (Albert Krewinkel).
4183### Bug fixes and under-the-hood improvements
4185 * Text.Pandoc.Parsing
4187 + Make `uri` accept any stream with Char tokens (Alexander Krotov).
4188 + Rewrite `uri` without `withRaw` (Alexander Krotov).
4189 + Generalize `parseFromString` and `parseFromString'` to any
4190 streams with Char token (Alexander Krotov)
4191 + Rewrite `nonspaceChar` using `noneOf` (Alexander Krotov)
4193 * Text.Pandoc.Shared: Reimplement `mapLeft` using `Bifunctor.first`
4194 (Alexander Krotov).
4196 * Text.Pandoc.Pretty: Simplify `Text.Pandoc.Pretty.offset`
4197 (Alexander Krotov).
4199 * Text.Pandoc.App
4201 + Work around HXT limitation for --syntax-definition with windows
4202 drive (#4836).
4203 + Always preserve tabs for man format. We need it for tables.
4204 + Split command line parsing code into a separate unexported
4205 module, Text.Pandoc.App.CommandLineOptions (Albert Krewinkel).
4207 * Text.Pandoc.Readers.Roff: new unexported module for tokenizing
4208 roff documents.
4210 * New unexported module Text.Pandoc.RoffChar, provided character
4211 escape tables for roff formats.
4213 * Text.Pandoc.Readers.HTML: Fix `htmlTag` and `isInlineTag` to
4214 accept processing instructions (#3123, regression since 2.0).
4216 * Text.Pandoc.Readers.JATS: Use `foldl'` instead of `maximum` to
4217 account for empty lists (Alexander Krotov).
4219 * Text.Pandoc.Readers.RST: Don't allow single-dash separator in
4220 headerless table (#4382).
4222 * Text.Pandoc.Readers.Org: Parse empty argument array in inline src
4223 blocks (Brian Leung).
4225 * Text.Pandoc.Readers.Vimwiki:
4227 + Get rid of `F`, `runF` and `stateMeta'` in favor of `stateMeta`
4228 (Alexander Krotov).
4229 + Parse `Text` without converting to `[Char]` (Alexander Krotov).
4231 * Text.Pandoc.Readers.Creole: Parse `Text` without converting to
4232 `[Char]` (Alexander Krotov).
4234 * Text.Pandoc.Readers.LaTeX
4236 + Allow space at end of math after `\` (#5010).
4237 + Add support for `nolinkurl` command (#4992, Brian Leung).
4238 + Simplified type on `doMacros'`.
4239 + Tokenize before pulling tokens, rather than after (#4408). This
4240 has some performance penalty but is more reliable.
4241 + Make macroDef polymorphic and allow in inline context.
4242 Otherwise we can't parse something like `\lowercase{\def\x{Foo}}`.
4243 I have actually seen tex like this in the wild.
4244 + Improved parsing of `\def`, `\let`. We now correctly parse:
4245 ```
4246 \def\bar{hello}
4247 \let\fooi\bar
4248 \def\fooii{\bar}
4249 \fooi +\fooii
4251 \def\bar{goodbye}
4252 \fooi +\fooii
4253 ```
4254 + Improve parsing of `\def` argspec.
4255 + Skip `\PackageError` commands (see #4408).
4256 + Fix bugs omitting raw tex (#4527). The default is `-raw_tex`,
4257 so no raw tex should result unless we explicitly say `+raw_tex`.
4258 Previously some raw commands did make it through.
4259 + Moved `isArgTok` to Text.Pandoc.Readers.LaTeX.Parsing.
4260 + Moved `babelLangToBCP`, `polyglossiaLangToBCP` to new module,
4261 Text.Pandoc.Readers.LaTeX.Lang (unexported).
4262 + Simplified accent code using unicode-transforms.
4263 New dependency on unicode-transforms package for normalization.
4264 + Allow verbatim blocks ending with blank lines (#4624).
4265 + Support `breq` math environments: `dmath`, `dgroup`, `darray`.
4266 This collects some of the general-purpose code from the LaTeX reader,
4267 with the aim of making the module smaller.
4269 * Text.Pandoc.Readers.Markdown
4271 + Fix awkward soft break movements before abbreviations (#4635).
4272 + Add updateStrPos in a couple places where needed.
4274 * Text.Pandoc.Readers.Docx: Trigger bold/italic with bCs, iCs
4275 (#4947). These are variants for "complex scripts" like Arabic
4276 and are now treated just like b, i (bold, italic).
4278 * Text.Pandoc.Readers.Muse (Alexander Krotov)
4280 + Try to parse lists before trying to parse table.
4281 This ensures that tables inside lists are parsed correctly.
4282 + Forbid whitespace after opening and before closing markup
4283 elements.
4284 + Parse page breaks.
4285 + Simplify `museToPandocTable` to get rid of partial functions.
4286 + Allow footnotes to start with empty line.
4287 + Make sure that the whole text is parsed.
4288 + Allow empty headers. Previously empty headers caused parser to
4289 terminate without parsing the rest of the document.
4290 + Allow examples to be indented with tabs.
4291 + Remove indentation from examples indicated by `{{{` and `}}}`.
4292 + Fix parsing of empty cells.
4293 + Various changes to internals.
4294 + Rewrite some parsers in applicative style.
4295 + Avoid tagsoup dependency.
4296 + Allow table caption to contain `+`.
4298 * Text.Pandoc.Writers.LaTeX
4300 + Add newline if math ends in a comment (#4880). This prevents the
4301 closing delimiter from being swalled up in the comment.
4302 + With `--listings`, don't pass through org-babel attributes (#4889).
4303 + With `--biblatex`, use `\autocite` when possible (#4960).
4304 `\autocites{a1}{a2}{a3}` will not collapse the entries. So, if
4305 we don't have prefixes and suffixes, we use instead
4306 `\autocite{a1,a2,a3}`.
4307 + Fix description lists contining highlighted code (#4662).
4309 * Text.Pandoc.Writers.Man
4311 + Don't wrap `.SH` and `.SS` lines (#5019).
4312 + Avoid unnecessary `.RS`/`.RE` pair in definition lists with
4313 one paragraph definitions.
4314 + Moved common groff functions to Text.Pandoc.Writers.Groff.
4315 * Fix strong/code combination on man (should be `\f[CB]` not
4316 `\f[BC]`, see #4973).
4317 + Man writer: use `\f[R]` instead of `\f[]` to reset font
4318 (Alexander Krotov, #4973).
4319 + Move `splitSentences` to Text.Pandoc.Shared.
4321 * Text.Pandoc.Writers.Docx
4323 + Add framework for custom properties (#3034). So far, we don't
4324 actually write any custom properties, but we have the
4325 infrastructure to add this.
4327 + Handle tables in table cells (#4953). Although this is not
4328 documented in the spec, some versions of Word require a `w:p`
4329 element inside every table cell. Thus, we add one when the
4330 contents of a cell do not already include one (e.g. when a table
4331 cell contains a table).
4333 * Text.Pandoc.Writers.AsciiDoc: Prevent illegal nestings.
4334 Adjust header levels so that n+1 level headers are only
4335 found under n level headers, and the top level is 1.
4337 * Text.Pandoc.Writers.OpenDocument: Improve bullet/numbering
4338 alignment (#4385). This change eliminates the large gap we used
4339 to have between bullet and text, and also ensures that numbers
4340 in numbered lists will be right-aligned.
4342 * Text.Pandoc.Writers.ZimWiki
4344 + Number ordered list items sequentially, rather than always
4345 with 1 (#4962).
4346 + Remove extra indentation on lists (#4963).
4348 * Text.Pandoc.Writers.EPUB: Use metadata field `css` instead of
4349 `stylesheet` (Mauro Bieg, #4990).
4351 * Text.Pandoc.Writers.Markdown: Ensure blank between raw block and
4352 normal content (#4629). Otherwise a raw block can prevent a
4353 paragraph from being recognized as such.
4355 * Text.Pandoc.Writers.Ms
4357 + Removed old `escapeBar`. We don't need this now that we use
4358 `@` for math delim.
4359 + Moved common code to Text.Pandoc.Writers.Roff and to
4360 Text.Pandoc.RoffChar.
4361 + Move `splitSentences` to Text.Pandoc.Shared (to avoid duplication
4362 with the man writer).
4364 * Text.Pandoc.Writers.Muse (Alexander Krotov).
4366 + Add support for grid tables.
4367 + Fix Muse writer style.
4368 + Use `length` instead of `realLength` to calculate definition
4369 indentation. Muse parsers don't take character width into
4370 account when calculating indentation.
4371 + Do not insert newline before lists.
4372 + Use lightweight markup after `</em>` tag.
4374 * New unexported module Text.Pandoc.Writers.Roff, providing functions
4375 useful for all roff format writers (man, ms).
4377 * Text.Pandoc.Lua
4379 + Move globals handling to separate module Text.Pandoc.Lua.Global
4380 (Albert Krewinkel).
4382 + Lua filter internals: push Shared.Element as userdata (Albert
4383 Krewinkel). Hierarchical Elements were pushed to Lua as plain
4384 tables. This is simple, but has the disadvantage that marshaling
4385 is eager: all child elements will be marshaled as part of the
4386 object. Using a Lua userdata object instead allows lazy access
4387 to fields, causing content marshaling just (but also each time)
4388 when a field is accessed. Filters which do not traverse the full
4389 element contents tree become faster as a result.
4391### Default template changes
4393 * LaTeX template:
4395 + Add variable `hyperrefoptions` (#4925, Mathias Walter).
4396 + Add variable `romanfont`, `romanfontoptions` (#4665, OvidiusCicero).
4398 * AsciiDoc template: use single-line style for title.
4400 * revealjs template: Fix typo in the socket.io javascript plugin (#5006,
4401 Yoan Blanc).
4403 * Text.Pandoc.Lua.Util: add missing docstring to `defineHowTo`
4404 (Albert Krewinkel).
4406 * data/pandoc.lua: add datatype ListAttributes (Albert Krewinkel)
4408 * data/sample.lua: replace custom pipe function with pandoc.utils.pipe
4409 (Albert Krewinkel).
4411### Documentation improvements
4413 * INSTALL.md
4415 + Add chromeos install instructions (#4958) (Evan Pratten).
4416 + Add note about TinyTeX.
4418 * MANUAL.txt
4420 + Change `groff` -> `roff`.
4421 + Implement `--ascii` for Markdown writer.
4422 + Clarify LaTeX image dimensions output (Mauro Bieg).
4424 * doc/customizing-pandoc.md: added skeleton (Mauro Bieg, #3288).
4426 * doc/getting-started.md: Added title to test1.md to avoid warning.
4428 * doc/lua-filters.md: merge type references into main document,
4429 fix description of Code.text (Albert Krewinkel).
4431### Build infrastructure improvements
4433 * Makefile
4435 + Makefile: added quick-cabal, full-cabal targets.
4436 + Make .msi download targets insensitive to order of appveyor builds.
4438 * Update benchmarks for ghc 8.6.1.
4440 * pandoc.cabal:
4442 + Enable more compiler warnings (Albert Krewinkel).
4443 + Make base lower bound 4.8.
4444 + Bump upper bound for QuickCheck.
4445 + Bump upper bound for binary.
4446 + Updated version bounds for containers and haddock-library (#4974).
4447 + Added docx/docPropos/custom.xml to cabal data-files.
4448 + Require skylighting 0.7.4 (#4920).
4449 + New dependency on unicode-transforms package for normalization.
4451 * Improved .travis.yml testing and test with GHC 8.6.1 (Albert Krewinkel).
4453 * Added `tools/changelog-helper.sh`.
4455 * Added test/grofftest.sh for testing the man reader on real man pages.
4457## pandoc 2.3.1 (2018-09-28)
4459 * RST reader:
4461 + Parse RST inlines containing newlines (#4912, Francesco Occhipinti).
4462 This eliminates a regression introduced after pandoc 2.1.1, which
4463 caused inline constructions containing newlines not to be recognized.
4464 + Fix bug with internal link targets (#4919). They were gobbling up
4465 indented content underneath.
4467 * Markdown reader: distinguish autolinks in the AST. With this change,
4468 autolinks are parsed as Links with the `uri` class. (The same is true
4469 for bare links, if the `autolink_bare_uris` extension is enabled.)
4470 Email autolinks are parsed as Links with the `email` class. This
4471 allows the distinction to be represented in the AST.
4473 * Org reader:
4475 + Force inline code blocks to honor export options (Brian Leung).
4476 + Parse empty argument array in inline src blocks (Brian Leung).
4478 * Muse reader (Alexander Krotov):
4480 + Added additional tests.
4481 + Do not allow code markup to be followed by digit.
4482 + Remove heading level limit.
4483 + Simplify `<literal>` tag parsers
4484 + Parse Text instead of String. Benchmark shows 7% improvement.
4485 + Get rid of HTML parser dependency.
4486 + Various code improvements.
4488 * ConTeXt writer: change `\` to `/` in Windows image paths (#4918).
4489 We do this in the LaTeX writer, and it avoids problems.
4490 Note that `/` works as a LaTeX path separator on Windows.
4492 * LaTeX writer:
4494 + Add support for multiprenote and multipostnote arguments
4495 with `--biblatex` (Brian Leung, #4930). The multiprenotes occur before
4496 the first prefix of a multicite, and the multipostnotes follow the
4497 last suffix.
4498 + Fix a use of `last` that might take empty list. If you ran with
4499 `--biblatex` and have an empty document (metadata but no blocks),
4500 pandoc would previously raise an error because of the use of
4501 `last` on an empty list.
4503 * RTF writer: Fix build failure with ghc-8.6.1 caused by missing
4504 MonadFail instance (Jonas Scholl).
4506 * ODT Writer: Improve table header row style handling (Nils Carlson).
4507 This changes the way styles for cells in the header row
4508 and normal rows are handled in ODT tables.
4509 Previously a new (but identical) style was generated for
4510 every table, specifying the style of the cells within the table.
4511 After this change there are two style definitions for table cells,
4512 one for the cells in the header row, one for all other cells.
4513 This doesn't change the actual styles, but makes post-processing
4514 changes to the table styles much simpler as it is no longer
4515 necessary to introduce new styles for header rows and there are
4516 now only two styles where there was previously one per table.
4518 * HTML writer:
4520 + Don't add `uri` class to presumed autolinks. Formerly the `uri`
4521 class was added to autolinks by the HTML writer, but it had to
4522 guess what was an autolink and could not distinguish
4523 `[http://example.com](http://example.com)` from
4524 `<http://example.com>`. It also incorrectly recognized
4525 `[pandoc](pandoc)` as an autolink. Now the HTML writer
4526 simply passes through the `uri` attribute if it is present,
4527 but does not add anything.
4528 + Avoid adding extra section nestings for revealjs.
4529 Previously revealjs title slides at level (slidelevel - 1)
4530 were nested under an extra section element, even when
4531 the section contained no additional (vertical) content.
4532 That caused problems for some transition effects.
4533 + Omit unknown attributes in EPUB2 output. For example,
4534 `epub:type` attributes should not be passed through,
4535 or the epub produced will not validate.
4537 * JATS writer: remove 'role' attribute on 'bold' and 'sc' elements (#4937).
4538 The JATS spec does not allow these.
4540 * Textile writer: don't represent `uri` class explicitly
4541 for autolinks (#4913).
4543 * Lua filters (Albert Krewinkel):
4545 + Cleanup filter execution code.
4546 + Better error on test failure.
4548 * HTML, Muse reader tests: reduce time taken by round-trip test.
4550 * Added cabal.project.
4552 * MANUAL: `epub:type` is only useful for epub3 (Maura Bieg).
4554 * Use hslua v1.0.0 (Albert Krewinkel).
4556 * Fix `translations/ru` to use modern Russian orthography
4557 (Ivan Trubach).
4559 * Build Windows binary using ghc 8.6.1 and cabal new-build. This
4560 fixes issues with segfaults in the 32-bit Windows binaries (#4283).
4562## pandoc 2.3 (2018-09-16)
4564 * Add `--metadata-file` option (Mauro Bieg, #1960), which allows
4565 users to specify metadata in a YAML file, regardless of the
4566 input format (#1960).
4568 * Text.Pandoc.Writers.Shared: export `isDisplayMath` (API change).
4570 * Text.Pandoc.Readers.Markdown: export `yamlToMeta` (API change,
4571 Mauro Bieg).
4573 * Text.Pandoc.Readers.LaTeX.Types:
4575 + New type `ArgSpec` (API change).
4576 + Second parameter of `Macro` constructor is now `[ArgSpec]` instead of
4577 `Int` (API change).
4579 * Markdown reader:
4581 + Use `tex` instead of `latex` for raw tex-ish content. We can't
4582 always tell if it's LaTeX, ConTeXt, or plain TeX. Better just to
4583 use `tex` always. Note that if `context` or `latex` specifically
4584 is desired, you can still force that in a markdown document by
4585 using the raw attribute. Note that this change may affect some
4586 filters, if they assume that raw tex parsed by the Markdown reader
4587 will be RawBlock (Format `latex`). In most cases it should be
4588 trivial to modify the filters to accept `tex` as well.
4589 + Refactor and reorganize YAML code (Mauro Bieg).
4590 + Make `example_lists` work for interrupted lists
4591 without `startnum` (#4908).
4593 * HTML reader:
4595 + Parse `<script type="math/tex` tags as math (#4877).
4596 These are used by MathJax in some configurations.
4597 + Extract spaces inside links instead of trimming them
4598 (Alexander Krotov, #4845).
4599 + Added round-trip tests (Alexander Krotov).
4600 + Make parsing sensitive to the `raw_tex` extension (#1126). This now
4601 allows raw LaTeX environments, `\ref`, and `\eqref` to be parsed
4602 (which is helpful for translation HTML documents using MathJaX).
4604 * Org reader (Albert Krewinkel):
4606 + Respect export option `p` for planning info. Inclusion of planning info
4607 (`*DEADLINE*`, `*SCHEDULED*`, and `*CLOSED*`) can be controlled via the
4608 `p` export option: setting the option to `t` will add all planning
4609 information in a *Plain* block below the respective headline.
4610 + Org reader internals: don't rely on RecordWildCards and ViewPatterns
4611 ghc extensions.
4612 + Strip planning info from output. Planning info is parsed, but not
4613 included in the output (as is the default with Emacs Org-mode, #4867).
4615 * LaTeX reader:
4617 + Handle parameter patterns for `\def` (#4768, #4771).
4618 For example: `\def\foo#1[#2]{#1 and #2}`.
4619 + Allow `%` characters in URLs. This affects `\href` and `\url` (#4832).
4620 + Fixed parsing of `\texorpdfstring`. We were returning the wrong
4621 argument as the content.
4622 + Support `blockcquote`, `foreignblockquote`, `foreigncblockquote`,
4623 `hyphenblockquote`, `hyphencblockquote`, `enquote*`, `foreignquote`,
4624 `hyphenquote` from `csquotes` (#4848). Note that `foreignquote`
4625 will be parsed as a regular Quoted inline (not using the quotes
4626 appropriate to the foreign language).
4627 + Support more text-mode accents (#4652). Add support for `\|`, `\b`, `\G`,
4628 `\h`, `\d`, `\f`, `\r`, `\t`, `\U`, `\i`, `\j`, `\newtie`,
4629 `\textcircled`. Also fall back to combining characters when composed
4630 characters are not available.
4631 + Resolve `\ref` for figure numbers.
4632 + Support `mintinline` (#4365, Marc Schreiber).
4633 + Fix siunitx unit commands so they are only recognized in
4634 siunitx contexts (#4842). For example, `\l` outside of an
4635 siunitx context should be l-slash, not l (for liter).
4636 + Fix double `unnumbered` class (#4838). The `unnumbered` class
4637 was being included twice for starred sections.
4639 * RST reader: Don't skip link definitions after comments (#4860).
4641 * Muse reader (Alexander Krotov):
4643 + Close the `</quote>` in indented tag test.
4644 There is already a separate test for unclosed `</quote>`.
4645 + Autonumber sections in the correct order. Parsing now stops
4646 at each section header to ensure the header is registered before
4647 parsing of the next section starts.
4648 + Move duplicate code into `headingStart` function.
4649 + Allow newline after opening `*` or `**`.
4650 + Don't allow digits after closing marker in lightweight markup
4651 This change makes reader more compatible with Emacs Muse.
4652 + Parse `<verse>` tag in one pass instead of using
4653 `parseFromString`. This change makes it possible to have
4654 verbatim `</verse>` tag inside verse.
4656 * ODT reader: deal gracefully with missing `<office:font-face-decls/>`
4657 (#4336). This allows pandoc to parse ODT document produced by KDE's
4658 Calligra.
4660 * Muse writer (Alexander Krotov):
4662 + Output headers without asterisks if not on the top level.
4663 + Never wrap definition list terms.
4664 + Set `envInsideBlock = True` when rendering notes.
4665 + Use `""` instead of `[]` for empty String.
4666 + Check for whitespace in the beginning and end of Str's.
4667 + Escape `-`, `;` and `>` in the beginning of strings.
4668 + Escape list markers in the beginning of notes.
4669 + Normalize inline list before testing if tags should be used.
4670 + Use tags instead of lightweight markup for empty strings.
4671 + Use lightweight markup when possible.
4672 + Escape empty strings. This guarantees that `conditionalEscapeString`
4673 never returns empty string.
4674 + Wrap conditionalEscapeString result into `Muse` type.
4675 This removes the need to pass `envInsideLinkDescription` to it.
4676 + Separate `shouldEscapeString` function.
4677 + Simplify inline list rendering.
4678 + Replace newlines in strings with spaces.
4680 * Docx writer:
4682 + Add MetaString case for abstract, subtitle (#4900, Mauro Bieg).
4683 + Properly handle display math in spans (#4826). This isn't a
4684 complete solution, since other nestings of display math may still
4685 cause problems, but it should work for what is by far the most
4686 common case.
4688 * HTML writer:
4690 + Always output `<dt>` element, even if it is empty (#4883,
4691 Alexander Krotov).
4692 + Don't prefix `epub:` attributes with `data-`.
4694 * Org writer: Don't escape literal `_`, `^` (#4882). Org doesn't
4695 recognize these escapes.
4697 * ODT writer: Fix percentage image scaling (#4881, Nils Carlson).
4698 Image scaling was broken when a width was set to a percentage.
4700 * EPUB writer: set `epub:type` on body element in each chapter,
4701 depending on the `epub:type` of the first section (#4823). This
4702 only affects epub3. See
4703 http://www.idpf.org/epub/profiles/edu/structure/#h.l0bzsloklt10
4705 * FB2 writer: put `coverpage` element between title and date rather than in
4706 `document-info` element (#4854).
4708 * Markdown writer: Escape `~` if strikeout extension enabled (#4840).
4710 * Haddock writer: Use proper format for latex math in haddock (#4571, Joe
4711 Hermaszewski). Inline math in `\(..\)`, display math in `\[..\]`,
4712 tex is now used. Previously we'd "fake it with unicode" and fall
4713 back to tex when that didn't work. But newer haddock versions
4714 support latex math.
4716 * TEI writer:
4718 + Ensure that title element is always present, even if empty (#4839).
4719 + Put author tags in the template, rather than adding them in
4720 the writer (#4839).
4722 * LaTeX writer/template: be sensitive to `filecolor` variable (#4822).
4723 `linkcolor` only affects internal links, and `urlcolor` only
4724 affects linked URLs. For external links, the option to use is
4725 `filecolor`.
4727 * ConTeXt writer: output raw `tex` blocks as well as `context` (#969).
4729 * RST writer:
4731 + Use `.. raw:: latex` for `tex` content.
4732 + Use `.. container` for generic Divs, instead of raw HTML.
4733 + Render Divs with admonition classes as admonitions (#4833).
4734 Also omit Div with class `admonition-title`. These are generated
4735 by the RST reader and should be omitted on round-trip.
4737 * Text.Pandoc.PDF: fix message printed when rsvg-convert is not available
4738 (#4855, Antonio Terceiro).
4740 * HTML5 template: add the `title-block-header` identifier to the
4741 `header` element, to make it easier to style precisely (#4767,
4742 J. B. Rainsberger).
4744 * OpenDocument template: Remove unnecessary indenting of TOC title (#4798,
4745 José de Mattos Neto).
4747 * latex template: Add support for $toc-title$ to LaTeX (and PDF)
4748 (#4853, Wandmalfarbe).
4750 * TEI template: improve `publicationStmt`. Add support for
4751 `publisher`, `address`, `pubPlace`, and `date` variables.
4753 * beamer template: Support "toc-title" (#4835, Cyril Roelandt).
4755 * Text.Pandoc.Extensions: Fix haddock on `Ext_footnotes` (Chris Martin).
4757 * Lua: cleanup Lua utils, remove unused functions (Albert Krewinkel).
4759 * MANUAL.txt:
4761 + Clarify that `--biblatex/--natbib` don't work directly for PDF
4762 (#4904).
4763 + Document `epub:type` attribute (Mauro Bieg, #4901)
4764 + Clarify when `--resource-path` has an effect.
4765 + More detail on customization in syntax highlighting section.
4766 + Document encoding issue with `--listings` (#4871, Damien Clochard).
4767 + Remove docs on removed `--katex-stylesheet` (Mauro Bieg, #4862).
4768 + Use https for context wiki links (#4910).
4770 * CONTRIBUTING.md:
4772 + Link to lua-filters repository (#4874).
4773 + Fix mistake in REPL instructions for stack. (#4849, Brian Leung).
4775 * lua-filters.md: add links to filters, and to lua-filters repository
4776 (#4874).
4778 * INSTALL.md:
4780 + Indicate that cabal >= 2.0 is needed.
4781 + Added chocolatey installation method (#4844, Miodrag Milić).
4783 * Travis: exclude round-trip tests, except for nightly test which can fail.
4785 * Use latest texmath, pandoc-citeproc.
4787 * Use a patched version of foundation until
4788 https://github.com/haskell-foundation/foundation/pull/503
4789 is fixed.
4791 * Clean up appveyor build and Windows package creation.
4792 We now use 64-bit stack and ghc 8.4.3, lts-12 for the 64-bit build. The
4793 WiX-based msi is now 64-bit for 64-bit builds (fixing #4795).
4795 * Remove obsolete RELEASE-CHECKLIST.md.
4797 * Added additional compiler warnings in Makefile and CI builds.
4799## pandoc 2.2.3.2 (2018-08-07)
4801 * Markdown reader: Properly handle boolean values in YAML metadata (#4819).
4802 This fixes a regression in 2.2.3, which cause boolean values to
4803 be parsed as MetaInlines instead of MetaBool.
4805 We here record another undocumented (but desirable) change in 2.2.3:
4806 numerical metadata fields are now parsed as MetaInlines rather than
4807 MetaString.
4809## pandoc 2.2.3.1 (2018-08-06)
4811 * Markdown reader: Fix parsing of embedded mappings in YAML metadata
4812 (#4817). This fixes a regression in 2.2.3 which caused embedded
4813 mappings (e.g. mappings in sequences) not to work in YAML metadata.
4815## pandoc 2.2.3 (2018-08-05)
4817 * RST reader: improve parsing of inline interpreted text roles (#4811).
4819 + Use a Span with class "title-reference" for the default
4820 title-reference role.
4821 + Use `B.text` to split up contents into `Space`s, `SoftBreak`s,
4822 and `Str`s for `title-reference`.
4823 + Use Code with class "interpreted-text" instead of Span and Str for
4824 unknown roles. (The RST writer has also been modified to round-trip
4825 this properly.)
4826 + Disallow blank lines in interpreted text.
4827 + Backslash-escape now works in interpreted text.
4828 + Backticks followed by alphanumerics no longer end interpreted text.
4829 + Remove support for nested inlines (Francesco Occhipinti).
4830 RST does not allow nested emphasis, links, or other inline
4831 constructs. This fixes several bugs (#4581, #4561, #4792).
4833 * Org reader: fix parsers relying on `parseFromString` (#4784, Albert
4834 Krewinkel). Emphasis was not parsed when it followed directly after
4835 some block types (e.g., lists).
4837 * Markdown reader: Allow unquoted numbers and booleans as YAML mapping
4838 keys. Previously in 2.2.2 you could not do
4839 ```
4840 ---
4841 0: bar
4842 ...
4843 ```
4844 but only
4845 ```
4846 ---
4847 '0': bar
4848 ...
4849 ```
4850 With this change, both forms work.
4852 * DocBook reader: metadata handling improvements.
4853 Now we properly parse title and subtitle elements that are direct
4854 children of book and article (as well as children of bookinfo,
4855 articleinfo, or info). We also now use the `subtitle` metadata
4856 field for subtitles, rather than tacking the subtitle on to the
4857 title.
4859 * RST writer:
4861 + Allow images to be directly nested within links (#4810, Francesco
4862 Occhipinti).
4863 + Use `titleblock` instead of `title` variable for title block (#4803,
4864 Francesco Occhipinti). `titleblock` contains a properly formatted
4865 title and subtitle (using top-level headers). `title` and
4866 `subtitle` variables are still available and just contain the
4867 title and subtitle text. Note that this change will require an
4868 update to custom rst templates.
4869 + Render Code with class "interpreted-text" as interpreted text role.
4871 * MediaWiki writer: Avoid extra blank line in tables with empty cells
4872 (#4794). Note that the old output is semantically identical, but the
4873 new output looks better.
4875 * Lua Utils module: add function `blocks_to_inlines` (#4799, Albert
4876 Krewinkel). Exposes a function converting which flattenes a list of
4877 blocks into a list of inlines. An example use case would be the
4878 conversion of Note elements into other inlines.
4880 * RST template: use `titleblock` instead of `title`. Users of
4881 custom RST templates will want to update this.
4883 * LaTeX template: Moved some beamer code in default.latex template.
4884 This change allows beamer themes to change the template and font (as
4885 Metropolis does) (#4450).
4887 * Better error message on `-t pdf -o out.pdf` (#1155, Mauro Bieg).
4889 * Added test case for #4669 to repository.
4891 * INSTALL.md: Fix broken link for cabal-install (#4806, ChanHoHo).
4893 * MANUAL.txt:
4895 + Add beamer info for slide backgrounds (#4802, John Muccigrosso).
4896 + Clarify when `csquotes` is used in LaTeX writer (#4514).
4897 + Add `commonmark` to list of output formats where `raw_tex` has an
4898 effect (see #4527).
4901## pandoc 2.2.2.1 (2018-07-19)
4903 * Fix regression finding templates in user data directory (#4777).
4904 Under version 2.2.1 and prior pandoc found latex templates in the
4905 templates directory under the data directory, but this broke in 2.2.2.
4907 * Fix for bug in parsing `\input` in `rawLaTeXBlock` and
4908 `rawLaTeXInline` (#4781). (This primarily affects the markdown
4909 reader, and other readers that accept raw tex.)
4910 Starting in 2.2.2, everything after an `\input` (or `\include`)
4911 in a markdown file would be parsed as raw LaTeX.
4913 * MANUAL:
4915 + Clarify `gfm` vs `markdown_github` (#4783, Mauro Bieg).
4916 * Use `keywords` instead of `tags` in YAML metadata example (#4779).
4917 Unlike `tags`, `keywords` is used in some of the writers
4918 and default templates.
4920 * Add missing `rollingLinks` option to revealjs template (#4778,
4921 Igor Khorlo).
4923## pandoc 2.2.2 (2018-07-16)
4925 * Use HsYAML instead of yaml for translations and YAML metadata (#4747).
4926 yaml wraps a C library; HsYAML is pure Haskell. Advances #4535.
4928 Note: HsYAML implements YAML 1.2, in which the valid true
4929 values are `true`, `True`, `TRUE`. This means a change in
4930 the semantics of YAML metadata that could affect users:
4931 `y`, `yes`, and `on` no longer count as true values.
4933 * Fix regression: make `--pdf-engine` work with full paths (#4681, Mauro
4934 Bieg).
4936 * CommonMark reader: Handle `ascii_identifiers` extension (#4742,
4937 Anders Waldenborg). Non-ascii characters were not stripped from
4938 identifiers even if the `ascii_identifiers` extension was
4939 enabled (which is is by default for gfm).
4941 * TikiWiki reader: Improve list parsing (#4722, Mauro Bieg).
4942 Remove trailing Space from list items. Parse lists that have no space
4943 after marker.
4945 * LaTeX reader:
4947 + Treat `lilypond` as a verbatim environment (#4725).
4948 + Parse figure label into Image id (#4700, Mauro Bieg).
4949 + Beamer: Allow "noframenumbering" option (#4696, Raymond Ehlers).
4950 + Allow spaces around `\graphicspath` arguments (#4698).
4951 + Handle includes without surrounding blanklines (#4553).
4952 In addition, `\input` can now be used in an inline context,
4953 e.g. to provide part of a paragraph, as it can in LaTeX.
4954 + In `rawLaTeXBlock`, handle macros that resolve to a
4955 `\begin` or `\end` (#4667).
4956 + In `rawLaTeXBlock`, don't expand macros in macro definitions (#4653).
4957 Note that this only affected LaTeX in markdown.
4958 + Tighten up reading of beamer overlay specifications (#4669).
4959 Ideally we'd turn these on only when reading beamer, but currently
4960 beamer is not distinguished from latex as an input format.
4961 This commit also activates parsing of overlay specifications
4962 after commands in general (e.g. `\item`), since they can occur
4963 in many contexts in beamer.
4964 + Parse more siunitx unit commands (#4296, #4773).
4965 + Be more forgiving in key/value option parsing (#4761).
4967 * Markdown reader:
4969 + Allow empty code spans, e.g. `` ` ` ``.
4970 + Emojis are now wrapped in Spans with class `emoji` and
4971 attribute `data-emoji` (Anders Waldenborg, #4743).
4972 This allows the writer to handle them in a special way
4973 (e.g. using a special font, or just rendering the
4974 emoji name).
4976 * Muse reader (Alexander Krotov, except where indicated):
4978 + Get rid of non-exhaustive pattern match warning (Mauro Bieg).
4979 + Add support for floating images.
4980 + Add support for images with specified width.
4981 + Parse image URLs without "guard" and "takeExtension".
4982 + Split link and image parsing into separate functions.
4983 + Parse links starting with "URL:" explicitly instead of trying to strip
4984 "URL:" prefix after parsing.
4986 * Texinfo writer: Use `@sup` and `@sub` instead of custom macros (#4728,
4987 Alexander Krotov).
4989 * Markdown writer: Preserve `implicit_figures` with attributes, even if
4990 `implicit_attributes` is not set, by rendering in raw HTML (#4677).
4992 * Markdown and commonmark/github writers now respect the `emoji`
4993 extension. So, `-f markdown+emoji -t markdown+emoji` now leaves
4994 `:smile:` as `:smile:` rather than converting it to a smile
4995 character.
4997 * Docx writer: Be sensitive to `toc` in YAML metadata (#4645).
4999 * ODT/OpenDocument writer: Make internal links work (#4358).
5000 This adds proper bookmarks to the headers with non-null IDs.
5002 * EPUB writer: Properly escape pagetitle. Previously we weren't
5003 escaping `&` and other XML characters in the pagetitle, so a title
5004 containing a `&` would be invalid.
5006 * AsciiDoc Writer: Eescape square brackets at start of line (#4545,
5007 Mauro Bieg).
5009 * RST writer:
5011 + Don't treat 'example' as a syntax name (#4748).
5012 This fixes conversions from org with example blocks.
5013 + Support `--number-sections` via the `section-numbering`
5014 directive in standalone output.
5016 * reveal.js writer and template: reuse mathjax URL
5017 provided by the argument to `--mathjax` or the normal pandoc default,
5018 rather than a hard-coded one in the template (#4701).
5020 * LaTeX writer:
5022 + Properly handle footnotes in table captions (#4683).
5023 Refactored code from figure captions to use in both places.
5024 + In beamer output, fix single digit column percentage (#4690, Mauro
5025 Bieg).
5027 * FB2 writer (Alexander Krotov):
5029 + Convert Plain to Para in annotation (#2424).
5030 + Fix order of items in title-info (#2424).
5032 * Custom writer: fix error message on script failure (Albert Krewinkel).
5033 Error messages produced by Lua were not displayed by Pandoc.
5035 * Text.Pandoc.Emoji now exports `emojiToInline`, which returns a Span
5036 inline containing the emoji character and some attributes with metadata
5037 (class `emoji`, attribute `data-emoji` with emoji name). (API change,
5038 Anders Waldenborg, #4743).
5040 * Text.Pandoc.PDF:
5042 + Revert fix for #4484 (only compress images on last run, #4755).
5043 This will mean some increase in the time it takes to
5044 produce an image-heavy PDF with xelatex, but it will
5045 make tables of contents correct, which is more important.
5046 + Fix logic error in `runTeXProgram`. We were running the tex program
5047 one more time than requested. This should speed up PDF production.
5049 * Allow `--template` to take a URL as argument.
5051 * Text.Pandoc.Highlighting: Add missing re-export of `breezeDark`
5052 highlighting style (#4687, Adrian Sieber, API change).
5054 * Clarify macOS install in INSTALL.md (#4661). Make the binary package
5055 installer the recommended method, and note that on some older versions of
5056 macOS, homebrew installs from source and takes a lot of disk space
5057 (#4664, Ian).
5059 * MANUAL:
5061 + Clarify EPUB linked media (#4756, Mauro Bieg)
5062 + Update manual for "true" YAML values. Now that we're using HsYAML and
5063 YAML 1.2, the valid true values are `true`, `True`, `TRUE`. NOTE!
5064 `y`, `yes`, `on` no longer count as true values.
5065 + Document `-F` as alias for `--filter` (thanks to Gandalf Saxe).
5066 + Update manual on how math is rendered in LaTeX.
5067 + Add proxy description (#4131, Mauro Bieg).
5068 + Clarify that `--toc` requires `--standalone` (#4703).
5069 + Update citation styles link (#4699, wiefling).
5071 * In API docs, clarify how `Ext_east_asian_line_breaks` extension works
5072 (kaizshang91). Note that it will not take effect when readers/writers
5073 are called as libraries (#4674).
5075 * Improved translations/fr (#4766, lux-lth).
5077 * Removed inadvertently added `.orig` files from repository (#4648).
5079 * Remove `network-uri` flag and use 'Network.Socket'.
5080 This removes a compiler warning. There is no need for the old
5081 `network-uri` flag, since network 2.6 was released in 2014.
5083 * Add stack.lts10.yaml, stack.lts11.yaml. use lts-12 in stack.yaml.
5085 * Bump upper bounds for dependent packages.
5087 * Exclude foundation 0.0.21 for ghc 7.10. Otherwise cabal gets
5088 confused because of the way ghc 7.10 is excluded in foundation's
5089 cabal file. This can be removed when haskell-foundation/foundation#500
5090 is fixed.
5092 * Require cabal-version >= 2.0. This is needed for haddock-library.
5097## pandoc 2.2.1 (2018-05-10)
5099 * Restored and undeprecated gladtex for HTML math (#4607).
5101 + Added `GladTeX` constructor to `Text.Pandoc.Options.HTMLMathMethod`
5102 [API change, reverts removal in v2.2]
5103 + Restored and undeprecated `--gladtex` option, removed in v2.2.
5105 * LaTeX reader: Handle `$` in `/text{..}` inside math (#4576).
5107 * Org reader: Fix image filename recognition (Albert Krewinkel).
5108 Use a function from the filepath library to check whether a string is a
5109 valid file name. The custom validity checker that was used before gave
5110 wrong results (e.g. for absolute file paths on Windows,
5111 kawabata/ox-pandoc#52).
5113 * FB2 reader: Replace some errors with warnings (Alexander Krotov).
5115 * HTML writer:
5117 + Strip links from headers when creating TOC (#4340).
5118 Otherwise the TOC entries will not link to the sections.
5119 + Fix regression with tex math environments in HTML + MathJax (#4639).
5121 * Muse writer (Alexander Krotov): Add support for left-align and
5122 right-align classes (#4542).
5124 * Docx writer: Support underline (#4633).
5126 * Text.Pandoc.Parsing: Lookahead for non-whitespace after
5127 `singleQuoteStart` and `doubleQuoteStart` (#4637).
5129 * `test-pandoc-utils.lua`: more robust testing on both windows
5130 and \*nix. Previously the pipe tests were only run if
5131 `\bin/false` and `/bin/sed` were present, which they aren't
5132 in default MacOS and Windows systems. Fixed by using `tr`
5133 and `false`, which should always be in the path on a \*nix
5134 system, and `find` and `echo` for Windows.
5136 * Text.Pandoc.Shared: add `uriPathToPath`.
5137 This adjusts the path from a file: URI in a way that is sensitive
5138 to Windows/Linux differences. Thus, on Windows,
5139 `/c:/foo` gets interpreted as `c:/foo`, but on Linux,
5140 `/c:/foo` gets interpreted as `/c:/foo`. See #4613.
5142 * Use `uriPathToPath` with file: URIs (#4613).
5144 * Revert piping HTML to pdf-engine (Mauro Bieg, #4413). Use a temp
5145 file as before.
5147 * Text.Pandoc.Class: Catch IO errors when writing media files
5148 and issue a warning, rather than an error (Francesco Occhipinti, #4559).
5150 * Don't lowercase custom writer filename (Alexander Krotov, #4610).
5152 * MANUAL (Mauro Bieg):
5154 + Clarify truthiness in template variables (#2281).
5155 + Clarify pipe table width calculation (#4520).
5157 * ConTeXt template: New Greek fallback typeface (Pablo Rodríguez, #4405).
5158 CMU Serif gives better typographic results than the previous
5159 Greek fallback DejaVu Serif.
5161 * Make HTML template polyglot (#4606, OvidiusCicero), by making
5162 `<link rel="stylesheet" href="$css$">` self-closing.
5164 * Use texmath 0.11, allowing better translation of non-ASCII
5165 characters in math (#4642).
5168## pandoc 2.2 (2018-04-27)
5170 * New input format: `fb2` (FictionBook2) (Alexander Krotov).
5172 * Make `--ascii` work for all XML formats (ICML, OPML, JATS,...),
5173 and for `ms` and `man`.
5175 * Remove deprecated `--latexmathml`, `--gladtex`, `--mimetex`, `--jsmath`, `-m`,
5176 `--asciimathml` options.
5178 * New module Text.Pandoc.Readers.FB2, exporting readFB2 (Alexander
5179 Krotov, API change).
5181 * Markdown reader:
5183 + Allow empty key-value attributes, like `title=""` (#2944).
5184 + Handle table w/o following blank line in fenced div (#4560).
5185 + Remove "fallback" for `doubleQuote` parser. Previously the
5186 parser tried to be efficient -- if no end double quote was found,
5187 it would just return the contents. But this could backfire in a
5188 case `**this should "be bold**`, since the fallback would return
5189 the content `"be bold**` and the closing boldface delimiter
5190 would never be encountered.
5191 + Improve computation of the relative width of the last column in a
5192 multiline table, so we can round-trip tables without constantly
5193 shrinking the last column.
5195 * EPUB reader:
5197 + Fix images with space in file path (#4344).
5199 * LaTeX reader:
5201 + Properly resolve section numbers with `\ref` and chapters (#4529).
5202 + Parse sloppypar environment (#4517, Marc Schreiber).
5203 + Improve handling of raw LaTeX (for markdown etc.) (#4589, #4594).
5204 Previously there were some bugs in how macros were handled.
5205 + Support `\MakeUppercase`, `\MakeLowercase`, `\uppercase`,
5206 `\lowercase`, and also `\MakeTextUppercase` and
5207 `\MakeTextLowercase` from textcase (#4959).
5209 * Textile reader:
5211 + Fixed tables with no body rows (#4513).
5212 Previously these raised an exception.
5214 * Mediawiki reader:
5216 + Improve table parsing (#4508). This fixes detection of table
5217 attributes and also handles `!` characters in cells.
5219 * DocBook reader:
5221 + Properly handle title in `section` element (#4526).
5222 Previously we just got `section_title` for `section` (though `sect1`,
5223 `sect2`, etc. were handled properly).
5224 + Read tex math as output by asciidoctor (#4569, Joe Hermaszewski).
5226 * Docx reader:
5228 + Combine adjacent CodeBlocks with the same attributes into
5229 a single CodeBlock. This prevents a multiline codeblock in
5230 Word from being read as different paragraphs.
5232 * RST reader:
5234 + Allow < 3 spaces indent under directives (#4579).
5235 + Fix anonymous redirects with backticks (#4598).
5237 * Muse reader (Alexander Krotov):
5239 + Add support for Text::Amuse multiline headings.
5240 + Add `<math>` tag support.
5241 + Add support for `<biblio>` and `<play>` tags.
5242 + Allow links to have empty descriptions.
5243 + Require block `<literal>` tags to be on separate lines.
5244 + Allow `-` in anchors.
5245 + Allow verse to be indented.
5246 + Allow nested footnotes.
5247 + Internal improvements.
5249 * Muse writer (Alexander Krotov):
5251 + Escape `>` only at the beginning of a line.
5252 + Escape `]` in image title.
5253 + Escape `]` brackets in URLs as `%5D`.
5254 + Only escape brackets when necessary.
5255 + Escape ordered list markers.
5256 + Do not escape list markers unless preceded by space.
5257 + Escape strings starting with space.
5258 + Escape semicolons and markers after line break.
5259 + Escape `;` to avoid accidental comments.
5260 + Don't break headers, line blocks and tables with line breaks.
5261 + Correctly output empty headings.
5262 + Escape horizontal rule only if at the beginning of the line.
5263 + Escape definition list terms starting with list markers.
5264 + Place header IDs before header.
5265 + Improve span writing.
5266 + Do not join Spans in normalization.
5267 + Don't align ordered list items.
5268 + Remove key-value pairs from attributes before normalization.
5269 + Enable `--wrap=preserve` for all tests by default.
5270 + Reduced `<verbatim>` tags in output.
5271 + Internal changes.
5273 * RST writer:
5275 + Use more consistent indentation (#4563). Previously we
5276 used an odd mix of 3- and 4-space indentation. Now we use 3-space
5277 indentation, except for ordered lists, where indentation must
5278 depend on the width of the list marker.
5279 + Flatten nested inlines (#4368, Francesco Occhipinti).
5280 Nested inlines are not valid RST syntax, so we flatten them following
5281 some readability criteria discussed in #4368.
5283 * EPUB writer:
5285 + Ensure that `pagetitle` is always set, even when structured titles
5286 are used. This prevents spurious warnings about empty title
5287 elements (#4486).
5289 * FB2 writer (Alexander Krotov):
5291 + Output links inline instead of producing notes. Previously all links
5292 were turned into footnotes with unclickable URLs inside.
5293 + Allow emphasis and notes in titles.
5294 + Don't intersperse paragraph with empty lines.
5295 + Convert metadata value `abstract` to book annotation.
5296 + Use `<empty-line />` for `HorizontalRule` rather than `LineBreak`.
5297 FB2 does not have a way to represent line breaks inside paragraphs;
5298 previously we used `<empty-line />` elements, but these are not allowed
5299 inside paragraphs.
5301 * Powerpoint writer (Jesse Rosenthal):
5303 + Handle Quoted Inlines (#4532).
5304 + Simplify code with `ParseXml`.
5305 + Allow fallback options when looking for placeholder type.
5306 + Check reference-doc for all layouts.
5307 + Simplify speaker notes logic.
5308 + Change notes state to a simpler per-slide value.
5309 + Remove `Maybe` from `SpeakerNotes` in `Slide`. `mempty`
5310 means no speaker notes.
5311 + Add tests for improved speaker notes.
5312 + Handle speaker notes earlier in the conversion process.
5313 + Keep notes with related blocks (#4477). Some blocks automatically
5314 split slides (imgs, tables, `column` divs). We assume that any
5315 speaker notes immediately following these are connected to these
5316 elements, and keep them with the related blocks, splitting after them.
5317 + Remove `docProps/thumbnail.jpeg` in data dir (Jesse Rosenthal, #4588).
5318 It contained a nonfree ICC color calibration profile and is not needed
5319 for production of a powerpoint document.
5321 * Markdown writer:
5323 + Include a blank line at the end of the row in a single-row multiline
5324 table, to prevent it from being interpreted as a simple table (#4578).
5326 * CommonMark writer:
5328 + Correctly ignore LaTeX raw blocks when `raw_tex` is not
5329 enabled (#4527, quasicomputational).
5331 * EPUB writer:
5333 + Add `epub:type="footnotes"` to notes section in EPUB3 (#4489).
5335 * LaTeX writer:
5337 + In beamer, don't use format specifier for default ordered lists
5338 (#4556). This gives better results for styles that put ordered list
5339 markers in boxes or circles.
5340 + Update `\lstinline` delimiters (#4369, Tim Parenti).
5342 * Ms writer:
5344 + Use `\f[R]` rather than `\f[]` to reset font (#4552).
5345 + Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`,
5346 since the header font is automatically bold (#4552).
5347 + Use `\f[CB]` rather than `\f[BC]` for monospace bold (#4552).
5348 + Create pdf anchor for a Div with an identifier (#4515).
5349 + Escape `/` character in anchor ids (#4515).
5350 + Improve escaping for anchor ids: we now use _uNNN_ instead of uNNN
5351 to avoid ambiguity.
5353 * Man writer:
5355 + Don't escape U+2019 as `'` (#4550).
5357 * Text.Pandoc.Options:
5359 + Removed `JsMath`, `LaTeXMathML`, and `GladTeX` constructors from
5360 `Text.Pandoc.Options.HTMLMathMethod` [API change].
5362 * Text.Pandoc.Class:
5364 + `writeMedia`: unescape URI-escaping in file path. This avoids
5365 writing things like `file%20one.png` to the file system.
5367 * Text.Pandoc.Parsing:
5369 + Fix `romanNumeral` parser (#4480). We previously accepted 'DDC'
5370 as 1100.
5371 + `uri`: don't treat `*` characters at end as part of URI (#4561).
5373 * Text.Pandoc.MIME:
5375 + Use the alias `application/eps` for EPS (#2067).
5376 This will ensure that we retain the eps extension after reading the
5377 image into a mediabag and writing it again.
5379 * Text.Pandoc.PDF:
5381 + Use `withTempDir` in `html2pdf`.
5382 + With `xelatex`, don't compress images til the last run (#4484).
5383 This saves time for image-heavy documents.
5384 + Don't try to convert EPS files (#2067). `pdflatex` converts them
5385 itself, and JuicyPixels can't do it.
5386 + For `pdflatex`, use a temp directory in the working directory.
5387 Otherwise we can have problems with the EPS conversion pdflatex
5388 tries to do, which can't operate on a file above the working
5389 directory without `--shell-escape`.
5391 * Changes to tests to accommodate changes in pandoc-types.
5392 In <https://github.com/jgm/pandoc-types/pull/36> we changed
5393 the table builder to pad cells. This commit changes tests
5394 (and two readers) to accord with this behavior.
5396 * Set default extensions for `beamer` same as `latex`.
5398 * LaTeX template:
5400 + Add `beameroption` variable (#4359, Étienne Bersac).
5401 + Use `pgfpages` package; this is needed for notes on second
5402 screen in beamer (Étienne Bersac).
5403 + Add `background-image` variable (#4601, John Muccigrosso).
5405 * reveal.js template: Add `background-image` variable (#4600,
5406 John Muccigrosso).
5408 * ms template: Fix date. Previously `.ND` was used, but this only
5409 works if you have a title page, which we don't. Thanks to @teoric.
5411 * Removed pragmas for unused extensions (#4506, Anabra).
5413 * Fix bash completion for `--print-default-data-file` (#4549).
5414 Previously this looked in the filesystem, even if pandoc
5415 was compiled with `embed_data_files` (and sometimes it looked
5416 in a nonexistent build directory). Now the bash completion
5417 script just includes a hard-coded list of data file names.
5419 * MANUAL:
5421 + Clarify template vs metadata variables (#4501, Mauro Bieg).
5422 + Fix raw content example (#4479, Mauro Bieg).
5423 + Specify that you use html for raw output in epub.
5424 + Add examples for raw docx blocks (#4472, Tristan Stenner).
5425 The documentation states that the target format name should match
5426 the output format, which isn't the case for `docx`/`openxml` and
5427 some others.
5428 + Don't say that `empty_paragraphs` affects markdown output (#4540).
5429 + Consolidate input/output format documentation (#4577, Mauro Bieg).
5431 * New README template. Take in/out formats from manual.
5433 * Fix example in lua-filters docs (#4459, HeirOfNorton).
5435 * Use the `-threaded` GHC flag when building benchmarks (#4587,
5436 Francesco Occhipinti).
5438 * Bump temporary upper bound to 1.4.
5440 * Use pandoc-citeproc 0.14.3.1.
5442 * Use texmath-0.10.1.2 (fixes escapes in math in ms, #4597).
5444 * Removed old lib directory. This was used for something long ago,
5445 but plays no role now.
5447 * Removed unneeded data file `LaTeXMathML.js`.
5449 * Create 64- and 32-bit versions of Windows binary packages.
5451## pandoc 2.1.3 (2018-03-18)
5453 * Docx reader (Jesse Rosenthal):
5455 + Add tests for nested smart tags.
5456 + Parse nested smart tags.
5457 + Make unwrapSDT into a general `unwrap` function that can unwrap both
5458 nested SDT tags and smartTags. This makes the SmartTags constructor in
5459 the Docx type unnecessary, so we remove it (#4446).
5460 + Remove unused `docxWarnings` (Alexander Krotov).
5462 * RST reader: Allow unicode bullet characters (#4454).
5464 * Haddock reader: Better table handling, using haddock-library's
5465 new table support, if compiled against a version that
5466 includes it. Note that tables with col/rowspans will not
5467 translate well into Pandoc.
5469 * Muse reader (Alexander Krotov):
5471 + Various internal improvements.
5472 + Require closing tag to have the same indentation as opening.
5473 + Do not reparse blocks inside unclosed block tag (#4425).
5474 + Parse `<class>` tag (supported by Emacs Muse).
5475 + Do not produce empty Str element for unindented verse lines.
5477 * LaTeX reader:
5479 + Add support to parse unit string of `\SI` command (closes #4296,
5480 Marc Schreiber).
5482 * Haddock writer: In the writer, we now render tables always as
5483 grid tables, since Haddock supports these.
5485 * DokuWiki writer: rewrite backSlashLineBreaks (#4445, Mauro Bieg).
5487 * Docx writer: Fixed formatting of `DefaultStyle` ordered lists in
5488 docx writer. We want decimal for the top level, not lower roman.
5490 * RST writer:
5492 + Strip whitespace at beginning and ending of inline containers
5493 (#4327, Francesco Occhipinti).
5494 + Filter out empty inline containers (#4434). There is nothing in
5495 RST that corresponds to e.g. `Emph []`, so we just ignore elements
5496 like this (Francesco Occhipinti).
5498 * Muse writer (Alexander Krotov):
5500 + Support spans with anchors.
5501 + Replace smallcaps with emphasis before normalization.
5502 + Output smallcaps as emphasis.
5503 + Expand Cite before list normalization.
5504 + Write empty inline lists as `<verbatim></verbatim>`.
5505 + Remove empty Str from the beginning of inline lists during normalization.
5506 + Escape "-" to avoid creating bullet lists.
5507 + Fix math expansion for more than one expression per paragraph.
5508 + Expand math before inline list normalization.
5510 * Dokuwiki writer: fix LineBreaks in Tables (#4313, Mauro Bieg).
5512 * Ms writer:
5514 + Asciify pdf anchors, since unicode anchors don't work (#4436).
5515 Internal links should be converted automatically, so this shouldn't
5516 affect users directly.
5517 + Don't escape hyphens as `\-`; that's for a minus sign (#4467).
5519 * Beamer writer: put hyperlink after `\begin{frame}` and not in the title
5520 (#4307). If it's in the title, then we get a titlebar on slides with
5521 the `plain` attribute, when the id is non-null. This fixes a regression
5522 in 2.0.
5524 * EPUB writer: Remove notes from TOC in nav.xhtml (#4453, Mauro Bieg).
5526 * JATS writer: Remove extraneous, significant whitespace (#4335,
5527 Nokome Bentley).
5529 * html2pdf: inject base tag with current working directory (#4413, Mauro
5530 Bieg). This helps ensure that linked resources are included.
5532 * Add Semigroup instances for everything for which we defined a
5533 Monoid instance previously (API change):
5535 + Text.Pandoc.Class.FileTree.
5536 + Text.Pandoc.Translations.Translations.
5537 + Text.Pandoc.Extensions.Extensions.
5538 + Text.Pandoc.Readers.Odt.StyleReader.Styles.
5539 + Text.Pandoc.Pretty.Doc.
5540 + Text.Pandoc.MediaBag.MediaBag.
5542 * Add custom Prelude to give clean code for Monoid and Semigroup
5543 that works with ghc 7.10-8.4. The custom Prelude (`prelude/Prelude`)
5544 is used for ghc versions < 8.4. `NoImplicitPrelude` is used
5545 in all source files, and Prelude is explicitly imported
5546 (this is necessary for ghci to work properly with the custom prelude).
5548 * Text.Pandoc.Writers.Shared (Francesco Occhipinti):
5550 + Export `stripLeadingTrailingSpace`.
5551 + Don't wrap lines in grid tables when `--wrap=none` (#4320).
5552 + `gridTable`: Don't wrap lines in tables when `--wrap=none`. Instead,
5553 expand cells, even if it results in cells that don't respect relative
5554 widths or surpass page column width. This change affects RST,
5555 Markdown, and Haddock writers.
5557 * Raise error if someone tries to print docx, odt, etc. template (#4441).
5559 * LaTeX template: Provide `bidi` package's option using
5560 `\PassOptionsToPackage` (#4357, Václav Haisman). This avoid a
5561 clash when `polyglossia` loads it first and then it is loaded again
5562 for XeLaTeX.
5564 * ConTeXt template: Added `pdfa` variable to generate PDF/A (#4294, Henri
5565 Menke). Instructions on how to install the ICC profiles on ConTeXt
5566 standalone can be found in the wiki:
5567 <http://wiki.contextgarden.net/PDFX#ICC_profiles>.
5568 If the ICC profiles are not available the log will contain error
5569 messages.
5571 * Use latest pandoc-types, skylighting
5573 * Use latest pandoc-citeproc in binary package.
5575 * Bump upper bound for time, criterion, haddock-library, exceptions,
5576 http-types, aeson, haddock-library.
5578 * Bump upper bound tasty-quickcheck 0.10 (#4429, Felix Yan).
5580 * pandoc.cabal: fix up other-extensions and language fields.
5581 Language is now consistently `Haskell2010`, and other-extensions
5582 is consistently `NoImplicitPrelude`. Everything else to be specified
5583 in the module header as needed.
5585 * Removed `old-locale` flag and Text.Pandoc.Compat.Time.
5586 This is no longer necessary since we no longer support ghc 7.8.
5588 * Make `weigh-pandoc` into a benchmark program.
5589 Remove `weigh-pandoc` flag. `weigh-pandoc` is now built (and run)
5590 automatically when you build (and run) benchmarks.
5592 * MANUAL: add instructions for background images reveal.js (#4325, John
5593 Muccigrosso).
5595 * appveyor: use VS 2013 environment instead of VS 2015 for Windows builds.
5597## pandoc 2.1.2 (2018-03-02)
5599 * Markdown reader:
5601 + Fix parsing bug with nested fenced divs (#4281). Previously we allowed
5602 "nonindent spaces" before the opening and closing `:::`, but this
5603 interfered with list parsing, so now we require the fences to be flush with
5604 the margin of the containing block.
5606 * Commonmark reader:
5608 + `raw_html` is now on by default. It can be disabled explicitly
5609 using `-f commonmark-raw_html`.
5611 * Org reader (Albert Krewinkel):
5613 + Move citation tests to separate module.
5614 + Allow changing emphasis syntax (#4378). The characters allowed before
5615 and after emphasis can be configured via `#+pandoc-emphasis-pre` and
5616 `#+pandoc-emphasis-post`, respectively. This allows to change which
5617 strings are recognized as emphasized text on a per-document or even
5618 per-paragraph basis. Example:
5620 #+pandoc-emphasis-pre: "-\t ('\"{"
5621 #+pandoc-emphasis-post: "-\t\n .,:!?;'\")}["
5623 * LaTeX reader:
5625 + Fixed comments inside citations (#4374).
5626 + Fix regression in package options including underscore (#4424).
5627 + Make `--trace` work.
5628 + Fixed parsing of `tabular*` environment (#4279).
5630 * RST reader:
5632 + Fix regression in parsing of headers with trailing space (#4280).
5634 * Muse reader (Alexander Krotov):
5636 + Enable `<literal>` tags even if amuse extension is enabled.
5637 Amusewiki disables <literal> tags for security reasons.
5638 If user wants similar behavior in pandoc, RawBlocks and RawInlines
5639 can be removed or replaced with filters.
5640 + Remove space prefix from `<literal>` tag contents.
5641 + Do not consume whitespace while looking for closing end tag.
5642 + Convert alphabetical list markers to decimal in round-trip test.
5643 Alphabetical lists are an addition of Text::Amuse.
5644 They are not present in Emacs Muse and can be ambiguous
5645 when list starts with "i.", "c." etc.
5646 + Allow `<quote>` and other tags to be indented.
5647 + Allow single colon in definition list term.
5648 + Fix parsing of verse in lists.
5649 + Improved parsing efficiency. Avoid `parseFromString`.
5650 Lists are parsed in linear instead of exponential time now.
5651 + Replace ParserState with MuseState.
5652 + Prioritize lists with roman numerals over alphabetical lists.
5653 This is to make sure "i." starts a roman numbered list,
5654 instead of a list with letter "i" (followed by "j", "k", ...").
5655 + Fix directive parsing.
5656 + Parse definition lists with multiple descriptions.
5657 + Parse next list item before parsing more item contents.
5658 + Fixed a bug: headers did not terminate lists.
5659 + Move indentation parsing from `definitionListItem` to `definitionList`.
5660 + Paragraph indentation does not indicate nested quote.
5661 Muse allows indentation to indicate quotation or alignment,
5662 but only on the top level, not within a <quote> or list.
5663 + Require that block tags are on separate lines.
5664 Text::Amuse already explicitly requires it anyway.
5665 + Fix matching of closing inline tags.
5666 + Various internal changes.
5667 + Fix parsing of nested definition lists.
5668 + Require only one space for nested definition list indentation.
5669 + Do not remove trailing whitespace from `<code>`.
5670 + Fix parsing of trailing whitespace. Newline after whitespace now
5671 results in softbreak instead of space.
5673 * Docx reader (Jesse Rosenthal, except where noted):
5675 + Handle nested sdt tags (#4415).
5676 + Don't look up dependant run styles if `+styles` is enabled.
5677 + Move pandoc inline styling inside custom-style span.
5678 + Read custom styles (#1843). This will read all paragraph and
5679 character classes as divs and spans, respectively. Dependent styles
5680 will still be resolved, but will be wrapped with appropriate style
5681 tags. It is controlled by the `+styles` extension (`-f docx+styles`).
5682 This can be used in conjunction with the `custom-style` feature in the
5683 docx writer for a pandoc-docx editing workflow. Users can convert from
5684 an input docx, reading the custom-styles, and then use that same input
5685 docx file as a reference-doc for producing an output docx file. Styles
5686 will be maintained across the conversion, even if pandoc doesn't
5687 understand them.
5688 + Small change to Fields hyperlink parser. Previously, unquoted string
5689 required a space at the end of the line (and consumed it). Now we
5690 either take a space (and don't consume it), or end of input.
5691 + Pick table width from the longest row or header (Francesco Occhipinti,
5692 #4360).
5694 * Muse writer (Alexander Krotov):
5696 + Change verse markup: `> ` instead of `<verse>` tag.
5697 + Remove empty strings during inline normalization.
5698 + Don't indent nested definition lists.
5699 + Use unicode quotes for quoted text.
5700 + Write image width specified in percent in Text::Amuse mode.
5701 + Don't wrap displayMath into `<verse>`.
5702 + Escape nonbreaking space (`~~`).
5703 + Join code with different attributes during normalization.
5704 + Indent lists inside Div.
5705 + Support definitions with multiple descriptions.
5707 * Powerpoint writer (Jesse Rosenthal):
5709 + Use table styles This will use the default table style in the
5710 reference-doc file. As a result they will be easier when using
5711 in a template, and match the color scheme.
5712 + Remove empty slides. Because of the way that slides were split, these
5713 could be accidentally produced by comments after images. When animations
5714 are added, there will be a way to add an empty slide with either
5715 incremental lists or pauses.
5716 + Implement syntax highlighting. Note that background colors can't
5717 be implemented in PowerPoint, so highlighting styles that require
5718 these will be incomplete.
5719 + New test framework for pptx. We now compare the output of the
5720 Powerpoint writer with files that we know to (a) not be corrupt,
5721 and (b) to show the desired output behavior (details below).
5722 + Add `notesMaster` to `presentation.xml` if necessary.
5723 + Ignore links and (end)notes in speaker notes.
5724 + Output speaker notes.
5725 + Read speaker note templates conditionally. If there are speaker
5726 notes in the presentation, we read in the notesMasters templates
5727 from the reference pptx file.
5728 + Fix deletion track changes (#4303, Jesse Rosenthal).
5730 * Markdown writer: properly escape @ to avoid capture as citation
5731 (#4366).
5733 * LaTeX writer:
5735 + Put hypertarget inside figure environment (#4388).
5736 This works around a problem with the endfloat package and
5737 makes pandoc's output compatible with it.
5738 + Fix image height with percentage (#4389). This previously caused
5739 the image to be resized to a percentage of textwidth, rather than
5740 textheight.
5742 * ConTeXt writer (Henri Menke):
5744 + New section syntax and support `--section-divs` (#2609).
5745 `\section[my-header]{My Header}` ->
5746 `\section[title={My Header},reference={my-header}]`.
5747 The ConTeXt writer now supports the `--section-divs` option to
5748 write sections in the fenced style, with `\startsection` and
5749 `\stopsection`.
5750 + xtables: correct wrong usage of caption (Henri Menke).
5752 * Docx writer:
5754 + Fix image resizing with multiple images (#3930, Andrew Pritchard).
5755 + Use new golden framework (Jesse Rosenthal).
5756 + Make more deterministic to facilitate testing (Jesse Rosenthal).
5757 - `getUniqueId` now calls to the state to get an incremented digit,
5758 instead of calling to P.uniqueHash.
5759 - we always start the PRNG in mkNumbering/mkAbstractNum with the same
5760 seed (1848), so our randoms should be the same each time.
5761 + Fix ids in comment writing (Jesse Rosenthal). Comments from
5762 `--track-changes=all` were producing corrupt docx, because the
5763 writer was trying to get id from the `(ID,_,_)` field of
5764 the attributes, and ignoring the "id" entry in the key-value pairs. We
5765 now check both.
5767 * Ms writer: Added papersize variable.
5769 * TEI writer:
5771 + Use `height` instead of `depth` for images (#4331).
5772 + Ensure that id prefix is always used.
5773 + Don't emit `role` attribute; that was a leftover from the
5774 Docbook writer.
5775 + Use 'xml:id', not 'id' attribute (#4371).
5777 * AsciiDoc writer:
5779 + Do not output implicit heading IDs (#4363, Alexander
5780 Krotov). Convert to `asciidoc-auto_identifiers` for old behaviour.
5782 * RST writer:
5784 + Remove `blockToRST'` moving its logic into `fixBlocks`
5785 (Francesco Occhipinti).
5786 + Insert comment between lists and quotes (#4248, Francesco Occchipinti).
5788 * RST template: remove definition of 'math' role as raw.
5789 This used to be needed prior to v 0.8 of docutils, but
5790 now math support is built-in.
5792 * Slides: Use divs to set incremental/non-incremental (#4381,
5793 Jesse Rosenthal). The old method (list inside blockquote) still
5794 works, but we are encouraging the use of divs with class
5795 `incremental` or `nonincremental`.
5797 * Text.Pandoc.ImageSize:
5799 + Make image size detection for PDFs more robust (#4322).
5800 + Determine image size for PDFs (#4322).
5801 + EMF Image size support (#4375, Andrew Pritchard).
5803 * Text.Pandoc.Extensions:
5805 + Add `Ext_styles` (Jesse Rosenthal, API change). This will be used in
5806 the docx reader (defaulting to off) to read pargraph and character
5807 styles not understood by pandoc (as divs and spans, respectively).
5808 + Made `Ext_raw_html` default for `commonmark` format.
5810 * Text.Pandoc.Parsing:
5812 + Export `manyUntil` (Alexander Krotov, API change).
5813 + Export improved `sepBy1` (Alexander Krotov).
5814 + Export list marker parsers: `upperRoman`, `lowerRoman`,
5815 `decimal`, `lowerAlpha`, `upperAlpha` (Alexander Krotov, API change).
5817 * Tests/Lua: fix tests on windows (Albert Krewinkel).
5819 * Lua: register script name in global variable (#4393). The name of the Lua
5820 script which is executed is made available in the global Lua variable
5821 `PANDOC_SCRIPT_FILE`, both for Lua filters and custom writers.
5823 * Tests: Abstract powerpoint tests out to OOXML tests (Jesse Rosenthal).
5824 There is very little pptx-specific in these tests, so we abstract out
5825 the basic testing function so it can be used for docx as well. This
5826 should allow us to catch some errors in the docx writer that slipped
5827 by the roundtrip testing.
5829 * Lua filters: store constructors in registry (Albert Krewinkel). Lua
5830 functions used to construct AST element values are stored in the Lua
5831 registry for quicker access. Getting a value from the registry is much
5832 faster than getting a global value (partly to idiosyncrasies of hslua);
5833 this change results in a considerable performance boost.
5835 * Documentation:
5837 + `doc/org.md` Add draft of Org-mode documentation (Albert Krewinkel).
5838 + `doc/lua-filters.md`: document global vars set for filters
5839 (Albert Krewinkel).
5840 + INSTALL.md: mention Stack version. (#4343, Adam Brandizzi).
5841 + MANUAL: add documentation on custom styles (Jesse Rosenthal).
5842 + MANUAL.txt: Document incremental and nonincremental divs (Jesse
5843 Rosenthal). Blockquoted lists are still described, but fenced divs are
5844 presented in preference.
5845 + MANUAL.txt: document header and footer variables (newmana).
5846 + MANUAL.txt: self-contained implies standalone (#4304, Daniel Lublin).
5847 + CONTRIBUTING.md: label was renamed. (#4310, Alexander Brandizzi).
5849 * Require tagsoup 0.14.3 (#4282), fixing HTML tokenization bug.
5851 * Use latest texmath.
5853 * Use latest pandoc-citeproc.
5855 * Allow exceptions 0.9.
5857 * Require aeson-pretty 0.8.5 (#4394).
5859 * Bump blaze-markup, blaze-html lower bounds to 0.8, 0.9 (#4334).
5861 * Update tagsoup to 0.14.6 (Alexander Krotov, #4282).
5863 * Removed ghc-prof-options. As of cabal 1.24, sensible defaults are used.
5865 * Update default.nix to current nixpkgs-unstable for hslua-0.9.5 (#4348,
5866 jarlg).
5868## pandoc 2.1.1 (2018-01-18)
5870 * Markdown reader:
5872 + Don't coalesce adjacent raw LaTeX blocks if they are separated by a
5873 blank line. See lierdakil/pandoc-crossref#160.
5874 + Improved `inlinesInBalancedBrackets` (#4272, jgm/pandoc-citeproc#315).
5875 The change both improves performance and fixes a regression whereby
5876 normal citations inside inline notes and figure captions were not
5877 parsed correctly.
5879 * RST reader:
5881 + Better handling for headers with an anchor (#4240). Instead of creating a
5882 Div containing the header, we put the id directly on the header.
5883 This way header promotion will work properly.
5884 + Add aligned environment when needed in math (#4254). `rst2latex.py`
5885 uses an `align*` environment for math in `.. math::` blocks, so this
5886 math may contain line breaks. If it does, we put the math in an
5887 `aligned` environment to simulate `rst2latex.py`'s behavior.
5889 * HTML reader:
5891 + Fix col width parsing for percentages < 10% (#4262, n3fariox).
5893 * LaTeX reader:
5895 + Advance source position at end of stream.
5896 + Pass through macro defs in `rawLaTeXBlock` even if the `latex_macros`
5897 extension is set (#4246). This reverts to earlier behavior and is
5898 probably safer on the whole, since some macros only modify things in
5899 included packages, which pandoc's macro expansion can't modify.
5900 + Fixed pos calculation in tokenizing escaped space.
5901 + Allow macro definitions inside macros (#4253). Previously we went into
5902 an infinite loop with
5903 ```
5904 \newcommand{\noop}[1]{#1}
5905 \noop{\newcommand{\foo}[1]{#1}}
5906 \foo{hi}
5907 ```
5908 + Fix inconsistent column widths (#4238). This fixes a bug whereby column
5909 widths for the body were different from widths for the header in some
5910 tables.
5912 * Docx reader (Jesse Rosenthal):
5914 + Parse hyperlinks in `instrText` tags (#3389, #4266). This was a form of
5915 hyperlink found in older versions of word. The changes introduced for
5916 this, though, create a framework for parsing further fields in MS Word
5917 (see the spec, ECMA-376-1:2016, §17.16.5, for more on these fields).
5918 We introduce a new module, `Text.Pandoc.Readers.Docx.Fields` which
5919 contains a simple parsec parser. At the moment, only simple hyperlink
5920 fields are accepted, but that can be extended in the future.
5922 * Muse reader (Alexander Krotov):
5924 + Parse `~~` as non-breaking space in Text::Amuse mode.
5925 + Refactor list parsing.
5927 * Powerpoint writer (Jesse Rosenthal):
5929 + Change reference to `notesSlide` to `endNotesSlide`.
5930 + Move image sizing into `picProps`.
5931 + Improve table placement.
5932 + Make our own `_rels/.rels` file.
5933 + Import reference-doc images properly.
5934 + Move `Presentation.hs` out of `PandocMonad`.
5935 + Refactor into separate modules. T.P.W.Powerpoint.Presentation
5936 defines the Presentation datatype and goes Pandoc->Presentation;
5937 T.P.W.Pandoc.Output goes Presentation->Archive.
5938 Text.Pandoc.Writers.Powerpoint a thin wrapper around the two modules.
5939 + Avoid overlapping blocks in column output.
5940 + Position images correctly in two-column layout.
5941 + Make content shape retrieval environment-aware.
5942 + Improve image handling. We now determine image and caption placement
5943 by getting the dimensions of the content box in a given layout.
5944 This allows for images to be correctly sized and positioned in a
5945 different template. Note that images without captions and headers are
5946 no longer full-screened. We can't do this dependably in different
5947 layouts, because we don't know where the header is (it could be to
5948 the side of the content, for example).
5949 + Read presentation size from reference file. Our presentation size is
5950 now dependent on the reference/template file we use.
5951 + Handle (sub)headers above slidelevel correctly. Above the slidelevel,
5952 subheaders will be printed in bold and given a bit of extra space
5953 before them. Note that at the moment, no distinction is made between
5954 levels of headers above the slide header, though that can be changed.
5955 + Check for required files. Since we now import from reference/dist
5956 file by glob, we need to make sure that we're getting the files we
5957 need to make a non-corrupt Powerpoint. This performs that check.
5958 + Improve templating using `--reference-doc`. Templating should work
5959 much more reliably now.
5960 + Include Notes slide in TOC.
5961 + Set notes slide header to slide-level.
5962 + Add table of contents. This is triggered by the `--toc` flag. Note
5963 that in a long slide deck this risks overrunning the text box. The user
5964 can address this by setting `--toc-depth=1`.
5965 + Set notes slide number correctly.
5966 + Clean up adding metadata slide. We want to count the slide numbers
5967 correctly if it's in there.
5968 + Add anchor links. For anchor-type links (`[foo](#bar)`) we produce
5969 an anchor link. In powerpoint these are links to slides, so we keep
5970 track of a map relating anchors to the slides they occur on.
5971 + Make the slide number available to the blocks. For anchors,
5972 block-processing functions need to know what slide number
5973 they're in. We make the `envCurSlideId` available to blocks.
5974 + Move `curSlideId` to environment.
5975 + Allow setting `toc-title` in metadata.
5976 + Link notes to endnotes slide.
5978 * Markdown writer:
5980 + Fix cell width calculation (#4265). Previously we could get
5981 ever-lengthening cell widths when a table was run repeatedly through
5982 `pandoc -f markdown -t markdown`.
5984 * LaTeX writer:
5986 + Escape `&` in lstinline (Robert Schütz).
5988 * ConTeXt writer:
5990 + Use xtables instead of Tables (#4223, Henri Menke).
5991 Default to xtables for context output. Natural Tables are used
5992 if the new `ntb` extension is set.
5994 * HTML writer:
5996 + Fixed footnote backlinks with `--id-prefix` (#4235).
5998 * `Text.Pandoc.Extensions`: Added `Ext_ntb` constructor (API change,
5999 Henri Menke).
6001 * `Text.Pandoc.ImageSize`: add derived `Eq` instance to `Dimension`
6002 (Jesse Rosenthal, API change).
6004 * Lua filters (Albert Krewinkel):
6006 + Make `PANDOC_READER_OPTIONS` available.
6007 The options which were used to read the document are made available to
6008 Lua filters via the `PANDOC_READER_OPTIONS` global.
6009 + Add lua module `pandoc.utils.run_json_filter`, which runs a JSON filter
6010 on a Pandoc document.
6011 + Refactor filter-handling code into `Text.Pandoc.Filter.JSON`,
6012 `Text.Pandoc.Filter.Lua`, and `Text.Pandoc.Filter.Path`.
6013 + Improve error messages. Provide more context about the task
6014 which caused an error.
6016 * data/pandoc.lua (Albert Krewinkel):
6018 + Accept singleton inline as a list. Every constructor which accepts a
6019 list of inlines now also accepts a single inline element for
6020 convenience.
6021 + Accept single block as singleton list. Every constructor which accepts
6022 a list of blocks now also accepts a single block element for
6023 convenience. Furthermore, strings are accepted as shorthand for
6024 `{pandoc.Str "text"}` in constructors.
6025 + Add attr, listAttributes accessors. Elements with
6026 attributes got an additional `attr` accessor. Attributes were
6027 accessible only via the `identifier`, `classes`, and `attributes`,
6028 which was in conflict with the documentation, which indirectly states
6029 that such elements have the an `attr` property.
6030 + Drop `_VERSION`. Having a `_VERSION` became superfluous, as this
6031 module is closely tied to the pandoc version, which is available via
6032 `PANDOC_VERSION`.
6033 + Fix access to Attr components. Accessing an Attr value (e.g.,
6034 ` Attr().classes`) was broken; the more common case of accessing it via
6035 an Inline or Block element was unaffected by this.
6037 * Move `metaValueToInlines` to from Docx writer to
6038 `Text.Pandoc.Writers.Shared`, so it can be used by other writers
6039 (Jesse Rosenthal).
6041 * MANUAL.txt:
6043 + Clarify otherlangs in LaTeX (#4072).
6044 + Clarify `latex_macros` extension.
6045 + Recommend use of `raw_attribute` extension in header includes (#4253).
6047 * Allow latest QuickCheck, tasty, criterion.
6049 * Remove custom prelude and ghc 7.8 support.
6051 * Reduce compiler noise (exact paths for compiled modules).
6053## pandoc 2.1 (2018-01-07)
6055 * Allow filters and lua filters to be interspersed (#4196). Previously
6056 we ran all lua filters before JSON filters. Now we run filters in
6057 the order they are presented on the command line, whether lua or JSON.
6058 There are two incompatible API changes: The type of `applyFilters`
6059 has changed, and `applyLuaFilters` has been removed. `Filter` is
6060 also now exported.
6062 * Use latest skylighting and omit the `missingIncludes` check, fixing
6063 a major performance regression in earlier releases of the 2.x series
6064 (#4226). Behavior change: If you use a custom syntax definition that
6065 refers to a syntax you haven't loaded, pandoc will now complain when
6066 it is highlighting the text, rather than doing a check at the start.
6067 This change dramatically speeds up invocations of pandoc on short
6068 inputs.
6070 * Text.Pandoc.Class: make `FileTree` opaque (don't export
6071 `FileTree` constructor). This forces users to interact with it using
6072 `insertInFileTree` and `getFileInfo`, which normalize file names.
6074 * Markdown reader:
6076 + Rewrite `inlinesInBalancedBrackets`. The rewrite is much more
6077 direct, avoiding `parseFromString`. And it performs significantly
6078 better; unfortunately, parsing time still increases exponentially
6079 (see #1735).
6080 + Avoid parsing raw tex unless `\` + letter seen. This seems to
6081 help with the performance problem, #4216.
6083 * LaTeX reader: Simplified a check for raw tex command.
6085 * Muse reader (Alexander Krotov):
6087 + Enable round trip test (#4107).
6088 + Automatically translate `#cover` into `#cover-image`.
6089 Amusewiki uses #cover directive to specify cover image.
6091 * Docx reader (Jesse Rosenthal):
6093 + Allow for insertion/deletion of paragraphs (#3927).
6094 If the paragraph has a deleted or inserted paragraph break (depending
6095 on the track-changes setting) we hold onto it until the next
6096 paragraph. This takes care of accept and reject. For this we introduce
6097 a new state which holds the ils from the previous para if necessary.
6098 For `--track-changes=all`, we add an empty span with class
6099 `paragraph-insertion`/`paragraph-deletion` at the end of the paragraph
6100 prior to the break to be inserted or deleted.
6101 + Remove unused anchors (#3679). Docx produces a lot of anchors with
6102 nothing pointing to them---we now remove these to produce cleaner
6103 output. Note that this has to occur at the end of the process
6104 because it has to follow link/anchor rewriting.
6105 + Read multiple children of `w:sdtContents`.
6106 + Combine adjacent anchors. There isn't any reason to have numerous
6107 anchors in the same place, since we can't maintain docx's
6108 non-nesting overlapping. So we reduce to a single anchor.
6109 + Improved tests.
6111 * Muse writer (Alexander Krotov): don't escape URIs from AST
6113 * Docx writer:
6115 + Removed redundant subtitle in title (Sebastian Talmon).
6116 + `firstRow` table definition compatibility for Word 2016 (Sebastian
6117 Talmon). Word 2016 seems to use a default value of "1" for table
6118 headers, if there is no firstRow definition (although a default
6119 value of 0 is documented), so all tables get the first Row formatted
6120 as header. Setting the parameter to 0 if the table has no header
6121 row fixes this for Word 2016
6122 + Fix custom styles with spaces in the name (#3290).
6124 * Powerpoint writer (Jesse Rosenthal):
6126 + Ignore Notes div for parity with other slide outputs.
6127 + Set default slidelevel correctly. We had previously defaulted to
6128 slideLevel 2. Now we use the correct behavior of defaulting to the
6129 highest level header followed by content. We change an expected test
6130 result to match this behavior.
6131 + Split blocks correctly for linked images.
6132 + Combine adjacent runs.
6133 + Make inline code inherit code size. Previously (a) the code size
6134 wasn't set when we force size, and (b) the properties was set from
6135 the default, instead of inheriting.
6136 + Simplify `replaceNamedChildren` function.
6137 + Allow linked images. The following markdown:
6138 `[![Image Title](image.jpg)](http://www.example.com)`
6139 will now produce a linked image in the resulting PowerPoint file.
6140 + Fix error with empty table cell. We require an empty `<a:p>` tag,
6141 even if the cell contains no paragraphs---otherwise PowerPoint
6142 complains of corruption.
6143 + Implement two-column slides. This uses the columns/column div
6144 format described in the pandoc manual. At the moment, only two
6145 columns (half the screen each) are allowed. Custom widths are not
6146 supported.
6147 + Added more tests.
6149 * OpenDocument/ODT writers: improved rendering of formulas (#4170, oltolm).
6151 * Lua filters (Albert Krewinkel):
6153 + `data/pandoc.lua`: drop 'pandoc-api-version' from Pandoc objects
6154 + The current pandoc-types version is made available to Lua programs in
6155 the global `PANDOC_API_VERSION`. It contains the version as a list of
6156 numbers.
6157 + The pandoc version available as a global `PANDOC_VERSION` (a list
6158 of numbers).
6159 + `data/pandoc.lua`: make `Attr` an `AstElement`.
6160 + `data/pandoc.lua`: make all types subtypes of `AstElement`.
6161 `Pandoc`, `Meta`, and `Citation` were just plain functions and did
6162 not set a metatable on the returned value, which made it difficult
6163 to amend objects of these types with new behavior. They are now
6164 subtypes of AstElement, meaning that all their objects can gain
6165 new features when a method is added to the behavior object
6166 (e.g., `pandoc.Pandoc.behavior`).
6167 + `data/pandoc.lua`: split type and behavior tables. Clearly distinguish
6168 between a type and the behavioral properties of an instance of that
6169 type. The behavior of a type (and all its subtypes) can now be
6170 amended by adding methods to that types `behavior` object, without
6171 exposing the type objects internals. E.g.:
6172 ```lua
6173 pandoc.Inline.behavior.frob = function () print'42' end
6174 local str = pandoc.Str'hello'
6175 str.frob() -- outputs '42'
6176 ```
6177 + `data/pandoc.lua`: fix Element inheritance. Extending all elements
6178 of a given type (e.g., all inline elements) was difficult, as the
6179 table used to lookup unknown methods would be reset every time a
6180 new element of that type was created, preventing recursive property
6181 lookup. This is was changed in that all methods and attributes of
6182 supertypes are now available to their subtypes.
6183 + `data/pandoc.lua`: fix attribute names of Citation (#4222). The
6184 fields were named like the Haskell fields, not like the documented,
6185 shorter version. The names are changed to match the documentation
6186 and Citations are given a shared metatable to enable simple
6187 extensibility.
6188 + `data/pandoc.lua`: drop function `pandoc.global_filter`.
6189 + Bump `hslua` version to 0.9.5. This version fixes a bug that made it
6190 difficult to handle failures while getting lists or a Map from Lua.
6191 A bug in pandoc, which made it necessary to always pass a tag when
6192 using MetaList or MetaBlock, is fixed as a result. Using the pandoc
6193 module's constructor functions for these values is now optional
6194 (if still recommended).
6195 + Stop exporting `pushPandocModule` (API change). The introduction
6196 of `runPandocLua` renders direct use of this function obsolete.
6197 + Update generation of module docs for lua filters.
6198 + `Lua.Module.Utils`: make stringify work on `MetaValues` (John
6199 MacFarlane). I'm sure this was intended in the first place,
6200 but currently only `Meta` is supported.
6202 * Improve benchmarks.
6204 + Set the default extensions properly.
6205 + Improve benchmark argument parsing. You can now say
6206 `make bench BENCHARGS="markdown latex reader"` and both the
6207 markdown and latex readers will be benchmarked.
6209 * MANUAL.txt simplify and add more structure (Mauro Bieg).
6211 * Generate README.md from template and MANUAL.txt.
6212 `make README.md` will generate the README.md after changes
6213 to MANUAL.txt have been made.
6215 * Update copyright notices to include 2018 (Albert Krewinkel).
6217## pandoc 2.0.6 (2017-12-28)
6219 * Added `jats` as an input format.
6221 + Add Text.Pandoc.Readers.JATS, exporting `readJATS` (API
6222 change) (Hamish Mackenzie).
6223 + Improved citation handling in JATS reader. JATS citations
6224 are now converted to pandoc citations, and JATS ref-lists
6225 are converted into a `references` field in metadata, suitable
6226 for use with pandoc-citeproc. Thus a JATS article with embedded
6227 bibliographic information can be processed with pandoc and
6228 pandoc-citeproc to produce a formatted bibliography.
6230 * Allow `--list-extensions` to take an optional FORMAT argument.
6231 This lists the extensions set by default for the selected FORMAT.
6232 The extensions are now alphabetized, and the `+` or `-`
6233 indicating the default setting comes before, rather than after,
6234 the extension.
6236 * Markdown reader:
6238 + Preserve original whitespace between blocks.
6239 + Recognize `\placeformula` as context.
6240 + Be pickier about table captions. A caption starts with a `:` which
6241 can't be followed by punctuation. Otherwise we can falsely interpret
6242 the start of a fenced div, or even a table header line like
6243 `:--:|:--:`, as a caption.
6244 + Always use four space rule for example lists. It would be awkward
6245 to indent example list contents to the first non-space character after
6246 the label, since example list labels are often long. Thanks to
6247 Bernhard Fisseni for the suggestion.
6248 + Improve raw tex parsing. Note that the Markdown reader is also
6249 affected by the `latex_macros` extension changes described below
6250 under the LaTeX reader.
6252 * LaTeX reader:
6254 + `latex_macros` extension changes (#4179). Don't pass through macro
6255 definitions themselves when `latex_macros` is set. The macros
6256 have already been applied. If `latex_macros` is enabled, then
6257 `rawLaTeXBlock` in Text.Pandoc.Readers.LaTeX will succeed in parsing
6258 a macro definition, and will update pandoc's internal macro map
6259 accordingly, but the empty string will be returned.
6260 + Export `tokenize`, `untokenize` (API change).
6261 + Use `applyMacros` in `rawLaTeXBlock`, `rawLaTeXInline`.
6262 + Refactored `inlineCommand`.
6263 + Fix bug in tokenizer. Material following `^^` was
6264 dropped if it wasn't a character escape. This only affected
6265 invalid LaTeX, so we didn't see it in the wild, but it appeared
6266 in a QuickCheck test failure.
6267 + Fix regression in LateX tokenization (#4159). This mainly affects the
6268 Markdown reader when parsing raw LaTeX with escaped spaces.
6269 + Add tests of LaTeX tokenizer.
6270 + Support `\foreignlanguage` from babel.
6271 + Be more tolerant of `&` character (#4208). This allows us to parse
6272 unknown tabular environments as raw LaTeX.
6274 * Muse reader (Alexander Krotov):
6276 + Parse anchors immediately after headings as IDs.
6277 + Require that note references does not start with 0.
6278 + Parse empty comments correctly.
6280 * Org reader (Albert Krewinkel):
6282 + Fix asterisks-related parsing error (#4180).
6283 + Support minlevel option for includes (#4154). The level of headers
6284 in included files can be shifted to a higher level by specifying a
6285 minimum header level via the `:minlevel` parameter. E.g.
6286 `#+include: "tour.org" :minlevel 1` will shift the headers in
6287 tour.org such that the topmost headers become level 1 headers.
6288 + Break-up org reader test file into multiple modules.
6290 * OPML reader:
6292 + Enable raw HTML and other extensions by default for notes
6293 (#4164). This fixes a regression in 2.0. Note that extensions can
6294 now be individually disabled, e.g. `-f opml-smart-raw_html`.
6296 * RST reader:
6298 + Allow empty list items (#4193).
6299 + More accurate parsing of references (#4156). Previously we erroneously
6300 included the enclosing backticks in a reference ID (#4156). This
6301 change also disables interpretation of syntax inside references, as
6302 in docutils. So, there is no emphasis in `` `my *link*`_ ``.
6304 * Docx reader:
6306 + Continue lists after interruption (#4025, Jesse Rosenthal).
6307 Docx expects that lists will continue where they left off after an
6308 interruption and introduces a new id if a list is starting again. So
6309 we keep track of the state of lists and use them to define a "start"
6310 attribute, if necessary.
6311 + Add tests for structured document tags unwrapping (Jesse Rosenthal).
6312 + Preprocess Document body to unwrap `w:sdt` elements (Jesse Rosenthal,
6313 #4190).
6315 * Plain writer:
6317 + Don't linkify table of contents.
6319 * RST writer:
6321 + Fix anchors for headers (#4188). We were missing an `_`.
6323 * PowerPoint writer (Jesse Rosenthal):
6325 + Treat lists inside BlockQuotes as lists. We don't yet produce
6326 incremental lists in PowerPoint, but we should at least treat lists
6327 inside BlockQuotes as lists, for compatibility with other slide formats.
6328 + Add ability to force size. This replaces the more specific
6329 `blockQuote runProp`, which only affected the size of blockquotes. We
6330 can use this for notes, etc.
6331 + Implement notes. This currently prints all notes on a final slide.
6332 Note that at the moment, there is a danger of text overflowing the
6333 note slide, since there is no logic for adding further slides.
6334 + Implement basic definition list functionality to PowerPoint writer.
6335 + Don't look for default template file for Powerpoint (#4181).
6336 + Add pptx to isTextFormat list. This is used to check standalone
6337 and not writing to the terminal.
6338 + Obey slide level option (Jesse Rosenthal).
6339 + Introduce tests.
6341 * Docx writer:
6343 + Ensure that `distArchive` is the one that comes with pandoc
6344 (#4182). Previously a `reference.docx` in `~/.pandoc` (or the user data
6345 dir) would be used instead, and this could cause problems because a
6346 user-modified docx sometimes lacks vital sections that we count
6347 on the `distArchive` to supply.
6349 * Org writer:
6351 + Do not wrap "-" to avoid accidental bullet lists (Alexander Krotov).
6352 + Don't allow fn refs to wrap to beginning of line (#4171, with help from
6353 Alexander Krotov). Otherwise they can be interpreted as footnote
6354 definitions.
6356 * Muse writer (Alexander Krotov):
6358 + Don't wrap note references to the next line (#4172).
6360 * HTML writer:
6362 + Use br elements in line blocks instead of relying on CSS
6363 (#4162). HTML-based templates have had the custom CSS for
6364 `div.line-block` removed. Those maintaining custom templates will want
6365 to remove this too. We still enclose line blocks in a div with class
6366 `line-block`.
6368 * LaTeX writer:
6370 + Use `\renewcommand` for `\textlatin` with babel (#4161).
6371 This avoids a clash with a deprecated `\textlatin` command defined
6372 in Babel.
6373 + Allow fragile=singleslide attribute in beamer slides (#4169).
6374 + Use `\endhead` after `\toprule` in headerless tables (#4207).
6376 * FB2 writer:
6378 + Add cover image specified by `cover-image` meta (Alexander Krotov,
6379 #4195).
6381 * JATS writer (Hamish Mackenzie):
6383 + Support writing `<fig>` and `<table-wrap>` elements
6384 with `<title>` and `<caption>` inside them by using Divs with class set
6385 to one of `fig`, `table-wrap` or `caption` (Hamish Mackenzie). The
6386 title is included as a Heading so the constraint on where Heading can
6387 occur is also relaxed.
6388 + Leave out empty alt attributes on links.
6389 + Deduplicate image mime type code.
6390 + Make `<p>` optional in `<td>` and `<th>` (#4178).
6391 + Self closing tags for empty xref (#4187).
6392 + Improve support for code language.
6394 * Custom writer:
6396 + Use init file to setup Lua interpreter (Albert Krewinkel).
6397 The same init file (`data/init`) that is used to setup the Lua
6398 interpreter for Lua filters is also used to setup the interpreter of
6399 custom writers.lua.
6400 + Define instances for newtype wrapper (Albert Krewinkel). The custom
6401 writer used its own `ToLuaStack` instance definitions, which made
6402 it difficult to share code with Lua filters, as this could result
6403 in conflicting instances. A `Stringify` wrapper is introduced to
6404 avoid this problem.
6405 + Added tests for custom writer.
6406 + Fixed definition lists and tables in `data/sample.lua`.
6408 * Fixed regression: when target is PDF, writer extensions were being
6409 ignored. So, for example, `pandoc -t latex-smart -o file.pdf`
6410 did not work properly.
6412 * Lua modules (Albert Krewinkel):
6414 + Add `pandoc.utils` module, to hold utility functions.
6415 + Create a Haskell module Text.Pandoc.Lua.Module.Pandoc to
6416 define the `pandoc` lua module.
6417 + Make a Haskell module for each Lua module. Move definitions for the
6418 `pandoc.mediabag` modules to a separate Haskell module.
6419 + Move `sha1` from the main `pandoc` module to `pandoc.utils`.
6420 + Add function `pandoc.utils.hierarchicalize` (convert list of
6421 Pandoc blocks into (hierarchical) list of Elements).
6422 + Add function `pandoc.utils.normalize_date` (parses a date and
6423 converts it (if possible) to "YYYY-MM-DD" format).
6424 + Add function `pandoc.utils.to_roman_numeral` (allows conversion
6425 of numbers below 4000 into roman numerals).
6426 + Add function `pandoc.utils.stringify` (converts any AST element
6427 to a string with formatting removed).
6428 + `data/init.lua`: load `pandoc.utils` by default
6429 + Turn pipe, read into full Haskell functions. The `pipe` and `read`
6430 utility functions are converted from hybrid lua/haskell functions
6431 into full Haskell functions. This avoids the need for intermediate
6432 `_pipe`/`_read` helper functions, which have dropped.
6433 + pandoc.lua: re-add missing MetaMap function. This was a bug
6434 introduced in version 2.0.4.
6436 * Text.Pandoc.Class: Add `insertInFileTree` [API change]. This gives
6437 a pure way to insert an ersatz file into a `FileTree`. In addition, we
6438 normalize paths both on insertion and on lookup.
6440 * Text.Pandoc.Shared: export `blocksToInlines'` (API change, Maura Bieg).
6442 * Text.Pandoc.MIME: Add opus to MIME type table as audio/ogg (#4198).
6444 * Text.Pandoc.Extensions: Alphabetical order constructors for
6445 `Extension`. This makes them appear in order in `--list-extensions`.
6447 * Allow lenient decoding of latex error logs, which are not always
6448 properly UTF8-encoded (#4200).
6450 * Update latex template to work with recent versions of beamer.
6451 The old template produced numbered sections with some recent
6452 versions of beamer. Thanks to Thomas Hodgson.
6454 * Updated reference.docx (#4175). Instead of just "Hello, world", the
6455 document now contains exemplars of most of the styles that have an
6456 effect on pandoc documents. This makes it easier to see the effect
6457 of style changes.
6459 * Removed `default.theme` data file (#4096). It is no longer needed now
6460 that we have `--print-highlight-style`.
6462 * Added `stack.lts9.yaml` for building with lts 9 and ghc 8.0.2.
6463 We still need this for the alpine static linux build, since
6464 we don't have ghc 8.2.2 for that yet.
6466 * Removed `stack.pkg.yaml`. We only really need `stack.yaml`; we
6467 can put flag settings for pandoc-citeproc there.
6469 * Makefile: Add 'trypandoc' and 'pandoc-templates' targets to
6470 make releases easier.
6472 * MANUAL.txt:
6474 + Add note on what formats have `+smart` by default.
6475 + Use native syntax for custom-style (#4174, Mauro Bieg).
6476 + Introduce dedicated Extensions section, since some extensions
6477 affect formats other than markdown (Mauro Bieg, #4204).
6478 + Clarify default html output for `--section-divs` (Richard Edwards).
6480 * filters.md: say that Text.Pandoc.JSON comes form pandoc-types.
6481 Closes jgm/pandoc-website#16.
6483 * epub.md: Delete removed `-S` option from command (#4151, Georger Araújo).
6485## pandoc 2.0.5 (2017-12-12)
6487 * Fix a bug in 2.0.4, whereby pandoc could not read the theme files
6488 generated with `--print-highlight-style` (#4133). Improve JSON
6489 serialization of styles.
6491 * Fix CSS issues involving line numbers (#4128).
6492 Highlighted code blocks are now enclosed in a div with class `sourceCode`.
6493 Highlighting CSS no longer sets a generic color for pre and code; we only
6494 set these for class `sourceCode`.
6496 * `--pdf-engine-opt`: fix bug where option order was reversed (#4137).
6498 * Add PowerPoint (pptx) writer (Jesse Rosenthal).
6499 It works following the standard Pandoc conventions for making other
6500 sorts of slides. Caveats:
6502 + Syntax highlighting is not yet implemented. (This is difficult
6503 because there are no character classes in Powerpoint.)
6504 + Footnotes and Definition lists are not yet implemented. (Notes will
6505 usually take the form of a final slide.
6506 + Image placement and auto-resizing has a few glitches.
6507 + Reference powerpoint files don't work dependably from the command
6508 line. This will be implemented, but at the moment users are advised
6509 to change themes from within Powerpoint.
6511 * Create shared Text.Pandoc.Writers.OOXML module (Jesse Rosenthal).
6512 This is for functions used by both Powerpoint and Docx writers.
6514 * Add default pptx data for Powerpoint writer (Jesse Rosenthal).
6516 * Add `empty_paragraphs` extension.
6518 + Deprecate `--strip-empty-paragraphs` option. Instead we now
6519 use an `empty_paragraphs` extension that can be enabled on
6520 the reader or writer. By default, disabled.
6521 + Add `Ext_empty_paragraphs` constructor to `Extension`.
6522 + Revert "Docx reader: don't strip out empty paragraphs."
6523 This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b.
6524 + Implement `empty_paragraphs` extension in docx reader and writer,
6525 opendocument writer, html reader and writer.
6526 + Add tests for `empty_paragraphs` extension.
6528 * Markdown reader:
6530 + Don't parse native div as table caption (#4119).
6531 + Improved computation of column widths in pipe tables.
6532 Pipe tables with lines longer than the text width (as set
6533 by `--columns`) are now scaled to text width, with the relative
6534 widths of columns determined by the ratios between the
6535 header lines. Previously we computed column widths using
6536 the ratio of header line lengths to column width, so that
6537 tables with narrow header lines were extremely thin, which
6538 was very rarely the desired result.
6540 * LaTeX reader: fix `\` before newline (#4134). This should be a space,
6541 as long as it's not followed by a blank line. This has been fixed at the
6542 tokenizer level.
6544 * Muse reader (Alexander Krotov):
6546 + Add test for `#disable-tables` directive in Emacs mode.
6547 + Don't allow emphasis to be preceded by letter.
6548 + Add underline support in Emacs Muse mode..
6549 + Support multiline directives in Amusewiki mode
6551 * Man writer: omit internal links (#4136). That is, just print the link
6552 text without the URL.
6554 * Markdown reader: accept processing instructions as raw HTML (#4125).
6556 * Lua filters (Albert Krewinkel):
6558 + Use script to initialize the interpreter. The file `init.lua` is
6559 used to initialize the Lua interpreter which is used in Lua filters.
6560 This gives users the option to require libraries which they want to
6561 use in all of their filters, and to extend default modules.
6562 + Fix package loading for Lua 5.1. The list of package searchers is
6563 named `package.loaders` in Lua 5.1 and LuaJIT, and `package.searchers`
6564 in Lua 5.2 and later.
6565 + Refactor lua module handling. The integration with Lua's package/module
6566 system is improved: A pandoc-specific package searcher is prepended to
6567 the searchers in `package.searchers`. The modules `pandoc` and
6568 `pandoc.mediabag` can now be loaded via `require`.
6569 + Bump lower bound of hslua. The release hslua 0.9.3 contains a new
6570 function which makes using Haskell functions as package loaders much
6571 easier.
6573 * reveal.js template: add title-slide identifier to title slide (#4120).
6574 This allows it to be styled more easily.
6576 * LaTeX template: Added support for `pagestyle` variable (#4135,
6577 Thomas Hodgson)
6579 * Add `-threaded` to ghc-options for executable (#4130, fixes a build
6580 error on linux).
6583## pandoc 2.0.4 (2017-12-03)
6585 * Add `--print-highlight-style` option. This generates a JSON version
6586 of a highlighting style, which can be saved as a `.theme` file, modified,
6587 and used with `--highlight-style` (#4106, #4096).
6589 * Add `--strip-empty-paragraphs` option. This works for any input format.
6590 It is primarily intended for use with docx and odt documents where
6591 empty paragraphs have been used for inter-paragraph spaces.
6593 * Support `--webtex` for `gfm` output.
6595 * Recognize `.muse` file extension.
6597 * Support beamer `\alert` in LaTeX reader. Closes #4091.
6599 * Docx reader: don't strip out empty paragraphs (#2252).
6600 Users who have a conversion pipeline from docx may want to consider adding
6601 `--strip-empty-paragraphs` to the command line.
6603 * Org reader (Albert Krewinkel): Allow empty list items (#4090).
6605 * Muse reader (Alexander Krotov):
6607 + Parse markup in definition list terms.
6608 + Allow definition to end with EOF.
6609 + Make code blocks round trip.
6610 + Drop common space prefix from list items.
6611 + Add partial round trip test.
6612 + Don't interpret XML entities.
6613 + Remove `nested`.
6614 + Parse `~~` as non-breaking space in Emacs mode.
6615 + Correctly remove indentation from notes. Exactly one space is
6616 required and considered to be part of the marker.
6617 + Allow list items to be empty.
6618 + Add ordered list test.
6619 + Add more multiline definition tests.
6620 + Don't allow blockquotes within lists.
6621 + Fix reading of multiline definitions.
6622 + Add inline `<literal>` support.
6623 + Concatenate inlines of the same type
6625 * Docx writer: allow empty paragraphs (#2252).
6627 * CommonMark/gfm writer:
6629 + Use raw html for native divs/spans (#4113). This allows a pandoc
6630 markdown native div or span to be rendered in gfm using raw html tags.
6631 + Implement `raw_html` and `raw_tex` extensions. Note that `raw_html`
6632 is enabled by default for `gfm`, while `raw_tex` is disabled by default.
6634 * Muse writer (Alexander Krotov):
6636 + Test that inline math conversion result is normalized.
6637 Without normalization this test produced
6638 `<em>a</em><em>b</em><em>c</em>`.
6639 + Improve inline list normalization and move to writer.
6640 + Escape hash symbol.
6641 + Escape `----` to avoid accidental horizontal rules.
6642 + Escape only `</code>` inside code tag.
6643 + Additional `<verbatim>` is not needed as `<code>` is verbatim already.
6645 * LaTeX writer:
6647 + Allow specifying just width or height for image size.
6648 Previously both needed to be specified (unless the image was
6649 being resized to be smaller than its original size).
6650 If height but not width is specified, we now set width to
6651 textwidth. If width but not height is specified, we now set
6652 height to textheight. Since we have `keepaspectratio`, this
6653 yields the desired result.
6654 + Escape `~` and `_` in code with `--listings` (#4111).
6656 * HTML writer: export `tagWithAttributes`. This is a helper allowing
6657 other writers to create single HTML tags.
6659 * Let papersizes `a0`, `a1`, `a2`, ... be case-insensitive by
6660 converting the case as needed in LaTeX and ConTeXt writers.
6662 * Change `fixDisplayMath` from `Text.Pandoc.Writers.Shared`
6663 so that it no longer produces empty `Para`'s as an artifact.
6665 * `Text.Pandoc.Shared.blocksToInlines`: rewrote using builder.
6666 This gives us automatic normalization, so we don't get
6667 for example two consecutive Spaces.
6669 * Include default CSS for 'underline' class in HTML-based templates.
6671 * revealjs template: add `tex2jax` configuration for the
6672 math plugin. With the next release of reveal.js, this will
6673 fix the problem of `$`s outside of math contexts being
6674 interpreted as math delimiters (#4027).
6676 * `pandoc.lua` module for use in lua filters (Albert Krewinkel):
6678 + Add basic lua List module (#4099, #4081). The List module is
6679 automatically loaded, but not assigned to a global variable. It can be
6680 included in filters by calling `List = require 'List'`. Lists of blocks,
6681 lists of inlines, and lists of classes are now given `List` as a metatable,
6682 making working with them more convenient. E.g., it is now possible to
6683 concatenate lists of inlines using Lua's concatenation operator `..`
6684 (requires at least one of the operants to have `List` as a metatable):
6686 function Emph (emph)
6687 local s = {pandoc.Space(), pandoc.Str 'emphasized'}
6688 return pandoc.Span(emph.content .. s)
6689 end
6691 The `List` metatable is assigned to the tables which get passed to
6692 the constructors `MetaBlocks`, `MetaInline`, and `MetaList`. This
6693 enables the use of the resulting objects as lists.
6694 + `Lua/StackInstances`: push Pandoc and Meta via constructor.
6695 Pandoc and Meta elements are now pushed by calling the respective
6696 constructor functions of the pandoc Lua module. This makes serialization
6697 consistent with the way blocks and inlines are pushed to lua and allows
6698 to use List methods with the `blocks` value.
6699 + Add documentation for pandoc.List in `lua-filters.md`.
6701 * Use latest tagsoup. This fixes a bug in parsing HTML tags with
6702 `&` (but not a valid entity) following them (#4094, #4088).
6704 * Use skylighting 0.4.4.1, fixing the color of unmarked code text
6705 when `numberLines` is used (#4103).
6707 * Make `normalizeDate` more forgiving (Mauro Bieg, #4101), not
6708 requiring a leading 0 on single-digit days.
6710 * Fix `--help` output for `--highlight-style` to include `FILE` (Mauro
6711 Bieg, #4095).
6713 * Clearer deprecation warning for `--latexmathml, --asciimathml, -m`.
6714 Previously we only mentioned `--latexmathml`, even if `-m` was
6715 used.
6717 * Changelog: fix description of lua filters in 2.0 release
6718 (Albert Krewinkel). Lua filters were initially run *after* conventional
6719 (JSON) filters. However, this was changed later to make it easier to deal
6720 with files in the mediabag. The changelog is updated to describe that
6721 feature of the 2.0 release correctly.
6723 * Change Generic JSON instances to TemplateHaskell (Jasper Van der Jeugt,
6724 #4085). This reduces compile time and memory usage significantly.
6726 * `lua-filters.md`: Added tikz filter example.
6728 * Create alternative zip file for macOS binaries.
6730 * Create alternative zip file for Windows binaries.
6732 * Update INSTALL.md since we now provide zips for binaries.
6734 * Relax `http-types` dependency (Justus Sagemüller, #4084).
6736 * Add `epub.md`, `getting-started.md` to docs. These used to live in
6737 the website repo.
6739 * Add `packages` target to Makefile.
6741 * Bump bounds for binary, http-types, tasty-hunit
6743## pandoc 2.0.3 (2017-11-20)
6745 * Lua filters: preload text module (Albert Krewinkel, #4077).
6746 The `text` module is preloaded in lua. The module contains some UTF-8
6747 aware string functions, implemented in Haskell. The module is loaded on
6748 request only, e.g.:
6750 text = require 'text'
6751 function Str (s)
6752 s.text = text.upper(s.text)
6753 return s
6754 end
6756 * Allow table-like access to attributes in lua filters (Albert Krewinkel,
6757 #4071). Attribute lists are represented as associative lists in Lua. Pure
6758 associative lists are awkward to work with. A metatable is attached to
6759 attribute lists, allowing to access and use the associative list as if
6760 the attributes were stored in as normal key-value pair in table.
6761 Note that this changes the way `pairs` works on attribute lists. Instead
6762 of producing integer keys and two-element tables, the resulting iterator
6763 function now returns the key and value of those pairs. Use `ipairs` to
6764 get the old behavior. Warning: the new iteration mechanism only works if
6765 pandoc has been compiled with Lua 5.2 or later (current default: 5.3).
6767 * Text.Pandoc.Parsing.uri: allow `&` and `=` as word characters (#4068).
6768 This fixes a bug where pandoc would stop parsing a URI with an
6769 empty attribute: for example, `&a=&b=` wolud stop at `a`.
6770 (The uri parser tries to guess which punctuation characters
6771 are part of the URI and which might be punctuation after it.)
6773 * Introduce `HasSyntaxExtensions` typeclass (Alexander Krotov, #4074).
6775 + Added new `HasSyntaxExtensions` typeclass for `ReaderOptions` and
6776 `WriterOptions`.
6777 + Reimplemented `isEnabled` function from `Options.hs` to accept both
6778 `ReaderOptions` and `WriterOptions`.
6779 + Replaced `enabled` from `CommonMark.hs` with new `isEnabled`.
6781 * Add `amuse` extension (Alexander Krotov) to enable Amuse wiki
6782 behavior for `muse`. New `Ext_amuse` constructor for
6783 `Extension`. Note: this is switched on by default; for
6784 Emacs behavior, use `muse-amuse`.
6786 * Muse reader (Alexander Krotov):
6788 + Count only one space as part of list item marker.
6789 + Produce SoftBreaks on newlines. Now wrapping can be preserved
6790 with `--wrap=preserve`.
6791 + Add Text::Amuse footnote extensions. Footnote end is indicated by
6792 indentation, so footnotes can be placed anywhere in the text,
6793 not just at the end of it.
6794 + Accept Emacs Muse definition lists when `-amuse`.
6795 Emacs Muse does not require indentation.
6797 * HTML reader:
6799 + Ensure we don't produce level 0 headers (#4076), even for chapter
6800 sections in epubs. This causes problems because writers aren't set
6801 up to expect these.
6802 + Allow spaces after `\(` and before `\)` with `tex_math_single_backslash`.
6803 Previously `\( \frac{1}{a} < \frac{1}{b} \)` was not parsed as math in
6804 `markdown` or `html` `+tex_math_single_backslash`.
6806 * MANUAL: clarify that math extensions work with HTML.
6807 Clarify that `tex_math_dollars` and `tex_math_single_backslash`
6808 will work with HTML as well as Markdown.
6810 * Creole reader: Fix performance issue for longer lists (Sascha Wilde,
6811 #4067).
6813 * RST reader: better support for 'container' directive (#4066).
6814 Create a div, incorporate name attribute and classes.
6816 * LaTeX reader:
6818 + Support column specs like `*{2}{r}` (#4056). This is equivalent to
6819 `rr`. We now expand it like a macro.
6820 + Allow optional args for parbox (#4056).
6821 + Allow optional arguments on `\footnote` (#4062).
6823 * EPUB writer: Fixed path for cover image (#4069). It was previously
6824 `media/media/imagename`, and should have been `media/imagename`.
6826 * Markdown writer: fix bug with doubled footnotes in grid tables
6827 (#4061).
6829 * LaTeX template: include natbib/biblatex after polyglossia (#4073).
6830 Otherwise we seem to get an error; biblatex wants polyglossia
6831 language to be defined.
6833 * Added examples to lua filters documentation.
6836## pandoc 2.0.2 (2017-11-12)
6838 * Deprecated ancient HTML math methods: `--latexmathml`, `--gladtex`,
6839 `--mimetex`, `--jsmath`.
6841 * Fixed URIs in `data/jats.csl`. They were being rendered twice,
6842 leading to invalid XML in default JATS output with pandoc-citeproc.
6844 * `lua-filters.md`: use real-world man page filter as example.
6846 * Add lua filter functions `walk_inline` and `walk_block`
6847 in the pandoc module, to apply filters inside particular
6848 inline and block elements.
6850 * Refactored some code from `Text.Pandoc.Lua.PandocModule`
6851 into new internal module `Text.Pandoc.Lua.Filter`.
6853 * Markdown reader:
6855 + Allow fenced code blocks to be indented 1-3 spaces (#4011).
6856 This brings our handling of them into alignment with CommonMark's.
6857 + Fix YAML metadata with "chomp" (`|-`). Previously if a
6858 YAML block under `|-` contained a blank line, pandoc would
6859 not parse it as metadata.
6861 * Removed `etc.` from abbreviations file. Often `etc.` ends a
6862 sentence, and we want the period to be treated as a
6863 sentence-ending period.
6865 * Fix regression with `--metadata` (#4054). Values specified with
6866 `--metadata` should replace a metadata value set in the document
6867 itself, rather than creating a list including a new value.
6869 * EPUB writer:
6871 + Fix EPUB OCF structure. #3720 had been improperly implemented.
6872 + Fix modified paths for raw HTML tags (src, poster, etc.)
6873 (#4050, #4055). This had not been updated for the new EPUB
6874 container layout, with a separate text/ subdirectory.
6875 + Fix image paths with empty `--epub-subdirectory`.
6877 * Miscellaneous code cleanup (Alexander Krotov).
6879 * Use pandoc-types 1.17.3, which adds `Walkable` instances
6880 for `[Block] Block` and `[Inline] Inline`.
6882 * Remove obsolete `stack.full.yaml` (#4052).
6884 * Change to using pandoc-citeproc 0.12.1 in binary packages.
6886 * Consolidate math output method documentation (#4049, Mauro Bieg).
6888 * `MANUAL.txt`: fix header level of "Extension: emoji" (Albert Krewinkel).
6890 * Use lua filter to generate man page from `MANUAL.txt`, replacing old
6891 Haskell filters. This is easier and faster.
6893 * Improved `INSTALL.md`.
6895 * Update commands to extract deb archive on Linux (#4043, Salim B).
6898## pandoc 2.0.1.1 (2017-11-04)
6900 * Improved fix to #3989 (parsing of HTML tags containing
6901 `>` in an attribute or comment). The previous fix (in 2.0.1) only
6902 worked in certain cases.
6904 * FB2 writer (Alexander Krotov):
6906 + Add `unrecognised` genre to `<title-info>`
6907 (Alexander Krotov). XML schema requires at least one genre.
6908 + Remove `<annotation>` from `<body>`.
6910 * CommonMark writer: fix strikethrough for `gfm` (#4038).
6912 * Use texmath 0.10, which adds support for a wider range of
6913 symbols and fixes default column alignments in MathML
6914 and OMML.
6916 * Highlighting fixes, using skylighting 0.4.3.2:
6918 + Fix invalid CSS.
6919 + Support `lineAnchors` (or `line-anchors`) in HTML code blocks.
6920 + Ensure that code lines don't get duplicate identifiers (#4031).
6921 The line identifiers are built using the code block's identifier
6922 as a prefix. If the code block has null identifier, we use
6923 `cb1`, `cb2`, etc.
6925 * Added a few abbreviations to `data/abbreviations`,
6926 and sorted the list (#3984, Wandmalfarbe).
6928 * Improved support for columns in HTML writer (#4028).
6930 + Remove `width` attribute from the `div`.
6931 + Remove space between `<div class="column">` elements,
6932 since this prevents columns whose widths sum to 100%
6933 (the space takes up space).
6934 + Move as much as possible of the CSS to the template.
6935 + Ensure that all the HTML-based templates (including epub)
6936 contain the CSS for columns.
6937 + Columns default to 50% width unless they are given a width
6938 attribute. So if you want two equal-width columns, you
6939 can use a div with class `column` and no `width` attribute.
6941 * SelfContained: use `base64` for css links with media attribute (#4026).
6942 This fixes `--self-contained` with S5.
6944 * Improve `pandoc-template-mode.el` (Vaclav Haisman).
6946 * INSTALL.md: MacOS instructions needed xar -f (adam234).
6948 * MANUAL.txt:
6950 + Clarify that --setext-headers doesn't affect gfm output (#4035).
6951 + Clarify what is needed to open and close a div in `fenced_divs`
6952 (#4039, Tristano Ajmone).
6953 + Removed reference to `default.beamer` in docs (#4024).
6954 Also added mention of other templates affecting PDF output
6955 with different settings.
6958## pandoc 2.0.1 (2017-10-31)
6960 * Fixed regression in parsing of HTML comments in markdown and other
6961 non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`) (#4019).
6962 The parser stopped at the first `>` character, even if it wasn't
6963 the end of the comment.
6965 * Creole reader (Sascha Wilde):
6967 + Fix some minor typos and formatting.
6968 + Add additional test on nowiki-block after para.
6969 + Fix lists with trailing white space.
6971 * LaTeX reader: handle `%` comment right after command.
6972 For example, `\emph%`.
6974 * Markdown reader: make sure fenced div closers work in lists.
6975 Previously the following failed:
6977 ::: {.class}
6978 1. one
6979 2. two
6980 :::
6982 and you needed a blank line before the closing `:::`.
6984 * Make `fenced_divs` affect the Markdown writer. If `fenced_divs` is
6985 enabled, Divs will be rendered as fenced divs.
6987 * LaTeX/Beamer writer: support "blocks" inside columns and other Divs
6988 (#4016).
6990 * HTML Writer: consistently use dashed class-names (Mauro Bieg, #3556).
6991 Note: this change may require some changes in CSS rules.
6992 `footnoteRef` has become `footnote-ref`, `titleslide` has
6993 become `title-slide`, and `footnoteBack` has become `footnote-back`.
6995 * JATS writer: Properly pass through author metadata (#4020).
6997 * FB2 writer (Alexander Krotov):
6999 + Write blocks outside of `<p>` in definitions.
7000 + Make bullet lists consistent with ordered lists, repeating
7001 the marker for the outer list rather than indenting sublists,
7002 since indentation does not work in readers.
7003 + Add new style FB2 tests.
7005 * `Text.Pandoc.ImageSize`: Add `Millimeter` constructor to `Dimension`
7006 (#4012) [API change]. Now sizes given in 'mm' are no longer converted
7007 to 'cm'.
7009 * Revise documentation of small caps syntax (Andrew Dunning, #4013).
7011 * Fix broken reference links in manual (Andrew Dunning, #4014)
7013 * Fixed example of slide columns structure in changelog (#4015).
7014 Also documented this feature in MANUAL.txt.
7017## pandoc 2.0.0.1 (2017-10-30)
7019 * EPUB writer:
7021 + Fixed filepaths for nonstandard epub-subdirectory values.
7022 + Ensure that epub2 is recognized as a non-text format,
7023 so that a template is used.
7024 + Don't include "prefix" attribute for ibooks for epub2.
7025 It doesn't validate.
7026 + Fix stylesheet paths; previously we had an incorrect
7027 stylesheet path for the cover page and nav page.
7029 * LaTeX reader:
7031 + Insert space when needed in macro expansion (#4007).
7032 Sometimes we need to insert a space after a control sequence
7033 to prevent it merging with a following letter.
7034 + Allow unbraced arguments for macros (#4007).
7035 + Allow body of macro definition to be unbraced (#4007).
7037 * Linux package build: ensure that pandoc-citeproc is statically linked.
7039 * trypandoc: add native, ms.
7042## pandoc 2.0 (2017-10-29)
7044### New features
7046 * New output format `ms` (groff ms). Complete support, including
7047 tables, math, syntax highlighting, and PDF bookmarks. The writer uses
7048 texmath's new eqn writer to convert math to eqn format, so a ms file
7049 produced with this writer should be processed with `groff -ms -e` if
7050 it contains math.
7052 * New output format `jats` (Journal Article Tag Suite). This is an XML
7053 format used in archiving and publishing articles. Note that a
7054 URI-encoded CSL stylesheet (`data/jats.csl`) is added automatically
7055 unless a stylesheet is specified using `--css`.
7057 * New output format `gfm` (GitHub-flavored CommonMark) (#3841).
7058 This uses bindings to GitHub's fork of cmark, so it should parse
7059 gfm exactly as GitHub does (excepting certain postprocessing
7060 steps, involving notifications, emojis, etc.). `markdown_github`
7061 has been deprecated in favor of `gfm`.
7063 * New output format `muse` (Emacs Muse) (Alexander Krotov, #3489).
7065 * New input format `gfm` (GitHub-flavored CommonMark) (#3841).
7066 This uses bindings to GitHub's fork of cmark. `markdown_github`
7067 has been deprecated in favor of `gfm`.
7069 * New input format `muse` (Emacs Muse) reader (Alexander Krotov, #3620).
7071 * New input format `tikiwiki` (TikiWiki markup) (rlpowell, #3800).
7073 * New input format `vimwiki` (Vimwiki markup) (Yuchen Pei, #3705).
7074 Note that there is a new data file, `data/vimwiki.css`, which can
7075 be used to display the HTML produced by this reader and
7076 pandoc's HTML writer in the style of vimwiki's own HTML
7077 export.
7079 * New input format `creole` (Creole 1.0) (#3994, Sascha Wilde).
7081 * New syntax for Divs, with `fenced_divs` extension enabled by
7082 default (#168). This gives an attractive, plain-text way to create
7083 containers for block-level content.
7085 * Added new syntax for including raw content in any output format,
7086 enabled by the `raw_attribute` extension (which is on by default
7087 for `markdown` and `multimarkdown`). The syntax is the same as
7088 for fenced code blocks or code inlines, only with `{=FORMAT}` for
7089 attributes, where `FORMAT` is the name of the output format
7090 (e.g., `ms`, `html`).
7092 * Implement multicolumn support for slide formats (#1710).
7093 The structure expected is:
7095 :::::::::::::: {.columns}
7096 ::: {.column width="40%"}
7097 contents...
7098 :::
7099 ::: {.column width="60%"}
7100 contents...
7101 :::
7102 ::::::::::::::
7104 Support has been added for beamer and all HTML slide formats.
7106 * Allows line comments in templates, beginning with `$--` (#3806).
7107 (Requires doctemplates 0.2.1.)
7109 * Add `--eol=crlf|lf|native` flag and writer option to control line endings
7110 (Stefan Dresselhaus, #3663, #2097).
7112 * Add `--log` option to save log messages in JSON format to a file (#3392).
7114 * Add `--request-header` option, to set request headers when pandoc
7115 makes HTTP requests to fetch external resources. For example:
7116 `--request-header User-Agent:blah`.
7118 * Added lua filters (Albert Krewinkel, #3514). The new `--lua-filter`
7119 option works like `--filter` but takes pathnames of special lua filters
7120 and uses the lua interpreter baked into pandoc, so that no external
7121 interpreter is needed. Note that lua filters are all applied after
7122 regular filters, regardless of their position on the command line.
7123 For documentation of lua filters, see `doc/lua-filters.md`.
7125 * Set `PANDOC_READER_OPTIONS` in environment where filters are run.
7126 This contains a JSON representation of `ReaderOptions`, so filters
7127 can access it.
7129 * Support creation of pdf via groff `ms` and pdfroff.
7130 `pandoc -t ms -o output.pdf input.txt`.
7132 * Support for PDF generation via HTML and `weasyprint` or `prince`
7133 (Mauro Bieg, #3909). `pandoc -t html5 -o output.pdf --pdf-engine=prince`.
7135 * Added `--epub-subdirectory` option (#3720). This specifies the
7136 subdirectory in the OCF container that holds the EPUB specific content.
7137 We now put all EPUB related content in an `EPUB/` subdirectory by default
7138 (later this will be configurable).
7140 ```
7141 mimetype
7142 META-INF/
7143 com.apple.ibooks.display-options.xml
7144 container.xml
7145 EPUB/ <<--configurable-->>
7146 fonts/ <<--static-->>
7147 font.otf
7148 media/ <<--static-->>
7149 cover.jpg
7150 fig1.jpg
7151 styles/ <<--static-->>
7152 stylesheet.css
7153 content.opf
7154 toc.ncx
7155 text/ <<--static-->>
7156 ch001.xhtml
7157 ```
7159 * Added `--resource-path=SEARCHPATH` command line option (#852).
7160 SEARCHPATH is separated by the usual character, depending on OS
7161 (: on unix, ; on windows). Default resource path is just working
7162 directory. However, the working directory must be explicitly
7163 specified if the `--resource-path` option is used.
7165 * Added --abbreviations=FILE option for custom abbreviations file
7166 (#256). Dfault abbreviations file (`data/abbreviations`) contains
7167 a list of strings that will be recognized by pandoc's
7168 Markdown parser as abbreviations. (A nonbreaking space will
7169 be inserted after the period, preventing a sentence space in
7170 formats like LaTeX.) Users can override the default by putting a file
7171 abbreviations in their user data directory (`~/.pandoc` on *nix).
7173 * Allow a theme file as argument to `--highlight-style`.
7174 Also include a sample, `default.theme`, in `data/`.
7176 * Allow `--syntax-definition` option for dynamic loading of syntax
7177 highlighting definitions (#3334).
7179 * Lists in `markdown` by default now use the CommonMark variable
7180 nesting rules (#3511). The indentation required for a block-level
7181 item to be included in a list item is no longer fixed, but is
7182 determined by the first line of the list item. To be included in
7183 the list item, a block must be indented to the level of the first
7184 non-space content after the list marker. Exception: if are 5 or more
7185 spaces after the list marker, then the content is interpreted as an
7186 indented code block, and continuation paragraphs must be indented
7187 two spaces beyond the end of the list marker. See the CommonMark
7188 spec for more details and examples.
7190 Documents that adhere to the four-space rule should, in most cases,
7191 be parsed the same way by the new rules. Here are some examples
7192 of texts that will be parsed differently:
7194 - a
7195 - b
7197 will be parsed as a list item with a sublist; under the four-space
7198 rule, it would be a list with two items.
7200 - a
7202 code
7204 Here we have an indented code block under the list item, even though it
7205 is only indented six spaces from the margin, because it is four spaces
7206 past the point where a continuation paragraph could begin. With the
7207 four-space rule, this would be a regular paragraph rather than a code
7208 block.
7210 - a
7212 code
7214 Here the code block will start with two spaces, whereas under
7215 the four-space rule, it would start with `code`. With the four-space
7216 rule, indented code under a list item always must be indented eight
7217 spaces from the margin, while the new rules require only that it
7218 be indented four spaces from the beginning of the first non-space
7219 text after the list marker (here, `a`).
7221 This change was motivated by a slew of bug reports from people
7222 who expected lists to work differently (#3125, #2367, #2575, #2210,
7223 #1990, #1137, #744, #172, #137, #128) and by the growing prevalance
7224 of CommonMark (now used by GitHub, for example). Those who
7225 prefer the old behavior can use `-f markdown+four_space_rule`.
7227 * Added `four_space_rule` extension. This triggers the old pandoc
7228 parsing rule for content nested under list items (the "four space
7229 rule").
7231 * Added `spaced_reference_links` extension (#2602). It allows whitespace
7232 between the two parts of a reference link: e.g.
7234 [a] [b]
7236 [b]: url
7238 This was previously enabled by default; now it is forbidden by default.
7240 * Add `space_in_atx_header` extension (#3512). This is enabled by default
7241 in pandoc and GitHub markdown but not the other flavors.
7242 This requirse a space between the opening #'s and the header
7243 text in ATX headers (as CommonMark does but many other implementations
7244 do not). This is desirable to avoid falsely capturing things ilke
7246 #hashtag
7248 or
7250 #5
7252 * Add `sourcefile` and `outputfile` template variables (Roland Hieber,
7253 #3431).
7255 * Allow ibooks-specific metadata in epubs (#2693). You can now have
7256 the following fields in your YAML metadata, and it will be treated
7257 appropriately in the generated EPUB:
7259 ```
7260 ibooks:
7261 version: 1.3.4
7262 specified-fonts: false
7263 ipad-orientation-lock: portrait-only
7264 iphone-orientation-lock: landscape-only
7265 binding: true
7266 scroll-axis: vertical
7267 ```
7270### Behavior changes
7272 * Reader functions no longer presuppose that CRs have been
7273 stripped from the input. (They strip CRs themselves, before
7274 parsing, to simplify the parsers.)
7276 * Added support for translations (localization) (#3559).
7277 Currently this only affects the LaTeX reader, for things
7278 like `\figurename`. Translation data files for 46 languages
7279 can be found in `data/translations`.
7281 * Make `--ascii` work with DocBook output too.
7283 * Rename `--latex-engine` to `--pdf-engine`,
7284 and `--latex-engine-opt` to `--pdf-engine-opt`.
7286 * Removed `--parse-raw` and `readerParseRaw`. These were confusing.
7287 Now we rely on the `+raw_tex` or `+raw_html` extension with latex or html
7288 input. Thus, instead of `--parse-raw -f latex` we use `-f latex+raw_tex`,
7289 and instead of `--parse-raw -f html` we use `-f html+raw_html`.
7291 * With `--filter` R filters are now recognized, even if they are
7292 not executable (#3940, #3941, Andrie de Vries).
7294 * Support SVG in PDF output, converting with `rsvg2pdf` (#1793).
7296 * Make epub an alias for epub3, not epub2.
7298 * Removed `--epub-stylesheet`; use `--css` instead (#3472, #847).
7299 Multiple stylesheets may be used. Stylesheets will be taken both from
7300 `--css` and from the `stylesheet` metadata field (which can contain
7301 either a file path or a list of them).
7303 * `--mathml` and MathML in HTMLMathMethod no longer take an argument.
7304 The argument was for a bridge JavaScript that used to be necessary
7305 in 2004. We have removed the script already.
7307 * `--katex` improvements. The latest version is used, and the
7308 autoload script is loaded by default.
7310 * Change MathJax CDN default since old one is shutting down (#3544).
7311 Note: The new URL requires a version number, which we'll have
7312 to update manually in subsequent pandoc releases in order to
7313 take advantage of mathjax improvements.
7315 * `--self-contained`: don't incorporate elements with `data-external="1"`
7316 (#2656). You can leave an external link as it is by adding the attribute
7317 data-external="1" to the element. Pandoc will then not try to
7318 incorporate its content when `--self-contained` is used. This is
7319 similar to a feature already supported by the EPUB writer.
7321 * Allow `--extract-media` to work with non-binary input formats
7322 (#1583, #2289). If `--extract-media` is supplied with a non-binary
7323 input format, pandoc will attempt to extract the contents of all
7324 linked images, whether in local files, data: uris, or external uris.
7325 They will be named based on the sha1 hash of the contents.
7327 * Make `papersize: a4` work regardless of the case of `a4`.
7328 It is converted to `a4` in LaTeX and `A4` in ConTeXt.
7330 * Make `east_asian_line_breaks` affect all readers/writers (#3703).
7332 * Underlined elements are now treated consistently by readers
7333 (#2270, hftf); they are always put in a Span with class `underline`.
7334 This allows the user to treat them differently from other emphasis,
7335 using a filter. Docx, Org, Textile, Txt2Tags, and HTML readers
7336 have been changed.
7338 * Improved behavior of `auto_identifiers` when there are explicit ids
7339 (#1745). Previously only autogenerated ids were added to the list
7340 of header identifiers in state, so explicit ids weren't taken
7341 into account when generating unique identifiers. Duplicated
7342 identifiers could result. This simple fix ensures that explicitly given
7343 identifiers are also taken into account.
7345 * Use `table-of-contents` for contents of toc, make `toc` a boolean
7346 (#2872). Changed markdown, rtf, and HTML-based templates accordingly.
7347 This allows you to set `toc: true` in the metadata; this
7348 previously produced strange results in some output formats.
7349 For backwards compatibility, `toc` is still set to the
7350 toc contents. But it is recommended that you update templates
7351 to use `table-of-contents` for the toc contents and `toc`
7352 for a boolean flag.
7354 * Change behavior with binary format output to stdout.
7355 Previously, for binary formats, output to stdout was disabled
7356 unless we could detect that the output was being piped (and not
7357 sent to the terminal). Unfortunately, such detection is not
7358 possible on Windows, leaving windows users no way to pipe binary
7359 output. So we have changed the behavior in the following way:
7361 + Output to stdout is allowed when it can be determined that
7362 the output is being piped (on non-Windows platforms).
7363 + If the `-o` option is not used, binary output is never sent
7364 to stdout by default; instead, an error is raised.
7365 + If `-o -` is used, binary output is sent to stdout, regardless
7366 of whether it is being piped. This works on Windows too.
7368 * Better error behavior: uses of `error` have been replaced by
7369 raising of `PandocError`, which can be trapped and handled by the
7370 calling program.
7372 * Removed `hard_line_breaks` extension from `markdown_github` (#3594).
7373 GitHub has two Markdown modes, one for long-form documents like READMEs
7374 and one for short things like issue comments. In issue comments, a line
7375 break is treated as a hard line break. In README, wikis, etc., it is
7376 treated as a space as in regular Markdown. Since pandoc is more likely to
7377 be used to convert long-form documents from GitHub Markdown,
7378 `-hard_line_breaks` is a better default.
7380 * Include `backtick_code_blocks` extension in `mardkown_mmd` (#3637).
7382 * Escape `MetaString` values (as added with `-M/--metadata` flag) (#3792).
7383 Previously they would be transmitted to the template without any
7384 escaping. Note that `--M title='*foo*'` yields a different result from
7386 ---
7387 title: *foo*
7388 ---
7390 In the latter case, we have emphasis; in the former case, just
7391 a string with literal asterisks (which will be escaped
7392 in formats, like Markdown, that require it).
7394 * Allow `em`, `cm`, `in` for image height/width in HTML, LaTeX (#3450).
7396 * HTML writer: Insert `data-` in front of unsupported attributes. Thus,
7397 a span with attribute `foo` gets written to HTML5 with `data-foo`, so
7398 it is valid HTML5. HTML4 is not affected. This will allow us to use
7399 custom attributes in pandoc without producing invalid HTML. (With help
7400 from Wandmalfarbe, #3817.)
7402 * Plain writer: improved super/subscript rendering. We now
7403 handle more non-digit characters for which there are
7404 sub/superscripted unicode characters. When unicode
7405 sub/superscripted characters are not available, we use
7406 `_(..)` or `^(..)` (#3518).
7408 * Docbook, JATS, TEI writers: print INFO message when omitting interior
7409 header (#3750). This only applies to section headers inside list items,
7410 e.g., which were otherwise silently omitted.
7412 * Change to `--reference-links` in Markdown writer (#3701). With
7413 `--reference-location` of `section` or `block`, pandoc will now repeat
7414 references that have been used in earlier sections. The Markdown
7415 reader has also been modified, so that *exactly* repeated references
7416 do not generate a warning, only references with the same label but
7417 different targets. The idea is that, with references after every block,
7418 one might want to repeat references sometimes.
7420 * ODT/OpenDocument writer:
7422 + Support `lang` attribute (#1667).
7423 + Added support for `--toc` (#2836). Thanks to @anayrat.
7425 * Docx writer:
7427 + `lang` meta, see #1667 (Mauro Bieg, #3515).
7428 + Change `FigureWithCaption` to `CaptionedFigure` (iandol, #3658).
7429 + Use `Table` rather than `Table Normal` for table style (#3275).
7430 `Table Normal` is the default table style and can't be modified.
7431 + Pass through comments (#2994). We assume that comments are defined as
7432 parsed by the docx reader:
7434 I want <span class="comment-start" id="0" author="Jesse Rosenthal"
7435 date="2016-05-09T16:13:00Z">I left a comment.</span>some text to
7436 have a comment <span class="comment-end" id="0"></span>on it.
7438 We assume also that the id attributes are unique and properly
7439 matched between comment-start and comment-end.
7440 + Bookmark improvements. Bookmark start/end now surrounds content rather
7441 than preceding it. Bookmarks generated for Div with id
7442 (jgm/pandoc-citeproc#205).
7443 + Add `keywords` metadata to docx document properties (Ian).
7445 * RST writer: support unknown interpreted text roles by
7446 parsing them as `Span` with `role` attributes (#3407). This
7447 way they can be manipulated in the AST.
7449 * HTML writer:
7451 + Line block: Use class instead of style attribute (#1623). We now
7452 issue `<div class="line-block">` and include a default definition
7453 for `line-block` in the default templates, instead of hard-coding a
7454 `style` on the div.
7455 + Add class `footnoteBack` to footnote back references (Timm Albers).
7456 This allows for easier CSS styling.
7457 + Render SmallCaps as span with smallcaps class (#1592), rather than
7458 using a style attribute directly. This gives the user more flexibility
7459 in styling small caps in CSS.
7460 + With reveal.js we use `data-src` instead of `src` for images for
7461 lazy loading.
7462 + Special-case `.stretch` class for images in reveal.js (#1291).
7463 Now in reveal.js, an image with class `stretch` in a paragraph
7464 by itself will stretch to fill the whole screen, with no
7465 caption or figure environment.
7467 * Added warnings for non-rendered blocks to writers.
7469 * Writers now raise an error on template failure.
7471 * When creating a PDF via LaTeX, warn if the font is missing some
7472 characters (#3742).
7474 * Remove initial check for PDF-creating program (#3819).
7475 Instead, just try running it and raise the exception if it
7476 isn't found at that point. This improves things for users of Cygwin
7477 on Windows, where the executable won't be found by `findExecutable`
7478 unless `.exe` is added. The same exception is raised as before, but
7479 at a later point.
7481 * Readers issue warning for duplicate header identifiers (#1745).
7482 Autogenerated header identifiers are given suffixes so as not to clash
7483 with previously used header identifiers. But they may still coincide with
7484 an explicit identifier that is given for a header later in the document,
7485 or with an identifier on a div, span, link, or image. We now issue
7486 a warning in this case, so users can supply an explicit identifier.
7488 * CommonMark reader now supports `emoji`, `hard_line_breaks`, `smart`,
7489 and `raw_html` extensions.
7491 * Markdown reader:
7493 + Don't allow backslash + newline to affect block structure (#3730).
7494 Note that as a result of this change, the following, which formerly
7495 produced a header with two lines separated by a line break, will
7496 now produce a header followed by a paragraph:
7498 # Hi\
7499 there
7501 This may affect some existing documents that relied on
7502 this undocumented and unintended behavior. This change makes pandoc
7503 more consistent with other Markdown implementations, and with itself
7504 (since the two-space version of a line break doesn't work inside ATX
7505 headers, and neither version works inside Setext headers).
7508 * Org reader (Albert Krewinkel, unless noted):
7510 + Support `table.el` tables (#3314).
7511 + Support macros (#3401).
7512 + Support the `#+INCLUDE:` file inclusion mechanism (#3510).
7513 Recognized include types are `example`, `export`, `src`, and
7514 normal org file inclusion. Advanced features like line numbers
7515 and level selection are not implemented yet.
7516 + Interpret more meta value as inlines. The values of the following
7517 meta variables are now interpreted using org-markup instead of
7518 treating them as pure strings: `keywords` (comma-separated list of
7519 inlines), `subtitle` (inline values), `nocite` (inline values, can
7520 be repeated).
7521 + Support `\n` export option (#3940). This turns all newlines in the
7522 text into hard linebreaks.
7524 * RST reader:
7526 + Improved admonition support (#223). We no longer add an
7527 `admonition` class, we just use the class for the type of admonition,
7528 `note` for example. We put the word corresponding to the label in
7529 a paragraph inside a `Div` at the beginning of the admonition with
7530 class `admonition-title`. This is about as close as we can get to
7531 RST's own output.
7532 + Initial support of `.. table` directive. This allows adding captions
7533 to tables.
7534 + Support `.. line-block` directive. This is deprecated but may still
7535 be in older documents.
7536 + Support scale and align attributes of images (#2662).
7537 + Implemented implicit internal header links (#3475).
7538 + Support RST-style citations (#853). The citations appear at the end
7539 of the document as a definition list in a special div with id
7540 `citations`. Citations link to the definitions.
7541 + Recurse into bodies of unknown directives (#3432).
7542 In most cases it's better to preserve the content than
7543 to emit it. This isn't guaranteed to have good results;
7544 it will fail spectacularly for unknown raw or verbatim directives.
7545 + Handle chained link definitions (#262). For example,
7547 .. _hello:
7548 .. _goodbye: example.com
7550 Here both `hello` and `goodbye` should link to `example.com`.
7551 + Support anchors (#262). E.g.
7553 `hello`
7555 .. _hello:
7557 paragraph
7559 This is supported by putting "paragraph" in a `Div` with id `hello`.
7560 + Support `:widths:` attribute for table directive.
7561 + Implement csv-table directive (#3533). Most attributes are supported,
7562 including `:file:` and `:url:`.
7563 + Support unknown interpreted text roles by parsing them as Span
7564 with "role" attributes (#3407). This way they can be manipulated in
7565 the AST.
7567 * HTML reader: parse a span with class `smallcaps` as `SmallCaps`.
7569 * LaTeX reader:
7571 + Implemented `\graphicspath` (#736).
7572 + Properly handle column prefixes/suffixes. For example, in
7573 `\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}`
7574 each cell will be interpreted as if it has a `$`
7575 before its content and a `$` after (math mode).
7576 + Handle komascript `\dedication` (#1845). It now adds a
7577 `dedication` field to metadata. It is up to the user to supply
7578 a template that uses this variable.
7579 + Support all `\textXX` commands, where XX = `rm`, `tt`, `up`, `md`,
7580 `sf`, `bf` (#3488). Spans with a class are used when there is
7581 nothing better.
7582 + Expand `\newenvironment` macros (#987).
7583 + Add support for LaTeX subfiles package (Marc Schreiber, #3530).
7584 + Better support for subfigure package (#3577).
7585 A figure with two subfigures turns into two pandoc
7586 figures; the subcaptions are used and the main caption
7587 ignored, unless there are no subcaptions.
7588 + Add support for `\vdots` (Marc Schreiber, #3607).
7589 + Add basic support for hyphenat package (Marc Schreiber, #3603).
7590 + Add basic `\textcolor` support (Marc Schreiber).
7591 + Add support for `tabularx` environment (Marc Schreiber, #3632).
7592 + Better handling of comments inside math environments (#3113).
7593 This solves a problem with commented out `\end{eqnarray}` inside
7594 an eqnarray (among other things).
7595 + Parse tikzpicture as raw verbatim environment if `raw_tex` extension
7596 is selected (#3692). Otherwise skip with a warning. This is better
7597 than trying to parse it as text!
7598 + Add `\colorbox` support (Marc Schreiber).
7599 + Set identifiers on Spans used for `\label`.
7600 + Have `\setmainlanguage` set `lang` in metadata.
7601 + Support etoolbox's `\ifstrequal`.
7602 + Support `plainbreak`, `fancybreak` et al from the memoir class
7603 (bucklereed, #3833).
7604 + Support `\let`. Also, fix regular macros so they're expanded at the
7605 point of use, and NOT also the point of definition. `\let` macros,
7606 by contrast, are expanded at the point of definition. Added an
7607 `ExpansionPoint` field to `Macro` to track this difference.
7608 + Support simple `\def` macros. Note that we still don't support
7609 macros with fancy parameter delimiters, like `\def\foo#1..#2{...}`.
7610 + Support `\chaptername`, `\partname`, `\abstractname`, etc. (#3559,
7611 obsoletes #3560).
7612 + Put content of `\ref`, `\label`, `\eqref` commands into `Span` with
7613 attributes, so they can be handled in filters (Marc Schreiber, #3639)
7614 + Add Support for `glossaries` and `acronym` package (Marc Schreiber,
7615 #3589). Acronyms are not resolved by the reader, but acronym and
7616 glossary information is put into attributes on Spans so that they
7617 can be processed in filters.
7618 + Use `Link` instead of `Span` for `\ref`. This makes more sense
7619 semantically and avoids unnecessary `Span [Link]` nestings when
7620 references are resolved.
7621 + Rudimentary support for `\hyperlink`.
7622 + Support `\textquoteleft|right`, `\textquotedblleft|right` (#3849).
7623 + Support `\lq`, `\rq`.
7624 + Implement `\newtoggle`, `\iftoggle`, `\toggletrue|false` from etoolbox
7625 (#3853).
7626 + Support `\RN` and `\Rn`, from biblatex (bucklereed, #3854).
7627 + Improved support for `\hyperlink`, `\hypertarget` (#2549).
7628 + Support `\k` ogonek accent.
7629 + Improve handling of accents. Handle ogonek, and fall back correctly
7630 with forms like `\"{}`.
7631 + Better support for ogonek accents.
7632 + Support for `\faCheck` and `\faClose` (Marc Schreiber, #3727).
7633 + Support for `xspace` (Marc Schreiber, #3797).
7634 + Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia)
7635 and `\figurename`.
7636 + Better handling of `\part` in LaTeX (#1905). Now we parse chapters as
7637 level 0 headers, and parts as level -1 headers. After parsing, we
7638 check for the lowest header level, and if it's less than 1 we bump
7639 everything up so that 1 is the lowest header level. So `\part` will
7640 always produce a header; no command-line options are needed.
7641 + Add block version of `\textcolor` (Marc Schreiber).
7642 + `\textcolor` works as inline and block command (Marc Schreiber).
7643 + `\textcolor` will be parse as span at the beginning of a paragraph
7644 (Marc Schreiber).
7645 + Read polyglossia/babel `\text(LANG){...}` (bucklereed)
7646 + Improved handling of include files in LaTeX reader (#3971).
7647 Previously `\include` wouldn't work if the included file
7648 contained, e.g., a begin without a matching end.
7649 + Support `\expandafter` (#3983).
7650 + Handle `\DeclareRobustCommand` (#3983). Currently it's just treated
7651 as a synonym for `\newcommand`.
7652 + Handle `\lettrine` (Mauro Bieg).
7654 * Math improvements due to updates in texmath:
7656 + Improved handling of accents and upper/lower delimiters.
7657 + Support for output in GNU eqn format (used with *roff).
7658 + Allow `\boldsymbol` + a token without braces, and similarly
7659 with other styling commands.
7660 + Improve parsing of `\mathop` to allow multi-character operator names.
7661 + Add thin space after math operators when "faking it with
7662 unicode."
7664 * `walk` is now used instead of `bottomUp` in the `ToJSONFilter`
7665 instance for `a -> [a]` (pandoc-types). Note that behavior
7666 will be slightly different, since `bottomUp`'s treatment of
7667 a function `[a] -> [a]` is to apply it to each sublist of a
7668 list, while walk applies it only to maximal sublists.
7669 Usually the latter behavior is what is wanted, and the
7670 former can be simulated when needed. But there may be
7671 existing filters that need to be rewritten in light of the
7672 new behavior. Performance should be improved.
7674 * There are some changes to syntax highlighting due to revisions
7675 in the `skylighting` library:
7677 + Support for `powershell` has been added, and many syntax
7678 definitions have been updated.
7679 + Background colors have been added to the `kate` style.
7680 + The way highlighted code blocks are formatted in HTML has
7681 been changed (David Baynard), in ways that may require
7682 changes in hard-coded CSS affecting highlighting.
7683 (If you haven't included hard-coded highlighting CSS in
7684 your template, you needn't change anything.)
7687### API changes
7689 * New module `Text.Pandoc.Class` (Jesse Rosenthal, John MacFarlane).
7690 This contains definitions of the `PandocMonad` typeclass, the
7691 `PandocIO` and `PandocPure` monads, and associated functions.
7693 * Changed types of all writers and readers.
7695 + We now use `Text` instead of `String` in the interface (#3731).
7696 (We have not yet changed the internals of most readers to work
7697 with `Text`, but making this change in the API now opens up a
7698 path to doing that.)
7699 + The result is now of form `m a` with constraint `PandocMonad m`.
7700 Readers and writers can be combined to form monadic values which
7701 can be run using either `runIO` or `runPure`. If `runIO` is used,
7702 then both readers and writers will be able to do IO when needed
7703 (for include files, for example); if `runPure` is used,
7704 then the functions are pure and will not touch IO.
7705 + Where previously you used
7706 `writeRST def (readMarkdown def "[foo](url)")`, now you
7707 would use
7708 `runPure $ readMarkdown def (pack "[foo](url)") >>= writeRST def`.
7710 * New module `Text.Pandoc.Readers` (Albert Krewinkel). This
7711 contains reader helper functions formerly defined in the
7712 top-level `Text.Pandoc` module.
7714 + Changed `StringReader` -> `TextReader`.
7715 + `getReader` now returns a pair of a reader and
7716 `Extensions`, instead of building the extensions into the
7717 reader (#3659). The calling code must explicitly set
7718 `readerExtensions` using the `Extensions` returned. The
7719 point of the change is to make it possible for the calling
7720 code to determine what extensions are being used.
7722 * New module `Text.Pandoc.Writers` (Albert Krewinkel).
7723 This contains writer helper functions formerly defined in the
7724 top-level `Text.Pandoc` module.
7726 + Changed `StringWriter` -> `TextWriter`.
7727 + `getWriter` now returns a pair of a reader and
7728 `Extensions`, instead of building the extensions into the
7729 reader (#3659). The calling code must explicitly set
7730 `readerExtensions` using the `Extensions` returned. The
7731 point of the change is to make it possible for the calling
7732 code to determine what extensions are being used.
7734 * New module `Text.Pandoc.Lua`, exporting `runLuaFilter` (Albert Krewinkel,
7735 #3514).
7737 * New module `Text.Pandoc.App`. This abstracts out the functionality
7738 of the command line program (`convertWithOpts`), so it can be reproduced
7739 e.g. in a desktop or web application. Instead of exiting, we throw errors
7740 (#3548), which are caught (leading to exit) in pandoc.hs, but allow other
7741 users of `Text.Pandoc.App` to recover. `pandoc.hs` is now a 2-liner.
7742 The module also exports some utility functions for parsing options
7743 and running filters.
7745 * New module `Text.Pandoc.Logging` (exported module) (#3392).
7746 This now contains the `Verbosity` definition previously in
7747 `Text.Pandoc.Options`, as well as a new `LogMessage` datatype that will
7748 eventually be used instead of raw strings for warnings. This will enable
7749 us, among other things, to provide machine-readable warnings if desired.
7750 Include ToJSON instance and showLogMessage. This gives us the possibility
7751 of both machine-readable and human-readable output for log messages.
7753 * New module `Text.Pandoc.BCP47`, with `getLang`, `Lang(..)`, `parseBCP47`.
7755 * New module `Text.Pandoc.Translations`, exporting `Term`,
7756 `Translations`, `readTranslations`.
7758 * New module `Text.Pandoc.Readers.LaTeX.Types', exporting `Macro`, `Tok`,
7759 `TokType`, `Line`, `Column`.
7761 * `Text.Pandoc.Error`: added many new constructors for `PandocError`.
7763 * Expose some previously private modules (#3260). These are often
7764 helpful to people writing their own reader or writer modules:
7766 + `Text.Pandoc.Writers.Shared`
7767 + `Text.Pandoc.Parsing`
7768 + `Text.Pandoc.Asciify`
7769 + `Text.Pandoc.Emoji`
7770 + `Text.Pandoc.ImageSize`
7771 + `Text.Pandoc.Highlighting`
7773 * New module `Text.Pandoc.Extensions` (Albert Krewinkel):
7774 Extension parsing and processing functions were defined in the top-level
7775 `Text.Pandoc` module. These functions are moved to the Extensions
7776 submodule as to enable reuse in other submodules.
7778 * Add `Ext_raw_attribute` constructor for `Extension`.
7780 * Add `Ext_fenced_divs` constructor for `Extension'.
7782 * Add `Ext_four_space_rule` constructor in `Extension`.
7784 * Add `Ext_gfm_auto_identifiers` constructor for `Extension`.
7786 * Add `Monoid` instance for `Extensions`.
7788 * Add `Text.Pandoc.Writers.Ms`, exporting `writeMs`.
7790 * Add `Text.Pandoc.Writers.JATS`, exporting `writeJATS`.
7792 * Add `Text.Pandoc.Writers.Muse`, exporting `writeMuse`.
7794 * Add `Text.Pandoc.Readers.Muse`, exporting `readMuse`.
7796 * Add `Text.Pandoc.Readers.TikiWiki`, exporting `readTikiWiki`.
7798 * Add `Text.Pandoc.Readers.Vimwiki`, exporting `readVimwiki`.
7800 * Add `Text.Pandoc.Readers.Creole`, exporting `readCreole`.
7802 * Export `setVerbosity` from `Text.Pandoc`.
7804 * `Text.Pandoc.Pretty`: Add `Eq` instance for `Doc`.
7806 * `Text.Pandoc.XML`: `toEntities`: changed type to `Text -> Text`.
7808 * `Text.Pandoc.UTF8`:
7810 + Export `fromText`, `fromTextLazy`, `toText`, `toTextLazy`.
7811 Define `toString`, `toStringLazy` in terms of them.
7812 + Add new functions parameterized on `Newline`: `writeFileWith`,
7813 `putStrWith`, `putStrLnWith`, `hPutStrWith`, `hPutStrLnWith`.
7815 * `Text.Pandoc.MediaBag`: removed `extractMediaBag`.
7817 * `Text.Pandoc.Highlighting`:
7819 + `highlighting` now returns an Either rather than Maybe.
7820 This allows us to display error information returned by the skylighting
7821 library. Display a warning if the highlighting library throws an error.
7822 + Add parameter for `SyntaxMap` to `highlight`.
7824 * `Text.Pandoc.Writers.Math`:
7826 + Export `defaultMathJaxURL`, `defaultKaTeXURL`. This will ensure that
7827 we only need to update these in one place.
7829 * `Text.Pandoc.SelfContained`:
7831 + Removed `WriterOptions` parameter from `makeSelfContained`.
7832 + Put `makeSelfContained` in PandocMonad instead of IO. This removes
7833 the need to pass MediaBag around and improves exceptions. It also
7834 opens up the possibility of using makeSelfContained purely.
7835 + Export `makeDataURI`.
7837 * `Text.Pandoc.ImageSize`:
7839 + Export `lengthToDim`, new function `scaleDimension`.
7840 + Export `inEm` from ImageSize (#3450).
7841 + Change `showFl` and `show` instance for `Dimension` so
7842 extra decimal places are omitted.
7843 + Added `Em` as a constructor of `Dimension`.
7844 + Add `WriterOptions` parameter to `imageSize` signature (Mauro Bieg).
7846 * `Text.Pandoc.Templates`:
7848 + Change type of `renderTemplate'`. Now it runs in `PandocMonad`
7849 and raises a proper `PandocTemplateError` if there are problems, rather
7850 than failing with uncatchable `error`.
7851 + Change signature of `getDefaultTemplate`. Now it runs in any instance
7852 of `PandocMonad`, and returns a `String` rather than an `Either` value.
7853 And it no longer takes a `datadir` parameter, since this can be
7854 retrieved from `CommonState`.
7856 * `Text.Pandoc.Options`:
7858 + Added `writerEpubSubdirectory` to `WriterOptions` (#3720).
7859 The EPUB writer now takes its EPUB subdirectory from this option.
7860 + In `WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine`
7861 and `writerLaTeXArgs` to `writerPdfArgs` (Mauro Bieg, #3909).
7862 + Add `writerSyntaxMap` to `WriterOptions`.
7863 + Removed `writerEpubStylesheet` from `WriterOptions`.
7864 + Remove `writerUserDataDir` from `WriterOptions`. It is now carried
7865 in `CommonState` in `PandocMonad` instances. (And thus it can be used
7866 by readers too.)
7867 + Changed `writerEpubMetadata` to a `Maybe String`.
7868 + Removed `readerApplyMacros` from `ReaderOptions`. Now we just check
7869 the `latex_macros` reader extension.
7870 + FromJSON/ToJSON instances for `ReaderOptions`.
7871 + In `HTMLMathMethod`, the `KaTeX` contsructor now takes only
7872 one string (for the KaTeX base URL), rather than two.
7873 + Removed `writerSourceURL` from `WriterOptions`. We now use
7874 `stSourceURL` in `CommonState`, which is set by `setInputFiles`.
7876 * `Text.Pandoc.Shared`:
7878 + `tabFilter` now takes a `Text`, not `String`.
7879 + `openURL`: Changed type from an Either. Now it will just raise
7880 an exception to be trapped later.
7881 + Remove `normalizeSpaces` (#1530).
7882 + Remove `warn`. (Use `report` from `Text.Pandoc.Class` instead.)
7883 + Export a new function `crFilter`.
7884 + Add `eastAsianLineBreakFilter` (previously in Markdown reader).
7885 + Provide custom `isURI` that rejects unknown schemes.
7886 (Albert Krewinkel, #2713). We also export the set of known
7887 `schemes`. The new function replaces the function of the same name
7888 from `Network.URI`, as the latter did not check whether a scheme is
7889 well-known. All official IANA schemes (as of 2017-05-22) are
7890 included in the set of known schemes. The four non-official schemes
7891 `doi`, `isbn`, `javascript`, and `pmid` are kept.
7892 + Remove `err`.
7893 + Remove `readDataFile`, `readDefaultDataFile`, `getReferenceDocx`,
7894 `getReferenceODT`. These now live in `Text.Pandoc.Class`,
7895 where they are defined in terms of `PandocMonad`
7896 primitives and have different signatures.
7897 + Remove `openURL`. Use `openURL` from `Text.Pandoc.Class` instead.
7898 + Add `underlineSpan`.
7900 * `Text.Pandoc.Readers.HTML`: export new `NamedTag` class.
7902 * `Text.Pandoc.Readers.Markdown`: remove `readDocxWithWarnings`.
7903 With the new API one can simply use `getLog` after running
7904 the reader.
7906 * `Text.Pandoc.Readers.LaTeX`: Changed types for `rawLaTeXInline`
7907 and `rawLaTeXBlock`. (Both now return a `String`, and they are
7908 polymorphic in state.)
7911### Bug fixes and under-the-hood improvements
7913 * TEI writer: Added identifiers on `<div>` elements.
7915 * DokuWiki reader: Better handling for code block in list item (#3824).
7917 * Custom writer: Remove old preprocesesor conditionals (Albert Krewinkel).
7919 * ZimWiki writer: Removed internal formatting from note and table cells,
7920 because ZimWiki does not support it (Alex Ivkin, #3446).
7922 * MediaWiki writer:
7924 + Updated list of syntax highlighting languages (#3461).
7925 Now `r` gets you `<source>` rather than `<code>` (among others).
7926 + Add display attribute on `<math>` tags (#3452). This allows display
7927 math to be rendered properly.
7928 + Remove newline before `</ref>` (#2652).
7929 + Don't softbreak lines inside list items (#3531).
7931 * Org writer:
7933 + Reduce to two spaces after bullets (#3417, Albert Krewinkel).
7934 + Add unit tests (Alexander Krotov).
7935 + Stop using raw HTML to wrap divs (Albert Krewinkel, #3771).
7936 + Do not strip `#` from Org anchor links (Alexander Krotov).
7938 * CommonMark writer:
7940 + Avoid excess blank lines at end of output.
7941 + Prefer pipe tables to HTML tables even if it means losing relative
7942 column width information (#3734).
7943 + Support table, strikethrough extensions, when enabled (as with gfm).
7944 Note that we bypass the commonmark writer from cmark and construct our
7945 own pipe tables, with better results.
7946 + Properly support `--wrap=none`.
7947 + Use smallcaps class for `SmallCaps` (#1592).
7948 + Omit "fig:" prefix in image titles. This is used internally to
7949 indicate internal figures.
7951 * RST writer:
7953 + Properly handle table captions.
7954 + Don't wrap lines in in definition list terms. Wrapping is not allowed.
7955 + Implemented `+/-smart` and improved escaping with `+smart`.
7956 + Add empty comments when needed to avoid including a blockquote
7957 in the indented content of a preceding block (#3675).
7958 + Improve grid table output, fix bug with empty rows (#3516).
7959 Uses the new `gridTable` in Writers.Shared, which is here
7960 improved to better handle 0-width cells.
7961 + Remove space at beginning/end of RST code span (#3496). Otherwise
7962 we get invalid RST. There seems to be no way to escape the space.
7963 + Add header anchors when header has non-standard id (#3937).
7964 + Correctly handle inline code containing backticks, using a `:literal:`
7965 role (#3974).
7966 + Don't backslash-escape word-internal punctuation (#3978).
7968 * Markdown writer:
7970 + Don't include variables in metadata blocks. Previously variables set
7971 on the command line were included in e.g. YAML metadata, contrary to
7972 documentation and intentions.
7973 + Improved escaping with `+smart`.
7974 + Fixed grid tables embedded in grid tables (#2834).
7975 + Use span with class 'smallcaps' for SmallCaps, instead of a style
7976 attribute as before (#1592).
7977 + Escape initial `%` in a paragraph if the `pandoc_title_blocks`
7978 extension is enabled (#3454). Otherwise in a document starting with
7979 a literal `%` the first line is wrongly interpreted as a title.
7980 + Fixed false ordered lists in YAML metadata (#3492, #1685). Now we
7981 properly escape things that would otherwise start ordered lists,
7982 such as
7984 ---
7985 title: 1. inline
7986 ...
7987 + Better handling of tables with empty columns (#3337). We now
7988 calculate the number of columns based on the longest row (or the
7989 length of aligns or widths).
7990 + Escape unordered list markers at beginning of paragraph (#3497), to
7991 avoid false interpretation as a list.
7992 + Escape `|` appropriately.
7993 + Ensure space before list at top level (#3487).
7994 + Avoid spurious blanklines at end of document after tables and list,
7995 for example.
7996 + Fixed bugs in simple/multiline list output (#3384).
7997 Previously we got overlong lists with `--wrap=none`. This is fixed.
7998 Previously a multiline list could become a simple list (and would
7999 always become one with `--wrap=none`).
8000 + Don't emit a simple table if `simple_tables` disabled (#3529).
8001 + Case-insensitive reference links (David A Roberts, #3616).
8002 Ensure that we do not generate reference links whose labels differ only
8003 by case. Also allow implicit reference links when the link
8004 text and label are identical up to case.
8005 + Put space before reference link definitions (Mauro Bieg, #3630).
8006 + Better escaping for links (David A. Roberts, #3619). Previously the
8007 Markdown writer would sometimes create links where there were none
8008 in the source. This is now avoided by selectively escaping bracket
8009 characters when they occur in a place where a link might be created.
8010 + Added missing `\n` (David A. Roberts, #3647).
8011 + Fixed duplicated reference links with `--reference-links`
8012 and `--reference-location=section` (#3674). Also ensure that there
8013 are no empty link references `[]`.
8014 + Avoid inline surround-marking with empty content (#3715).
8015 E.g. we don't want `<strong></strong>` to become `****`.
8016 Similarly for emphasis, super/subscript, strikeout.
8017 + Don't allow soft break in header (#3736).
8018 + Make sure `plain`, `markdown_github`, etc. work for raw.
8019 Previously only `markdown` worked. Note: currently a raw block labeled
8020 `markdown_github` will be printed for any `markdown` format.
8021 + Ensure that `+` and `-` are escaped properly so they don't cause
8022 spurious lists (#3773). Previously they were only
8023 if succeeded by a space, not if they were at end of line.
8024 + Use pipe tables if `raw_html` disabled and `pipe_tables` enabled,
8025 even if the table has relative width information (#3734).
8026 + Markdown writer: don't crash on `Str ""`.
8027 + Make `Span` with null attribute transparent. That is, we don't use
8028 brackets or `<span>` tags to mark spans when there are no attributes;
8029 we simply output the contents.
8030 + Escape pipe characters when `pipe_tables` enabled (#3887).
8031 + Better escaping of `<` and `>`. If `all_symbols_escapable` is set,
8032 we backslash escape these. Otherwise we use entities as before.
8033 + When writing plain, don't use `&nbsp;` to separate list and indented
8034 code. There's no need for it in this context, since this isn't to be
8035 interpreted using Markdown rules.
8036 + Preserve classes in JS obfuscated links (Timm Albers, #2989).
8037 HTML links containing classes originally now preserve them when using
8038 javascript email obfuscation.
8039 + Render `SmallCaps` as a native span when `native_spans` are enabled.
8040 + Always write attributes with `bracketed_spans` (d-dorazio).
8042 * Man writer:
8044 + Fix handling of nested font commands (#3568). Previously pandoc emitted
8045 incorrect markup for bold + italic, for example, or bold + code.
8046 + Avoid error for definition lists with no definitions (#3832).
8048 * DocBook writer:
8050 + Fix internal links with `writerIdentifierPrefix opt`
8051 (#3397, Mauro Bieg).
8053 * Docx writer:
8055 + Don't include bookmarks on headers unless non-null id (#3476).
8056 + Support 9 levels of headers (#1642).
8057 + Allow 9 list levels (#3519).
8058 + Don't take `distArchive` from datadir (#3322). The docx writer takes
8059 components from the distribution's version of `reference.docx` when it
8060 can't find them in a user's custom `reference.docx`. Previously, we
8061 allowed a `reference.docx` in the data directory (e.g. `~/.pandoc`)
8062 to be used as the distribution's reference.docx. This led to a
8063 bizarre situation where pandoc would produce a good docx using
8064 `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to
8065 `~/.pandoc/reference.docx`, it would then produce a corrupted docx.
8066 + Fixed handling of soft hyphen (0173) (#3691).
8067 + Better handling of keywords (#3719).
8068 + Cleaner code for handling dir and style attributes for `Div`.
8069 + Use `Set` for dynamic styles to avoid duplicates.
8070 + Removed redundant element from data/docx/word/numbering.xml.
8071 The elements we need are generated when the document is
8072 compiled; this didn't do anything.
8073 + Activate `evenAndOddHeaders` from reference docx (#3901,
8074 Augustín Martín Barbero).
8076 * ODT/OpenDocument writer:
8078 + Calculate aspect ratio for percentage-sized images (Mauro Bieg, #3239).
8079 + Use more widely available bullet characters (#1400). The old
8080 characters weren't available in some font sets. These seem to work
8081 well on Windows and Linux versions of LibreOffice.
8082 + Wider labels for lists (#2421). This avoids overly narrow labels for
8083 ordered lists with `()` delimiters. However, arguably it creates
8084 overly wide labels for bullets. Also, lists now start flush with
8085 the margin, rather than indented.
8086 + Fixed dropped elements in some ordered lists (#2434).
8088 * FB2 writer:
8090 + Don't render `RawBlock` as code.
8091 + Don't fail with an error on interior headers (e.g. in list) (#3750).
8092 Instead, omit them with an INFO message.
8093 + Add support for "lang" metadata (Alexander Krotov, #3625).
8094 + Format `LineBlock` as poem (Alexander Krotov). Previously writer
8095 produced one paragraph with `<empty-line/>` elements, which are not
8096 allowed inside `<p>` according to FB2 schema.
8097 + Replace `concatMap` with `cMap` (Alexander Krotov).
8098 + Write FB2 lists without nesting blocks inside `<p>` (Alexander
8099 Krotov, #4004)
8101 * HTML writer:
8103 + Make sure `html4`, `html5` formats work for raw blocks/inlines.
8104 + Render raw inline environments when `--mathjax` used (#3816).
8105 We previously did this only with raw blocks, on the assumption
8106 that math environments would always be raw blocks. This has changed
8107 since we now parse them as inline environments.
8108 + Ensure we don't get two style attributes for width and height.
8109 + Report when not rendering raw inline/block.
8110 + Issue warning if no title specified and template used (#3473).
8111 + Info message if `lang` is unspecified (#3486).
8112 + Removed unused parameter in `dimensionsToAttributeList`.
8113 + Avoid two class attributes when adding `uri` class (#3716).
8114 + Fix internal links with `writerIdentifierPrefix opt` (#3397, Mauro
8115 Bieg).
8116 + Use revealjs's math plugin for mathjax (#3743). This is a thin
8117 wrapper around mathjax that makes math look better on revealjs.
8118 + Slidy: use h1 for all slides, even if they were originally
8119 level 2 headers (#3566). Otherwise the built-in table of contents
8120 in Slidy breaks.
8122 * LaTeX writer:
8124 + Don't render LaTeX images with data: URIs (#3636). Note that
8125 `--extract-media` can be used when the input contains data: URIs.
8126 + Make highlighted code blocks work in footnotes (Timm Albers).
8127 + Don't use figure inside table cell (#3836).
8128 + Use proper code for list enumerators (#3891). This should fix problems
8129 with lists that don't use arabic numerals.
8130 + Always add hypertarget when there's a non-empty identifier (#2719).
8131 Previously the hypertargets were only added when there was actually
8132 a link to that identifier.
8133 + Use `%` after hypertarget before code block.
8134 + Add `\leavevmode` before hypertarget at start of paragraph (#2704,
8135 fixes formatting problems in beamer citations).
8136 + Don't use `lstinline` in `\item[..]` (#645). If you do, the contents
8137 of item disappear or are misplaced. Use `\texttt` instead.
8138 + Fix problem with escaping in `lstinline` (#1629). Previously the
8139 LaTeX writer created invalid LaTeX when `--listings` was specified and
8140 a code span occurred inside emphasis or another construction.
8141 + Fix error with line breaks after empty content (#2874). LaTeX
8142 requires something before a line break, so we insert a `~` if no
8143 printable content has yet been emitted.
8144 + Use BCP47 parser.
8145 + Fixed detection of otherlangs (#3770). We weren't recursing into
8146 inline contexts.
8147 + Handle language in inline code with `--listings` (#3422).
8148 + Write euro symbol directly in LaTeX (Andrew Dunning, #3801).
8149 The textcomp package allows pdfLaTeX to parse `€` directly, making the
8150 `\euro` command unneeded.
8151 + Fixed footnotes in table captions (#2378). Note that if the table has
8152 a first page header and a continuation page header, the notes will
8153 appear only on the first occurrence of the header.
8154 + In `writeBeamer` output, allow hyperlinks to frames (#3220).
8155 Previously you could link to a header above or below slide level but
8156 not *to* slide level. This commit changes that. Hypertargets are
8157 inserted inside frame titles; technically the reference is to just
8158 after the title, but in normal use (where slides are viewed full
8159 screen in a slide show), this does not matter.
8160 + Remove `\strut` at beginning of table cells (#3436). This fixes a
8161 problem with alignment of lists in table cells. The `\strut` at the
8162 end seems to be enough to avoid the too-close spacing that motivated
8163 addition of the strut in #1573.
8164 + Add partial siunitx Support (Marc Schreiber, #3588).
8166 * ConTeXt writer:
8168 + Refactored to use BCP47 module.
8169 + Remove unnecessary `$` (Alexander Krotov, #3482).
8170 + Use header identifiers for chapters (#3968).
8172 * EPUB writer:
8174 + `title_page.xhtml` is now put in `text/`.
8175 + Don't strip formatting in TOC (#1611).
8177 * Textile reader:
8179 + Fix bug for certain links in table cells (#3667).
8180 + Allow 'pre' code in list item (#3916).
8182 * HTML reader:
8184 + Added warnings for ignored material (#3392).
8185 + Better sanity checks to avoid parsing unintended things as
8186 raw HTML in the Markdown reader (#3257).
8187 + Revise treatment of `li` with `id` attribute (#3596). Previously we
8188 always added an empty div before the list item, but this created
8189 problems with spacing in tight lists. Now we do this: If the list
8190 item contents begin with a `Plain` block, we modify the `Plain`
8191 block by adding a `Span` around its contents. Otherwise, we add a
8192 `Div` around the contents of the list item (instead of adding an
8193 empty `Div` to the beginning, as before).
8194 + Add `details` tag to list of block tags (#3694).
8195 + Removed `button` from block tag list (#3717). It is already in the
8196 `eitherBlockOrInlineTag` list, and should be both places.
8197 + Use `Set`s instead of lists for block tag lookup.
8198 + Rewrote to use `Text` throughout. Effect on memory usage is modest
8199 (< 10%).
8200 + Use the lang value of `<html>` to set the lang meta value (bucklereed,
8201 #3765).
8202 + Ensure that paragraphs are closed properly when the parent block
8203 element closes, even without `</p>` (#3794).
8204 + Parse `<figure>` and `<figcaption>` (Mauro Bieg, #3813).
8205 + Parse `<main>` like `<div role=main>` (bucklereed, #3791).
8206 `<main>` closes `<p>` and behaves like a block element generally
8207 + Support column alignments (#1881). These can be set either
8208 with a `width` attribute or with `text-width` in a `style` attribute.
8209 + Modified state type to be an instance of `HasLogMessages`, so
8210 `registerHeader` can issue warnings.
8211 + `</td>` or `</th>` should close any open block tag (#3991).
8212 + `<td>` should close an open `<th>` or `<td>`.
8213 + `htmlTag` improvements (#3989). We previously failed on cases
8214 where an attribute contained a `>` character. This patch fixes the
8215 bug, which especially affects raw HTML in Markdown.
8217 * Txt2Tags reader:
8219 + Newline is not indentation (Alexander Krotov).
8221 * MediaWiki reader:
8223 + Allow extra hyphens after `|-` in tables (#2649).
8224 + Allow blank line after table start (#2649).
8225 + Fixed more table issues (#2649).
8226 + Ensure that list starts begin at left margin (#2606). Including when
8227 they're in tables or other list items.
8228 + Make smart double quotes depend on `smart` extension (#3585).
8229 + Don't do curly quotes inside `<tt>` contexts (#3585). Even if `+smart`.
8230 + Modified state type to be an instance of `HasLogMessages`, so
8231 `registerHeader` can issue warnings.
8233 * TWiki reader (Alexander Krotov):
8235 + Remove unnecessary `$` (#3597).
8236 + Simplify `linkText` (#3605).
8238 * EPUB reader:
8240 + Minor refactoring, avoiding explicit MediaBag handling.
8241 This all works behind the scenes in CommonState plumbing.
8243 * Docx reader:
8245 + Don't drop smartTag contents (#2242).
8246 + Handle local namespace declarations (#3365). Previously we didn't
8247 recognize math, for example, when the xmlns declaration occurred on
8248 the element and not the root.
8249 + More efficient trimSps (#1530). Replacing `trimLineBreaks`. This
8250 does the work of `normalizeSpaces` as well, so we avoid the need for
8251 that function here.
8252 + Avoid 0-level headers (Jesse Rosenthal, #3830). We used to parse
8253 paragraphs styled with "HeadingN" as "nth-level header." But if a
8254 document has a custom style named "Heading0", this will produce a
8255 0-level header, which shouldn't exist. We only parse this style
8256 if N>0. Otherwise we treat it as a normal style name, and
8257 follow its dependencies, if any.
8258 + Add tests for avoiding zero-level header (Jesse Rosenthal).
8260 * ODT reader:
8262 + Replaced `collectRights` with Rights from `Data.Either`.
8263 + Remove dead code (Albert Krewinkel).
8265 * Org reader (Albert Krewinkel, unless noted).
8267 + Don't allow tables inside list items (John MacFarlane, #3499).
8268 + Disallow tables on list marker lines (#3499).
8269 + Convert markup at beginning of footnotes (John MacFarlane, #3576).
8270 + Allow emphasized text to be followed by `[` (#3577).
8271 + Handle line numbering switch for src blocks.
8272 The line-numbering switch that can be given to source blocks (`-n` with
8273 an start number as an optional parameter) is parsed and translated to a
8274 class/key-value combination used by highlighting and other readers and
8275 writers.
8276 + Stop adding rundoc prefix to src params. Source block parameter names
8277 are no longer prefixed with `rundoc`. This was intended to simplify
8278 working with the rundoc project, a babel runner. However, the rundoc
8279 project is unmaintained, and adding those markers is not the reader's
8280 job anyway. The original language that is specified for a source
8281 element is now retained as the `data-org-language` attribute and only
8282 added if it differs from the translated language.
8283 + Allow multi-word arguments to src block params (#3477). The reader now
8284 correctly parses src block parameter list even if parameter arguments
8285 contain multiple words.
8286 + Avoid creating `nullMeta` by applying `setMeta` directly
8287 (Alexander Krotov).
8288 + Replace `sequence . map` with `mapM`.
8289 + Fix smart parsing behavior. Parsing of smart quotes and special
8290 characters can either be enabled via the `smart` language extension or
8291 the `'` and `-` export options. Smart parsing is active if either the
8292 extension or export option is enabled. Only smart parsing of special
8293 characters (like ellipses and en and em dashes) is enabled by default,
8294 while smart quotes are disabled. Previously, all smart parsing was
8295 disabled unless the language extension was enabled.
8296 + Subject full doc tree to headline transformations (Albert Krewinkel,
8297 #3695). Emacs parses org documents into a tree structure, which is
8298 then post-processed during exporting. The reader is changed to do the
8299 same, turning the document into a single tree of headlines starting
8300 at level 0.
8301 + Fix cite parsing behaviour (Herwig Stuetz). Until now, `org-ref`
8302 cite keys included special characters also at the end. This caused
8303 problems when citations occur right before colons or at the end of
8304 a sentence. With this change, all non alphanumeric characters at
8305 the end of a cite key are ignored. This also adds `,` to the list
8306 of special characters that are legal in cite keys to better mirror
8307 the behaviour of org-export.
8308 + Fix module names in haddock comments. Copy-pasting had lead to
8309 haddock module descriptions containing the wrong module names.
8310 + Recognize babel result blocks with attributes (#3706). Babel
8311 result blocks can have block attributes like captions and names.
8312 Result blocks with attributes were not recognized and were parsed
8313 as normal blocks without attributes.
8314 + Include tags in headlines. The Emacs default is to include tags in the
8315 headline when exporting. Instead of just empty spans, which contain the
8316 tag name as attribute, tags are rendered as small caps and wrapped in
8317 those spans. Non-breaking spaces serve as separators for multiple tags.
8318 + Respect export option for tags (#3713). Tags are appended to
8319 headlines by default, but will be omitted when the `tags` export option
8320 is set to nil.
8321 + Use `tag-name` attribute instead of `data-tag-name`.
8322 + Use `org-language` attribute rather than `data-org-language`.
8323 + Modified state type to be an instance of `HasLogMessages`, so
8324 `registerHeader` can issue warnings.
8325 + End footnotes after two blank lines. Footnotes can not only be
8326 terminated by the start of a new footnote or a header, but also by two
8327 consecutive blank lines.
8328 + Update emphasis border chars (#3933). The org reader was updated to
8329 match current org-mode behavior: the set of characters which are
8330 acceptable to occur as the first or last character in an org emphasis
8331 have been changed and now allows all non-whitespace chars at the
8332 inner border of emphasized text (see `org-emphasis-regexp-components`).
8334 * RST reader:
8336 + Fixed small bug in list parsing (#3432). Previously the parser didn't
8337 handle properly this case:
8339 * - a
8340 - b
8341 * - c
8342 - d
8343 + Handle multiline cells in simple tables (#1166).
8344 + Parse list table directive (Keiichiro Shikano, #3432).
8345 + Make use of `anyLineNewline` (Alexander Krotov, #3686).
8346 + Use `anyLineNewline` in `rawListItem` (Alexander Krotov, #3702).
8347 + Reorganize block parsers for ~20% faster parsing.
8348 + Fixed `..include::` directive (#3880).
8349 + Handle blank lines correctly in line blocks (Alexander Krotov, #3881).
8350 Previously pandoc would sometimes combine two line blocks separated
8351 by blanks, and ignore trailing blank lines within the line block.
8352 + Fix indirect hyperlink targets (#512).
8354 * Markdown reader:
8356 + Allow attributes in reference links to start on next line (#3674).
8357 + Parse YAML metadata in a context that sees footnotes defined in
8358 the body of the document (#1279).
8359 + When splitting pipe table cells, skip tex math (#3481).
8360 You might have a `|` character inside math. (Or for that matter
8361 something that the parser might mistake for raw HTML.)
8362 + Treat span with class `smallcaps` as SmallCaps.
8363 This allows users to specify small caps in Markdown this way:
8364 `[my text]{.smallcaps}` (#1592).
8365 + Fixed internal header links (#2397).
8366 This patch also adds `shortcut_reference_links` to the list
8367 of mmd extensions.
8368 + Treat certain environments as inline
8369 when they occur without space surrounding them (#3309, #2171).
8370 E.g. equation, math. This avoids incorrect vertical space
8371 around equations.
8372 + Optimized `nonindentSpaces`. Makes the benchmark go from 40 to 36 ms.
8373 + Allow latex macro definitions indented 1-3 spaces.
8374 Previously they only worked if nonindented.
8375 + Improved parsing of indented raw HTML blocks (#1841).
8376 Previously we inadvertently interpreted indented HTML as
8377 code blocks. This was a regression. We now seek to determine the
8378 indentation level of the contents of an HTML block, and (optionally)
8379 skip that much indentation. As a side effect, indentation may be
8380 stripped off of raw HTML blocks, if `markdown_in_html_blocks` is
8381 used. This is better than having things interpreted as indented
8382 code blocks.
8383 + Fixed smart quotes after emphasis (#2228). E.g. in `*foo*'s 'foo'`.
8384 + Warn for notes defined but not used (#1718).
8385 + Use `anyLineNewline` (Alexander Krotov).
8386 + Interpret YAML metadata as Inlines when possible (#3755). If
8387 the metadata field is all on one line, we try to interpret it as
8388 Inlines, and only try parsing as Blocks if that fails. If it
8389 extends over one line (including possibly the `|` or `>` character
8390 signaling an indented block), then we parse as Blocks. This was
8391 motivated by some German users finding that `date: '22. Juin 2017'`
8392 got parsed as an ordered list.
8393 + Fixed spurious parsing as citation as reference def (#3840).
8394 We now disallow reference keys starting with `@` if the
8395 `citations` extension is enabled.
8396 + Parse `-@roe` as suppress-author citation (pandoc-citeproc#237).
8397 Previously only `[-@roe]` (with brackets) was recognized as
8398 suppress-author, and `-@roe` was treated the same as `@roe`.
8399 + Fixed parsing of fenced code after list when there is no intervening
8400 blank line (#3733).
8401 + Allow raw latex commands starting with `\start` (#3558). Previously
8402 these weren't allowed because they were interpreted as starting
8403 ConTeXt environments, even without a corresponding `\stop`...
8404 + Added `inlines`, `inlines1`.
8405 + Require nonempty alt text for `implicit_figures` (#2844).
8406 A figure with an empty caption doesn't make sense.
8407 + Removed texmath macro material; now all this is handled
8408 in the LaTeX reader functions.
8409 + Fixed bug with indented code following raw LaTeX (#3947).
8411 * LaTeX reader:
8413 + Rewrote LaTeX reader with proper tokenization (#1390,
8414 #2118, #3236, #3779, #934, #982). This rewrite is primarily
8415 motivated by the need to get macros working properly. A side benefit
8416 is that the reader is significantly faster. We now tokenize the
8417 input text, then parse the token stream. Macros modify the token
8418 stream, so they should now be effective in any context, including
8419 math. Thus, we no longer need the clunky macro processing
8420 capacities of texmath.
8421 + Parse `\,` to `\8198` (six-per-em space) (Henri Werth).
8422 + Allow `\newcommand\foo{blah}` without braces.
8423 + Support `\lstinputlisting` (#2116).
8424 + Issue warnings when skipping unknown latex commands (#3392).
8425 + Include contents of `\parbox`.
8426 + Allow `\hspace` and `\vspace` to count as raw block or inline.
8427 Previously we would refuse to parse anything as raw inline if
8428 it was in the `blockCommands` list. Now we allow exceptions
8429 if they're listed under ignoreInlines in inlineCommands.
8430 This should make it easier e.g. to include an `\hspace`
8431 between two side-by-side raw LaTeX tables.
8432 + Don't drop contents of `\hypertarget`.
8433 + Handle spaces before `\cite` arguments.
8434 + Allow newpage, clearpage, pagebreak in inline contexts as well as
8435 block contexts (#3494).
8436 + Treat `{{xxx}}` the same as `{xxx}` (#2115).
8437 + Use `pMacroDefinition` in macro (for more direct parsing).
8438 Note that this means that `macro` will now parse one
8439 macro at a time, rather than parsing a whole group together.
8440 + Fixed failures on `\ref{}`, `\label{}` with `+raw_tex`. Now these
8441 commands are parsed as raw if `+raw_tex`; otherwise, their argument
8442 is parsed as a bracketed string.
8443 + Don't crash on empty `enumerate` environment (#3707).
8444 + Handle escaped `&` inside table cell (#3708).
8445 + Handle block structure inside table cells (#3709). `minipage` is no
8446 longer required.
8447 + Handle some width specifiers on table columns (#3709). Currently
8448 we only handle the form `0.9\linewidth`. Anything else would have
8449 to be converted to a percentage, using some kind arbitrary assumptions
8450 about line widths.
8451 + Make sure `\write18` is parsed as raw LaTeX. The change is in the
8452 LaTeX reader's treatment of raw commands, but it also affects the
8453 Markdown reader.
8454 + Fixed regression with starred environment names (#3803).
8455 + Handle optional args in raw `\titleformat` (#3804).
8456 + Improved heuristic for raw block/inline. An unknown command at the
8457 beginning of the line that could be either block or inline is
8458 treated as block if we have a sequence of block commands followed by
8459 a newline or a `\startXXX` command (which might start a raw ConTeXt
8460 environment).
8461 + Don't remove macro definitions from the output, even if
8462 `Ext_latex_macros` is set, so that macros will be applied.
8463 Since they're only applied to math in Markdown, removing the macros
8464 can have bad effects. Even for math macros, keeping them should be
8465 harmless.
8466 + Removed `macro`. It is no longer necessary, since the
8467 `rawLaTeXBlock` parser will parse macro definitions. This also avoids
8468 the need for a separate `latexMacro` parser in the Markdown reader.
8469 + Use `label` instead of `data-label` for label in caption (#3639).
8470 + Fixed space after `\figurename` etc.
8471 + Resolve references to section numbers.
8472 + Fix `\let\a=0` case, with single character token.
8473 + Allow `@` as a letter in control sequences. `@` is commonly used
8474 in macros using `\makeatletter`. Ideally we'd make the tokenizer
8475 sensitive to `\makeatletter` and `\makeatother`, but until then this
8476 seems a good change.
8477 + Track header numbers and correlate with labels.
8478 + Allow `]` inside group in option brackets (#3857).
8479 + lstinline with braces can be used (verb cannot be used with braces)
8480 (Marc Schreiber, #3535).
8481 + Fix keyval function: pandoc did not parse options in braces correctly
8482 (Marc Schreiber, #3642).
8483 + When parsing raw LaTeX commands, include trailing space (#1773).
8484 Otherwise things like `\noindent foo` break and turn into
8485 `\noindentfoo`. Affects `-f latex+raw_tex` and `-f markdown` (and other
8486 formats that allow `raw_tex`).
8487 + Don't treat "..." as Quoted (#3958). This caused quotes to be omitted in
8488 `\texttt` contexts.
8489 + Add tests for existing `\includegraphics` behaviour (Ben Firshman).
8490 + Allow space before `=` in bracketd options (Ben Firshman).
8491 + Be more forgiving in parsing command options. This was needed, for
8492 example, to make some minted options work.
8493 + Strip off quotes in `\include` filenames.
8495 * Added `Text.Pandoc.CSV`, simple (unexported) CSV parser.
8497 * `Text.Pandoc.PDF`:
8499 + Got `--resource-path` working with PDF output (#852).
8500 + Fetch images when generating PDF via context (#3380).
8501 To do this, we create the temp directory as a subdirectory
8502 of the working directory. Since context mk IV by default looks
8503 for images in the parent directory, this works.
8504 + Use `report` instead of `warn`, make it sensitive to verbosity settings.
8505 + Use `fillMediaBag` and `extractMedia` to extract media to temp dir.
8506 This reduces code duplication.
8507 + `html2pdf`: use stdin instead of intermediate HTML file
8508 + Removed useless `TEXINPUTS` stuff for `context2pdf`. mkiv context
8509 doesn't use `TEXINPUTS`.
8511 * `Text.Pandoc.Pretty`:
8513 + Simplified definition of `realLength`.
8514 + Don't error for blocks of size < 1. Instead, resize to 1 (see #1785).
8516 * `Text.Pandoc.MIME`:
8518 + Use `application/javascript` (not `application/x-javascript`).
8519 + Added `emf` to mimeTypes with type `application/x-msmetafile` (#1713).
8521 * `Text.Pandoc.ImageSize`:
8523 + Improve SVG image size code (Marc Schreiber, #3580).
8524 + Make `imageSize` recognize basic SVG dimensions (Mauro Bieg, #3462).
8526 * Use `Control.Monad.State.Strict` throughout. This gives 20-30% speedup
8527 and reduction of memory usage in most of the writers.
8529 * Use `foldrWithKey` instead of deprecated `foldWithKey`.
8531 * `Text.Pandoc.SelfContained`:
8533 + Fixed problem with embedded fonts (#3629).
8534 + Refactored getData from `getDataURI` in `SelfContained`.
8535 + Don't use data URIs for script or style (#3423). Instead, just use
8536 script or style tags with the content inside. The old method with
8537 data URIs prevents certain optimizations outside pandoc. Exception:
8538 data URIs are still used when a script contains `</script>` or a
8539 style contains `</`.
8540 + SelfContained: Handle URL inside material retrieved from a URL
8541 (#3629). This can happen e.g. with an @import of a google web font.
8542 (What is imported is some CSS which contains an url reference
8543 to the font itself.) Also, allow unescaped pipe (|) in URL.
8544 + Load resources from `data-src` (needed for lazy loading in
8545 reveal.js slide shows).
8546 + Handle `data-background-image` attribute on section (#3979).
8548 * `Text.Pandoc.Parsing`:
8550 + Added `indentWith` (Alexander Krotov, #3687).
8551 + Added `stateCitations` to `ParserState`.
8552 + Removed `stateChapters` from `ParserState`.
8553 + In `ParserState`, make `stateNotes'` a Map, add `stateNoteRefs`.
8554 + Added `gobbleSpaces` and `gobbleAtMostSpaces`.
8555 + Adjusted type of `insertIncludedFile` so it can be used with token
8556 parser.
8557 + Replace old texmath macro stuff from Parsing. Use Macro from
8558 Text.Pandoc.Readers.LaTeX.Types instead.
8559 + Export `insertIncludedFile`.
8560 + Added `HasLogMessages`, `logMessage`, `reportLogMessages` (#3447).
8561 + Replace partial with total function (Albert Krewinkel).
8562 + Introduce `HasIncludeFiles` type class (Albert Krewinkel). The
8563 `insertIncludeFile` function is generalized to work with all parser
8564 states which are instances of that class.
8565 + Add `insertIncludedFilesF` which returns F blocks (Albert Krewinkel).
8566 The `insertIncludeFiles` function was generalized and renamed
8567 to `insertIncludedFiles'`; the specialized versions are based on that.
8568 + `many1Till`: Check for the end condition before parsing (Herwig
8569 Stuetz). By not checking for the end condition before the first
8570 parse, the parser was applied too often, consuming too much of the
8571 input. This only affects `many1Till p end` where `p` matches on a
8572 prefix of `end`.
8573 + Provide `parseFromString` (#3690). This is a version of
8574 `parseFromString` specialied to ParserState, which resets
8575 `stateLastStrPos` at the end. This is almost always what we want.
8576 This fixes a bug where `_hi_` wasn't treated as emphasis in the
8577 following, because pandoc got confused about the position of the
8578 last word: `- [o] _hi_`.
8579 + Added `takeP`, `takeWhileP` for efficient parsing of `[Char]`.
8580 + Fix `blanklines` documentation (Alexander Krotov, #3843).
8581 + Give less misleading line information with `parseWithString`.
8582 Previously positions would be reported past the end of the chunk.
8583 We now reset the source position within the chunk and report
8584 positions "in chunk."
8585 + Add `anyLineNewline` (Alexander Krotov).
8586 + Provide shared F monad functions for Markdown and Org readers
8587 (Albert Krewinkel). The `F` monads used for delayed evaluation
8588 of certain values in the Markdown and Org readers are based on a
8589 shared data type capturing the common pattern of both `F` types.
8590 + Add `returnF` (Alexander Krotov).
8591 + Avoid parsing `Notes:**` as a bare URI (#3570). This avoids parsing
8592 bare URIs that start with a scheme + colon + `*`, `_`, or `]`.
8593 + Added `readerAbbreviations` to `ParserState`. Markdown reader
8594 now consults this to determine what is an abbreviation.
8595 + Combine grid table parsers (Albert Krewinkel, #3638). The grid table
8596 parsers for markdown and rst was combined into one single
8597 parser `gridTable`, slightly changing parsing behavior of both
8598 parsers: (1) The markdown parser now compactifies block content
8599 cell-wise: pure text blocks in cells are now treated as paragraphs
8600 only if the cell contains multiple paragraphs, and as plain blocks
8601 otherwise. Before, this was true only for single-column tables. (2)
8602 The rst parser now accepts newlines and multiple blocks in header
8603 cells.
8604 + Generalize tableWith, gridTableWith (Albert Krewinkel).
8605 The parsing functions `tableWith` and `gridTableWith` are generalized
8606 to work with more parsers. The parser state only has to be an
8607 instance of the `HasOptions` class instead of requiring a concrete
8608 type. Block parsers are required to return blocks wrapped into a
8609 monad, as this makes it possible to use parsers returning results
8610 wrapped in `Future`s.
8612 * `Text.Pandoc.Shared`:
8614 + Simplify `toRomanNumeral` using guards (Alexander Krotov, #3445)
8615 + `stringify`: handle Quoted better (#3958). Previously we were losing
8616 the quotation marks in Quoted elements.
8618 * `Text.Pandoc.Writers.Shared`:
8620 + Export `metaToJSON'`, `addVariablesToJSON` (#3439).
8621 This allows us to add the variables AFTER using the metadata
8622 to generate a YAML header (in the Markdown writer).
8623 + Added `unsmartify` (previously in RST writer).
8624 Undo literal double curly quotes. Previously we left these.
8625 + Generalize type of `metaToJSON` so it can take a Text. Previously a
8626 String was needed as argument; now any ToJSON instance will do.
8627 + Added `gridTable` (previously in Markdown writer).
8628 + `gridTable`: Refactored to use widths in chars.
8629 + `gridTable`: remove unnecessary extra space in cells.
8630 + Fixed `addVariablesToJSON`. It was previously not allowing multiple
8631 values to become lists.
8632 + Pipe tables: impose minimum cell size (see #3526).
8635### Default template changes
8637 * HTML templates (including EPUB and HTML slide show templates):
8639 + Make default.html5 polyglot markup conformant (John Luke Bentley,
8640 #3473). Polyglot markup is HTML5 that is also valid XHTML. See
8641 <https://www.w3.org/TR/html-polyglot>. With this change, pandoc's
8642 html5 writer creates HTML that is both valid HTML5 and valid XHTML.
8643 + Regularized CSS in html/epub/html slide templates (#3485).
8644 All templates now include `code{white-space: pre-wrap}`
8645 and CSS for `q` if `--html-q-tags` is used. Previously some templates
8646 had `pre` and others `pre-wrap`; the `q` styles were only sometimes
8647 included.
8648 + CSS for `.smallcaps`, (Mauro Bieg, #1592)
8649 + `default.revealjs`: make `history` default to true.
8650 + `default.revealjs`: use lazy loading (#2283).
8651 + `default.revealjs`: add `mathjax` variable and some conditional code
8652 to use the MathJaX plugin.
8653 + `default.slidy` uses `https` instead of `http` (ickc, #3848).
8654 + `default.dzslides`: Load Google Font using HTTPS by default
8655 (Yoan Blanc).
8657 * DocBook5 template: Use `lang` and `subtitle` variables (Jens Getreu,
8658 #3855).
8660 * LaTeX/Beamer template:
8662 + Combine LaTeX/Beamer templates (Andrew Dunning, #3878).
8663 `default.beamer` has been removed; beamer now uses the
8664 `default.latex` template. Beamer-specific parts are conditional
8665 on the `beamer` variable set by the writer. Note that
8666 `pandoc -D beamer` will return this (combined) template.
8667 + Use `xcolor` for `colorlinks` option (Andrew Dunning, #3877).
8668 Beamer loads `xcolor` rather than `color`, and thus the
8669 `dvipsnames` option doesn't take effect. This also provides a wider
8670 range of colour selections with the `svgnames` option.
8671 + Use starred versions of `xcolor` names (Andrew Dunning).
8672 Prevents changes to documents defined using the `dvipsnames` list (e.g.
8673 `Blue` gives a different result with svgnames enabled).
8674 + Load `polyglossia` after header-includes (#3898). It needs to be
8675 loaded as late as possible.
8676 + Use `unicode-math` (Vaclav Haisman). Use `mathspec` with only
8677 XeLaTeX on request.
8678 + Don't load `fontspec` before `unicode-math` (over there).
8679 The `unicode-math` package loads `fontspec` so explicit loading of
8680 `fontspec` before `unicode-math` is not necessary.
8681 + Use `unicode-math` by default in default.latex template. mathspec will
8682 be used in xelatex if the `mathspec` variable is set; otherwise
8683 unicode-math will be used (Václav Haisman).
8684 + Use `dvipsnames` options when `colorlinks` specified (otherwise
8685 we get an error for `maroon`) (Thomas Hodgson).
8686 + Added beamer `titlegraphic` and `logo` variables (Thomas Hodgson).
8687 + Fix typo in fix for notes in tables (#2378, zeeMonkeez).
8688 + Fix `hyperref` options clash (Andrew Dunning, #3847) Avoids an options
8689 clash when loading a package (e.g. `tufte-latex`) that uses
8690 `hyperref` settings different from those in the template.
8691 + Add `natbiboptions` variable (#3768).
8692 + Fix links inside captions in LaTeX output with links-as-notes
8693 (Václav Haisman, #3651). Declare our redefined `\href` robust.
8694 + Load `parskip` before `hyperref` (Václav Haisman, #3654).
8695 + Allow setting Japanese fonts when using LuaLaTeX (Václav Haisman,
8696 #3873). by using the `luatexja-fontspec` and `luatexja-preset`
8697 packages. Use existing `CJKmainfont` and `CJKoptions` template
8698 variables. Add `luatexjafontspecoptions` for `luatexja-fontspec`
8699 and `luatexjapresetoptions` for `luatexja-preset`.
8700 + Added `aspectratio` variable to beamer template (Václav Haisman,
8701 #3723).
8702 + Modified template.latex to fix XeLaTex being used with tables
8703 (lwolfsonkin, #3661). Reordered `lang` variable handling to
8704 immediately before `bidi`.
8706 * ConTeXt template: Improved font handling: `simplefonts` is now
8707 obsolete in ConTeXt (Pablo Rodríguez).
8710### Documentation improvements
8712 * MANUAL.txt:
8714 + Add URL for Prince HTML > PDF engine (Ian, #3919).
8715 + Document that content above slide-level will be omitted in
8716 slide shows. See #3460, #2265.
8717 + Explain `--webtex` SVG url (Mauro Bieg, #3471)
8718 + Small clarification in YAML metadata section.
8719 + Document that html4 is technically XHTML 1.0 transitional.
8720 + Remove refs to highlighting-kate (#3672).
8721 + Document ibooks specific epub metadata.
8722 + Clarify that mathml is used for ODT math.
8723 + Mention limitations of Literate Haskell Support (#3410,
8724 Joachim Breitner).
8725 + Add documentation of limitations of grid tables (Stephen
8726 McDowell, #3864).
8727 + Clarify that meta-json contains transformed values (Jakob Voß,
8728 #3491) Make clear that template variable `meta-json` does not
8729 contain plain text values or JSON output format but field values
8730 transformed to the selected output format.
8732 * COPYRIGHT:
8734 + Clarify that templates are dual-licensed.
8735 + Clarify that pandoc-types is BSD3 licensed.
8736 + List new files not written by jgm (Albert Krewinkel).
8737 + Update dates in copyright notices (Albert Krewinkel). This follows
8738 the suggestions given by the FSF for GPL licensed software.
8739 <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
8741 * INSTALL.md:
8743 + Improved instructions for tests with patterns.
8744 + Put RPM-based distros on separate point (Mauro Bieg, #3449)
8746 * CONTRIBUTING.md:
8748 + Fixed typos (Wandmalfarbe, #3479).
8749 + Add "ask on pandoc-discuss" (Mauro Bieg).
8751 * Add lua filter documentation in `doc/lua-filters.md`. Note that the
8752 end of this document is autogenerated from `data/pandoc.lua`
8753 using `make doc/lua-filters.md`, which uses `tools/ldoc.ltp`
8754 (Albert Krewinkel).
8756 * Add `doc/filters.md`. This is the old scripting tutorial from
8757 the website.
8759 * Add `doc/using-the-pandoc-api.md` (#3289). This gives an introduction
8760 to using pandoc as a Haskell library.
8763### Build infrastructure improvements
8765 * Removed `data/templates` submodule. Templates are now a subtree
8766 in `data/templates`. This removes the need to do `git submodule
8767 update`.
8769 * Renamed `tests` -> `test`.
8771 * Remove `https` flag. Always build with HTTPS support.
8773 * Use `file-embed` instead of `hsb2hs` to embed data files when
8774 `embed_data_files` flag is set. `file-embed` gives us better dependency
8775 tracking: if a data file changes, ghc/stack/cabal know to recompile
8776 the Data module. This also removes `hsb2hs` as a build dependency.
8778 * Add `custom-setup` stanza to pandoc, lowercase field names.
8780 * Add `static` Cabal flag.
8782 * Name change OSX -> MacOS. Add a -MacOS suffix to mac package rather
8783 than -OSX. Changed local names from osx to macos.
8785 * make_macos_package.sh - Use strip to reduce executable size.
8787 * Revised binary linux package. Now a completely static executable
8788 is created, using Docker and alpine. We create both a deb and a
8789 tarball. The old `deb` directory has been replaced with a `linux`
8790 directory. Running `make` in the `linux` directory should
8791 perform the build, putting the binary packages in `artifacts/`.
8793 * `linux/control.in`: add `Replaces:`, so existing pandoc-citeproc and
8794 pandoc-data packages will be uninstalled; this package provides
8795 both (#3822). Add latex packages as 'suggested', update
8796 description.
8798 * Remove cpphs build requirement -- it is no longer needed.
8800 * Replaced `{deb,macos,windows}/stack.yaml` with `stack.pkg.yaml`.
8802 * Name change OSX -> macOS (ickc, #3869).
8804 * Fix casing of Linux, UNIX, and Windows (ickc).
8806 * `.travis.yml`: create a source dist and do cabal build and test there.
8807 That way we catch errors due to files missing from the data
8808 section of pandoc.cabal.
8810 * Makefile:
8812 + Split `make haddock` from `make full`.
8813 + Add BRANCH variable for winpkg.
8814 + Add `lint` target.
8815 + Improve `make full`. Disable optimizations.
8816 Build everything, inc. trypandoc and benchmarks. Use parallel build.
8817 + Allow `make test` to take `TESTARGS`.
8819 * Added new command tests (`Tests.Command`), using small text files
8820 in `test/command/`. Any files added in this directory will be treated
8821 as shell tests (see smart.md for an example). This makes it very easy
8822 to add regression tests etc.
8824 * Test fixes so we can find data files. In old tests & command tests,
8825 we now set the environment variable `pandoc_datadir`. In lua tests,
8826 we set the datadir explicitly.
8828 * Refactored `compareOutput` in docx writer test.
8830 * Consolidated some common functions in `Tests.Helper`.
8832 * Small change to unbalanced bracket test to speed up test suite.
8834 * Speed up Native writer quickcheck tests.
8836 * Use tasty for tests rather than test-framework.
8838 * Add simple Emacs mode to help with Pandoc templates editing.
8839 (Václav Haisman, #3889). `tools/pandoc-template-mode.el`
8842## pandoc 1.19.2.4 (2017-09-10)
8844 * Add dependencies on texmath and skylighting to the executable.
8845 This is needed for dependency version numbers to be available,
8846 with Cabal > 2.
8848## pandoc 1.19.2.3 (2017-09-09)
8850 * Add CPP to Setup.hs so it works with Cabal >= 2 and < 2.
8852## pandoc 1.19.2.2 (2017-09-08)
8854 * Fix build with GHC 8.2.1 (#3876, Peter Simons). Setup.hs does not
8855 compile with Cabal 2.x, so we require an earlier version via
8856 setup-depends. The following packages need newer versions with
8857 GHC 8.2.1 and had their constraints relaxed accordingly:
8858 executable-path, process, syb, and time.
8860## pandoc 1.19.2.1 (2017-01-31)
8862 * Require skylighting >= 0.1.1.4.
8863 * Adjust test output for skylighting version.
8864 * Relax upper bounds on blaze-html and blaze-markup.
8866## pandoc 1.19.2 (2017-01-29)
8868 * Use skylighting library instead of highlighting-kate for syntax
8869 highlighting. Skylighting is faster and more accurate (#3363).
8870 Later we'll be able to add features like warning messages, dynamic
8871 loading of xml syntax definitions, and dynamic loading of themes.
8873 * Added a new highlight style, `breezeDark`.
8875 * Text.Pandoc.Highlighting: Update list of `listings` languages (#3374).
8876 This allows more languages to be used when using the `--listings`
8877 option.
8879 * OpenDocument writer:
8881 + Small refactoring. Removed separate 'parent' parameter in paraStyle.
8882 + Don't profilerate text styles unnecessarily (#3371).
8883 This change makes the writer create only as many temporary
8884 text styles as are absolutely necessary. It also consolidates
8885 adjacent nodes with the same style.
8887 * Org reader (Albert Krewinkel):
8889 + Allow short hand for single-line raw blocks (Albert Krewinkel,
8890 #3366). Single-line raw blocks can be given via `#+FORMAT: raw line`,
8891 where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
8892 + Accept org-ref citations followed by commas (Albert Krewinkel).
8893 Bugfix for an issue which, whenever the citation was immediately
8894 followed by a comma, prevented correct parsing of org-ref citations.
8895 + Ensure emphasis markup can be nested. Nested emphasis markup (e.g.
8896 `/*strong and emphasized*/`) was interpreted incorrectly in that the
8897 inner markup was not recognized.
8898 + Remove pipe char irking the haddock coverage tool (Albert Krewinkel).
8900 * Docx reader: Empty header should be list of lists (Jesse Rosenthal).
8901 In the past, the docx reader wrote an empty header as an empty list. It
8902 should have the same width as a row (and be filled with empty cells).
8904 * MediaWiki reader:
8906 + Improved handling of display math (#3362). Sometimes display math is
8907 indented with more than one colon. Previously we handled these cases
8908 badly, generating definition lists and missing the math.
8909 + Fix quotation mark parsing (#3336, tgkokk). Change MediaWiki reader's
8910 behavior when the smart option is parsed to match other readers'
8911 behavior.
8913 * Markdown reader:
8915 + Fixed `-f markdown_github-hard_line_breaks+escaped_line_breaks`
8916 (#3341). Previously this did not properly enable escaped line breaks.
8917 + Disallow space between inline code and attributes (#3326, #3323,
8918 Mauro Bieg).
8920 * DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330, Mauro Bieg).
8922 * Added some test cases for ODT reader (#3306, #3308, Hubert Plociniczak).
8924 * LaTeX writer: allow tables with empty cells to count as "plain."
8925 This addresses a problem of too-wide tables when empty cells
8926 are used. Thanks to Joost Kremers for reporting the issue.
8928 * Org writer: prefix footnote numbers with `fn:` (Albert Krewinkel).
8929 Unprefixed numbers where used by older org-mode versions, but are no
8930 longer supported.
8932 * HTML writer: don't process pars with empty RawInline, (#1040, #3327,
8933 Mauro Bieg).
8935 * Markdown writer: Fix display math with `--webtex` (#3298).
8937 * Fix sample.lua so it properly handles raw blocks/inlines (#3358,
8938 bumper314).
8940 * Templates:
8942 + default.latex: Moved geometry after hyperref (Václav Haisman).
8943 Otherwise PDF sizes can be wrong in some circumstances.
8944 + Copied a few changes from default.latex to default.beamer
8945 (Wandmalfarbe).
8946 + default.latex, default.beamer: Changed position of `\VerbatimNotes`
8947 and `fancyvrb`. This fixes hyperlinks on footnotes in documents
8948 that contain verbatim in notes (#3361). (Note: the beamer template
8949 was updated to match the LaTeX template, but at this point verbatim
8950 in notes seems not to work in beamer.)
8951 + default.latex: Allow passing `microtypeoptions` to microtype
8952 (Václav Haisman).
8953 + default.latex: Add hyphen option to url package.
8954 + default.docbook5: Fix namespace declarations (Mauro Bieg).
8956 * Moved `make_osx_package.sh` to `osx/` directory.
8958 * Travis continuous integration:
8960 + Fix false positives with dist build.
8961 + Speed improvements (Kolen Cheung, #3304, #3357).
8963 * MANUAL.txt:
8965 + Clarify that blank space is needed around footnotes (#3352).
8966 + Fixed typo (#3351, Alexey Rogechev).
8967 + Note that `--wrap=auto` does not work in HTML output.
8968 + Default `--columns` width is 72, not 80.
8969 + Fixed broken links (#3316, Kolen Cheung).
8970 + Document usage of `@*` in nocite section (#3333, John Muccigrosso).
8972 * INSTALL.md:
8974 + Indent code so it's properly formatted (#3335, Bheesham Persaud).
8975 + Added instructions for extracting binary from OSX, Windows packages.
8977 * CONTRIBUTING.md: Describe labels currently used in issue tracker
8978 (Albert Krewinkel). The labels have changed over time, the list of
8979 labels is updated to reflect the current set of labels used in the
8980 issue tracker.
8982 * Rearrange and extend badges in README (Albert Krewinkel, #3354)
8984 * Bumped version bounds for dependencies.
8987## pandoc 1.19.1 (2016-12-10)
8989 * Set `PANDOC_VERSION` environment variable for filters (#2640).
8990 This allows filters to check the pandoc version that produced
8991 the JSON they are receiving.
8993 * Docx reader: Ensure one-row tables don't have header (#3285,
8994 Jesse Rosenthal). Tables in MS Word are set by default to have
8995 special first-row formatting, which pandoc uses to determine whether
8996 or not they have a header. This means that one-row tables will, by
8997 default, have only a header -- which we imagine is not what people
8998 want. This change ensures that a one-row table is not understood to
8999 be a header only. Note that this means that it is impossible to
9000 produce a header-only table from docx, even though it is legal
9001 pandoc. But we believe that in nearly all cases, it will be an
9002 accidental (and unwelcome) result
9004 * HTML reader:
9006 + Fixed some bad regressions in HTML table parser (#3280).
9007 This regression leads to the introduction of empty rows
9008 in some circumstances.
9009 + Understand `style=width:` as well as `width` in `col` (#3286).
9011 * RST reader:
9013 + Print warnings when keys, substitition, notes not found.
9014 Previously the parsers failed and we got raw text. Now we get a
9015 link with an empty URL, or empty inlines in the case of a note or
9016 substitution.
9018 + Fix hyperlink aliases (#3283).
9020 * Man writer: Ensure that periods are escaped at beginning of line
9021 (#3270).
9023 * LaTeX writer: Fix unnumbered headers when used with `--top-level`
9024 (#3272, Albert Krewinkel). Fix interaction of top-level
9025 divisions `part` or `chapter` with unnumbered headers when
9026 emitting LaTeX. Headers are ensured to be written using
9027 stared commands (like `\subsection*{}`).
9029 * LaTeX template: use comma not semicolon to separate keywords for
9030 `pdfkeywords`. Thanks to Wandmalfarbe.
9032 * Markdown writer: Fixed incorrect word wrapping (#3277).
9033 Previously pandoc would sometimes wrap lines too early due to
9034 this bug.
9036 * Text.Pandoc.Pretty: Added `afterBreak` [API change]. This makes it
9037 possible to insert escape codes for content that needs escaping at the
9038 beginning of a line.
9040 * Removed old MathMLInHTML.js from 2004, which should no longer
9041 be needed for MathML with modern browsers.
9043 * Fixed tests with dynamic linking (#2709).
9045 * Makefile: Use stack instead of cabal for targets. This is just
9046 a convenience for developers.
9048 * Fixed bash completion of filenames with space (#2749).
9050 * MANUAL: improved documentation on how to create a custom
9051 `reference.docx`.
9053 * Fix minor spelling typos in the manual (#3273, Anthony Geoghegan)
9055## pandoc 1.19 (2016-12-01)
9057 * Changed resolution of filter paths.
9059 + We now first treat the argument of `--filter` as a full (absolute
9060 or relative) path, looking for a program there. If it's found, we
9061 run it.
9062 + If not, and if it is a simple program name or a relative path, we
9063 try resolving it relative to `$DATADIR/filters`.
9064 + If this fails, then we treat it as a program name and look in the
9065 user's PATH.
9066 + Removed a hardcoded '/' that may have caused problems with
9067 Windows paths.
9069 Previously if you did `--filter foo` and you had `foo` in your path and
9070 also an executable `foo` in your working directory, the one in the path
9071 would be used. Now the one in the working directory is used.
9073 In addition, when you do `--filter foo/bar.hs`, pandoc will now find a
9074 filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a
9075 `foo/bar.hs` relative to the working directory.
9077 * Allow `file://` URIs as arguments (#3196). Also improved default reader
9078 format detection. Previously with a URI ending in .md or .markdown,
9079 pandoc would assume HTML input. Now it treats these as markdown.
9081 * Allow to overwrite top-level division type heuristics (#3258,
9082 Albert Krewinkel). Pandoc uses heuristics to determine the most
9083 reasonable top-level division type when emitting LaTeX or
9084 Docbook markup. It is now possible to overwrite this implicitly set
9085 top-level division via the `top-level-division` command line parameter.
9087 * Text.Pandoc.Options \[API changes\]:
9089 + Removed `writerStandalone` field in `WriterOptions`, made
9090 `writerTemplate` a `Maybe` value. Previously setting
9091 `writerStandalone = True` did nothing unless a template was provided
9092 in writerTemplate. Now a fragment will be generated if
9093 `writerTemplate` is `Nothing`; otherwise, the specified template
9094 will be used and standalone output generated.
9095 + `Division` has been renamed `TopLevelDivision` (#3197). The
9096 `Section`, `Chapter`, and `Part` constructors were renamed to
9097 `TopLevelSection`, `TopLevelChapter`, and
9098 `TopLevelPart`, respectively. An additional `TopLevelDefault`
9099 constructor was added, which is now also the new default value of
9100 the `writerTopLevelDivision` field in `WriterOptions`.
9102 * Improved error if they give wrong arg to `--top-level-division`.
9104 * Use new module from texmath to lookup MS font codepoints in Docx reader.
9105 Removed unexported module Text.Pandoc.Readers.Docx.Fonts. Its code now
9106 lives in texmath (0.9).
9108 * DocBook reader: Fixed xref lookup (#3243). It previously only worked
9109 when the qnames lacked the docbook namespace URI.
9111 * HTML reader:
9113 + Improved table parsing (#3027). We now check explicitly for non-1
9114 rowspan or colspan attributes, and fail when we encounter them.
9115 Previously we checked that each row had the same number of cells,
9116 but that could be true even with rowspans/colspans. And there are
9117 cases where it isn't true in tables that we can handle fine -- e.g.
9118 when a tr element is empty. So now we just pad rows with empty cells
9119 when needed.
9120 + Treat `<math>` as MathML by default unless something else is
9121 explicitly specified in xmlns. Provided it parses as MathML,
9122 of course. Also fixed default which should be to inline math if no
9123 display attribute is used.
9124 + Only treat "a" element as link if it has href (#3226). Otherwise
9125 treat as span.
9127 * Docx reader (Jesse Rosenthal):
9129 + Add a placeholder value for CHART. We wrap `[CHART]` in a
9130 `<span class="chart">`. Note that it maps to inlines because, in
9131 docx, anything in a drawing tag can be part of a larger paragraph.
9132 + Be more specific in parsing images We not only want `w:drawing`,
9133 because that could also include charts. Now we specify
9134 `w:drawing/pic:pic`. This shouldn't change behavior at all, but it's
9135 a first step toward allowing other sorts of drawing data as well.
9136 + Abstract out function to avoid code repetition.
9137 + Update tests for img title and alt (#3204).
9138 + Handle Alt text and titles in images. We use the "description" field
9139 as alt text and the "title" field as title. These can be accessed
9140 through the "Format Picture" dialog in Word.
9141 + Docx reader utils: handle empty namespace in `elemName`. Previously,
9142 if given an empty namespace `(elemName ns "" "foo")` `elemName`
9143 would output a QName with a `Just ""` namespace. This is never what
9144 we want. Now we output a `Nothing`. If someone *does* want a
9145 `Just ""` in the namespace, they can enter the QName
9146 value explicitly.
9148 * ODT reader/writer:
9150 + Inline code when text has a special style (Hubert Plociniczak). When
9151 a piece of text has a text `Source_Text` then we assume that this is
9152 a piece of the document that represents a code that needs to
9153 be inlined. Adapted the writer to also reflect that change.
9154 Previously it was just writing a 'preformatted' text using a
9155 non-distinguishable font style. Code blocks are still not recognized
9156 by the ODT reader. That's a separate issue.
9157 + Infer table's caption from the paragraph (#3224,
9158 Hubert Plociniczak). ODT's reader always put empty captions for the
9159 parsed tables. This commit
9161 1. checks paragraphs that follow the table definition
9162 2. treats specially a paragraph with a style named 'Table'
9163 3. does some postprocessing of the paragraphs that combines tables
9164 followed immediately by captions
9166 The ODT writer used the `TableCaption` style for the caption
9167 paragraph. This commit follows the OpenOffice approach which allows
9168 for appending captions to table but uses a built-in style named
9169 `Table` instead of `TableCaption`. Users of a custom `reference.odt`
9170 should change the style's name from `TableCaption` to `Table`.
9172 * ODT reader: Infer tables' header props from rows (#3199,
9173 Hubert Plociniczak). ODT reader simply provided an empty header list
9174 which meant that the contents of the whole table, even if not empty, was
9175 simply ignored. While we still do not infer headers we at least have to
9176 provide default properties of columns.
9178 * Markdown reader:
9180 + Allow reference link labels starting with `@...` if `citations`
9181 extension disabled (#3209). Example: in
9183 \[link text\]\[@a\]
9185 `link text` isn't hyperlinked because `[@a]` is parsed as
9186 a citation. Previously this happened whether or not the `citations`
9187 extension was enabled. Now it happens only if the `citations`
9188 extension is enabled.
9189 + Allow alignments to be specified in Markdown grid tables. For
9190 example,
9192 +-------+---------------+--------------------+
9193 | Right | Left | Centered |
9194 +=========:+:=================+:=============:+
9195 | Bananas | $1.34 | built-in wrapper |
9196 +-------+---------------+--------------------+
9198 + Allow Small Caps elements to be created using bracketed spans (as
9199 they already can be using HTML-syntax spans) (#3191, Kolen Cheung).
9201 * LaTeX reader:
9203 + Don't treat `\vspace` and `\hspace` as block commands (#3256).
9204 Fixed an error which came up, for example, with `\vspace` inside
9205 a caption. (Captions expect inlines.)
9206 + Improved table handling. We can now parse all of the tables emitted
9207 by pandoc in our tests. The only thing we don't get yet are
9208 alignments and column widths in more complex tables. See #2669.
9209 + Limited support for minipage.
9210 + Allow for `[]`s inside LaTeX optional args. Fixes cases like:
9211 + Handle BVerbatim from fancyvrb (#3203).
9212 + Handle hungarumlaut (#3201).
9213 + Allow beamer-style `<...>` options in raw LaTeX (also in Markdown)
9214 (#3184). This allows use of things like `\only<2,3>{my content}` in
9215 Markdown that is going to be converted to beamer.
9217 * Use pre-wrap for code in dzslides template (Nicolas Porcel). Otherwise
9218 overly long code will appear on every slide.
9220 * Org reader (Albert Krewinkel):
9222 + Respect column width settings (#3246). Table column properties can
9223 optionally specify a column's width with which it is displayed in
9224 the buffer. Some exporters, notably the ODT exporter in org-mode
9225 v9.0, use these values to calculate relative column widths. The org
9226 reader now implements the same behavior. Note that the org-mode
9227 LaTeX and HTML exporters in Emacs don't support this feature yet,
9228 which should be kept in mind by users who use the column
9229 widths parameters.
9230 + Allow HTML attribs on non-figure images (#3222). Images which are
9231 the only element in a paragraph can still be given HTML attributes,
9232 even if the image does not have a caption and is hence not a figure.
9233 The following will add set the `width` attribute of the image to
9234 `50%`:
9236 +ATTR\_HTML: :width 50%
9237 =======================
9239 \[\[file:image.jpg\]\]
9241 + Support `ATTR_HTML` for special blocks (#3182). Special
9242 blocks (i.e. blocks with unrecognized names) can be prefixed with an
9243 `ATTR_HTML` block attribute. The attributes defined in that
9244 meta-directive are added to the `Div` which is used to represent the
9245 special block.
9246 + Support the `todo` export option. The `todo` export option allows to
9247 toggle the inclusion of TODO keywords in the output. Setting this to
9248 `nil` causes TODO keywords to be dropped from headlines. The default
9249 is to include the keywords.
9250 + Add support for todo-markers. Headlines can have optional
9251 todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`,
9252 or `#+TYP_TODO` meta directive. Multiple such directives can be
9253 given, each adding a new set of recognized todo-markers. If no
9254 custom todo-markers are defined, the default `TODO` and `DONE`
9255 markers are used. Todo-markers are conceptually separate from
9256 headline text and are hence excluded when autogenerating
9257 headline IDs. The markers are rendered as spans and labelled with
9258 two classes: One class is the markers name, the other signals the
9259 todo-state of the marker (either `todo` or `done`).
9261 * LaTeX writer:
9263 + Use `\autocites*` when "suppress-author" citation used.
9264 + Ensure that simple tables have simple cells (#2666). If cells
9265 contain more than a single Plain or Para, then we need to set
9266 nonzero widths and put contents into minipages.
9267 + Remove invalid inlines in sections (#3218, Hubert Plociniczak).
9269 * Markdown writer:
9271 + Fix calculation of column widths for aligned multiline tables
9272 (#1911, Björn Peemöller). This also fixes excessive CPU and memory
9273 usage for tables when `--columns` is set in such a way that cells
9274 must be very tiny. Now cells are guaranteed to be big enough so that
9275 single words don't need to line break, even if this pushes the line
9276 length above the column width.
9277 + Use bracketed form for native spans when `bracketed_spans`
9278 enabled (#3229).
9279 + Fixed inconsistent spacing issue (#3232). Previously a tight bullet
9280 sublist got rendered with a blank line after, while a tight ordered
9281 sublist did not. Now we don't get the blank line in either case.
9282 + Fix escaping of spaces in super/subscript (#3225). Previously two
9283 backslashes were inserted, which gave a literal backslash.
9284 + Adjust widths in Markdown grid tables so that they match
9285 on round-trip.
9287 * Docx writer:
9289 + Give full detail when there are errors converting tex math.
9290 + Handle title text in images (Jesse Rosenthal). We already handled
9291 alt text. This just puts the image "title" into the docx
9292 "title" attr.
9293 + Fixed XML markup for empty cells (#3238). Previously the Compact
9294 style wasn't being applied properly to empty cells.
9296 * HTML writer:
9298 + Updated `renderHtml` import from blaze-html.
9300 * Text.Pandoc.Pretty:
9302 + Fixed some bugs that caused blank lines in tables (#3251). The bugs
9303 caused spurious blank lines in grid tables when we had things like
9304 `blankline $$ blankline`.
9305 + Add exported function `minOffet` \[API change\] (Björn Peemöller).
9306 + Added error message for illegal call to `block` (Björn Peemöller).
9308 * Text.Pandoc.Shared:
9310 + Put `warn` in MonadIO.
9311 + `fetchItem`: Better handling of protocol-relative URL (#2635). If
9312 URL starts with `//` and there is no "base URL" (as there would be
9313 if a URL were used on the command line), then default to http:.
9315 * Export Text.Pandoc.getDefaultExtensions \[API change\] (#3178).
9317 * In --version, trap error in `getAppUserDataDirectory` (#3241). This
9318 fixes a crash with `pandoc --version` on unusual systems with no real
9319 user (e.g. SQL Server 2016).
9321 * Added weigh-pandoc for memory usage diagnostics (#3169).
9323 * Use correct mime types for woff and woff2 (#3228).
9325 * Remove make\_travis\_yml.hs (#3235, Kolen Cheung).
9327 * changelog: Moved an item that was misplaced in the 1.17.2 section to the
9328 1.18 section where it belongs.
9330 * CONTRIBUTING.md: minor change in wording and punctuation (#3252,
9331 Kolen Cheung).
9333 * Further revisions to manual for `--version` changes (#3244).
9337## pandoc 1.18 (2016-10-26)
9339 * Added `--list-input-formats`, `--list-output-formats`,
9340 `--list-extensions`, `--list-highlight-languages`, and
9341 `--list-highlight-styles` (#3173). Removed list of highlighting
9342 languages from `--version` output. Removed list of input and output
9343 formats from default `--help` output.
9345 * Added `--reference-location=block|section|document` option
9346 (Jesse Rosenthal). This determines whether Markdown link references
9347 and footnotes are placed at the end of the document, the end of the
9348 section, or the end of the top-level block.
9350 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
9351 This determines what a level-1 header corresponds to in LaTeX,
9352 ConTeXt, DocBook, and TEI output. The default is `section`.
9353 The `--chapters` option has been deprecated in favor of
9354 `--top-level-division=chapter`.
9356 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
9357 is now used in parsing RST and Markdown line blocks, DocBook
9358 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
9359 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
9360 are handled specially in the following output formats: AsciiDoc
9361 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
9362 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
9363 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
9364 other output formats, a paragraph with hard linebreaks is emitted.
9366 * Allow binary formats to be written to stdout (but not to tty) (#2677).
9367 Only works on posix, since we use the unix library to check whether
9368 output is to tty. On Windows, pandoc works as before and always requires
9369 an output file parameter for binary formats.
9371 * Changed JSON output format (Jesse Rosenthal). Previously we used
9372 generically generated JSON, but this was subject to change depending
9373 on the version of aeson pandoc was compiled with. To ensure stability,
9374 we switched to using manually written ToJSON and FromJSON
9375 instances, and encoding the API version. **Note:** pandoc filter
9376 libraries will need to be revised to handle the format change.
9377 Here is a summary of the essential changes:
9379 + The toplevel JSON format is now `{"pandoc-api-version" :
9380 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
9381 instead of `[{"unMeta": META}, [BLOCKS]]`.
9382 Decoding fails if the major and minor version numbers don't
9383 match.
9384 + Leaf nodes no longer have an empty array for their "c" value.
9385 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
9386 rather than `{"t":"Space","c":[]}` as before.
9388 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
9389 module to pandoc-types (Jesse Rosenthal). This makes it easier
9390 to use QuickCheck with pandoc types outside of pandoc itself.
9392 * Add `bracketed_spans` Markdown extension, enabled by default
9393 in pandoc `markdown`. This allows you to create a native span
9394 using this syntax: `[Here is my span]{#id .class key="val"}`.
9396 * Added `angle_brackets_escapable` Markdown extension (#2846).
9397 This is needed because github flavored Markdown has a slightly
9398 different set of escapable symbols than original Markdown;
9399 it includes angle brackets.
9401 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
9403 * Print highlighting-kate version in `--version`.
9405 * `Text.Pandoc.Options`:
9407 + `Extension` has new constructors `Ext_brackted_spans` and
9408 `Ext_angle_brackets_escapable` [API change].
9409 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
9410 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
9411 Rosenthal).
9413 * `--filter`: we now check `$DATADIR/filters` for filters before
9414 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
9415 Voß for the idea). Filters placed in this directory need not
9416 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
9417 or `.rb`, pandoc will run the right interpreter.
9419 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
9420 default (Kolen Cheung).
9422 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
9424 * Execute .js filters with node (Jakob Voß).
9426 * Textile reader:
9428 + Support `bc..` extended code blocks (#3037). Also, remove trailing
9429 newline in code blocks (consistently with Markdown reader).
9430 + Improve table parsing. We now handle cell and row attributes, mostly
9431 by skipping them. However, alignments are now handled properly.
9432 Since in pandoc alignment is per-column, not per-cell, we
9433 try to devine column alignments from cell alignments.
9434 Table captions are also now parsed, and textile indicators
9435 for thead and tfoot no longer cause parse failure. (However,
9436 a row designated as tfoot will just be a regular row in pandoc.)
9437 + Improve definition list parsing. We now allow multiple terms
9438 (which we concatenate with linebreaks). An exponential parsing
9439 bug (#3020) is also fixed.
9440 + Disallow empty URL in explicit link (#3036).
9442 * RST reader:
9444 + Use Div instead of BlockQuote for admonitions (#3031).
9445 The Div has class `admonition` and (if relevant) one of the
9446 following: `attention`, `caution`, `danger`, `error`, `hint`,
9447 `important`, `note`, `tip`, `warning`. **Note:** This will change
9448 the rendering of some RST documents! The word ("Warning", "Attention",
9449 etc.) is no longer added; that must be done with CSS or a filter.
9450 + A Div is now used for `sidebar` as well.
9451 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
9452 space before a footnote marker. We discard those spaces so that footnotes
9453 will be adjacent to the text that comes before it. This is in line with
9454 what rst2latex does.
9455 + Allow empty lines when parsing line blocks (Albert Krewinkel).
9457 * Markdown reader:
9459 + Allow empty lines when parsing line blocks (Albert Krewinkel).
9460 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
9462 * LaTeX reader:
9464 + More robust parsing of unknown environments (#3026).
9465 We no longer fail on things like `^` inside options for tikz.
9466 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
9467 Some custom environments give these a meaning, so we should try not to
9468 fall over when we encounter them.
9469 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
9471 * MediaWiki reader:
9473 + Fix for unquoted attribute values in mediawiki tables (#3053).
9474 Previously an unquoted attribute value in a table row
9475 could cause parsing problems.
9476 + Improved treatment of verbatim constructions (#3055).
9477 Previously these yielded strings of alternating Code and Space
9478 elements; we now incorporate the spaces into the Code. Emphasis
9479 etc. is still possible inside these.
9480 + Properly interpret XML tags in pre environments (#3042). They are meant
9481 to be interpreted as literal text.
9483 * EPUB reader: don't add root path to data: URIs (#3150).
9484 Thanks to @lep for the bug report and patch.
9486 * Org reader (Albert Krewinkel):
9488 + Preserve indentation of verse lines (#3064). Leading spaces in verse
9489 lines are converted to non-breaking spaces, so indentation is preserved.
9490 + Ensure image sources are proper links. Image sources as those in plain
9491 images, image links, or figures, must be proper URIs or relative file
9492 paths to be recognized as images. This restriction is now enforced
9493 for all image sources. This also fixes the reader's usage of uncleaned
9494 image sources, leading to `file:` prefixes not being deleted from
9495 figure images. Thanks to @bsag for noticing this bug.
9496 + Trim verse lines properly (Albert Krewinkel).
9497 + Extract meta parsing code to module. Parsing of meta-data is well
9498 separable from other block parsing tasks. Moving into new module to
9499 get small files and clearly arranged code.
9500 + Read markup only for special meta keys. Most meta-keys should be read
9501 as normal string values, only a few are interpreted as marked-up text.
9502 + Allow multiple, comma-separated authors. Multiple authors can be
9503 specified in the `#+AUTHOR` meta line if they are given as a
9504 comma-separated list.
9505 + Give precedence to later meta lines. The last meta-line of any given
9506 type is the significant line. Previously the value of the first line
9507 was kept, even if more lines of the same type were encountered.
9508 + Read LaTeX_header as header-includes. LaTeX-specific header commands
9509 can be defined in `#+LaTeX_header` lines. They are parsed as
9510 format-specific inlines to ensure that they will only show up in LaTeX
9511 output.
9512 + Set documentclass meta from LaTeX_class.
9513 + Set classoption meta from LaTeX_class_options.
9514 + Read HTML_head as header-includes. HTML-specific head content can be
9515 defined in `#+HTML_head` lines. They are parsed as format-specific
9516 inlines to ensure that they will only show up in HTML output.
9517 + Respect `author` export option. The `author` option controls whether
9518 the author should be included in the final markup. Setting
9519 `#+OPTIONS: author:nil` will drop the author from the final meta-data
9520 output.
9521 + Respect `email` export option. The `email` option controls whether the
9522 email meta-field should be included in the final markup. Setting
9523 `#+OPTIONS: email:nil` will drop the email field from the final
9524 meta-data output.
9525 + Respect `creator` export option. The `creator` option controls whether
9526 the creator meta-field should be included in the final markup. Setting
9527 `#+OPTIONS: creator:nil` will drop the creator field from the final
9528 meta-data output. Org-mode recognizes the special value `comment` for
9529 this field, causing the creator to be included in a comment. This is
9530 difficult to translate to Pandoc internals and is hence interpreted the
9531 same as other truish values (i.e. the meta field is kept if it's
9532 present).
9533 + Respect unnumbered header property (#3095). Sections the `unnumbered`
9534 property should, as the name implies, be excluded from the automatic
9535 numbering of section provided by some output formats. The Pandoc
9536 convention for this is to add an "unnumbered" class to the header. The
9537 reader treats properties as key-value pairs per default, so a special
9538 case is added to translate the above property to a class instead.
9539 + Allow figure with empty caption (Albert Krewinkel, #3161).
9540 A `#+CAPTION` attribute before an image is enough to turn an image into
9541 a figure. This wasn't the case because the `parseFromString` function,
9542 which processes the caption value, would fail on empty values. Adding
9543 a newline character to the caption value fixes this.
9545 * Docx reader:
9547 + Use XML convenience functions (Jesse Rosenthal).
9548 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
9549 the code a lot cleaner than the original XML.Light functions, but they
9550 had been used inconsistently. This puts them in wherever applicable.
9551 + Handle anchor spans with content in headers. Previously, we would only
9552 be able to figure out internal links to a header in a docx if the
9553 anchor span was empty. We change that to read the inlines out of the
9554 first anchor span in a header.
9555 + Let headers use existing id. Previously we always generated an id for
9556 headers (since they wouldn't bring one from Docx). Now we let it use an
9557 existing one if possible. This should allow us to recurs through anchor
9558 spans.
9559 + Use all anchor spans for header ids. Previously we only used the first
9560 anchor span to affect header ids. This allows us to use all the anchor
9561 spans in a header, whether they're nested or not (#3088).
9562 + Test for nested anchor spans in header. This ensures that anchor spans
9563 in header with content (or with other anchor spans inside) will resolve
9564 to links to a header id properly.
9566 * ODT reader (Hubert Plociniczak)
9568 + Include list's starting value. Previously the starting value of
9569 the lists' items has been hardcoded to 1. In reality ODT's list
9570 style definition can provide a new starting value in one of its
9571 attributes.
9572 + Infer caption from the text following the image.
9573 Frame can contain other frames with the text boxes.
9574 + Add `fig:` to title for Image with a caption (as expected
9575 by pandoc's writers).
9576 + Basic support for images in ODT documents.
9577 + Don't duplicate text for anchors (#3143). When creating an anchor
9578 element we were adding its representation as well as the original
9579 content, leading to text duplication.
9581 * DocBook writer:
9583 + Include an anchor element when a div or span has an id (#3102).
9584 Note that DocBook does not have a class attribute, but at least this
9585 provides an anchor for internal links.
9587 * LaTeX writer:
9589 + Don't use * for unnumbered paragraph, subparagraph. The starred
9590 variants don't exist. This helps with part of #3058...it gets rid of
9591 the spurious `*`s. But we still have numbers on the 4th and 5th level
9592 headers.
9593 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
9594 Otherwise they can cause unintended ligatures like `` ?` ``.
9595 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
9596 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
9597 This allows figure placement defaults to be changed by the user
9598 in the template.
9600 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
9601 TEI doesn't have `<book>` elements but only generic `<divN>` division
9602 elements. Checking the template for a trailing `</book>` is nonsensical.
9604 * MediaWiki writer: transform filename with underscores in images (#3052).
9605 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
9606 for internal links, but it also needs to happen for images.
9608 * ICML writer: replace partial function (!!) in table handling (#3175,
9609 Mauro Bieg).
9611 * Man writer: allow section numbers that are not a single digit (#3089).
9613 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
9614 (#3068). In AsciiDoc, you must use a special form of emphasis
9615 (double `__`) for intraword emphasis. Pandoc was previously using
9616 this more than necessary.
9618 * EPUB writer: use stringify instead of plain writer for metadata
9619 (#3066). This means that underscores won't be used for emphasis,
9620 or CAPS for bold. The metadata fields will just have unadorned
9621 text.
9623 * Docx Writer:
9625 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
9626 with a `custom-style` key in the attributes will apply the corresponding
9627 key to the contained blocks or inlines.
9628 + Add ReaderT env to the docx writer (Jesse Rosenthal).
9629 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
9630 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
9631 on the command line. For finer-grained control, you can set
9632 the `dir` attribute in Div or Span elements.
9634 * Org writer (Albert Krewinkel):
9636 + Remove blank line after figure caption. Org-mode only treats an image
9637 as a figure if it is directly preceded by a caption.
9638 + Ensure blank line after figure. An Org-mode figure should be surrounded
9639 by blank lines. The figure would be recognized regardless, but images
9640 in the following line would unintentionally be treated as figures as
9641 well.
9642 + Ensure link targets are paths or URLs. Org-mode treats links as
9643 document internal searches unless the link target looks like a URL or
9644 file path, either relative or absolute. This change ensures that this
9645 is always the case.
9646 + Translate language identifiers. Pandoc and Org-mode use different
9647 programming language identifiers. An additional translation between
9648 those identifiers is added to avoid unexpected behavior. This fixes a
9649 problem where language specific source code would sometimes be output
9650 as example code.
9651 + Drop space before footnote markers (Albert Krewinkel, #3162).
9652 The writer no longer adds an extra space before footnote markers.
9654 * Markdown writer:
9656 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
9657 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
9658 is disabled.
9659 + Check for the `raw_html` extension before emitting a raw HTML block.
9660 + Abstract out note/ref function (Jesse Rosenthal).
9661 + Add ReaderT monad for environment variables (Jesse Rosenthal).
9663 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
9664 subtitle, author, date (#3119). Note that, as a result of this change,
9665 authors may need to update CSS.
9667 * revealjs template: Added `notes-server` option
9668 (jgm/pandoc-templates#212, Yoan Blanc).
9670 * Beamer template:
9672 + Restore whitespace between paragraphs. This was
9673 a regression in the last release (jgm/pandoc-templates#207).
9674 + Added `themeoptions` variable (Carsten Gips).
9675 + Added `beamerarticle` variable. This causes the `beamerarticle`
9676 package to be loaded in beamer, to produce an article from beamer
9677 slides. (Carsten Gips)
9678 + Added support for `fontfamilies` structured variable
9679 (Artem Klevtsov).
9680 + Added hypersetup options (Jake Zimmerman).
9682 * LaTeX template:
9684 + Added dummy definition for `\institute`.
9685 This isn't a standard command, and we want to avoid a crash when
9686 `institute` is used with the default template.
9687 + Define default figure placement (Václav Haisman), since pandoc
9688 no longer includes `[htbp]` for figures. Users with custom templates
9689 will want to add this. See #3103.
9690 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
9691 Václav Haisman).
9693 * Moved template compiling/rendering code to a separate library.
9694 `doctemplates`. This allows the pandoc templating system to be
9695 used independently.
9697 * Text.Pandoc.Error: Fix out of index error in `handleError`
9698 (Matthew Pickering). The fix is to not try to show the exact line when
9699 it would cause an out-of-bounds error as a result of included files.
9701 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
9703 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
9704 addresses. Technically `**@user` is a valid email address, but if we
9705 allow things like this, we get bad results in markdown flavors
9706 that autolink raw email addresses (see #2940). So we exclude a few
9707 valid email addresses in order to avoid these more common bad cases.
9709 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
9710 emit the alt text, emphasized. This accords with what the ODT writer
9711 currently does. The user will still get a warning about a nonexistent
9712 image.
9714 * Fix example in API documentation (#3176, Thomas Weißschuh).
9716 * Tell where to get tarball in INSTALL (#3062).
9718 * Rename README to MANUAL.txt and add GitHub-friendly README.md
9719 (Albert Krewinkel, Kolen Cheung).
9721 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
9723 * MANUAL.txt:
9725 + Put note on structured vars in separate paragraph (#2148, Albert
9726 Krewinkel). Make it clearer that structured author variables require a
9727 custom template
9728 + Note that `--katex` works best with `html5` (#3077).
9729 + Fix the LaTeX and EPUB links in manual (Morton Fox).
9730 + Document `biblio-title` variable.
9732 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
9734 * Update KaTeX to v0.6.0 (Kolen Cheung).
9736 * Allow latest dependencies.
9738 * Use texmath 0.8.6.6 (#3040).
9740 * Allow http-client 0.4.30, which is the version in stackage lts.
9741 Previously we required 0.5.
9742 Remove CPP conditionals for earlier versions.
9744 * Remove support for GHC < 7.8 (Jesse Rosenthal).
9746 + Remove Compat.Monoid.
9747 + Remove an inline monad compatibility macro.
9748 + Remove Text.Pandoc.Compat.Except.
9749 + Remove directory compat.
9750 + Change constraint on mtl.
9751 + Remove unnecessary CPP condition in UTF8.
9752 + Bump base lower bound to 4.7.
9753 + Remove 7.6 build from .travis.yaml.
9754 + Bump supported ghc version in CONTRIBUTING.md.
9755 + Add note about GHC version support to INSTALL.
9756 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
9757 + Remove TagSoup compat.
9758 + Add EOL note to time compat module. Because time 1.4 is a boot library
9759 for GHC 7.8, we will support the compatibility module as long as we
9760 support 7.8. But we should be clear about when we will no longer need
9761 it.
9762 + Remove blaze-html CPP conditional.
9763 + Remove unnecessary CPP in custom Prelude.
9765## pandoc 1.17.2 (2016-07-17)
9767 * Added Zim Wiki writer, template and tests. `zimwiki` is now
9768 a valid output format. (Alex Ivkin)
9770 * Changed email-obfuscation default to no obfuscation (#2988).
9771 + `writerEmailObfuscation` in `defaultWriterOptions` is now
9772 `NoObfuscation`.
9773 + the default for the command-line `--email-obfuscation` option is
9774 now `none`.
9776 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
9778 * Org writer:
9780 + Support arbitrary raw inlines (Albert Krewinkel).
9781 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
9782 parlance) to be included as `@@format:raw foreign format text@@`.
9783 + Improve Div handling (Albert Krewinkel). Div blocks handling is
9784 changed to make the output look more like idiomatic org mode:
9785 - Div-wrapped content is output as-is if the div's attribute is the
9786 null attribute.
9787 - Div containers with an id but neither classes nor key-value pairs
9788 are unwrapped and the id is added as an anchor.
9789 - Divs with classes associated with greater block elements are
9790 wrapped in a `#+BEGIN`...`#+END` block.
9791 - The old behavior for Divs with more complex attributes is kept.
9793 * HTML writer: Better support for raw LaTeX environments (#2758).
9794 Previously we just passed all raw TeX through when MathJax
9795 was used for HTML math. This passed through too much.
9796 With this patch, only raw LaTeX environments that MathJax
9797 can handle get passed through.
9798 This patch also causes raw LaTeX environments to be treated
9799 as math, when possible, with MathML and WebTeX output.
9801 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
9802 (#2993). Markdown line breaks involve a newline, and simple and pipe
9803 tables can't contain one.
9805 * Make --webtex work with the Markdown writer (#1177).
9806 This is a convenient option for people using
9807 websites whose Markdown flavors don't provide for math.
9809 * Docx writer:
9811 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
9812 We treat display math like block quotes, and apply FirstParagraph style
9813 to paragraphs that follow them. These can be styled as the user
9814 wishes. (But, when the user is using indentation, this allows for
9815 paragraphs to continue after display math without indentation.)
9816 + Use actual creation time as doc prop (Jesse Rosenthal).
9817 Previously, we had used the user-supplied date, if available, for Word's
9818 document creation metadata. This could lead to weird results, as in
9819 cases where the user post-dates a document (so the modification might be
9820 prior to the creation). Here we use the actual computer time to set the
9821 document creation.
9823 * LaTeX writer:
9825 + Don't URI-escape image source (#2825). Usually this is a local file,
9826 and replacing spaces with `%20` ruins things.
9827 + Allow 'standout' as a beamer frame option (#3007).
9828 `## Slide title {.standout}`.
9830 * RST reader: Fixed links with no explicit link text. The link
9831 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
9832 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
9833 Closes Debian #828167 -- reported by Christian Heller.
9835 * Textile reader:
9837 + Fixed attributes (#2984). Attributes can't be followed by
9838 a space. So, `_(class)emph_` but `_(noclass) emph_`.
9839 + Fixed exponential parsing bug (#3020).
9840 + Fix overly aggressive interpretation as images (#2998).
9841 Spaces are not allowed in the image URL in textile.
9843 * LaTeX reader:
9845 + Fix `\cite` so it is a NormalCitation not AuthorInText.
9846 + Strip off double quotes around image source if present (#2825).
9847 Avoids interpreting these as part of the literal filename.
9849 * Org reader:
9851 + Add semicolon to list of special chars (Albert Krewinkel)
9852 Semicolons are used as special characters in citations syntax. This
9853 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
9854 suffix]`. Previously, parsing would have failed unless there was a space
9855 or other special character as the last <prefix> character.
9856 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
9857 A specification for an official Org-mode citation syntax was drafted by
9858 Richard Lawrence and enhanced with the help of others on the orgmode
9859 mailing list. Basic support for this citation style is added to the
9860 reader.
9861 + Support arbitrary raw inlines (Albert Krewinkel).
9862 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
9863 parlance) to be included as `@@format:raw foreign format text@@`.
9864 + Remove partial functions (Albert Krewinkel, #2991).
9865 Partial functions like `head` lead to avoidable errors and should be
9866 avoided. They are replaced with total functions.
9867 + Support figure labels (Albert Krewinkel, #2496, #2999).
9868 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
9869 respective image. This allows e.g. the LaTeX to add proper `\label`
9870 markup.
9871 + Improve tag and properties type safety (Albert Krewinkel).
9872 Specific newtype definitions are used to replace stringly typing of tags
9873 and properties. Type safety is increased while readability is improved.
9874 + Parse as headlines, convert to blocks (Albert Krewinkel).
9875 Emacs org-mode is based on outline-mode, which treats documents as trees
9876 with headlines are nodes. The reader is refactored to parse into a
9877 similar tree structure. This simplifies transformations acting on
9878 document (sub-)trees.
9879 * Refactor comment tree handling (Albert Krewinkel).
9880 Comment trees were handled after parsing, as pattern matching on lists
9881 is easier than matching on sequences. The new method of reading
9882 documents as trees allows for more elegant subtree removal.
9883 * Support archived trees export options (Albert Krewinkel).
9884 Handling of archived trees can be modified using the `arch` option.
9885 Archived trees are either dropped, exported completely, or collapsed to
9886 include just the header when the `arch` option is nil, non-nil, or
9887 `headline`, respectively.
9888 * Put export setting parser into module (Albert Krewinkel).
9889 Export option parsing is distinct enough from general block parsing to
9890 justify putting it into a separate module.
9891 * Support headline levels export setting (Albert Krewinkel).
9892 The depths of headlines can be modified using the `H` option. Deeper
9893 headlines will be converted to lists.
9894 * Replace ugly code with view pattern (Albert Krewinkel).
9895 Some less-than-smart code required a pragma switching of overlapping
9896 pattern warnings in order to compile seamlessly. Using view patterns
9897 makes the code easier to read and also doesn't require overlapping
9898 pattern checks to be disabled.
9899 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
9900 Org rules for allowed characters before or after markup chars were not
9901 checked for verbatim text. This resultet in wrong parsing outcomes of
9902 if the verbatim text contained e.g. space enclosed markup characters as
9903 part of the text (`=is_substr = True=`). Forcing the parser to update
9904 the positions of allowed/forbidden markup border characters fixes this.
9906 * LaTeX template: fix for obscure hyperref/xelatex issue.
9907 Here's a minimal case:
9909 \documentclass[]{article}
9910 \usepackage{hyperref}
9911 \begin{document}
9912 \section{\%á}
9913 \end{document}
9915 Without this change, this fails on the second invocation of xelatex.
9916 This affects inputs this like `# %á` with pdf output via xelatex.
9918 * trypandoc: call results 'html' instead of 'result'.
9919 This is for better compatibility with babelmark2.
9921 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
9922 MultiMarkdown was only mentioned as a supported Markdown dialect but not
9923 as a possible input or output format. A brief mention is added
9924 everywhere the other supported markdown dialects are mentioned.
9926 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
9927 Raw HTML is kept when the output format is Emacs Org mode.
9929 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
9931 * Text.Pandoc.Shared:
9933 + Introduce blocksToInlines function (Jesse Rosenthal).
9934 This is a lossy function for converting `[Block] -> [Inline]`. Its main
9935 use, at the moment, is for docx comments, which can contain arbitrary
9936 blocks (except for footnotes), but which will be converted to spans.
9937 This is, at the moment, pretty useless for everything but the basic
9938 `Para` and `Plain` comments. It can be improved, but the docx reader
9939 should probably emit a warning if the comment contains more than this.
9940 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
9941 + Add further formats for `normalizeDate` (Jesse Rosenthal).
9942 We want to avoid illegal dates -- in particular years with greater than
9943 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
9944 `%Y%m`, and finally `%Y`.
9945 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
9946 We only allow years between 1601 and 9999, inclusive. The ISO 8601
9947 actually says that years are supposed to start with 1583, but MS Word
9948 only allows 1601-9999. This should stop corrupted word files if the date
9949 is out of that range, or is parsed incorrectly.
9950 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
9951 Previously we parsed a list of dates, took the first one, and then
9952 tested its year range. That meant that if the first one failed, we
9953 returned nothing, regardless of what the others did. Now we test for
9954 sanity before running `msum` over the list of Maybe values. Anything
9955 failing the test will be Nothing, so will not be a candidate.
9957 * Docx reader:
9959 + Add simple comment functionality. (Jesse Rosenthal).
9960 This adds simple track-changes comment parsing to the docx reader. It is
9961 turned on with `--track-changes=all`. All comments are converted to
9962 inlines, which can list some information. In the future a warning will be
9963 added for comments with formatting that seems like it will be excessively
9964 denatured. Note that comments can extend across blocks. For that reason
9965 there are two spans: `comment-start` and `comment-end`. `comment-start`
9966 will contain the comment. `comment-end` will always be empty. The two
9967 will be associated by a numeric id.
9968 + Enable warnings in top-level reader (Jesse Rosenthal).
9969 Previously we had only allowed for warnings in the parser. Now we allow
9970 for them in the `Docx.hs` as well. The warnings are simply concatenated.
9971 + Add warning for advanced comment formatting. (Jesse Rosenthal).
9972 We can't guarantee we'll convert every comment correctly, though we'll
9973 do the best we can. This warns if the comment includes something other
9974 than Para or Plain.
9975 + Add tests for warnings. (Jesse Rosenthal).
9976 + Add tests for comments (Jesse Rosenthal).
9977 We test for comments, using all track-changes options. Note that we
9978 should only output comments if `--track-changes=all`. We also test for
9979 emitting warnings if there is complicated formatting.
9981 * README: update to include track-changes comments. (Jesse Rosenthal)
9983 * Improved Windows installer - don't ignore properties set on command-line.
9984 See #2708. Needs testing to see if this resolves the issue.
9985 Thanks to @nkalvi.
9987 * Process markdown extensions on command line in L->R order (#2995).
9988 Previously they were processed, very unintuitively, in R->L
9989 order, so that `markdown-tex_math_dollars+tex_math_dollars`
9990 had `tex_math_dollars` disabled.
9992 * Added `secnumdepth` variable to LaTeX template (#2920).
9994 * Include table of contents in README.html in Windows package.
9996 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
9997 In Writers.Shared, we strip leading and trailing spaces for display
9998 math. Since SoftBreak's are treated as spaces, we should strip those
9999 too.
10001 * beamer, latex templates: pass biblatexoptions directly in package load.
10002 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
10004 * CPP workaround for deprecation of `parseUrl` in http-client.
10006 * Removed some redundant class constraints.
10008 * make_oxs_package.sh - use OSX env variable.
10010 * Added `winpkg` target to Makefile. This downloads the windows package
10011 from appveyor and signs it using the key.
10013 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
10014 Raw TeX is kept verbatim when the output format is Emacs Org mode.
10016 * Support math with haddock-library >= 1.4.
10018 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
10019 wouldn't accept the package.
10021 * Update library dependency versions.
10023## pandoc 1.17.1 (2016-06-04)
10025 * New output format: `docbook5` (Ivo Clarysse).
10027 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
10028 (API change).
10030 * Org writer:
10032 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
10033 This allows header attributes to be added to org documents in the form
10034 of `:PROPERTIES:` drawers. All available attributes are stored as
10035 key/value pairs. This reflects the way the org reader handles
10036 `:PROPERTIES:` blocks.
10037 + Add drawer capability (Carlos Sosa). For the implementation of the
10038 Drawer element in the Org Writer, we make use of a generic Block
10039 container with attributes. The presence of a `drawer` class defines
10040 that the `Div` constructor is a drawer. The first class defines the
10041 drawer name to use. The key-value list in the attributes defines
10042 the keys to add inside the Drawer. Lastly, the list of Block elements
10043 contains miscellaneous blocks elements to add inside of the Drawer.
10044 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
10045 reserved for internal use by Org-mode and should not be used.
10046 The `CUSTOM_ID` property is to be used instead, it is converted to the
10047 `ID` property for certain export format.
10049 * LaTeX writer:
10051 + Ignore `--incremental` unless output format is beamer (#2843).
10052 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
10053 Allow for optional argument in square brackets.
10054 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
10055 This allows one to access the hyphenation patterns in CTAN's
10056 hyph-utf8.
10057 + Add missing languages from hyph-utf8 (Andrew Dunning).
10058 + Improve use of `\strut` with `\minipage` inside tables
10059 (Jose Luis Duran). This improves spacing in multiline
10060 tables.
10061 + Use `{}` around options containing special chars (#2892).
10062 + Avoid lazy `foldl`.
10063 + Don't escape underscore in labels (#2921). Previously they were
10064 escaped as `ux5f`.
10065 + brazilian -> brazil for polyglossia (#2953).
10067 * HTML writer: Ensure mathjax link is added when math appears in footnote
10068 (#2881). Previously if a document only had math in a footnote, the
10069 MathJax link would not be added.
10071 * EPUB writer: set `navpage` variable on nav page.
10072 This allows templates to treat it differently.
10074 * DocBook writer:
10076 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
10077 + Properly handle `ulink`/`link` (Ivo Clarysse).
10079 * EPUB reader:
10081 + Unescape URIs in spine (#2924).
10082 + EPUB reader: normalise link id (Mauro Bieg).
10084 * Docx Reader:
10086 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
10087 `moveTo` and `moveFrom` are track-changes tags that are used when a
10088 block of text is moved in the document. We now recognize these tags and
10089 treat them the same as `insert` and `delete`, respectively. So,
10090 `--track-changes=accept` will show the moved version, while
10091 `--track-changes=reject` will show the original version.
10092 + Tests for track-changes moving (Jesse Rosenthal).
10094 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
10095 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
10096 would error out if zip-archive failed. We change the archive extraction
10097 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
10099 * Markdown, HTML readers: be more forgiving about unescaped `&` in
10100 HTML (#2410). We are now more forgiving about parsing invalid HTML with
10101 unescaped `&` as raw HTML. (Previously any unescaped `&`
10102 would cause pandoc not to recognize the string as raw HTML.)
10104 * Markdown reader:
10106 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
10107 + Added `-s` to markdown-reader-more test.
10109 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
10110 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
10112 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
10113 (roblabla).
10115 * RST reader: Support `:class:` option for code block in RST reader
10116 (Sidharth Kapur).
10118 * Org reader (all Albert Krewinkel, except where noted otherwise):
10120 + Stop padding short table rows.
10121 Emacs Org-mode doesn't add any padding to table rows. The first
10122 row (header or first body row) is used to determine the column count,
10123 no other magic is performed.
10124 + Refactor rows-to-table conversion. This refactors
10125 the codes conversing a list table lines to an org table ADT.
10126 The old code was simplified and is now slightly less ugly.
10127 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
10128 This fixes Org mode parsing of some corner cases regarding empty cells
10129 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
10130 two empty cells, but would be parsed as a single cell containing a pipe
10131 character. Empty rows where parsed as alignment rows and dropped from
10132 the output.
10133 + Fix spacing after LaTeX-style symbols.
10134 The org-reader was dropping space after unescaped LaTeX-style symbol
10135 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
10136 instead. This seems to be because the LaTeX-reader treats the
10137 command-terminating space as part of the command. Dropping the trailing
10138 space from the symbol-command fixes this issue.
10139 + Print empty table rows. Empty table rows should not
10140 be dropped from the output, so row-height is always set to be at least 1.
10141 + Move parser state into separate module.
10142 The org reader code has become large and confusing. Extracting smaller
10143 parts into submodules should help to clean things up.
10144 + Add support for sub/superscript export options.
10145 Org-mode allows to specify export settings via `#+OPTIONS` lines.
10146 Disabling simple sub- and superscripts is one of these export options,
10147 this options is now supported.
10148 + Support special strings export option Parsing of special strings
10149 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
10150 option.
10151 + Support emphasized text export option. Parsing of emphasized text can
10152 be toggled using the `*` option. This influences parsing of text marked
10153 as emphasized, strong, strikeout, and underline. Parsing of inline math,
10154 code, and verbatim text is not affected by this option.
10155 + Support smart quotes export option. Reading of smart quotes can be
10156 toggled using the `'` option.
10157 + Parse but ignore export options. All known export options are parsed
10158 but ignored.
10159 + Refactor block attribute handling. A parser state attribute was used
10160 to keep track of block attributes defined in meta-lines. Global state
10161 is undesirable, so block attributes are no longer saved as part of the
10162 parser state. Old functions and the respective part of the parser state
10163 are removed.
10164 + Use custom `anyLine`. Additional state changes need to be made after
10165 a newline is parsed, otherwise markup may not be recognized correctly.
10166 This fixes a bug where markup after certain block-types would not be
10167 recognized.
10168 + Add support for `ATTR_HTML` attributes (#1906).
10169 Arbitrary key-value pairs can be added to some block types using a
10170 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
10171 when exporting to HTML, but since we cannot make this distinction here,
10172 the attributes are always added. The functionality is now supported
10173 for figures.
10174 + Add `:PROPERTIES:` drawer support (#1877).
10175 Headers can have optional `:PROPERTIES:` drawers associated with them.
10176 These drawers contain key/value pairs like the header's `id`. The
10177 reader adds all listed pairs to the header's attributes; `id` and
10178 `class` attributes are handled specially to match the way `Attr` are
10179 defined. This also changes behavior of how drawers of unknown type
10180 are handled. Instead of including all unknown drawers, those are not
10181 read/exported, thereby matching current Emacs behavior.
10182 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
10183 + Respect drawer export setting. The `d` export option can be used
10184 to control which drawers are exported and which are discarded.
10185 Basic support for this option is added here.
10186 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
10187 Also fix up tab handling for leading whitespace in code blocks.
10188 + Support new syntax for export blocks. Org-mode version 9
10189 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
10190 where `<FORMAT>` is the format of the block's content, the new
10191 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
10192 supported.
10193 + Refactor `BEGIN...END` block parsing.
10194 + Fix handling of whitespace in blocks, allowing content to be indented
10195 less then the block header.
10196 + Support org-ref style citations. The *org-ref* package is an
10197 org-mode extension commonly used to manage citations in org
10198 documents. Basic support for the `cite:citeKey` and
10199 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
10200 + Split code into separate modules, making for cleaner code and
10201 better decoupling.
10203 * Added `docbook5` template.
10205 * `--mathjax` improvements:
10207 + Use new CommonHTML output for MathJax (updated default MathJax URL,
10208 #2858).
10209 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
10210 This is designed for cases where the input is always TeX and maximal
10211 conformity with TeX is desired. It seems to be smaller and load faster
10212 than what we used before. See #2858.
10213 + Load the full MathJax config to maximize loading speed (KolenCheung).
10215 * Bumped upper version bounds to allow use of latest packages
10216 and compilation with ghc 8.
10218 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
10219 #2310, #2310, #2824). This fixes behavior of roots, e.g.
10220 `\sqrt[3]{x}`, and issues with sub/superscript positioning
10221 and matrix column alignment in docx.
10223 * README:
10225 + Clarified documentation of `implicit_header_references` (#2904).
10226 + Improved documentation of `--columns` option.
10228 * Added appveyor setup, with artefacts (Jan Schulz).
10230 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
10232 * LaTeX template: support for custom font families (vladipus).
10233 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
10234 can find some other usages. Example usage in YAML metadata:
10236 fontfamilies:
10237 - name: \cyrillicfont
10238 font: Liberation Serif
10239 - name: \cyrillicfonttt
10240 options: Scale=MatchLowercase
10241 font: Liberation
10243 * Create unsigned msi as build artifact in appveyor build.
10245 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
10249## pandoc 1.17.0.3 (2016-03-24)
10251 * LaTeX writer: Fixed position of label in figures (#2813).
10252 Previously the label wasn't in the right place, and `\ref`
10253 wouldn't work properly.
10254 * Added .tei test files to pandoc.cabal so they'll be included
10255 in tarball (#2811).
10256 * Updated copyright dates.
10258## pandoc 1.17.0.2 (2016-03-23)
10260 * Fixed serious regression in `htmlInBalanced`, which caused
10261 newlines to be omitted in some raw HTML blocks in Markdown
10262 (#2804).
10264## pandoc 1.17.0.1 (2016-03-21)
10266 * File scope is no longer used when there are no input files (i.e.,
10267 when input comes from stdin). Previously file scope was triggered
10268 when the `json` reader was specified and input came from `stdin`,
10269 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
10270 thanks to Fedor Sheremetyev for calling the bug to our attention.)
10271 * Improved documentation of templates (#2797).
10273## pandoc 1.17 (2016-03-20)
10275 * Added `--file-scope` option (Jesse Rosenthal).
10276 By default pandoc operates on multiple files by first concatenating
10277 them (around extra line breaks) and then processing the joined file. So
10278 it only parses a multi-file document at the document scope. This has the
10279 benefit that footnotes and links can be in different files, but for
10280 some purposes it is useful to parse the individual files first
10281 and then combine their outputs (e.g. when the files use footnotes
10282 or links with the same labels). The `--file-scope` option causes
10283 pandoc to parse the files first, and then combine the parsed output,
10284 instead of combining before parsing. `--file-scope` is selected
10285 automatically for binary input files (which cannot be concatenated)
10286 and for pandoc json.
10288 * Add TEI Writer (Chris Forster) and `tei` output format.
10290 * Added a general `ByteStringReader` with warnings, used by the docx
10291 reader (API change, Jesse Rosenthal).
10293 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
10295 * Changed type of `Shared.uniqueIdent` argument from
10296 `[String]` to `Set String`. This avoids performance problems in documents
10297 with many identically named headers (API change, #2671).
10299 * Removed `tex_math_single_backslash` from `markdown_github` options
10300 (#2707).
10302 * Make language extensions as well as full language names
10303 trigger syntax highlighting. For example, `py` will now work as
10304 well as `python` (jgm/highlighting-kate#83).
10306 * Added `institute` variable to latex, beamer templates (Fraser
10307 Tweedale, Josef Svenningsson).
10309 * Docx reader (Jesse Rosenthal):
10311 + Handle alternate content. Some word functions (especially graphics)
10312 give various choices for content so there can be backwards compatibility.
10313 + Don't turn numbered headers into lists.
10314 + Docx Reader: Add state to the parser, for warnings
10315 + Update feature checklist in source code.
10316 + Get rid of `Modifiable` typeclass.
10317 + Add tests for adjacent hyperlinks.
10318 + Add a "Link" modifier to `Reducible`. We want to make sure that
10319 links have their spaces removed, and are appropriately smushed
10320 together (#2689).
10322 * HTML reader:
10324 + Fixed behavior of base tag (#2777).
10325 If the base path does not end with slash, the last component
10326 will be replaced. E.g. base = `http://example.com/foo`
10327 combines with `bar.html` to give `http://example.com/bar.html`.
10328 If the href begins with a slash, the whole path of the base
10329 is replaced. E.g. base = `http://example.com/foo/` combines
10330 with `/bar.html` to give `http://example.com/bar.html`.
10331 + Rewrote `htmlInBalanced`. This version avoids an exponential
10332 performance problem with `<script>` tags, and it should be faster
10333 in general (#2730).
10334 + Properly handle an empty cell in a simple table (#2718).
10335 + Handle multiple `<meta>` tags with same name. Put them in a list
10336 in the metadata so they are all preserved, rather than (as before)
10337 throwing out all but one..
10339 * Markdown reader:
10341 + Improved pipe table parsing (#2765).
10342 + Allow `+` separators in pipe table cells. We already allowed
10343 them in the header, but not in the body rows, for some reason.
10344 This gives compatibility with org-mode tables.
10345 + Don't cross line boundary parsing pipe table row.
10346 Previously an Emph element could be parsed across the newline
10347 at the end of the pipe table row.
10348 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
10349 performance (#2730).
10350 + Fixed bug with smart quotes around tex math.
10352 * LaTeX reader:
10354 + Handle interior `$` characters in math (#2743). For example,
10355 `$$\hbox{$i$}$$`.
10356 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
10357 This gives better results when people write e.g. `\TeX{}` in Markdown.
10358 + Properly handle LaTeX "math" environment as inline math (#2171).
10360 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
10361 Closes #2674.
10363 * Org reader (Albert Krewinkel):
10365 + Prefix even empty figure names with "fig:" (#2643). The
10366 convention used by pandoc for figures is to mark them by prefixing
10367 the name with `fig:`. The org reader failed to do this if a figure
10368 had no name.
10369 + Refactor link-target processing (#2684).
10371 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
10372 Thanks to @c-foster.
10374 * HTML writer: Don't include alignment attribute for default table columns.
10375 Previously these were given "left" alignment. Better to leave off
10376 alignment attributes altogether (#2694).
10378 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
10379 better compatibility with other Markdown flavors (Henrik Tramberend).
10381 * LaTeX writer:
10383 + Use image identifier to create a label and hypertarget for
10384 figures (Mauro Bieg).
10385 + Avoid double toprule in headerless table with caption (#2742).
10386 + Clean up options parser (Jesse Rosenthal).
10387 + Treat `memoir` template with `article` option as article, instead
10388 of treating all `memoir` templates as books.
10389 + Allow more flexible table alignment (Henrik Tramberend, #2665).
10390 New default is not to include `[c]` option (which is the default
10391 anyway if no positioning is specified). Now LaTeX emplates can
10392 control the overall table alignment in a document by setting the
10393 longtable length variables `LTleft` and `LTright`. For example,
10394 `\setlength\LTleft\parindent\setlength\LTright\fill`
10395 will create left-aligned tables that respect paragraph indentation.
10397 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
10399 * Org writer - pass through RawInline with format "org".
10401 * DokuWiki writer: use `$$` for display math.
10403 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
10405 * Make protocol-relative URIs work again (#2737).
10407 * make_osx_package.sh: Use env variable for developer id certs.
10409 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
10410 problems (#2734).
10412 * Allow `zip-archive` 0.3.
10414 * Allow `aeson` 0.11.
10416## pandoc 1.16.0.2 (2016-01-12)
10418 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
10420 * Fixed regression in latex smart quote parsing (#2645).
10421 In cases where a match was not found for a quote, everything
10422 from the open quote to the end of the paragraph was being dropped.
10424## pandoc 1.16.0.1 (2016-01-10)
10426 * Fixed regression with `--latex-engine` (#2618). In 1.16
10427 `--latex-engine` raises an error if a full path is given.
10429 * Org reader: Fix function dropping subtrees tagged `:noexport`
10430 (Albert Krewinkel, #2628):
10432 * Markdown reader: renormalize table column widths if they exceed 100%
10433 (#2626).
10435 * Textile reader: don't allow block HTML tags in inline contexts.
10436 The reader previously did allow this, following redcloth,
10437 which happily parses
10439 Html blocks can be <div>inlined</div> as well.
10443 <p>Html blocks can be <div>inlined</div> as well.</p>
10445 This is invalid HTML. The above sample now produces;
10447 <p>Html blocks can be</p>
10448 <div>
10449 <p>inlined</p>
10450 </div>
10451 <p>as well.</p>
10453 * Improved default template lookup for custom lua scripts (#2625).
10454 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
10455 pandoc would look for the template in
10456 `~/.pandoc/templates/default./path/to/lua/script.lua`.
10457 With this change it will look in the more reasonable
10458 `~/.pandoc/templates/default.script.lua`. This makes it possible to
10459 store default templates for custom writers.
10461 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
10462 (#2615).
10464 * LaTeX writer: restore old treatment of Span (#2624). A Span is
10465 now rendered with surrounding `{}`, as it was before 1.16.
10467 * Entity handling fixes: improved handling of entities like
10468 `&lang;` that require a trailing semicolon. Allow uppercase
10469 `x` in numerical hexadecimal character references, working
10470 around a tagsoup bug.
10472 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
10473 memory use on compile. With aeson 0.10 we were getting an out of
10474 memory error on a 2GB Ubuntu 64-bit VM.
10476 * Improved deb package creation script. Made `DPKGVER` work.
10477 Renamed `COMMIT` to `TREE`. You should now be able to do
10478 `TREE=1.16.0.1 DPKGVER=2 make deb`.
10481## pandoc 1.16 (2016-01-02)
10483 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
10485 + Added syntax for link and image attributes to pandoc's Markdown.
10486 + Updated readers and writers to use link and image attributes
10487 when appropriate.
10488 + Support image attributes in Docx, Textile, RST readers.
10490 * Renamed link attribute extensions. The old `link_attributes` is
10491 now `mmd_link_attributes`, and `link_attributes` now enables the
10492 new pandoc-style link and image attributes (API change).
10493 Note: this change could break some existing workflows.
10495 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
10496 Added threefold wrapping option.
10498 + Command line option: deprecated `--no-wrap`, added
10499 `--wrap=[auto|none|preserve]`
10500 + Added `WrapOption`, exported from `Text.Pandoc.Options`
10501 + Changed type of `writerWrapText` in `WriterOptions` from
10502 `Bool` to `WrapOption`.
10503 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
10504 + Supported `SoftBreak` in readers and writers.
10506 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
10507 change, Mauro Bieg).
10509 * Added `--dpi` command-line option (Mauro Bieg).
10511 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
10512 This change makes `--no-tex-ligatures` affect the LaTeX reader
10513 as well as the LaTeX and ConTeXt writers. If it is used,
10514 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
10515 literally, rather than parsing ligatures for quotation marks
10516 and dashes. And the LaTeX writer will print unicode quotation
10517 mark and dash characters literally, rather than converting
10518 them to the standard ASCII ligatures. Note that `--smart` has
10519 no effect on the LaTeX reader. `--smart` is still the default
10520 for all input formats when LaTeX or ConTeXt is the output format,
10521 *unless* `--no-tex-ligatures` is used.
10523 Some examples to illustrate the logic:
10525 ```
10526 % echo "'hi'" | pandoc -t latex
10527 `hi'
10528 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
10529 'hi'
10530 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
10531 ‘hi’
10532 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
10533 <p>'hi'</p>
10534 % echo "'hi'" | pandoc -f latex
10535 <p>’hi’</p>
10536 ```
10538 * Removed deprecated options `--offline` and `--html5`.
10540 * Fixed language code for Czech (`cs` not `cz`) (#2597).
10542 * Implemented `east_asian_line_breaks` extension (#2586).
10543 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
10544 to `Extension` (API change). This extension is like
10545 `ignore_line_breaks`, but smarter -- it only ignores line breaks
10546 between two East Asian wide characters. This makes it better suited
10547 for writing with a mix of East Asian and non-East Asian scripts.
10549 * Added support for PDF creation via `wkhtmltopdf`.
10550 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
10551 if you have math.) Margins can be set using the variables
10552 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
10553 Other styling can be done through CSS.
10555 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
10556 We were capturing final colons as in `[@foo: bar]`; the citation id
10557 was being parsed as `@foo:`.
10559 * ICML writer:
10561 + Fixed image syntax for local files (#2589).
10562 + Changed type of `writeICML` (Mauro Bieg).
10563 API change: It is now `WriterOptions -> Pandoc -> IO String`.
10564 Also handle new image attributes.
10565 + Intersperse line breaks instead of appending them to
10566 every `ParagraphStyleRange` (Mauro Bieg, #2501).
10567 + Add `Cite` style to citations (Mauro Bieg).
10568 + Added figure handling (#2590, Mauro Bieg).
10569 + Better handling of math. Instead of just printing the raw tex,
10570 we now try to fake it with unicode characters.
10572 * HTML writer: Include `example` class for example lists (#2524).
10574 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
10576 + Support for percentage widths/heights
10577 + Use `Attr` instead of title to get dimensions from ODT walker
10578 to `writeOpenDocument`.
10580 * AsciiDoc writer:
10582 + Support anchors in spans and divs with id elements
10583 (jgm/pandoc-citeproc#143).
10584 + Fixed code blocks (#1861).
10586 * Haddock writer: omit formatting inside links, which isn't supported
10587 by Haddock (#2515).
10589 * MediaWiki writer: Fixed spacing issues in table cells.
10591 + Start cell on new line unless it's a single Para or Plain
10592 (#2606).
10593 + For single Para or Plain, insert a space after the `|` to
10594 avoid problems when the text begins with a character like
10595 `-` (#2604).
10597 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
10599 * LaTeX writer:
10601 + Add support for GAP highlighting using listings (Raniere Silva).
10602 + Consider `header-includes` content as well as templates
10603 when determining whether to use csquotes (Andreas Lööw).
10604 + Create defaults for geometry using `margin-left` etc.
10605 If `geometry` has no value, but `margin-left`, `margin-right`,
10606 `margin-top`, and/or `-margin-bottom` are given, a default value
10607 for `geometry` is created from these. Note that these variables
10608 already affect PDF production via HTML5 with `wkhtmltopdf`.
10610 * ConTeXt writer: set default layout based on `margin-left`, etc.
10611 This sets up `\setuplayout` based on the variables `margin-left`,
10612 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
10613 is given.
10615 * Docx writer: better handling of PDF images. Previously we tried
10616 to get the image size from the image even if an explicit size was
10617 specified. Since we still can't get image size for PDFs, this made
10618 it impossible to use PDF images in docx. Now we don't try to get
10619 the image size when a size is already explicitly specified.
10621 * Markdown writer: use raw HTML for link/image attributes when
10622 the `link_attributes` extension is unset and `raw_html` is set (#2554).
10624 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
10626 * LaTeX reader:
10628 + Improved smart quote parsing (#2555). This fixes redering of
10629 unmatched quotes.
10630 + Use curly quotes for unmatched ` (#2555).
10631 + Allow blank space between braced arguments of commands (#2592).
10633 * Markdown reader:
10635 + Improved pipe table relative widths. Previously pipe table
10636 columns got relative widths (based on the header underscore lines)
10637 when the source of one of the rows was greater in width than the
10638 column width. This gave bad results in some cases where much of
10639 the width of the row was due to nonprinting material (e.g. link
10640 URLs). Now pandoc only looks at printable width (the width of a
10641 plain string version of the source), which should give better results.
10642 Thanks to John Muccigrosso for bringing up the issue.
10643 + Fixed parsing bug with macros. Previously macro definitions in
10644 indented code blocks were being parsed as macro definitions, not code.
10646 * Textile reader: skip over attribute in image source (#2515).
10647 We don't have a place yet for styles or sizes on images, but
10648 we can skip the attributes rather than incorrectly taking them
10649 to be part of the filename.
10651 * Docx reader: Handle dummy list items (Jesse Rosenthal).
10652 These come up when people create a list item and then delete the
10653 bullet. It doesn't refer to any real list item, and we used to ignore
10654 it.
10656 * CommonMark reader/writer rewritten to use latest `cmark`.
10658 * Fixed Emoji character definitions (#2523). There were many bugs in the
10659 definitions.
10661 * `Text.Pandoc.CSS`:
10663 + Added `pickStylesToKVs` function to extract multiple properties at
10664 once (API change, Mauro Bieg).
10665 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
10667 * `trypandoc`: sort drop-down lists.
10669 * Beamer template:
10671 + Made `\euro` conditional on presence of character.
10672 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
10673 + Moved `header-includes` before setting of title (Thomas Hodgson),
10674 to match the LaTeX template (jgm/pandoc-templates#168).
10675 + Added `section-titles` variable (defaults to true)
10676 to enable/suppress section title pages in beamer
10677 slide shows (Thomas Hodgson).
10678 + Moved beamer themes after fonts, so that themes can
10679 change fonts. (Previously the fonts set were being
10680 clobbered by lmodern.sty.) (Thomas Hodgson).
10682 * Beamer/LaTeX template changes (Thomas Hodgson):
10683 + Added `thanks` variable
10684 + Use `parskip.sty` when `indent` isn't set (fall back to using
10685 `setlength` as before if `parskip.sty` isn't available).
10686 + Use `biblio-style` with biblatex.
10687 + Added `biblatexoptions` variable.
10689 * LaTeX template changes:
10691 + Added `paper` after `$papersize$` variable in latex template.
10692 Thus you can say `papersize: a4` and the latex will contain
10693 `a4paper`. This change may break some existing workflows; if
10694 you currently specify `a4paper`, you'll get `a4paperpaper` which
10695 is meaningless. However, the change seems worth it, as it will
10696 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
10697 and html->pdf via wkhtmltopdf.
10698 + Only pass options to color package if `colorlinks` is set
10699 (Andrew Dunning).
10700 + Make definition of `\euro` conditional in xelatex/lualatex,
10701 as it is already for pdflatex (Andrew Dunning).
10702 + Removed setting of `subject` in PDF metadata.
10703 This used to be set to the subtitle, but really the subtitle
10704 need not give the subject. Also, `subtitle` can contain formatting,
10705 so we'd need, at least, a plain text version for this.
10706 + Moved `header-includes` before setting of `\title`, `\author`,
10707 etc. This allows these macros to be redefined.
10708 + Use `\subtitle` command for `subtitle`, instead of tacking it
10709 on to the title as before. We give a no-op fallback definition if it
10710 is not defined. This change should produce much better results
10711 in classes that support `\subtitle`. With the default article
10712 class, which does not define `\subtitle`, subtitles will no
10713 longer be printed unless the user defines `\subtitle` and
10714 redefines `\maketitle`.
10715 + Moved redefinitions of `\paragraph` and `\subparagraph` to
10716 before header-includes.
10718 * Context template:
10720 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
10721 needed for things to work on ConTeXt stable from TeXLive 2015.
10722 + Revert use of `\setuphead` in title block (Andrew Dunning,
10723 Rik Kabel).
10725 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
10727 * Fixed man template so disabling hyphenation actually works.
10728 The command needs to come after .TH.
10730 * Added 'navigation' variable to beamer template (#2543).
10731 Valid values are `empty` (the default), `horizontal`, `vertical`,
10732 and `frame`. Note that this changes the default behavior from
10733 `horizontal` to `empty`. Closes #2543.
10735 * Added `toc` to HTML slide format templates (Andrew Dunning),
10736 so that `--toc` creates a contents slide.
10738 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
10740 * Allow pipe tables with no body rows (#2556).
10741 Previously this raised a runtime error.
10743 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
10744 as URL. The Haskell URI parsing routines will accept "C:" as a
10745 scheme, so we rule that out manually. This helps with
10746 `--self-contained` and absolute Windows paths.
10748 * Define a `meta-json` variable for all writers (#2019). This contains
10749 a JSON version of all the metadata, in the format selected for the
10750 writer. So, for example, to get just the YAML metadata, you can run
10751 pandoc with the following custom template: `$meta-json$`. The intent
10752 is to make it easier for static site generators and other tools to get
10753 at the metadata.
10755 * Document limitations of --self-contained (#2553).
10757 * Improved Citations section of README (#2551). Added information
10758 about `link-citations` and a link to the pandoc-citeproc man page.
10760 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
10761 in base < 4.6.
10763 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
10765 * Improved implicit pandoc-citeproc inclusion.
10766 The filter pandoc-citeproc is automatically used when
10767 `--bibliography` is specified on the command line, unless
10768 `--natbib` or `--biblatex` is used. However, previously this
10769 only worked if `--bibliography` was spelled out in full, and not
10770 if `--biblio` was used.
10772 * reveal.js: Interpret pauses correctly for all headers (#2530).
10773 Previously, when using headers below the slide level, pauses are left
10774 uninterpreted into pauses. In my opinion, unexpected behavior but
10775 intentional looking at the code.
10777 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
10779 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
10780 Bieg, API change).
10782 * ImageSize: Added functions for converting between image dimensions
10783 (Mauro Bieg).
10785 * Use lts-3.18 in stack.yaml. This avoids Windows build
10786 issues with the HTTP library.
10788 * Bump version bounds for dependencies.
10790## pandoc 1.15.2.1 (2015-11-16)
10792 * Added two missing test files, and `stack.yaml`, to
10793 `extra-source-files` so they're included in the source tarball.
10795 * reveal.js template: Fixed parallaxBackground options.
10796 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
10797 need integer values, not strings. (Vaughn Iverson)
10799## pandoc 1.15.2 (2015-11-15)
10801 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
10802 ConTeXt rather than LaTeX (#2463).
10804 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
10806 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
10807 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
10808 (API change).
10810 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
10811 parsing (#2469). Tightened up the inline HTML parser so it disallows
10812 TagWarnings.
10814 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
10816 * Org reader:
10818 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
10819 Paragraphs can be followed by lists, even if there is no blank line
10820 between the two blocks. However, this should only be true if the
10821 paragraph is not within a list, were the preceding block should be
10822 parsed as a plain instead of paragraph (to allow for compact lists).
10823 Thanks to @rgaiacs for bringing this up.
10824 + Allow toggling header args (Albert Krewinkel, #2269).
10825 Org-mode allows to skip the argument of a code block header argument if
10826 it's toggling a value. Argument-less headers are now recognized,
10827 avoiding weird parsing errors.
10828 + Fix markup parsing in headers (Albert Krewinkel, #2504).
10829 Markup as the very first item in a header wasn't recognized. This was
10830 caused by an incorrect parser state: positions at which inline markup
10831 can start need to be marked explicitly by changing the parser state.
10832 This wasn't done for headers. The proper function to update the state
10833 is now called at the beginning of the header parser, fixing this issue.
10834 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
10835 Smart quotes, ellipses, and dashes should behave like normal quotes,
10836 single dashes, and dots with respect to text markup parsing.
10837 + Require whitespace around definition list markers (#2518).
10838 This rule was not checked before, resulting in bugs with footnotes
10839 and some link types.
10841 * Markdown reader:
10843 + Pipe tables with long lines now get relative cell widths (#2471).
10844 If a pipe table contains a line longer than the column width (as set by
10845 `--columns` or 80 by default), relative widths are computed based on the
10846 widths of the separator lines relative to the column width. This should
10847 solve persistent problems with long pipe tables in LaTeX/PDF output, and
10848 give more flexibility for determining relative column widths in other
10849 formats, too. For narrower pipe tables, column widths of 0 are used,
10850 telling pandoc not to specify widths explicitly in output formats that
10851 permit this.
10852 + Improved parser for `mmd_title_block`. We now allow blank metadata
10853 fields. These were explicitly disallowed before.
10854 + Citation keys can now contain `://`, so URLs and DOIs can be used
10855 as citation keys (jgm/pandoc-citeproc#166).
10857 * Beamer template: fix incompatibility of section slides with natbib.
10858 Natbib (and presumably biblatex) bibliography commands create
10859 their own section. Since these are in frame environments,
10860 we have an incompatibility with the `\AtBeginSection` macro
10861 which creates a special frame when a new section occurs.
10862 (We can't have a frame inside another frame.) This change disables
10863 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
10864 bringing the problem to my attention. This supersedes #145. See
10865 discussion there.
10867 * Textile reader: don't do smart punctuation unless explicitly asked
10868 (#2480). Note that although smart punctuation is part of the textile
10869 spec, it's not always wanted when converting from textile
10870 to, say, Markdown. So it seems better to make this an option.
10872 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
10873 The `comment` environment is handled in a similar way to the
10874 `verbatim` environment, except that its content is discarded.
10876 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
10877 Jesse Rosenthal). This fixes a problem with links in notes.
10879 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
10880 (mb21). For LaTeX, also collect `lang` and `dir` attributes on spans and
10881 divs to set the `lang`, `otherlangs` and `dir` variables if they aren’t set
10882 already. See #895.
10884 * LaTeX writer:
10886 + Use proper command for `\textarabic` (mb21).
10887 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
10888 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
10889 to link to Div or Span elements. We now don't bother defining `\label`
10890 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
10891 + Avoid footnotes in list of figures (#1506).
10892 + Properly handle footnotes in captions (#1506).
10893 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
10894 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
10895 `toccolor` is set (#2508).
10897 * Textile writer: support start number in ordered lists (#2465).
10899 * OpenDocument writer: Allow customization of opendocument
10900 automatic styles. Automatic styles can now be inserted in the
10901 template, which now provides the enclosing `<office:automatic-styles>`
10902 tags (#2520).
10904 * Docx writer: insert space between footnote reference and note (#2527).
10905 This matches Word's default behavior.
10907 * EPUB writer: don't download linked media when `data-external` attribute
10908 set (#2473). By default pandoc downloads all linked media and includes it
10909 in the EPUB container. This can be disabled by setting `data-external` on
10910 the tags linking to media that should not be downloaded. Example:
10912 <audio controls="1">
10913 <source src="http://www.sixbarsjail.it/tmp/bach_toccata.mp3"
10914 type="audio/mpeg"></source>
10915 </audio>
10917 * HTML writer: use width on whole table if col widths sum to < 100%.
10918 Otherwise some browsers display the table with the columns
10919 separated far apart.
10921 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
10922 `abstract` (Andrew Dunning).
10924 * HTML-based templates (Andrew Dunning):
10926 + Use en dash instead of hyphen between title prefix and title.
10927 + Add `keywords` to metadata.
10928 + Add `lang`, `dir`, `quotes` where missing.
10929 + Always make author and date display conditional.
10930 + Updated dzslides template from source.
10932 * Man template: make "generated by" comment conditional.
10934 * LaTeX, Beamer templates:
10936 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
10937 filled by commands that make babel understand the polyglossia-style
10938 language directives (mb21, #137).
10939 + Improved formatting of conditionals; `$for$` is always provided to allow
10940 multiple options (Andrew Dunning, #141).
10941 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
10942 to improve support for LuaTeX (Andrew Dunning, #135).
10943 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
10944 - use same options for all LaTeX engines;
10945 - add `subtitle` and `keywords` to PDF metadata;
10946 - do not override `hyperref` link coloring without user input, effectively making
10947 the `hidelinks` option the default (removed as a separate variable);
10948 - link colors can be enabled (using a slightly darker version of the old
10949 defaults) using a new `colorlinks` variable, automatically used by
10950 the LaTeX writer when custom colors are specified;
10951 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
10952 `colorlinks`, and is only applied if `colorlinks` is disabled.
10954 * ConTeXt template (Andrew Dunning):
10956 + New variables for controlling styles: `linkstyle`, `linkcolor`,
10957 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
10958 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
10959 `monofont`, `mathfont`, `fontsize`.
10960 + Default template no longer supports MkII.
10961 + Improve writing of title block (suppressing numbering of first page).
10962 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
10963 + Support `subtitle`, `abstract`.
10964 + Support list of figures (`lof`), list of tables (`lot`).
10965 + Disable link styling by default.
10966 + Define styles for all section types.
10967 + Enable microtype.
10968 + Improved formatting of conditionals.
10970 * Beamer template: added code to prevent slide breaks inside paragraphs
10971 (#2422, thanks to Nick Bart). This will matter, in practice, only when
10972 `allowframebreaks` is used. It is especially helpful for bibliography
10973 slides.
10975 * OpenDocument template: Add `<office:automatic-styles>` tag around
10976 automatic styles. The writer now longer provides this (see #2520).
10978 * Restored Text.Pandoc.Compat.Monoid.
10980 * Do not export (<>) from custom Prelude. The Prelude now matches
10981 base 4.8 Prelude's API.
10983 * Don't use custom prelude with ghc 7.10. Use the custom prelude
10984 only for earlier versions. This change makes `stack ghci` and
10985 `cabal repl` work (#2503), at least with ghc 7.10.
10987 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
10988 This prevents problems building haddocks with "C" locale.
10990 * Change default for old-locale flag to False.
10992 * Use stack in deb, osx, and Windows package generators.
10994 * Added Vagrantfile for building deb in vm.
10995 This should help in automating binary package creation. 'make package'
10996 will make the package. 'make package COMMIT=blah' will make the package
10997 from commit blah.
10999 * README:
11001 + Consistent capitalization for pandoc and Markdown.
11002 + Fixed `auto_identifiers` examples (Benoit Schweblin).
11003 + Improved documentation of template variables (Andrew Dunning).
11005## pandoc 1.15.1 (2015-10-15)
11007 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
11008 and reexported from `Text.Pandoc` (Alex Vong). This allows
11009 writers to access it. (Alex Vong) (API change)
11011 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
11012 `subscripts` (#2401).
11014 * Added `odt` as input format (MarLinn). Added new module
11015 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
11016 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
11017 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
11018 Partly implemented features: Citations, Tables.
11020 * Markdown Reader:
11022 + Add basic tests for each header style (Ophir Lifshitz).
11023 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
11024 + Skip spaces in headers (Ophir Lifshitz).
11025 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
11026 `# Header {id="myid" class="foo bar"}`
11027 is now equivalent to `# Header {#myid .foo .bar}`.
11028 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
11029 (Kristof Bastiaensen)
11030 + Pipe tables: allow indented columns. Previously the left-hand column
11031 could not start with 4 or more spaces indent. This was inconvenient
11032 for right-aligned left columns. Note that the first (header column)
11033 must still have 3 or fewer spaces indentation, or the table will be
11034 treated as an indented code block.
11035 + Fix regression: allow HTML comments containing `--`.
11036 Technically this isn't allowed in an HTML comment, but
11037 we've always allowed it, and so do most other implementations.
11038 It is handy if e.g. you want to put command line arguments
11039 in HTML comments.
11041 * LaTeX reader:
11043 + Don't eat excess whitespace after macros with only optional
11044 arguments (#2446).
11045 + Support longtable (#2411).
11046 + Implement `\Cite` (#2335).
11047 + Support abstract environment. The abstract populates an
11048 `abstract` metadata field.
11049 + Properly handle booktabs lines. Lines aren't part of the
11050 pandoc table model, so we just ignore them (#2307).
11052 * HTML reader:
11054 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
11055 + Updated for new automatic header attributes.
11056 + Add auto identifiers if not present on headers. This makes
11057 TOC linking work properly.
11058 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
11059 + Test `<ol>` type, class, and inline list-style(-type) CSS
11060 (Ophir Lifshitz).
11061 + Better handling of "section" elements (#2438). Previously
11062 `<section>` tags were just parsed as raw HTML blocks. With
11063 this change, section elements are parsed as Div elements with
11064 the class "section".
11066 * MediaWiki reader: handle unquoted table attributes (#2355).
11068 * DocBook reader:
11070 + Added proper support for DocBook `xref` elements (Frerich Raabe).
11071 Added `dbContent` field to reader state, so we can lookup
11072 cross refs.
11073 + Handle `informalexample` (#2319).
11075 * Docx Reader:
11077 + Create special punctuation test (Ophir Lifshitz).
11078 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
11079 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
11080 in `headers.docx` with pandoc's current `styles.xml`, which
11081 contains styles for Heading 1 through 6. Added Heading 4
11082 through 7 to the test document. Note that Heading 7 is not
11083 parsed as a Heading because there is no Heading 7 style.
11085 * RST reader: better handling of indirect roles.
11086 Previously the parser failed on this kind of case
11088 .. role:: indirect(code)
11090 .. role:: py(indirect)
11091 :language: python
11093 :py:`hi`
11095 Now it correctly recognizes `:py:` as a code role.
11097 * Org reader:
11099 + Add auto identifiers if not present on headers
11100 (#2354, Juliusz Gonera).
11101 + Allow verse blocks to contain empty lines (#2402,
11102 Albert Krewinkel).
11104 * EPUB reader: stop mangling external URLs (#2284).
11106 * RST writer:
11108 + Don't insert `\ ` when complex expression in matched pairs.
11109 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
11110 + Ensure that `\ ` is inserted when needed before Cite and Span
11111 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
11112 + Normalize headers only in "standalone" mode (#2394).
11114 * Haddock writer: escape `*` and `^` (G. Bataille).
11116 * Markdown writer:
11118 + In TOC, add links to headers (#829).
11119 + Use unicode super/subscripts for digits in plain output
11120 (when the `superscripts` and `subscripts` extensions are
11121 not enabled).
11123 * Docx writer:
11125 + Moved invalid character stripping to `formattedString`.
11126 This avoids an inefficient generic traversal (#2356).
11127 + Use user data directory for `reference.docx` archive.
11128 This allows the test suite to work without installing pandoc first.
11129 It also brings the docx writer in line with the odt writer.
11130 + Tests: docx writer tests now use `../data` for data directory.
11131 This allows tests to be run without installing first.
11132 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
11134 * LaTeX writer:
11136 + Fixed detection of 'chapters' from template.
11137 If a documentclass isn't specified in metadata, but the
11138 template has a hardwired bookish documentclass, act as if
11139 `--chapters` was used. This was the default in earlier
11140 versions, but it has been broken for a little while.
11141 + Correctly recognize book documentclass in metadata (#2395).
11142 + Set language-related variables automatically, depending
11143 on the value of the `lang` field, which is now always
11144 assumed to be in BCP47 format (mb21, #1614, #2437).
11145 + Add `\protect` to `\hyperdef` in inline context. This way we
11146 don't get an error when this is used as a moveable argument (#2136).
11147 + Support all frame attributes in Beamer.
11148 + Percent-encode more special characters in URLs (#1640, #2377).
11149 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
11151 * HTML writer:
11153 + Update KaTeX JS and CSS versions (Emily Eisenberg).
11154 + For dzslides, add `role="note"` for speaker notes (#1693).
11155 + Percent-encode more special characters in URLs (#1640, #2377).
11156 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
11157 + Render Div with class `section` as `<section>` in HTML5.
11159 * EPUB writer:
11161 + In TOC, replace literal `<br/>` with space (#2105).
11162 + With `--webtex`, include image file rather than `data:` URI (#2363).
11164 * Native writer: format Div properly, with blocks separated.
11166 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
11167 (#2191, mb21).
11169 * Reference Docx:
11171 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
11172 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
11174 * Templates
11176 + Beamer: Add `innertheme`, `outertheme` variables
11177 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
11178 Integrate recent font and language updates from LaTeX template;
11179 allow use of `mainfont` variable for changing the slide text
11180 in XeTeX and LuaTeX (Andrew Dunning, #131).
11181 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
11182 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
11183 (Andrew Dunning, #122). Support handling of bidirectional
11184 text (mb21, #120). Improve reliability of superscripts/subscripts
11185 under XeTeX and prevent letters and numbers from appearing on a
11186 different baseline by removing use of the `realscripts` package
11187 (via `xltxtra`). To restore use of OpenType characters for these
11188 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
11189 `header-includes` (Andrew Dunning, #130). Remove redundant
11190 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
11191 `indent`, `subparagraph` variables (Andrew Dunning).
11192 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
11193 #113). Prevent package clash with `tufte-latex` and other classes that
11194 include `hyperref` or `color` (Xavier Olive, #115).
11195 + ConTeXt: Support handling of bidirectional text (mb21, #120).
11196 + LaTeX and ConTeXt: Use more specific language variables.
11197 Instead of directly using `lang`, we now use `babel-lang` and
11198 `polyglossia-lang` and `context-lang`. These variables are set by
11199 the writers to the necessary values, based on the `lang` variable
11200 (which now always takes a value in BCP47 format). (mb21, #114, #129).
11201 + HTML: Support handling of bidirectional text (mb21, #120).
11202 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
11203 Add dir attribute in html5 (Andrew Dunning).
11204 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
11205 Add `width`, `height` variables (Anrew Dunning). Update template
11206 from 3.1 source (Andrew Dunning). All configuration options are now
11207 available as variables, but are only be included if set (reveal.js
11208 uses defaults otherwise).
11209 + man: Added comment stating that the page is autogenerated by pandoc,
11210 giving version. Added `adjusting` and `hyphenate` variables
11211 (Alex Vong, #123).
11213 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
11215 * MediaBag: ensure that `/` is always used as path separator.
11217 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
11219 * Added `--bash-completion` option. This generates a bash completion
11220 script. To use: `eval "$(pandoc --bash-completion)"`.
11222 * Text.Pandoc.Error: Define Typeable and Exception instances
11223 for PandocError (#2386).
11225 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
11226 This makes keys with extra space at the beginning and end
11227 work: e.g.
11229 [foo]: bar
11231 [ foo ]
11233 will now be a link to bar (it wasn't before).
11235 * Text.Pandoc: disable `auto_identifiers` for epub.
11236 The epub writer inserts its own auto identifiers;
11237 this is more complex due to splitting into "chapter" files.
11239 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
11240 It now reexports Data.Time.
11242 * Use custom Prelude to avoid compiler warnings.
11244 + The (non-exported) prelude is in prelude/Prelude.hs.
11245 + It exports Monoid and Applicative, like base 4.8 prelude,
11246 but works with older base versions.
11247 + It exports (<>) for mappend.
11248 + It hides 'catch' on older base versions.
11250 * Added a `stack.ymal` and stack install instructions to INSTALL.
11252 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
11254 * Added note to CONTRIBUTING.md about ghc versions and travis.
11256 * Clarify docs on block quotes. The space after `>` is optional (#2346).
11258 * Removed obsolete reference to default.csl (#2372).
11260 * List all styles in manual for `--reference-docx` (Chris Black)
11262 * Don't capitalize header links in man page.
11264 * Added section on repl to CONTRIBUTING.md.
11266 * README: Added space after backslash in image example (#2329).
11268 * Document details of citation locator terms (Nick Bart).
11270 * Fixed some internal links in README (#2309).
11272 * Improve CSL documentation, variables documentations,
11273 links, and cross-references in README. (Andrew Dunning)
11275 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
11277 * Use `newManager` instead of `withManager` in recent `http-client`.
11278 This avoids a deprecation warning.
11280 * Allow building with latest versions of http-types,
11281 HUnit, criterion, syb, aeson.
11283 * Updated benchmark program for new criterion API.
11285 * Setup.hs: rewrite so as not to use process, directory, filepath.
11286 Using anything outside base is dangerous, since older
11287 versions of ghc may link against two different versions.
11289 * Added appveyor (Windows continuous integration) builds.
11291 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
11292 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
11293 `make .travis.yml` regenerates it based on the tested-with
11294 field of the cabal file.
11296## pandoc 1.15.0.6 (2015-07-15)
11298 * `--self-contained`: Fixed overaggressive CSS minimization
11299 (#2301, 2286). Previously `--self-contained` wiped out all
11300 spaces in CSS, including semantically significant spaces.
11301 This was a regression from 1.14.x.
11303 * Markdown reader: don't allow bare URI links or autolinks in link
11304 label (#2300). Added test cases.
11306 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
11307 Previously we disallowed `-` at the end of an autolink,
11308 and disallowed the combination `=-`. This commit liberalizes the
11309 rules for allowing punctuation in a bare URI, and adds test cases.
11310 One potential drawback is that you can no longer put a bare
11311 URI in em dashes like this:
11312 `this uri---http://example.com---is an example.`
11313 But in this respect we now match github's treatment of bare URIs.
11315 * HTML writer: support speaker notes in dzslides.
11316 With this change `<div class="notes">` and also `<div class="notes"
11317 role="note">` will be output if `-t dzslides` is used. So we can
11318 have speaker notes in dzslides too. Thanks to maybegeek.
11320 * Updated dzslides template.
11322 * Improved documentation of options to print system default files (#2298).
11323 `--print-default-data-file` and `--print-default-template`.
11325 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
11326 (Tiziano Müller). MathJax seems currently to be the only maintained
11327 math rendering extension for DokuWiki.
11329 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
11330 div as top-level header (#2294). This fixes a bug with `--section-divs`,
11331 where the final references section added by pandoc-citeproc, enclosed in
11332 its own div, got nested in the div for the section previous to it.
11334 * Allow vector 0.11.
11336 * Require cmark > 0.4.
11338## pandoc 1.15.0.5 (2015-07-10)
11340 * HTML writer: Fixed email javascript obfuscation with `mailto:`
11341 URLs (#2280). This fixes a potential security issue. Because
11342 single quotes weren't being escaped in the link portion, a
11343 specially crafted email address could allow javascript code injection.
11345 * RST reader: allow inline formatting in definition list field
11346 names (Lars-Dominik Braun).
11348 * PDF: Make sure `--latex-engine-opt` goes before the filename
11349 on the command line. LaTeX needs the argument to come after
11350 the options (#1779).
11352 * CommonMark writer: fixed tags used for super/subscript.
11354 * ConTeXt template: activate hanging indent for definition lists
11355 (mb21).
11357 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
11358 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
11359 to include `hsb2hs` in Build-Tools in cabal.
11361 * Improved Windows installer (thanks to nkalvi).
11363 + When per-machine installation is chosen, the system path
11364 is updated instead of the user's.
11365 + An appropriate default is used for per-machine installation
11366 directory.
11367 + Admin privileges are no longer required for a per-user install
11369 * Travis: unpack sdist for build to catch packaging bugs.
11371 * Improved documentation on where user templates go (#2272).
11373## pandoc 1.15.0.4 (2015-07-03)
11375 * Added pandoc.1 man page to the repository. It is no longer
11376 built as part of the cabal build process. (This proved too
11377 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
11378 when `README` is changed.
11380 * Copying of the man page now respects `--destdir` (#2262).
11382 * Improved error messages for filters. User is now informed if
11383 the filter requires an interpreter that isn't found in the path,
11384 or if the filter returns an error status.
11386## pandoc 1.15.0.3 (2015-07-02)
11388 * Ensure target directory is created when installing man page.
11390## pandoc 1.15.0.2 (2015-07-02)
11392 * Added files needed for building man page to Extra-Source-Files.
11394## pandoc 1.15.0.1 (2015-07-01)
11396 * Man page is now built and installed as part of the cabal build
11397 process. Removed Makefile target for man page.
11399## pandoc 1.15 (2015-07-01)
11401 * Man page changes:
11403 + Removed `--man1`, `--man5` options (breaking change).
11404 + Removed `Text.Pandoc.ManPages` module (breaking API change).
11405 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
11406 create the man page from README using a custom template and filters.
11407 + Added `man/` directory with template and filters needed to build
11408 man page.
11409 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
11410 Now there is just pandoc.1, which has all the content from README.
11411 This change was needed because of the extensive cross-references
11412 between parts of the README.
11413 + Removed old `data/pandoc.1.template` and
11414 `data/pandoc_markdown.5.template`.
11416 * OpenDocument writer: Do not add a carriage return after a hard
11417 line break (Michael Chladek).
11419 * ConTeXt writer:
11421 + use `\goto` for internal links.
11422 + Added a `%` at end for `\reference` to avoid spurious space.
11424 * Ignore sandbox on 'make quick'
11426## pandoc 1.14.1 (2015-06-30)
11428 * Added `--man1` and `--man5` options to pandoc, allowing
11429 pandoc to generate its own man pages. Man pages are no longer
11430 automatically generated in the build process (the process for
11431 this was too complex and prone to failure, #2190). The
11432 `make-pandoc-man-pages` executable has been removed. The
11433 `man/` directory has been removed, and man page templates
11434 have been moved to `data/`. NOTE TO PACKAGERS: You will no
11435 longer find pandoc's man pages in `man/`, but you can
11436 generate them using `pandoc --man1 > pandoc.1` and `pandoc
11437 --man5 > pandoc_markdown.5`.
11439 * Added new unexported module: `Text.Pandoc.ManPages`.
11441 * `README` now acts like a data file (even though it isn't in
11442 `data/`). So, for example, `pandoc --print-default-data-file README`
11443 will produce the README.) This change was required for the `--man1`
11444 and `--man5` options, since the man pages are produced from the
11445 README, but it may be useful for other purposes as well.
11447 * Allow `reference.docx` and `reference.odt` to be used with
11448 `--print-default-data-file` and to shadow defaults if placed in
11449 the user data directory. Note that as of 1.14, we no longer
11450 include these files as data files; instead, we include their
11451 components. This change causes pandoc to behave as if it has
11452 these data files; they are constructed on demand when needed
11453 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
11455 * Fixed regression in CSS parsing with `--self-contained` (#2224).
11456 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
11457 silently drops big sections of CSS. This commit replaces the
11458 use of css-text with a small but principled CSS preprocessor,
11459 which removes whitespace and comments and replaces `url()` with
11460 base 64 data when possible.
11462 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
11463 This will allow math to work when pages are being viewed locally.
11465 * `Text.Pandoc.Options`: Export `plainExtensions`.
11466 These are the extensions used in `plain` output.
11468 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
11469 math mode; treat them as regular inline text. Normally these will
11470 cause an error in LaTeX, but there are contexts (e.g. `alltt`
11471 environments) where they are allowed.
11473 * HTML reader: allow `<body>` to close `<head>`.
11475 * DocBook reader: support `mediaobject`s and `figures` (#2184, mb21).
11477 * RST reader: Fix reference names with special characters
11478 (Lars-Dominik Braun).
11480 * Textile writer: escape `+` and `-` as entities (#2225).
11482 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
11484 * Plain writer: don't use symbols for super/subscript (#2237).
11485 Simplified code by using `plainExtensions`.
11487 * InDesign writer: Properly escape URLs containing more than one
11488 colon character (gohai).
11490 * Docx writer: Make sure we use dist version of `reference.docx`
11491 (and not the user's version) for certain settings. Taking some
11492 settings values from a user-supplied reference.docx can lead to
11493 corruption. This fixes a regression from the last release (#2249).
11495 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
11496 `getDefaultReferenceODT` (API change). These functions have been
11497 removed from the Docx and ODT writers.
11499 * LaTeX template (Xavier Olive):
11500 + Added `CJKmainfont` and `CJKoptions` variables.
11501 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
11503 * Epub templates: use `author.role`, not `author.type`.
11505 * Bump cmark version to >= 0.3.4.
11507 * Improved Windows installer (#2205, thanks to nkalvi).
11508 Users can now select a per-user or systemwide install, and can set
11509 the installation path. At the end of installation, the install location
11510 is given. The install location is also now given in the list of
11511 installed programs in Control Panel. Cleaner WiX syntax is used for
11512 setting the path.
11514 * Added `download_stats` target to Makefile.
11516## pandoc 1.14.0.4 (2015-06-02)
11518 * Added missing commonmark template.
11520 * Improved try pandoc (moved button, show raw command).
11522## pandoc 1.14.0.3 (2015-06-01)
11524 * Allow compilation with syb 0.5.*.
11526 * Custom writer: fixed some compiler warnings for ghc < 7.10.
11528## pandoc 1.14.0.2 (2015-05-31)
11530 * Allow building with hslua 0.4.
11532## pandoc 1.14.0.1 (2015-05-28)
11534 * Fixed problem with building of `reference.docx` and `reference.odt`
11535 when the `embed_data_files` flag is used. Instead of having a phase
11536 of the build where `reference.docx` and `reference.odt` are created
11537 from their constituent data files, we now construct these archives
11538 from their constituents when a `docx` or `odt` is built. The
11539 constituent files have been moved from `extra-source-files` to
11540 `data-files`, and `reference.docx` and `reference.odt` have been
11541 removed. Users can create their own `reference.docx` or
11542 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
11543 `make-reference-files.hs` has been removed, simplifying the build
11544 process (#2187)
11546 * Don't include generated man pages in extra-source-files (#2189).
11548 * Bumped upper bound for aeson.
11550 * ConTeXt writer: create internal link anchors for Div elements with
11551 identifiers. (This is needed for linked citations to work.)
11553## pandoc 1.14 (2015-05-27)
11555### New features
11557 * Added `commonmark` as input and output format.
11559 * Added `--verbose` flag for debugging output in PDF production (#1840,
11560 #1653).
11562 * Allow wildcards in `--epub-embed-font` arguments (#1939).
11564 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
11566 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
11567 This is enabled by default for those markdown flavors that
11568 support reading shortcut reference links, namely: `markdown`,
11569 `markdown_strict`, `markdown_github`, `markdown_php`.
11570 If the extension is enabled, the reader parses shortcut reference
11571 links like `[foo]`, and the writer creates such links unless doing
11572 so would cause problems. Users of markdown flavors that support
11573 shortcut reference links should not notice a difference in reading
11574 markdown, but the markdown pandoc produces may differ.
11575 If shortcut links are not desired, the extension can be disabled
11576 in the normal way.
11578### Behavior changes
11580 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
11581 A "dirty" TOC is created at the beginning of document.
11582 It can be regenerated after the document has been opened.
11584 * An implicit `--filter pandoc-citeproc` is now triggered only when the
11585 `--bibliography` option is used, and not when the `bibliography`
11586 field in metadata is specified (#1849).
11588 * Markdown reader:
11590 + Reference links with `implicit_header_references` are no longer
11591 case-sensitive (#1606).
11592 + Definition lists no longer require indentation for first line (#2087).
11593 Previously the body of the definition (after the `:` or `~` marker)
11594 needed to be in column 4. This commit relaxes that requirement,
11595 to better match the behavior of PHP Markdown Extra. So, now
11596 this is a valid definition list:
11598 foo
11599 : bar
11600 + Resolve a potentially ambiguity with table captions:
11602 foo
11604 : bar
11606 -----
11607 table
11608 -----
11610 Is "bar" a definition, or the caption for the table? We'll count
11611 it as a caption for the table.
11612 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
11613 Markdown Extra. Note: If you have been using headerless pipe tables,
11614 this change may cause existing tables to break.
11615 + Allow pipe tables with header but no body (#2017).
11616 + Allow a digit as first character of a citation key (Matthias Troffaes).
11617 See https://github.com/jgm/pandoc-citeproc/issues/97
11619 * LaTeX reader:
11621 + Don't limit includes to `.tex` extension (#1882).
11622 If the extension is not `.tex`, it must be given explicitly in
11623 the `\input` or `\include`.
11625 * Docx reader:
11627 + Allow numbering in the style file. This allows inherited styles
11628 with numbering (lists) (Jesse Rosenthal).
11630 * Org reader:
11632 + Support smart punctuation (Craig Bosma).
11633 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
11634 `:noexport:` tag set are not exported. This mirrors org-mode.
11635 + Put header tags into empty spans (Albert Krewinkel, #2160).
11636 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
11637 Instead of being interpreted as part of the headline, the tags are now
11638 put into the attributes of empty spans. Spans without textual content
11639 won't be visible by default, but they are detectable by filters. They
11640 can also be styled using CSS when written as HTML.
11641 + Generalize code block result parsing (Albert Krewinkel).
11642 Previously, only code blocks were recognized as result blocks;
11643 now, any kind of block can be the result.
11645 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
11646 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
11648 * HTML writer:
11650 + Add "inline" or "display" class to math spans (#1914).
11651 This allows inline and display math to be styled differently.
11652 + Include raw latex blocks if `--mathjax` specified (#1938).
11653 + Require highlighting-kate >= 0.5.14 (#1903).
11654 This ensures that all code blocks will be wrapped in a `div`
11655 with class `sourceCode`. Also, the default highlighting CSS
11656 now adds `div.sourceCode { x-overflow: auto; }`, which means
11657 that code blocks (even with line numbers) will acquire a scroll
11658 bar on screens too small to display them (e.g. mobile phones).
11659 See also jgm/highlighting-kate#65.
11661 * LaTeX writer:
11663 + Use a declaration for tight lists (Jose Luis Duran, Joseph
11664 Harriott). Previously, pandoc hard-coded some commands to make
11665 tight lists in LaTeX. Now we use a custom command instead,
11666 allowing the styling to be changed in a macro in the header.
11667 (Note: existing templates may need to be modified to include
11668 the definition of this macro. See the current template.)
11669 + Beamer output: if the header introducing a slide has the
11670 class `fragile`, add the `[fragile]` option to the slide (#2119).
11672 * MediaWiki writer:
11674 + Use `File:` instead of the deprecated `Image:` for images and
11675 other media files (Greg Rundlett).
11677 * DocBook writer:
11679 + Render a `Div (id,_,_) [Para _]` element as a `para` element
11680 with an `id` attribute. This makes links to citations work in
11681 DocBook with pandoc-citeproc.
11683 * RST writer:
11685 + Normalize headings to sequential levels (Nikolay Yakimov).
11686 This is pretty much required by docutils.
11687 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
11688 + Better handling of raw latex inline (#1961). We use
11689 `` :raw-latex:`...` `` and add a definition for this role to
11690 the template.
11692 * EPUB writer:
11694 + Remove `linear=no` from cover `itemref` (#1609).
11695 + Don't use `sup` element for epub footnotes (#1995).
11696 Instead, just use an a element with class `footnoteRef`.
11697 This allows more styling options, and provides better results
11698 in some readers (e.g. iBooks, where anything inside the a
11699 tag breaks popup footnotes).
11700 + Take TOC title from `toc-title` metadata field.
11702 * Docx writer:
11704 + Implemented `FirstParagraph` style (Jesse Rosenthal).
11705 Following the ODT writer, we add the `FirstParagraph` style to the
11706 first text paragraph following an image, blockquote, table, heading,
11707 or beginning of document. This allows it to be styled differently.
11708 The default is for it to be the same as `Normal`.
11709 + Added `BodyText` style (Jesse Rosenthal).
11710 We apply a `BodyText` style to all unstyled paragraphs. This is,
11711 essentially, the same as `Normal`, except that since not everything
11712 inherits from `BodyText` (the metadata won't, for example, or
11713 the headers or footnote numbers), we can change the text in the body
11714 without having to make exceptions for everything. If we do want to
11715 change *everything*, we can still do it through `Normal`.
11716 + Altered `Blockquote` style slightly (Jesse Rosenthal).
11717 Since `BlockQuote` derives from `BodyText`, we just want to specify
11718 by default that it won't indent, regardless of what `BodyText` does.
11719 Note that this will not produce any visible difference in the default
11720 configuration.
11721 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
11722 + Added a style to figure images (Nikolay Yakimov).
11723 Figures with empty captions use style `Figure`.
11724 Figures with nonempty captions use style `Figure with Caption`, which
11725 is based on `Figure`, and additionally has `keepNext` set.
11727 * ODT writer:
11729 + Added figure captions (Nikolay Yakimov). The following styles are
11730 used for figures:
11731 `Figure` -- for figure with empty caption),
11732 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
11733 `FigureCaption` (based on `Caption`) -- for figure captions.
11734 Also, `TableCaption` (based on `Caption`) is used for table captions.
11736### API changes
11738 * New `Text.Pandoc.Error` module with `PandocError` type
11739 (Matthew Pickering).
11741 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
11742 (Matthew Pickering). This allows better handling of errors.
11744 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
11746 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
11748 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
11749 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
11750 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
11751 Youssefi).
11753 * New `Ext_shortcut_reference_links` constructor for `Extension`
11754 (Konstantin Zudov).
11756### Bug fixes
11758 * Markdown reader:
11760 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
11761 + Check for tex macros after indented code (#1973).
11762 + Rewrote `charsInBalancedBrackets` for efficiency.
11763 + Make sure a closing `</div>` doesn't get included in a
11764 definition list item (#2127).
11765 + Don't parse bracketed text as citation if it might be a link,
11766 image, or footnote (Nikolay Yakimov).
11767 + Require space after key in mmd title block (#2026, Nikolay
11768 Yakimov). Require space after key-value delimiter colon in mmd title
11769 block.
11770 + Require nonempty value in mmd title block (Nikolay Yakimov).
11771 + Disable all metadata block extensions when parsing
11772 metadata field values (#2026, Nikolay Yakimov). Otherwise we
11773 could get a mmd title block inside YAML metadata, for example.
11775 * HTML reader:
11777 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
11778 + Handle tables with `<th>` in body rows (#1859, mb21).
11779 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
11780 to see if the input starts with `<!--`. If not, it's bogus comment
11781 mode and we fail `htmlTag`.
11782 + Handle `base` tag; if it has an `href` value, this is added to
11783 all relative URLs in links and images.
11785 * DocBook reader:
11787 + Look inside "info" elements for section titles (#1931).
11789 * Docx reader:
11791 + Parse images in deprecated vml format (Jesse Rosenthal).
11792 + Allow sub/superscript verbatims (Jesse Rosenthal).
11793 Verbatim usually shuts off all other run styles, but we don't want it
11794 to shut off sub/superscript.
11796 * LaTeX reader:
11798 + Handle `tabular*` environment (#1850).
11799 Note that the table width is not actually parsed or taken into
11800 account, but pandoc no longer chokes on it.
11801 + Ignore options in `\lstinline` rather than raising error (#1997).
11802 + Add some test cases for simple tables (Mathias Schenner).
11803 + Handle valign argument in tables (Mathias Schenner) (currently
11804 we just ignore this).
11805 + Allow non-empty colsep in tables (Mathias Schenner).
11806 The `tabular` environment allows non-empty column separators
11807 with the "@{...}" syntax. Previously, pandoc would fail to
11808 parse tables if a non-empty colsep was present. With this
11809 commit, these separators are still ignored, but the table gets
11810 parsed. A test case is included.
11811 + Recognize `\newpage` as a block command.
11812 + Allow block content in `\title{}` (#2001).
11813 + Check for block-level newcommand aliases in blockCommand (Nikolay
11814 Yakimov).
11815 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
11816 + Properly gobble spaces after `\\` (#2007).
11818 * Textile reader:
11820 + Handle newlines in table cells, and empty cells (#1919).
11822 * Org reader:
11824 + Allow image links with non-image targets (Hans-Peter Deifel).
11825 This matches behavior of Org-Mode for links like
11826 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
11828 * Docbook writer:
11830 + Don't print empty id attributes (thanks to Steve Horne).
11832 * HTML writer:
11834 + Fixed list-style-type for numbered example lists.
11835 Should be "decimal," not "example" (#1902).
11836 + Do not omit missing `alt` attribute on `img` tag (#1131,
11837 Konstantin Zudov).
11838 + Allow multiple colgroups in table (#2122).
11839 + In revealjs, ensure that lists in speaker notes don't add "fragment"
11840 classes, which can cause additional keypresses to be needed to
11841 advance a slide (#1394).
11843 * LaTeX writer:
11845 + Don't escape `$` in URL (#1913).
11846 + Don't use listings in headers (Matthew Pickering, #1963).
11847 + Recognize book documentclass if set in metadata (#1971).
11848 This sets `--chapters` implicitly if the documentclass in metadata
11849 is a book documentclass. Previously this was done only if a book
11850 documentclass was set in a variable.
11851 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
11852 + Make `mainlang` work when `lang` is in metadata (#2174).
11854 * Texinfo writer:
11856 + Fix wrapping by using breakable spaces (Tim Lin).
11858 * RST writer:
11860 + Fixed toc depth in RST writer. Previously the depth was being
11861 rendered as a floating point number with a decimal point.
11863 * Markdown writer:
11865 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
11866 compatibility with original Markdown. We now escape `<` and `>`
11867 with entities. Also, we now backslash-escape square brackets.
11868 + Avoid introducing spurious list items through wrapping (#1946).
11869 + Don't emit span tags if plain or raw HTML disabled.
11871 * MediaWiki writer:
11873 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
11875 * AsciiDoc writer:
11877 + Insert some needed blank lines (#1860).
11878 + Avoid wrapping after list marker (#1858).
11880 * EPUB writer:
11882 + Properly handle internal links to IDs in spans, divs (#1884).
11883 + Use plain writer for metadata dc: fields (#2121).
11884 This gives better results when we have, e.g. multiple paragraphs.
11885 Note that tags aren't allowed in these fields.
11886 + Properly handle image links without an extension (#1855).
11887 + Improved chapter splitting and internal link rewriting (#1887,
11888 #2162, #2163). This will ensure that internal links work and
11889 that the references section produced by pandoc-citeproc is
11890 in its own chapter.
11891 + Fixed handling of svg images (#2183).
11893 * ICML writer:
11895 + Better handling of raw blocks and inlines (#1951).
11896 Previously these were always escaped and printed verbatim.
11897 Now they are ignored unless the format is `icml`, in which
11898 case they are passed through unescaped.
11899 + Fixed image URIs in ICML output (gohai).
11901 * Custom writer:
11903 + Raise error if loadstring returns an error status.
11904 + Raise `PandocLuaException` instead of using 'error'.
11905 Eventually we'll change the return type so that no exception
11906 is involved, but at least this can be trapped.
11907 + Use UTF-8 aware bytestring conversion.
11908 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
11909 Also factored out ByteString, since it's only used as an intermediate
11910 representation.
11912 * Docx writer:
11914 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
11915 + Filter out illegal XML characters (#1992, Matthew Pickering).
11916 + Added `noProof` to docx syntax highlighting `SourceCode` style.
11917 + Added footnotes id -1 and 0 (Jesse Rosenthal).
11918 Word uses, by default, footnotes with id -1 and 0 for separators. If a
11919 user modifies `reference.docx`, they will end up with a `settings.xml`
11920 file that references these footnotes, but no such footnotes in the
11921 document. This will produce a corruption error. Here we add these to the
11922 document and `settings.xml` file, so future modifications won't break
11923 the file.
11924 + Handle lists correctly inside table cells (Jesse Rosenthal).
11925 Previously we didn't transform lists inside table cells.
11926 + Set firstRow information in tables (Nikolay Yakimov).
11927 + Don't replace `SourceCode` style in `reference.docx` if it is defined
11928 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
11929 any `SourceCode` and `*Tok` styles in `reference.docx`.
11930 + Attempt to match international style names (#1607, Nikolay Yakimov).
11931 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
11932 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
11933 `Definition`, `First Paragraph`.
11934 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
11935 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
11936 `Footnote Ref -> Footnote Reference`.
11937 + Added `Caption` style (Nikolay Yakimov).
11938 + Changed these styles' inheritance (Nikolay Yakimov):
11939 `Image Caption <- Caption`, `Table Caption <- Caption`.
11940 + Remove `SourceCode` style from `reference.docx` (#1872).
11941 This is added automatically by the docx writer.
11942 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
11944 * `Text.Pandoc.PDF`
11946 + Don't suggest "Try xelatex" if xelatex already in use (mb21, #1832).
11947 + More comprehensible errors on image conversion (#2067).
11948 EPS can't be supported without shelling out to something like
11949 ImageMagick, but at least we can avoid mysterious error messages.
11951 * `Text.Pandoc.Shared`:
11953 + Make safeRead safe (#1801, Matthew Pickering).
11954 + Added `mapLeft`, `hush` (Matthew Pickering).
11956 * `Text.Pandoc.Pretty`:
11958 + Remove partial function (Matthew Pickering).
11960 * `Text.Pandoc.SelfContained`:
11962 + Add `;charset=utf-8` to script mime type if missing (#1842).
11963 + Improved building of data URIs (#1940). Now base64 is used except
11964 for `text/*` mime types.
11965 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
11966 + Properly handle data URIs in css urls (#2129).
11967 Use a proper CSS parser (adds dependency on `text-css`).
11969 * `Text.Pandoc.UTF8`:
11971 + Better handling of bare CRs in input files (#2132).
11972 Previously we just stripped them out; now we convert
11973 other line ending styles to LF line endings.
11975 * `Text.Pandoc.ImageSize`:
11977 + Fixed some exif header parsing bugs (#1834).
11978 + Make imageSize return an Either, not a Maybe (#1834).
11979 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
11980 parse failure (rather than `error`).
11981 + Improved warnings when image size can't be determined.
11982 + Removed error landmines (Matthew Pickering).
11984 * Added woff2 to MIME types (Alfred Wechselberger).
11986 * pandoc: When a binary input format is used, warn that file
11987 arguments past the first one are being ignored (Matthew Pickering).
11989### Template changes
11991 * LaTeX template:
11993 + Degrade gracefully if `\paragraph` not defined.
11994 + Include `grffile` together with `graphicx` (#2074).
11995 This properly handles filenames containing spaces and dots.
11996 + Redefine `\paragraph`, `\subparagraph`... to behave more
11997 like section headers (#1658).
11998 + Import hyperref before polyglossia to avoid an error with xelatex,
11999 "please load package hyperref before bidi package" (Nick Bart).
12000 + Added `toccolor` variable to control link color in toc (Kaixhin).
12002 * LaTeX, Beamer templates:
12004 + Provide `\tightlist`, which is now used by the LaTeX writer.
12005 + Use polyglossia in beamer (#85).
12006 + Use `bibliography` instead of `biblio-files`
12007 (#1661). Also use `\addbibresource` instead of `\bibliography` for
12008 biblatex.
12009 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
12010 variable that is derived from a comma-separated list in `lang`;
12011 the last language is `mainlang` and the others are `otherlang`.
12013 * EPUB templates:
12015 + Use `div`, not `p`, for "rights" on title page.
12016 + Added header-includes, include-before, include-after (#1987).
12018 * OpenDocument template:
12020 + Use `text:p` instead of `text:h` for title.
12021 Using `text:h` causes problems with numbering. Closes #2059.
12022 Thanks to @nkalvi for diagnosing this.
12024 * reveal.js template:
12026 + Link to non-minified css, js. The minified versions no longer
12027 ship with the library.
12028 + Correctly include style CSS (#1949).
12029 + New configurable options options: `center`, `maxScale`, `slideNuber`
12030 (Dmitry Smirnov, pandoc-templates#89).
12031 + Moved custom CSS after theme. This allows custom CSS to modify
12032 themes, instead of being replaced by them.
12033 + Allow `center` to be set to false.
12035### Under the hood improvements
12037 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
12038 Yakimov). Instead the repository now includes the component text files,
12039 and the zipped binaries are built from these using a helper
12040 program, `make-reference-files`. This should make maintenance of
12041 these components easier going forward.
12043 * `Text.Pandoc.Parsing`:
12045 + Added new `<+?>` combinator (Nikolay Yakimov).
12046 + Added `stateHeaderKeys` to `ParserState`.
12048 * `make_deb.sh` fixes:
12050 + Detect architecture.
12051 + Add Installed-Size to debian package control file (#1900).
12052 + Use `fakeroot` to get permissions right.
12053 + Use `mkdir` and `cp` instead of `install`.
12054 + Set permissions of directories to 755.
12055 + Install in `/usr` rather than `/usr/local`.
12056 + Compress man pages.
12057 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
12059 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
12060 to assist with transition to `time` 1.5.
12062 * Updated CONTRIBUTING.md with information about issue tags (Matthew
12063 Pickering).
12065 * Updated travis installs to the new sudo-less syntax (Tim Lin).
12067 * Updated dependency version bounds.
12069 * EPUB tests: don't use `joinPath`, which varies across platforms.
12070 Instead, use a forward-slash to join paths, regardless of the
12071 platform. This matches the way `MediaBag` now works.
12073 * Clarify JSON input and output in usage message (Caleb McDaniel).
12075 * Improved INSTALL instructions.
12077 * Always build man pages. Removed make-pandoc-man-pages flag.
12079 * Makefile: removed man target, now that we generate man pages by default.
12081 * README:
12083 + Fixed typos (J. Lewis Muir).
12084 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
12085 + Added note on in-field markup in biblio databases (Nick Bart).
12086 + Fixed misleading example of raw HTML block.
12087 + Various minor formatting and consistency fixes for the program
12088 options (Andreas Lööw).
12089 + Made definition lists for options all "loose" for consistency.
12090 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
12091 `--bib2json` and `--bib2yaml` options (Nick Bart).
12092 + Removed obsolete reference to `mods2yaml` (Nick Bart).
12093 + Added section on syntax highlighting.
12094 + Documented `toccolor` variable.
12096## pandoc 1.13.2.1 (2015-04-15)
12098 * Updated to build with ghc 7.10.1.
12100 * Bumped package upper bounds for filepath, blaze-html, blaze-markup.
12102## pandoc 1.13.2 (2014-12-20)
12104 * TWiki Reader: add new new twiki reader (API chaneg, Alexander Sulfrian).
12106 * Markdown reader:
12108 + Better handling of paragraph in div (#1591).
12109 Previously text that ended a div would be parsed as Plain
12110 unless there was a blank line before the closing div tag.
12111 + Don't treat a citation as a reference link label (#1763).
12112 + Fix autolinks with following punctuation (#1811).
12113 The price of this is that autolinked bare URIs can no longer
12114 contain `>` characters, but this is not a big issue.
12115 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
12116 + Allow `startnum` to work without `fancy_lists`. Formerly
12117 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
12119 * RST reader (all Daniel Bergey):
12121 + Parse quoted literal blocks (#65). RST quoted literal blocks are
12122 the same as indented literal blocks (which pandoc already supports)
12123 except that the quote character is preserved in each line.
12124 + Parse RST class directives. The class directive accepts one or more
12125 class names, and creates a Div value with those classes. If the
12126 directive has an indented body, the body is parsed as the children of
12127 the Div. If not, the first block following the directive is made a
12128 child of the Div. This differs from the behavior of rst2xml, which
12129 does not create a Div element. Instead, the specified classes are
12130 applied to each child of the directive. However, most Pandoc Block
12131 constructors to not take an Attr argument, so we can't duplicate this
12132 behavior.
12133 + Warn about skipped directives.
12134 + Literal role now produces Code. Code role should have "code" class.
12135 + Improved support for custom roles
12137 - Added `sourceCode` to classes for `:code:` role, and anything
12138 inheriting from it.
12139 - Add the name of the custom role to classes if the Inline
12140 constructor supports Attr.
12141 - If the custom role directive does not specify a parent role,
12142 inherit from the `:span:` role.
12144 This differs somewhat from the `rst2xml.py` behavior. If a custom
12145 role inherits from another custom role, Pandoc will attach both
12146 roles' names as classes. `rst2xml.py` will only use the class of
12147 the directly invoked role (though in the case of inheriting from a
12148 `:code:` role with a `:language:` defined, it will also provide the
12149 inherited language as a class).
12150 + Warn about ignored fields in role directives.
12152 * LaTeX reader:
12154 + Parse label after caption into a span instead of
12155 inserting an additional paragraph of bracketed text (#1747).
12156 + Parse math environments as inline when possible (#1821).
12157 + Better handling of `\noindent` and `\greektext` (#1783).
12158 + Handle `\texorpdfstring` more gracefully.
12159 + Handle `\cref` and `\sep` (Wikiwide).
12160 + Support `\smartcite` and `\Smartcite` from biblatex.
12162 * HTML reader:
12164 + Retain display type of MathML output (#1719, Matthew Pickering).
12165 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
12166 + Make `embed` tag either block or inline (#1756).
12168 * DocBook reader:
12170 + Handle `keycombo`, `keycap` (#1815).
12171 + Get string content in inner tags for literal elements (#1816).
12172 + Handle `menuchoice` elements better, with a `>` between (#1817).
12173 + Include `id` on section headers (#1818).
12174 + Document/test "type" as implemented (Brian O'Sullivan).
12175 + Add support for calloutlist and callout (Brian O'Sullivan).
12176 We treat a calloutlist as a bulleted list. This works well in practice.
12177 + Add support for `classname` (Bryan O'Sullivan).
12179 * Docx reader:
12181 + Fix window path for image lookup (Jesse Rosenthal).
12182 Don't use os-sensitive "combine", since we always want the paths in our
12183 zip-archive to use forward-slashes.
12184 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
12185 When users number their headers, Word understands that as a single item
12186 enumerated list. We make the assumption that such a list is, in fact,
12187 a header.
12188 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
12189 There could be new top-level headers after making lists, so we have to
12190 rewrite links after that.
12191 + Use polyglot header list (Jesse Rosenthal).
12192 We're just keeping a list of header formats that different languages
12193 use as their default styles. At the moment, we have English, German,
12194 Danish, and French. We can continue to add to this.
12195 This is simpler than parsing the styles file, and perhaps less
12196 error-prone, since there seems to be some variations, even within a
12197 language, of how a style file will define headers.
12198 + Remove header class properly in other langs (Jesse Rosenthal).
12199 When we encounter one of the polyglot header styles, we want to remove
12200 that from the par styles after we convert to a header. To do that, we
12201 have to keep track of the style name, and remove it appropriately.
12202 + Account for external link URLs with anchors. Previously, if a URL
12203 had an anchor, the reader would incorrectly identify it as an
12204 internal link and return only the anchor as URL. (Caleb McDaniel)
12205 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
12207 * Org reader:
12209 + Added state changing blanklines (Jesse Rosenthal).
12210 This allows us to emphasize at the beginning of a new paragraph (or, in
12211 general, after blank lines).
12212 + Fixed bug with bulleted lists:
12214 - a
12215 - b
12216 * c
12218 was being parsed as a list, even though an unindented `*`
12219 should make a heading. See
12220 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
12221 + Org reader: absolute, relative paths in link (#1741, Albert
12222 Krewinkel). The org reader was too restrictive when parsing links;
12223 some relative links and links to files given as absolute paths
12224 were not recognized correctly.
12225 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
12226 This is important for use in gitit, which uses empty links
12227 for wikilinks.
12228 + Respect indent when parsing Org bullet lists (#1650, Timothy
12229 Humphries). Fixes issue with top-level bullet list parsing.
12230 + Fix indent issue for definition lists (Timothy Humphries,
12231 see #1650, #1698, #1680).
12232 + Parse multi-inline terms correctly in definition list (#1649,
12233 Matthew Pickering).
12234 + Fix rules for emphasis recognition (Albert Krewinkel).
12235 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
12236 strings. This is wrong, as `,` and `'` are forbidden border chars and
12237 may not occur on the inner border of emphasized text.
12238 + Drop COMMENT document trees (Albert Krewinkel).
12239 Document trees under a header starting with the word `COMMENT` are
12240 comment trees and should not be exported. Those trees are dropped
12241 silently (#1678).
12242 + Properly handle links to `file:target` (Albert Krewinkel).
12243 Org links like `[[file:target][title]]` were not handled correctly,
12244 parsing the link target verbatim. The org reader is changed such that
12245 the leading `file:` is dropped from the link target (see #756, #1812).
12246 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
12247 Org supports special symbols which can be included using LaTeX syntax,
12248 but are actually MathML entities. Examples for this are
12249 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
12250 or `\copy` (the copyright sign ©)
12252 * EPUB reader:
12254 + URI handling improvements. Now we outsource most of the work to
12255 `fetchItem'`. Also, do not include queries in file extensions (#1671).
12257 * LaTeX writer:
12259 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
12260 + Handle consecutive linebreaks (#1733).
12261 + Protect graphics in headers (Jesse Rosenthal).
12262 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
12263 + Put `~` before header in list item text (Jesse Rosenthal).
12264 Because of the built-in line skip, LaTeX can't handle a section header
12265 as the first element in a list item.
12266 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
12267 + Better handling of display math in simple tables (#1754).
12268 We convert display math to inline math in simple tables,
12269 since LaTeX can't deal with display math in simple tables.
12270 + Escape spaces in code (#1694, Bjorn Buckwalter).
12272 * MediaWiki writer:
12274 + Fixed links with URL = text. Previously these were rendered as bare
12275 words, even if the URL was not an absolute URL (#1825).
12277 * ICML writer:
12279 + Don't force all citations into footnotes.
12281 * RTF writer:
12283 + Add blankline at end of output (#1732, Matthew Pickering).
12285 * RST writer:
12287 + Ensure blank line after figure.
12288 + Avoid excess whitespace after last list item (#1777).
12289 + Wrap line blocks with spaces before continuations (#1656).
12290 + Fixed double-rendering of footnotes in RST tables (#1769).
12292 * DokuWiki writer:
12294 + Better handling of block quotes. This change ensures that
12295 multiple paragraph blockquotes are rendered using native `>`
12296 rather than as HTML (#1738).
12297 + Fix external images (#1739). Preface relative links with ":",
12298 absolute URIs without. (Timothy Humphries)
12300 * HTML writer:
12302 + Use protocol-relative URL for mathjax.
12303 + Put newline btw img and caption paragraph.
12304 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
12305 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
12306 This adds `KaTeX` to `HTMLMathMethod` (API change).
12307 + Don't double render when `email-obfuscation=none` (#1625, Matthew
12308 Pickering).
12309 + Make header attributes work outside top level (#1711).
12310 Previously they only appeared on top level header elements.
12311 Now they work e.g. in blockquotes.
12313 * ODT writer:
12315 + Correctly handle images without extensions (#1729).
12316 + Strip querystring in ODT write (#1682, Todd Sifleet).
12318 * FB2 writer:
12320 + Add newline to output.
12322 * EPUB writer:
12324 + Don't add `sourceURL` to absolute URIs (#1669).
12325 + Don't use unsupported `opf:title-type` for epub2.
12326 + Include "landmarks" section in nav document for epub3 (#1757).
12327 + Removed playOrder from navpoint elements in ncx file (#1760).
12328 These aren't required, and they make manual modification of epubs
12329 difficult.
12330 + Extract title even from structured title.
12331 + Don't include nav node in spine unless `--toc` was requested.
12332 Previously we included it in the spine with `linear="no"`, leading
12333 to odd results in some readers (#1593).
12334 + Fixed absolute URI detection (#1672).
12335 + Correctly resolve relative URIs (#1671).
12336 + Use regular page template for `nav.xhtml`, including doctype (#1759).
12338 * Docx writer:
12340 + Put docx table captions above tables (#1641, Nikolay Yakimov).
12341 + Get the page width from the reference docx file, and use
12342 it to scale images that are too large to fit (Grégory Bataille).
12343 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
12344 are inferred based on `<w:name val="heading #">` fallback, if there
12345 are no en-US "Heading#" styles
12346 + Look in user data dir for archive `reference.docx`.
12347 + Renumber header and footer relationships to avoid collisions (Jesse
12348 Rosenthal). We previously took the old relationship names of the
12349 headers and footer in secptr. That led to collisions. We now make
12350 a map of available names in the relationships file, and then rename
12351 in secptr.
12353 * ConTeXt writer:
12355 + Add function toLabel (Mark Szepieniec).
12356 This function can be used to sanitize reference labels so that
12357 they do not contain any of the illegal characters \#[]",{}%()|= .
12358 Currently only Links have their labels sanitized, because they
12359 are the only Elements that use passed labels.
12361 * `Text.Pandoc.Shared`:
12363 + Moved import of `toChunks` outside of CPP conditional (#1590).
12364 + Fix `inDirectory` to reset to the original directory in case
12365 an exception occurs (Freiric Barral).
12367 * Templates:
12369 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
12370 Thanks to bluebirch.
12371 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
12372 (#1616).
12373 + LaTeX template: Add shorthands=off to babel options (#1648).
12374 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
12375 This aids styling, making it possible for example to set 0 margins
12376 on the title page (#1758).
12377 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
12378 Previously we just expected 'title', 'subtitle', 'author', 'date'.
12379 Now we still support those, but also support the format recommended
12380 for epub metadata in the pandoc README:
12382 ---
12383 title:
12384 - type: main
12385 text: My Book
12386 - type: subtitle
12387 text: An investigation of metadata
12388 creator:
12389 - role: author
12390 text: John Smith
12391 - role: editor
12392 text: Sarah Jones
12393 identifier:
12394 - scheme: DOI
12395 text: doi:10.234234.234/33
12396 publisher: My Press
12397 rights: (c) 2007 John Smith, CC BY-NC
12398 ...
12400 * `Text.Pandoc.Templates.getDefaultTemplate`:
12401 don't fail when called with "fb2" (#1660).
12403 * `Text.Pandoc.Parsing`:
12405 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
12406 For example: `$x = \text{the $n$th root of $y$}` (#1677).
12407 + Change `parseFromString` to fail if not all input is consumed.
12408 (Matthew Pickering)
12409 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
12410 used by more readers (API change, Daniel Bergey).
12412 * `Text.Pandoc.Pretty`:
12414 + Improve performance of `realLength` (Matthew Pickering).
12415 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
12416 were getting at the end of markdown fragments (as well as rst, org,
12417 etc.) (#1705).
12419 * `Text.Pandoc.MIME`:
12421 + Add mime type for WebVTT (Jason Ronallo).
12422 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
12423 This is needed for epub3 validation.
12425 * `Text.Pandoc.MediaBag`:
12427 + Fix Windows specific path problems (#1597).
12429 * `Text.Pandoc.Shared`:
12431 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
12433 * Link the test suite using `-threaded`.
12434 This allows the test suite to be run using `+RTS -N`.
12436 * Added `network` dependency under `network-uri` flag in test section.
12438 * Give better error messages when someone tries to convert from
12439 pdf, doc, odt (#1683).
12441 * Added `track` to list of tags treated by `--self-contained` (#1664).
12444## pandoc 1.13.1 (2014-08-30)
12446 * Fixed `--self-contained` with Windows paths (#1558).
12447 Previously `C:\foo.js` was being wrongly interpreted as a URI.
12449 * HTML reader: improved handling of tags that can be block or inline.
12450 Previously a section like this would be enclosed in a paragraph,
12451 with RawInline for the video tags (since video is a tag that can
12452 be either block or inline):
12454 <video controls="controls">
12455 <source src="../videos/test.mp4" type="video/mp4" />
12456 <source src="../videos/test.webm" type="video/webm" />
12457 <p>
12458 The videos can not be played back on your system.<br/>
12459 Try viewing on Youtube (requires Internet connection):
12460 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
12461 Youtube</a>.
12462 </p>
12463 </video>
12465 This change will cause the video and source tags to be parsed
12466 as RawBlock instead, giving better output.
12467 The general change is this: when we're parsing a "plain" sequence
12468 of inlines, we don't parse anything that COULD be a block-level tag.
12470 * Docx reader:
12472 + Be sensitive to user styles. Note that "Hyperlink" is
12473 "blacklisted," as we don't want the default underline styling to be
12474 inherited by all links by default (Jesse Rosenthal).
12475 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
12476 This makes to docx reader's native output fit with the way the markdown
12477 reader understands its markdown output.
12479 * Txt2Tags reader:
12481 + Header is now parsed only if standalone flag is set (Matthew Pickering).
12482 + The header is now parsed as meta information. The first line is the
12483 `title`, the second is the `author` and third line is the `date`
12484 (Matthew Pickering).
12485 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
12486 + Fixed crash when reading from stdin.
12488 * Textile writer: Extended the range of cases where native textile
12489 tables will be used (as opposed to raw HTML): we now handle any
12490 alignment type, but only for simple tables with no captions.
12492 * EPUB writer: Don't use page-progression-direction in EPUB2, which
12493 doesn't support it. Also, if page-progression-direction not specified
12494 in metadata, don't include the attribute even in EPUB3; not including it
12495 is the same as including it with the value "default", as we did before.
12496 (#1550)
12498 * Org writer: Accept example lines with indentation at the beginning
12499 (Calvin Beck).
12501 * DokuWiki writer:
12503 + Refactor to use Reader monad (Matthew Pickering).
12504 + Avoid using raw HTML in table cells; instead, use `\\`
12505 instead of newlines (Jesse Rosenthal).
12506 + Properly handle HTML table cell alignments, and use spacing
12507 to make the tables look prettier (#1566).
12509 * Docx writer:
12511 + Bibliography entries get `Bibliography` style (#1559).
12512 + Implement change tracking (Jesse Rosenthal).
12514 * LaTeX writer:
12516 + Fixed a bug that caused a table caption to repeat across all pages
12517 (Jose Luis Duran).
12518 + Improved vertical spacing in tables and made it customizable using
12519 standard lengths set by booktab. See
12520 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
12521 (Jose Luis Duran).
12522 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
12523 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
12524 + Made horizontal rules more flexible (Jose Luis Duran).
12526 * Text.Pandoc.MIME:
12528 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
12529 Code cleanups (Artyom Kazak).
12531 * Templates:
12533 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
12534 thanks lemzwerg).
12536 * Improved OSX build procedure.
12538 * Added `network-uri` flag, to deal with split of `network-uri` from
12539 `network`.
12541 * Fix build dependencies for the `trypandoc` flag, so that they are
12542 ignored if `trypandoc` flag is set to False (Gabor Pali).
12544 * Updated README to remove outdated claim that `--self-contained`
12545 looks in the user data directory for missing files.
12547## pandoc 1.13.0.1 (2014-08-17)
12549 * Docx writer:
12551 + Fixed regression which bungled list numbering (#1544), causing
12552 all lists to appear as basic ordered lists.
12553 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
12554 Added a property to all table rows where the sum of column widths
12555 is specified in pct (fraction of 5000). This helps persuade Word
12556 to lay out the table with the widths we specify.
12558 * Fixed a bug in Windows 8 which caused pandoc not to find the
12559 `pandoc-citeproc` filter (#1542).
12561 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
12562 Most significantly, the reader now uses Builder, leading to some
12563 performance improvements.
12565 * HTML reader: Parse appropriately styled span as SmallCaps.
12567 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
12568 `superscript`, and `subscript` extensions, respectively, are
12569 deactivated (#1127).
12571 * Added `trypandoc` flag to build CGI executable used in the online
12572 demo.
12574 * Makefile: Added 'quick', 'osxpkg' targets.
12576 * Updated README in templates to indicate templates license.
12577 The templates are dual-licensed, BSD3 and GPL2+.
12579## pandoc 1.13 (15 August 2014)
12581### New features
12583 * Added `docx` as an input format (Jesse Rosenthal). The docx
12584 reader includes conversion of native Word equations to pandoc
12585 LaTeX `Math` elements. Metadata is taken from paragraphs at the
12586 beginning of the document with styles `Author`, `Title`, `Subtitle`,
12587 `Date`, and `Abstract`.
12589 * Added `epub` as an input format (Matthew Pickering). The epub
12590 reader includes conversion of MathML to pandoc LaTeX `Math`
12591 elements.
12593 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
12594 Txt2tags is a lightweight markup format described at
12595 <http://txt2tags.org/>.
12597 * Added `dokuwiki` as an output format (Clare Macrae).
12599 * Added `haddock` as an output format.
12601 * Added `--extract-media` option to extract media contained in a zip
12602 container (docx or epub) while adjusting image paths to point to the
12603 extracted images.
12605 * Added a new markdown extension, `compact_definition_lists`, that
12606 restores the syntax for definition lists of pandoc 1.12.x, allowing
12607 tight definition lists with no blank space between items, and
12608 disallowing lazy wrapping. (See below under behavior changes.)
12610 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
12612 * Added extensions `native_spans` and `native_divs` to activate
12613 parsing of material in HTML span or div tags as Pandoc Span
12614 inlines or Div blocks.
12616 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
12617 Textile, and MediaWiki readers. This is an option intended
12618 for debugging parsing problems; ordinary users should not need
12619 to use it.
12621### Behavior changes
12623 * Changed behavior of the `markdown_attribute` extension, to bring
12624 it in line with PHP markdown extra and multimarkdown. Setting
12625 `markdown="1"` on an outer tag affects all contained tags,
12626 recursively, until it is reversed with `markdown="0"` (#1378).
12628 * Revised markdown definition list syntax (#1429). Both the reader
12629 and writer are affected. This change brings pandoc's definition list
12630 syntax into alignment with that used in PHP markdown extra and
12631 multimarkdown (with the exception that pandoc is more flexible about
12632 the definition markers, allowing tildes as well as colons). Lazily
12633 wrapped definitions are now allowed. Blank space is required
12634 between list items. The space before a definition is used to determine
12635 whether it is a paragraph or a "plain" element. **WARNING: This change
12636 may break existing documents!** Either check your documents for
12637 definition lists without blank space between items, or use
12638 `markdown+compact_definition_lists` for the old behavior.
12640 * `.numberLines` now works in fenced code blocks even if no language
12641 is given (#1287, jgm/highlighting-kate#40).
12643 * Improvements to `--filter`:
12645 + Don't search PATH for a filter with an explicit path.
12646 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
12647 the system path, even if there was a `caps.py` in the working directory.
12648 + Respect shebang if filter is executable (#1389).
12649 + Don't print misleading error message.
12650 Previously pandoc would say that a filter was not found,
12651 even in a case where the filter had a syntax error.
12653 * HTML reader:
12655 + Parse `div` and `span` elements even without `--parse-raw`,
12656 provided `native_divs` and `native_spans` extensions are set.
12657 Motivation: these now generate native pandoc Div and Span
12658 elements, not raw HTML.
12659 + Parse EPUB-specific elements if the `epub_html_exts`
12660 extension is enabled. These include `switch`, `footnote`,
12661 `rearnote`, `noteref`.
12663 * Org reader:
12665 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
12666 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
12667 `\cite{Coffee}`), can be used without any further escaping (Albert
12668 Krewinkel).
12670 * Textile reader and writer:
12672 + The `raw_tex` extension is no longer set by default. You can
12673 enable it with `textile+raw_tex`.
12675 * DocBook reader:
12677 + Support `equation`, `informalequation`, `inlineequation` elements with
12678 `mml:math` content. This is converted into LaTeX and put into a Pandoc
12679 Math inline.
12681 * Revised `plain` output, largely following the style of Project
12682 Gutenberg:
12684 + Emphasis is rendered with `_underscores_`, strong emphasis
12685 with ALL CAPS.
12686 + Headings are rendered differently, with space to set them off,
12687 not with setext style underlines. Level 1 headers are ALL CAPS.
12688 + Math is rendered using unicode when possible, but without the
12689 distracting emphasis markers around variables.
12690 + Footnotes use a regular `[n]` style.
12692 * Markdown writer:
12694 + Horizontal rules are now a line across the whole page.
12695 + Prettier pipe tables. Columns are now aligned (#1323).
12696 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
12697 no longer emits any raw HTML, including span and div tags
12698 generated by Span and Div elements.
12699 + Use span with style for `SmallCaps` (#1360).
12701 * HTML writer:
12703 + Autolinks now have class `uri`, and email autolinks have class
12704 `email`, so they can be styled.
12706 * Docx writer:
12708 + Document formatting is carried over from `reference.docx`.
12709 This includes margins, page size, page orientation, header,
12710 and footer, including images in headers and footers.
12711 + Include abstract (if present) with `Abstract` style (#1451).
12712 + Include subtitle (if present) with `Subtitle` style, rather
12713 than tacking it on to the title (#1451).
12715 * Org writer:
12717 + Write empty span elements with an id attribute as org anchors.
12718 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
12720 * LaTeX writer:
12722 + Put table captions above tables, to match the conventional
12723 standard. (Previously they appeared below tables.)
12724 + Use `\(..\)` instead of `$..$` for inline math (#1464).
12725 + Use `\nolinkurl` in email autolinks. This allows them to be styled
12726 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
12727 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
12728 curly quotes in the PDF output (#1364).
12729 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
12730 do not appear before the overlays in which their markers appear
12731 (#1525).
12732 + Don't produce a `\label{..}` for a Div or Span element. Do produce
12733 a `\hyperdef{..}` (#1519).
12735 * EPUB writer:
12737 + If the metadata includes `page-progression-direction` (which can be
12738 `ltr` or `rtl`, the `page-progression-direction` attribute will
12739 be set in the EPUB spine (#1455).
12741 * Custom lua writers:
12743 + Custom writers now work with `--template`.
12744 + Removed HTML header scaffolding from `sample.lua`.
12745 + Made citation information available in lua writers.
12747 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
12748 adjacent `RawBlock`s when possible.
12750### API changes
12752 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
12754 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
12755 Pickering).
12757 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
12758 Pickering).
12760 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
12761 (Clare Macrae).
12763 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
12765 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
12766 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
12767 readers return a pair of a `Pandoc` document and a `MediaBag` with
12768 the media resources they contain. This can be extracted using
12769 `--extract-media`. Writers that incorporate media (PDF, Docx,
12770 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
12771 for resources in the `MediaBag` generated by the reader, in addition to
12772 the file system or web.
12774 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
12775 Renamed `readTeXMath'` to `texMathToInlines`.
12777 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
12778 `readers` now associates names of readers with `Reader`
12779 structures. This allows inclusion of readers, like the docx
12780 reader, that take binary rather than textual input.
12782 * `Text.Pandoc.Shared`:
12784 + Added `capitalize` (Artyom Kazak), and replaced uses of
12785 `map toUpper` (which give bad results for many languages).
12786 + Added `collapseFilePath`, which removes intermediate `.` and
12787 `..` from a path (Matthew Pickering).
12788 + Added `fetchItem'`, which works like `fetchItem` but searches
12789 a `MediaBag` before looking on the net or file system.
12790 + Added `withTempDir`.
12791 + Added `removeFormatting`.
12792 + Added `extractSpaces` (from HTML reader) and generalized its type
12793 so that it can be used by the docx reader (Matthew Pickering).
12794 + Added `ordNub`.
12795 + Added `normalizeInlines`, `normalizeBlocks`.
12796 + `normalize` is now `Pandoc -> Pandoc` instead of
12797 `Data a :: a -> a`. Some users may need to change their uses of
12798 `normalize` to the newly exported `normalizeInlines` or
12799 `normalizeBlocks`.
12801 * `Text.Pandoc.Options`:
12803 + Added `writerMediaBag` to `WriterOptions`.
12804 + Removed deprecated and no longer used `readerStrict` in
12805 `ReaderOptions`. This is handled by `readerExtensions` now.
12806 + Added `Ext_compact_definition_lists`.
12807 + Added `Ext_epub_html_exts`.
12808 + Added `Ext_native_divs` and `Ext_native_spans`.
12809 This allows users to turn off the default pandoc behavior of
12810 parsing contents of div and span tags in markdown and HTML
12811 as native pandoc Div blocks and Span inlines.
12813 * `Text.Pandoc.Parsing`:
12815 + Generalized `readWith` to `readWithM` (Matthew Pickering).
12816 + Export `runParserT` and `Stream` (Matthew Pickering).
12817 + Added `HasQuoteContext` type class (Matthew Pickering).
12818 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
12819 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
12820 `applyMacros` (Matthew Pickering).
12821 + Added custom `token` (Matthew Pickering).
12822 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
12823 track of the ending tag we're waiting for when we're parsing inside
12824 HTML block tags.
12825 + Added `stateMarkdownAttribute` to `ParserState`. This is used
12826 to keep track of whether the markdown attribute has been set in
12827 an enclosing tag.
12828 + Generalized type of `registerHeader`, using new type classes
12829 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
12830 Pickering). These allow certain common functions to be reused
12831 even in parsers that use custom state (instead of `ParserState`),
12832 such as the MediaWiki reader.
12833 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
12834 and generalized their types (Matthew Pickering).
12836 * `Text.Pandoc.Pretty`:
12838 + Added `nestle`.
12839 + Added `blanklines`, which guarantees a certain number of blank lines
12840 (and no more).
12842### Bug fixes
12844 * Markdown reader:
12846 + Fixed parsing of indented code in list items. Indented code
12847 at the beginning of a list item must be indented eight spaces
12848 from the margin (or edge of the container), or four spaces
12849 from the list marker, whichever is greater.
12850 + Fixed small bug in HTML parsing with `markdown_attribute`, which
12851 caused incorrect tag nesting for input like
12852 `<aside markdown="1">*hi*</aside>`.
12853 + Fixed regression with intraword underscores (#1121).
12854 + Improved parsing of inline links containing quote characters (#1534).
12855 + Slight rewrite of `enclosure`/`emphOrStrong` code.
12856 + Revamped raw HTML block parsing in markdown (#1330).
12857 We no longer include trailing spaces and newlines in the
12858 raw blocks. We look for closing tags for elements (but without
12859 backtracking). Each block-level tag is its own `RawBlock`;
12860 we no longer try to consolidate them (though `--normalize` will do so).
12861 + Combine consecutive latex environments. This helps when you have
12862 two minipages which can't have blank lines between them (#690, #1196).
12863 + Support smallcaps through span.
12864 `<span style="font-variant:small-caps;">foo</span>` will be
12865 parsed as a `SmallCaps` inline, and will work in all output
12866 formats that support small caps (#1360).
12867 + Prevent spurious line breaks after list items (#1137). When the
12868 `hard_line_breaks` option was specified, pandoc would formerly
12869 produce a spurious line break after a tight list item.
12870 + Fixed table parsing bug (#1333).
12871 + Handle `c++` and `objective-c` as language identifiers in
12872 github-style fenced blocks (#1318).
12873 + Inline math must have nonspace before final `$` (#1313).
12875 * LaTeX reader:
12877 + Handle comments at the end of tables. This resolves the issue
12878 illustrated in <http://stackoverflow.com/questions/24009489>.
12879 + Correctly handle table rows with too few cells. LaTeX seems to
12880 treat them as if they have empty cells at the end (#241).
12881 + Handle leading/trailing spaces in `\emph` better.
12882 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
12883 so that we don't get things like `* hi *` in markdown output.
12884 Also applies to `textbf` and some other constructions (#1146).
12885 + Don't assume preamble doesn't contain environments (#1338).
12886 + Allow (and discard) optional argument for `\caption` (James Aspnes).
12888 * HTML reader:
12890 + Fixed major parsing problem with HTML tables. Table cells were
12891 being combined into one cell (#1341).
12892 + Fixed performance issue with malformed HTML tables.
12893 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
12894 + Allow space between `<col>` and `</col>`.
12895 + Added `audio` and `source` in `eitherBlockOrInline`.
12896 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
12897 `blockTags` to `eitherBlockOrInline`.
12898 + `map` and `object` were mistakenly in both lists; they have been removed
12899 from `blockTags`.
12900 + Ignore `DOCTYPE` and `xml` declarations.
12902 * MediaWiki reader:
12904 + Don't parse backslash escapes inside `<source>` (#1445).
12905 + Tightened up template parsing.
12906 The opening `{{` must be followed by an alphanumeric or `:`.
12907 This prevents the exponential slowdown in #1033.
12908 + Support "Bild" for images.
12910 * DocBook reader:
12912 + Better handle elements inside code environments. Pandoc's document
12913 model does not allow structure inside code blocks, but at least this way
12914 we preserve the text (#1449).
12915 + Support `<?asciidoc-br?>` (#1236).
12917 * Textile reader:
12919 + Fixed list parsing. Lists can now start without an intervening
12920 blank line (#1513).
12921 + HTML block-level tags that do not start a line are parsed as
12922 inline HTML and do not interrupt paragraphs (as in RedCloth).
12924 * Org reader:
12926 + Make tildes create inline code (#1345). Also relabeled `code` and
12927 `verbatim` parsers to accord with the org-mode manual.
12928 + Respect `:exports` header argument in code blocks (Craig Bosma).
12929 + Fixed tight lists with sublists (#1437).
12931 * EPUB writer:
12933 + Avoid excess whitespace in `nav.xhtml`. This should improve
12934 TOC view in iBooks (#1392).
12935 + Fixed regression on cover image.
12936 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
12937 because the metadata id was not correct. Now we derive the id from the
12938 actual cover image filename, which we preserve rather than using
12939 "cover-image."
12940 + Keep newlines between block elements. This allows
12941 easier diff-ability (#1424).
12942 + Use `stringify` instead of custom `plainify`.
12943 + Use `renderTags'` for all tag rendering. This properly handles tags
12944 that should be self-closing. Previously `<hr/>` would appear in EPUB
12945 output as `<hr></hr>` (#1420).
12946 + Better handle HTML media tags.
12947 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
12948 can have only one dc:date, so only the first one is used.
12950 * LaTeX writer:
12952 + Correctly handle figures in notes. Notes can't contain figures in
12953 LaTeX, so we fake it to avoid an error (#1053).
12954 + Fixed strikeout + highlighted code (#1294).
12955 Previously strikeout highlighted code caused an error.
12957 * ConTeXt writer:
12959 + Improved detection of autolinks with URLs containing escapes.
12961 * RTF writer:
12963 + Improved image embedding: `fetchItem'` is now used to get the
12964 images, and calculated image sizes are indicated in the RTF.
12965 + Avoid extra paragraph tags in metadata (#1421).
12967 * HTML writer:
12969 + Deactivate "incremental" inside slide speaker notes (#1394).
12970 + Don't include empty items in the table of contents for
12971 slide shows. (These would result from creating a slide
12972 using a horizontal rule.)
12974 * MediaWiki writer:
12976 + Minor renaming of `st` prefixed names.
12978 * AsciiDoc writer:
12980 + Double up emphasis and strong emphasis markers in intraword
12981 contexts, as required by asciidoc (#1441).
12983 * Markdown writer:
12985 + Avoid wrapping that might start a list, blockquote, or header (#1013).
12986 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
12987 + Don't use braced attributes for fenced code (#1416).
12988 If `Ext_fenced_code_attributes` is not set, the first class
12989 attribute will be printed after the opening fence as a bare word.
12990 + Separate adjacent lists of the same kind with an HTML comment (#1458).
12992 * PDF writer:
12994 + Fixed treatment of data uris for images (#1062).
12996 * Docx writer:
12998 + Use Compact style for empty table cells (#1353).
12999 Otherwise we get overly tall lines when there are empty
13000 table cells and the other cells are compact.
13001 + Create overrides per-image for `media/` in reference docx.
13002 This should be somewhat more robust and cover more types of images.
13003 + Improved `entryFromArchive` to avoid an unneeded parse.
13004 + Section numbering carries over from reference.docx (#1305).
13005 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
13006 we assign numbers based on the list marker styles.
13008 * `Text.Pandoc.Options`:
13010 + Removed `Ext_fenced_code_attributes` from `markdown_github`
13011 extensions.
13013 * `Text.Pandoc.ImageSize`:
13015 + Use default instead of failing if image size not found
13016 in exif header (#1358).
13017 + ignore unknown exif header tag rather than crashing.
13018 Some images seem to have tag type of 256, which was causing
13019 a runtime error.
13021 * `Text.Pandoc.Shared`:
13023 + `fetchItem`: unescape URI encoding before reading local file (#1427).
13024 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
13025 doing mime lookup, to improve mime type guessing.
13026 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
13027 other things are treated as relative URIs if `sourceURL` is `Just _`,
13028 otherwise as file paths on the local file system.
13029 + `fetchItem` now properly handles links without a protocol (#1477).
13030 + `fetchItem` now escapes characters not allowed in URIs before trying
13031 to parse the URIs.
13032 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
13034 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
13035 needed to resolve relative URLs when we fetch resources (#750).
13037 * `Text.Pandoc.Parsing`
13039 + Simplified `dash` and `ellipsis` (#1419).
13040 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
13041 + Generalized functions to use `ParsecT` (Matthew Pickering).
13042 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
13043 Pickering).
13045### Template changes
13047 * Added haddock template.
13048 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
13049 be "advisory" in HTML5, but kindlegen seems to require them.
13050 * EPUB3: Put title page in section with `epub:type="titlepage"`.
13051 * LaTeX: Made `\subtitle` work properly (#1327).
13052 * LaTeX/Beamer: remove conditional around date (#1321).
13053 * LaTeX: Added `lot` and `lof` variables, which can be set to
13054 get `\listoftables` and `\listoffigures` (#1407). Note that
13055 these variables can be set at the command line with `-Vlot -Vlof`
13056 or in YAML metadata.
13058### Under the hood improvements
13060 * Rewrote normalize for efficiency (#1385).
13062 * Rewrote Haddock reader to use `haddock-library` (#1346).
13064 + This brings pandoc's rendering of haddock markup in line
13065 with the new haddock.
13066 + Fixed line breaks in `@` code blocks.
13067 + alex and happy are no longer build-depends.
13069 * Added `Text.Pandoc.Compat.Directory` to allow building against
13070 different versions of the `directory` library.
13072 + Added `Text.Pandoc.Compat.Except` to allow building against
13073 different versions of `mtl`.
13075 * Code cleanup in some writers, using Reader monad to avoid
13076 passing options parameter around (Matej Kollar).
13078 * Improved readability in `pandoc.hs`.
13080 * Miscellaneous code cleanups (Artyom Kazak).
13082 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
13083 Thompson).
13085 * Changed `http-conduit` flag to `https`. Depend on `http-client`
13086 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
13087 depends on `conduit` via `yaml`.)
13089 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
13090 This change to highlighting-kate means that PHP fragments no longer need
13091 to start with `<?php`. It also fixes a serious bug causing failures with
13092 ocaml and fsharp.
13094 * Require latest `texmath`. This fixes `\tilde{E}` and allows
13095 `\left` to be used with `]`, `)` etc. (#1319), among many other
13096 improvements.
13098 * Require latest `zip-archive`. This has fixes for unicode path names.
13100 * Added tests for plain writer.
13102 * `Text.Pandoc.Templates`:
13104 + Fail informatively on template syntax errors.
13105 With the move from parsec to attoparsec, we lost good error
13106 reporting. In fact, since we weren't testing for end of input,
13107 malformed templates would fail silently. Here we revert back to
13108 Parsec for better error messages.
13109 + Use `ordNub` (#1022).
13111 * Benchmarks:
13113 + Made benchmarks compile again (Artyom Kazak).
13114 + Fixed so that the failure of one benchmark does not prevent others
13115 from running (Artyom Kazak).
13116 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
13117 + Changed benchmark to use only the test suite, so that benchmarks
13118 run more quickly.
13120 * Windows build script:
13122 + Add `-windows` to file name.
13123 + Use one install command for pandoc, pandoc-citeproc.
13124 + Force install of pandoc-citeproc.
13126 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
13127 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
13128 will extract it into a folder named `SOMETHING.pkg`, which it
13129 will interpret as a defective package (#1308).
13131 * `README`:
13133 + Made headers for all extensions so they have IDs and can be
13134 linked to (Beni Cherniavsky-Paskin).
13135 + Fixed typos (Phillip Alday).
13136 + Fixed documentation of attributes (#1315).
13137 + Clarified documentation on small caps (#1360).
13138 + Better documentation for `fenced_code_attributes` extension
13139 (Caleb McDaniel).
13140 + Documented fact that you can put YAML metadata in a separate file
13141 (#1412).
13144## pandoc 1.12.4.2 (2014-05-14)
13146 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
13148 * Shared: `addMetaValue` now behaves slightly differently:
13149 if both the new and old values are lists, it concatenates their
13150 contents to form a new list.
13152 * LaTeX reader:
13154 + Set `bibliography` in metadata from `\bibliography` or
13155 `\addbibresource` command.
13156 + Don't error on `%foo` with no trailing newline.
13158 * Org reader:
13160 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
13161 + Fix parsing of blank lines within blocks (Albert Krewinkel).
13162 + Support pandoc citation extension (Albert Krewinkel). This can
13163 be turned off by specifying `org-citation` as the input format.
13165 * Markdown reader:
13167 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
13168 other readers (Albert Krewinkel).
13170 * `Text.Pandoc.Parsing`:
13172 + Added `citeKey` (see above).
13173 + Added `HasLastStrPosition` type class and `updateLastStrPos`
13174 and `notAfterString` functions.
13176 * Updated copyright notices (Albert Krewinkel).
13178 * Added default.icml to data files so it installs with the package.
13180 * OSX package:
13182 + The binary is now built with options to ensure that it can be
13183 used with OSX 10.6+.
13184 + Moved OSX package materials to osx directory.
13185 + Added OSX package uninstall script, included in the zip container
13186 (thanks to Daniel T. Staal).
13188## pandoc 1.12.4 (2014-05-07)
13190 * Made it possible to run filters that aren't executable
13191 (#1096). Pandoc first tries to find the executable (searching
13192 the path if path isn't given). If it fails, but the file
13193 exists and has a `.py`, `.pl`, `.rb`, `.hs`, or `.php`
13194 extension, pandoc runs the filter using the appropriate
13195 interpreter. This should make it easier to use filters on
13196 Windows, and make it more convenient for everyone.
13198 * Added Emacs org-mode reader (Albert Krewinkel).
13200 * Added InDesign ICML Writer (mb21).
13202 * MediaWiki reader:
13204 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
13205 + Fixed bug in certain nested lists (#1213). If a level 2 list was
13206 followed by a level 1 list, the first item of the level 1 list
13207 would be lost.
13208 + Handle table rows containing just an HTML comment (#1230).
13210 * LaTeX reader:
13212 + Give better location information on errors, pointing to line
13213 numbers within included files (#1274).
13214 + LaTeX reader: Better handling of `table` environment (#1204).
13215 Positioning options no longer rendered verbatim.
13216 + Better handling of figure and table with caption (#1204).
13217 + Handle `@{}` and `p{length}` in tabular. The length is not actually
13218 recorded, but at least we get a table (#1180).
13219 + Properly handle `\nocite`. It now adds a `nocite` metadata
13220 field. Citations there will appear in the bibliography but not
13221 in the text (unless you explicitly put a `$nocite$` variable
13222 in your template).
13224 * Markdown reader:
13226 + Ensure that whole numbers in YAML metadata are rendered without
13227 decimal points. (This became necessary with changes to aeson
13228 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
13229 + Fixed regression on line breaks in strict mode (#1203).
13230 + Small efficiency improvements.
13231 + Improved parsing of nested `div`s. Formerly a closing `div` tag
13232 would be missed if it came right after other block-level tags.
13233 + Avoid backtracking when closing `</div>` not found.
13234 + Fixed bug in reference link parsing in `markdown_mmd`.
13235 + Fixed a bug in list parsing (#1154). When reading a raw list
13236 item, we now strip off up to 4 spaces.
13237 + Fixed parsing of empty reference link definitions (#1186).
13238 + Made one-column pipe tables work (#1218).
13240 * Textile reader:
13242 + Better support for attributes. Instead of being ignored, attributes
13243 are now parsed and included in Span inlines. The output will be a bit
13244 different from stock textile: e.g. for `*(foo)hi*`, we'll get
13245 `<em><span class="foo">hi</span></em>` instead of
13246 `<em class="foo">hi</em>`. But at least the data is not lost.
13247 + Improved treatment of HTML spans (%) (#1115).
13248 + Improved link parsing. In particular we now pick up on attributes.
13249 Since pandoc links can't have attributes, we enclose the whole link in
13250 a span if there are attributes (#1008).
13251 + Implemented correct parsing rules for inline markup (#1175, Matthew
13252 Pickering).
13253 + Use Builder (Matthew Pickering).
13255 * DocBook reader:
13257 + Better treatment of `formalpara`. We now emit the title (if present)
13258 as a separate paragraph with boldface text (#1215).
13259 + Set metadata `author` not `authors`.
13260 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
13261 Matthew Pickering).
13262 + Converted current meta information parsing in DocBook to a more
13263 extensible version which is aware of the more recent meta
13264 representation (Matthew Pickering).
13266 * HTML reader:
13268 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
13269 (#1248).
13270 + Treat processing instructions & declarations as block. Previously
13271 these were treated as inline, and included in paragraph tags in HTML
13272 or DocBook output, which is generally not what is wanted (#1233).
13273 + Updated `closes` with rules from HTML5 spec.
13274 + Use Builder (Matthew Pickering, #1162).
13276 * RST reader:
13278 + Remove duplicate `http` in PEP links (Albert Krewinkel).
13279 + Make rst figures true figures (#1168, CasperVector)
13280 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
13281 rST parser now supports: all built-in rST roles, new role definition,
13282 role inheritance, though with some limitations.
13283 + Use `author` rather than `authors` in metadata.
13284 + Better handling of directives. We now correctly handle field
13285 lists that are indented more than three spaces. We treat an
13286 `aafig` directive as a code block with attributes, so it can be
13287 processed in a filter (#1212).
13289 * LaTeX writer:
13291 + Mark span contents with label if span has an ID (Albert Krewinkel).
13292 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
13293 + Handle line breaks in simple table cells (#1217).
13294 + Workaround for level 4-5 headers in quotes. These previously produced
13295 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
13296 This adds an `mbox{}` in these contexts to work around the problem.
13297 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
13298 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
13299 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
13300 ligature with LuaLaTeX but `\/` does.
13301 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
13303 * ConTeXt writer: Improved autolinks (#1270).
13305 * DocBook writer:
13307 + Improve handling of hard line breaks in Docbook writer
13308 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
13309 just for the newline character.
13310 + Don't let line breaks inside footnotes influence the enclosing
13311 paragraph (Neil Mayhew).
13312 + Distinguish tight and loose lists in DocBook output, using
13313 `spacing="compact"` (Neil Mayhew, #1250).
13315 * Docx writer: When needed files are not present in the user's
13316 `reference.docx`, fall back on the versions in the `reference.docx`
13317 in pandoc's data files. This fixes a bug that occurs when a
13318 `reference.docx` saved by LibreOffice is used. (#1185)
13320 * EPUB writer:
13322 + Include extension in epub ids. This fixes a problem with duplicate
13323 extensions for fonts and images with the same base name but different
13324 extensions (#1254).
13325 + Handle files linked in raw `img` tags (#1170).
13326 + Handle media in `audio` source tags (#1170).
13327 Note that we now use a `media` directory rather than `images`.
13328 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
13329 will both be incorporated into `content.opf` and the epub container.
13331 * HTML writer:
13333 + Add colgroup around col tags (#877). Also affects EPUB writer.
13334 + Fixed bug with unnumbered section headings. Unnumbered section
13335 headings (with class `unnumbered`) were getting numbers.
13336 + Improved detection of image links. Previously image links with
13337 queries were not recognized, causing `<embed>` to be used instead
13338 of `<img>`.
13340 * Man writer: Ensure that terms in definition lists aren't line wrapped
13341 (#1195).
13343 * Markdown writer:
13345 + Use proper escapes to avoid unwanted lists (#980). Previously we used
13346 0-width spaces, an ugly hack.
13347 + Use longer backtick fences if needed (#1206). If the content contains a
13348 backtick fence and there are attributes, make sure longer fences are
13349 used to delimit the code. Note: This works well in pandoc, but github
13350 markdown is more limited, and will interpret the first string of three
13351 or more backticks as ending the code block.
13353 * RST writer: Avoid stack overflow with certain tables (#1197).
13355 * RTF writer: Fixed table cells containing paragraphs.
13357 * Custom writer:
13359 + Correctly handle UTF-8 in custom lua scripts (#1189).
13360 + Fix bugs with lua scripts with mixed-case filenames and
13361 paths containing `+` or `-` (#1267). Note that `getWriter`
13362 in `Text.Pandoc` no longer returns a custom writer on input
13363 `foo.lua`.
13365 * AsciiDoc writer: Handle multiblock and empty table cells
13366 (#1245, #1246). Added tests.
13368 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
13370 * `Text.Pandoc.Shared`:
13372 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
13373 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
13374 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
13375 Jesse Rosenthal.
13376 + `openURL`: set proxy with value of http_proxy env variable (#1211).
13377 Note: proxies with non-root paths are not supported, due to
13378 limitations in `http-conduit`.
13380 * `Text.Pandoc.PDF`:
13382 + Ensure that temp directories deleted on Windows (#1192). The PDF is
13383 now read as a strict bytestring, ensuring that process ownership will
13384 be terminated, so the temp directory can be deleted.
13385 + Use `/` as path separators in a few places, even on Windows.
13386 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
13387 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
13388 + Changes to error reporting, to handle non-UTF8 error output.
13390 * `Text.Pandoc.Templates`:
13392 + Removed unneeded datatype context (Merijn Verstraaten).
13394 + YAML objects resolve to "true" in conditionals (#1133).
13395 Note: If `address` is a YAML object and you just have `$address$`
13396 in your template, the word `true` will appear, which may be
13397 unexpected. (Previously nothing would appear.)
13399 * `Text.Pandoc.SelfContained`: Handle `poster` attribute in `video`
13400 tags (#1188).
13402 * `Text.Pandoc.Parsing`:
13404 + Made `F` an instance of Applicative (#1138).
13405 + Added `stateCaption`.
13406 + Added `HasMacros`, simplified other typeclasses.
13407 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
13408 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
13409 + Changed the smart punctuation parser to return `Inlines`
13410 rather than `Inline` (Matthew Pickering).
13411 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
13412 from typeclasses of monads to typeclasses of states. This simplifies
13413 the instance definitions and provides more flexibility. Generalized
13414 type of `getOption` and added a default definition. Removed
13415 `askReaderOption`. Added `extractReaderOption`. Added
13416 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
13417 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
13418 `modifyHeaderMap`. Added `extractIdentifierList` and
13419 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
13420 for `getIdentifierList`, `putIdentifierList`, and
13421 `modifyIdentifierList`. The ultimate goal here is to allow different
13422 parsers to use their own, tailored parser states (instead of
13423 `ParserState`) while still using shared functions.
13425 * Template changes:
13427 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
13428 + LaTeX template: Add `linestretch` and `fontfamily` variables.
13429 + LaTeX template: Conditionalize author and date commands.
13430 + Beamer template: Consistent styles for figure and table captions
13431 (aaronwolen).
13432 + LaTeX and beamer template: Adjust widths correctly for oversized
13433 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
13434 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
13435 `upquote` only after `fontenc` (Yihui Xie).
13436 + Beamer template: Added caption package (#1200).
13437 + Beamer template: changes for better unicode handling (KarolS).
13438 + DocBook template: use `authorgroup` if there are authors.
13439 + revealjs template: Move `include-after` to end (certainlyakey).
13440 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
13442 * Bumped version bounds of dependencies.
13444 * Added a `--trace` command line option, for debugging backtracking
13445 bugs. So far this only works with the markdown reader.
13447 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
13449 * Updated travis script to test with multiple GHC versions.
13451 * Force failure of a Travis build if GHC produces warnings (Albert
13452 Krewinkel).
13454 * Add `.editorconfig` (Albert Krewinkel).
13455 See <http://editorconfig.org/> for details.
13457 * Give more useful error message if '-t pdf' is specified (#1155).
13459 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
13461 * Allow `html4` as a synonym of `html` as a reader (it already works
13462 as a writer).
13464 * README:
13466 + Added an explanation of how to use YAML metadata to
13467 force items to appear in the bibliography without citations in
13468 the text (like LaTeX `\nocite`).
13469 + Added note to `--bibtex/--natbib`: not for use in making PDF
13470 (#1194, thanks to nahoj).
13471 + Added explanatory notes about `--natbib` and `--biblatex`.
13472 + Added specification of legal syntax for citation keys.
13473 + Fixed variable defaults documentation (Albert Krewinkel).
13475 * Removed copyright statements for files that have been removed
13476 (Albert Krewinkel).
13478 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
13479 They aren't needed at runtime. We keep README and COPYRIGHT in data
13480 to ensure that they'll be available on all systems on which pandoc
13481 is installed.
13483 * Use cabal sandboxes in Windows build script.
13485## pandoc 1.12.3.3 (2014-02-03)
13487 * To changes to source; recompiled tarball with latest alex and
13488 happy, so they will work with GHC 7.8.
13490## pandoc 1.12.3.2 (2014-02-03)
13492 * Bumped version bounds for blaze-html, blaze-markup.
13494 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
13495 (#1124).
13497 * Fixed mediawiki ordered list parsing (#1122).
13499 * HTML reader: Fixed bug reading inline math with `$$` (#225).
13501 * Added support for LaTeX style literate Haskell code blocks in rST
13502 (Merijn Verstraaten).
13504## pandoc 1.12.3.1 (2014-01-14)
13506 * Relaxed version constraint on binary, allowing the use of binary 0.5.
13509## pandoc 1.12.3 (2014-01-10)
13511 * The `--bibliography` option now sets the `biblio-files` variable.
13512 So, if you're using `--natbib` or `--biblatex`, you can just use
13513 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
13515 * Don't run pandoc-citeproc filter if `--bibliography` is
13516 used together with `--natbib` or `--biblatex` (Florian Eitel).
13518 * Template changes:
13520 + Updated beamer template to include booktabs.
13521 + Added `abstract` variable to LaTeX template.
13522 + Put `header-includes` after `title` in LaTeX template (#908).
13523 + Allow use of `\includegraphics[size]` in beamer.
13524 This just required porting a macro definition from the default
13525 LaTeX template to the default beamer template.
13527 * `reference.docx`: Include `FootnoteText` style.
13528 Otherwise Word ignores the style, even when specified in the `pPr`.
13529 (#901)
13531 * `reference.odt`: Tidied `styles.xml`.
13533 * Relaxed version bounds for dependencies.
13535 * Added `withSocketsDo` around http conduit code in `openURL`,
13536 so it works on Windows (#1080).
13538 * Added `Cite` function to `sample.lua`.
13540 * Markdown reader:
13542 + Fixed regression in title blocks (#1089).
13543 If author field was empty, date was being ignored.
13544 + Allow backslash-newline hard line breaks in grid and
13545 multiline table cells.
13546 + Citation keys may now start with underscores, and may contain
13547 underscores adjacent to internal punctuation.
13549 * LaTeX reader:
13551 + Add support for `Verb` macro (jrnold) (#1090).
13552 + Support babel-style quoting: `` "`..."' ``.
13554 * Properly handle script blocks in strict mode. (That is,
13555 `markdown-markdown_in_html_blocks`.) Previously a spurious
13556 `<p>` tag was being added (#1093).
13558 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
13559 elements.
13561 * LaTeX writer:
13563 + Factored out function for table cell creation.
13564 + Better treatment of footnotes in tables.
13565 Notes now appear in the regular sequence, rather than in the
13566 table cell. (This was a regression in 1.10.)
13568 * HTML reader: Parse name/content pairs from meta tags as metadata.
13569 Closes #1106.
13571 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
13573 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
13575 * ODT writer: Use mathml for proper rendering of formulas.
13576 Note: LibreOffice's support for this seems a bit buggy. But
13577 it should be better than what we had before.
13579 * RST writer: Ensure no blank line after def in definition list (#992).
13581 * Markdown writer: Don't use tilde code blocks with braced attributes in
13582 `markdown_github` output. A consequence of this change is that the
13583 backtick form will be preferred in general if both are enabled. That
13584 is good, as it is much more widespread than the tilde form. (#1084)
13586 * Docx writer: Fixed problem with some modified reference docx files.
13587 Include `word/_rels/settings.xml.rels` if it exists, as well as other
13588 `rels` files besides the ones pandoc generates explicitly.
13590 * HTML writer:
13592 + With `--toc`, headers no longer link to themselves (#1081).
13593 + Omit footnotes from TOC entries. Otherwise we get doubled
13594 footnotes when headers have notes!
13596 * EPUB writer:
13598 + Avoid duplicate notes when headings contain notes.
13599 This arose because the headings are copied into the metadata
13600 "title" field, and the note gets rendered twice. We strip the
13601 note now before putting the heading in "title".
13602 + Strip out footnotes from toc entries.
13603 + Fixed bug with `--epub-stylesheet`. Now the contents of
13604 `writerEpubStylesheet` (set by `--epub-stylesheet`)
13605 should again work, and take precedence over a stylesheet specified
13606 in the metadata.
13608 * `Text.Pandoc.Pretty`: Added `nestle`. API change.
13610 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
13612 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
13613 with `//`.
13615 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
13616 we could only get size information for JFIF format, which led
13617 to squished images in Word documents. Closes #976.
13619 * Removed old `MarkdownTest_1.0.3` directory (#1104).
13622## pandoc 1.12.2.1 (2013-12-08)
13624 * Markdown reader: Fixed regression in list parser, involving
13625 continuation lines containing raw HTML (or even verbatim raw HTML).
13627## pandoc 1.12.2 (2013-12-07)
13629 * Metadata may now be included in YAML blocks in a markdown document.
13630 For example,
13632 ---
13633 title:
13634 - type: main
13635 text: My Book
13636 - type: subtitle
13637 text: An investigation of metadata
13638 creator:
13639 - role: author
13640 text: John Smith
13641 - role: editor
13642 text: Sarah Jones
13643 identifier:
13644 - scheme: DOI
13645 text: doi:10.234234.234/33
13646 publisher: My Press
13647 rights: (c) 2007 John Smith, CC BY-NC
13648 cover-image: img/mypic.jpg
13649 stylesheet: style.css
13650 ...
13652 Metadata may still be provided using `--epub-metadata`; it will
13653 be merged with the metadata in YAML blocks.
13655 * EPUB writer:
13657 + `meta` tags are now used instead of `opf` attributes for EPUB3.
13658 + Insert "svg" property as needed in opf (EPUB 3).
13659 + Simplify `imageTypeOf` using `getMimeType`.
13660 + Add properties attribute to `cover-image` item for EPUB 3.
13661 + Don't include node for `cover.xhtml` if no cover!
13662 + Ensure that same identifier is used throughout (#1044).
13663 If an identifier is given in metadata, we use that; otherwise
13664 we generate a random uuid.
13665 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
13666 Fixes an issue with Calibre putting the cover at the end of the book
13667 if the spine has `linear="no"`. Apparently this is best practice
13668 for other converters as well:
13669 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
13670 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
13671 + Allow partial dates: `YYYY`, `YYYY-MM`.
13673 * Markdown writer: Fix rendering of tight sublists (#1050).
13674 Previously a spurious blank line was included after a tight sublist.
13676 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
13677 This is reported to be necessary to avoid an error from recent
13678 versions of Libre Office when files contain more than one image
13679 Thanks to wmanley for reporting and diagnosing the problem.
13681 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
13682 Instead, let this be set in the template, using `\setupfloat`.
13683 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
13685 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
13687 * Fixed bug with markdown intraword emphasis. Closes #1066.
13689 * Docbook writer: Hierarchicalize block content in metadata.
13690 Previously headers just disappeared from block-level metadata
13691 when it was used in templates. Now we apply the 'hierarchicalize'
13692 transformation. Note that a block headed by a level-2 header will
13693 turn into a `<sect1>` element.
13695 * OpenDocument writer: Skip raw HTML (#1035).
13696 Previously it was erroneously included as verbatim text.
13698 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
13699 This allows better control of formatting, since the `<a>`
13700 tags have a distinguishing class (#1049).
13702 * Docx writer:
13704 + Use mime type info returned by fetchItem.
13705 + Fixed core metadata (#1046).
13706 Don't create empty date nodes if no date given.
13707 Don't create multiple `dc:creator` nodes; instead separate by
13708 semicolons.
13709 + Fix URL for core-properties in `_rels/.rels` (#1046).
13711 * Plain writer: don't print `<span>` tags.
13713 * LaTeX writer:
13715 + Fix definition lists with internal links in terms (#1032).
13716 This fix puts braces around a term that contains an internal
13717 link, to avoid problems with square brackets.
13718 + Properly escape pdftitle, pdfauthor (#1059).
13719 + Use booktabs package for tables (thanks to Jose Luis Duran).
13721 * Updated beamer template. Now references should work properly
13722 (in a slide) when `--biblatex` or `--natbib` is used.
13724 * LaTeX reader:
13726 + Parse contents of curly quotes or matched `"` as quotes.
13727 + Support `\textnormal` as span with class `nodecor`.
13728 This is needed for pandoc-citeproc.
13729 + Improved citation parsing. This fixes a run-time error that occurred
13730 with `\citet{}` (empty list of keys). It also ensures that empty keys
13731 don't get produced.
13733 * MediaWiki reader: Add automatic header identifiers.
13735 * HTML reader:
13737 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
13738 `--parse-raw`.
13739 + Recognize `svg` tags as block level content (thanks to MinRK).
13740 + Parse LaTeX math if appropriate options are set.
13742 * Markdown reader:
13744 + Yaml block must start immediately after `---`. If there's a blank
13745 line after `---`, we interpreted it as a horizontal rule.
13746 + Correctly handle empty bullet list items.
13747 + Stop parsing "list lines" when we hit a block tag.
13748 This fixes exponential slowdown in certain input, e.g.
13749 a series of lists followed by `</div>`.
13751 * Slides: Preserve `<div class="references">` in references slide.
13753 * `Text.Pandoc.Writer.Shared`:
13755 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
13756 attributes, leading to invalid HTML.
13757 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
13758 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
13759 encoded bytestring was returned. We now decode it so it's a proper
13760 image!
13762 * DocBook reader: Handle numerical attributes starting with decimal.
13763 Also use `safeRead` instead of `read`.
13765 * `Text.Pandoc.Parsing`:
13767 + Generalized type of `registerHeader`, using new type classes
13768 `HasReadeOptions`, `HasIdentifierList`, `HasHeaderMap`.
13769 These allow certain common functions to be reused
13770 even in parsers that use custom state (instead of `ParserState`),
13771 such as the MediaWiki reader.
13772 + Moved inlineMath, displayMath from Markdown reader to Parsing.
13773 Generalize their types and export them from Parsing. (API change.)
13775 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
13776 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
13777 in all the writers. Require `texmath >= 0.6.5.2`.
13779 * `Text.Pandoc.MIME`:
13781 + Add entry for `jfif`.
13782 + In looking up extensions, drop the encoding info.
13783 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
13785 * Templates: Changed how array variables are resolved. Previously if
13786 `foo` is an array (which might be because multiple values were set on
13787 the command line), `$foo$` would resolve to the concatenation of the
13788 elements of foo. This is rarely useful behavior. It has been changed
13789 so that the first value is rendered. Of course, you can still iterate
13790 over the values using `$for(foo)$`. This has the result that you can
13791 override earlier settings using `-V` by putting new values later on the
13792 command line, which is useful for many purposes.
13794 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
13796 * Allow "epub2" as synonym for "epub", "html4" for "html".
13798 * Don't look for slidy files in data files with `--self-contained`.
13800 * Allow `https:` command line arguments to be downloaded.
13802 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
13804## pandoc 1.12.1 (2013-10-20)
13806 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
13807 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
13808 "c": "foo"}`. This new format is easier to work with outside of Haskell.
13809 Incidentally, "t" stands for "tag", "c" for "contents".
13811 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
13812 when converting to markdown (#1027).
13814 * LaTeX reader:
13816 + Ensure that preamble doesn't contribute to the text of
13817 the document.
13818 + Fixed character escaping in `\url{}`. Previously `\~` wasn't handled
13819 properly, among others.
13820 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
13821 bibtex titles, since we need to know what was protected from
13822 titlecase conversions.
13824 * LaTeX writer:
13826 + Specially escape non-ascii characters in labels.
13827 Otherwise we can get compile errors and other bugs when
13828 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
13829 + Add link anchors for code blocks with identifiers (#1025).
13831 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
13832 It allows fragments identifiers.
13834 * Slide formats:
13836 + A Div element with class "notes" is treated as speaker
13837 notes. Currently beamer goes to `\note{}`, revealjs to
13838 `<aside class="notes">`, and the notes are simply suppressed in
13839 other formats (#925).
13840 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
13841 The old version caused a pause to be inserted before the first
13842 material on a slide. This has been fixed.
13843 + Removed data files for s5, slideous, slidy.
13844 Users of s5 and slideous will have to download the needed
13845 files, as has been documented for some time in the README.
13846 By default, slidy code will be sought on the web, as before.
13848 * HTML writer: Insert command to typeset mathjax only in slideous output
13849 (#966, #1012).
13851 * RST writer: Skip spaces after display math. Otherwise we get indentation
13852 problems, and part of the next paragraph may be rendered as part of the
13853 math.
13855 * OpenDocument writer: Fix formatting of strikeout code (#995),
13856 thanks to wilx. don't use `font-face-decls` variable.
13858 * Fixed test suite so it works with cabal sandboxes.
13860## pandoc 1.12.0.2 (2013-09-20)
13862 * Removed an unused dependency (`stringable`) from pandoc.cabal.
13863 This will help packagers, but users should not need to upgrade.
13865## pandoc 1.12.0.1 (2013-09-20)
13867 * Allow `--metadata` to be repeated for the same key to form a list.
13868 This also has the effect that `--bibliography` can be repeated,
13869 as before.
13871 * Handle boolean values in `--metadata`. Note that anything not parseable
13872 as a YAML boolean or string is treated as a literal string.
13873 You can get a string value with "yes", or any of the strings interpretable
13874 as booleans, by quoting it:
13876 -M boolvalue=yes -M stringvalue='"yes"'
13878 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
13879 option used.
13881 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
13882 in which docx files could not be read by some versions of Word
13883 and LibreOffice (#990).
13885 * Fixed a regression involving slide shows with bibliographies.
13886 The Div container around references messed up the procedure for carving
13887 a document into slides. So we now remove the surrounding Div in
13888 `prepSlides`.
13890 * More informative error message when a filter is not found in path.
13892 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
13893 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
13895 * Don't use unicode_collation in building OSX package:
13896 it adds something like 50MB of dependencies to the package.
13898 * Declare alex and happy as build-tools (#986).
13900## pandoc 1.12 (2013-09-15)
13902### New features
13904 * Much more flexible metadata, including arbitrary fields and structured
13905 values. Metadata can be specified flexibly in pandoc markdown using
13906 YAML metadata blocks, which may occur anywhere in the document:
13908 ---
13909 title: Here is my title.
13910 abstract: |
13911 This is the abstract.
13913 1. It can contain
13914 2. block content
13915 and *inline markup*
13917 tags: [cat, dog, animal]
13918 ...
13920 Metadata fields automatically populate template variables.
13922 * Added `opml` (OPML) as input and output format. The `_note` attribute,
13923 used in OmniOutliner and supported by multimarkdown, is supported.
13924 We treat the contents as markdown blocks under a section header.
13926 * Added `haddock` (Haddock markup) as input format (David Lazar).
13928 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
13929 (Thanks to Jamie F. Olson for the initial patch.)
13930 Nested vertical stacks are used for hierarchical structure.
13931 Results for more than one level of nesting may be odd.
13933 * Custom writers can now be written in lua.
13935 pandoc -t data/sample.lua
13937 will load the script sample.lua and use it as a custom writer.
13938 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
13939 Note that pandoc embeds a lua interpreter, so lua need not be
13940 installed separately.
13942 * New `--filter/-F` option to make it easier to run "filters"
13943 (Pandoc AST transformations that operate on JSON serializations).
13944 Filters are always passed the name of the output format, so their
13945 behavior can be tailored to it. The repository
13946 <https://github.com/jgm/pandocfilters> contains
13947 a python module for writing pandoc filters in python, with
13948 a number of examples.
13950 * Added `--metadata/-M` option.
13951 This is like `--variable/-V`, but actually adds to metadata, not
13952 just variables.
13954 * Added `--print-default-data-file` option, which allows printing
13955 of any of pandoc's data files. (For example,
13956 `pandoc --print-default-data-file reference.odt` will print
13957 `reference.odt`.)
13959 * Added syntax for "pauses" in slide shows:
13961 This gives
13963 . . .
13965 me pause.
13967 * New markdown extensions:
13969 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
13970 rather than being treated as hard line breaks or spaces. This is useful
13971 for some East Asian languages, where spaces aren't used between words,
13972 but text is separated into lines for readability.
13973 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
13974 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
13975 only. (Default for `markdown_github`.) (#807)
13976 + `lists_without_preceding_blankline`: Allow lists to start without
13977 preceding blank space. (Default for `markdown_github`.) (#972)
13979### Behavior changes
13981 * `--toc-level` no longer implies `--toc`.
13982 Reason: EPUB users who don't want a visible TOC may still want
13983 to set the TOC level for in the book navigation.
13985 * `--help` now prints in and out formats in alphabetical order, and
13986 says something about PDF output (#720).
13988 * `--self-contained` now returns less verbose output (telling you
13989 which URLs it is fetching, but not giving the full header). In
13990 addition, there are better error messages when fetching a URL fails.
13992 * Citation support is no longer baked in to core pandoc. Users who
13993 need citations will need to install and use a separate filter
13994 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
13995 `csl`, and `citation-abbreviations` from the metadata, though it
13996 may still be specified on the command line as before.
13998 * A `Cite` element is now created in parsing markdown whether or not
13999 there is a matching reference.
14001 * The `pandoc-citeproc` script will put the bibliography at the
14002 end of the document, as before. However, it will be put inside a `Div`
14003 element with class "references", allowing users some control
14004 over the styling of references. A final header, if any, will
14005 be included in the `Div`.
14007 * The markdown writer will not print a bibliography if the
14008 `citations` extension is enabled. (If the citations are formatted
14009 as markdown citations, it is redundant to have a bibliography,
14010 since one will be generated automatically.)
14012 * Previously we used to store the directory of the first input file,
14013 even if it was local, and used this as a base directory for finding
14014 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
14015 users. So we now look for images relative to the current
14016 working directory, even if the first file argument is in another
14017 directory. Note that this change may break some existing workflows.
14018 If you have been assuming that relative links will be interpreted
14019 relative to the directory of the first file argument, you'll need
14020 to make that the current directory before running pandoc. (#942)
14022 * Better error reporting in some readers, due to changes in `readWith`:
14023 the line in which the error occurred is printed, with a caret pointing
14024 to the column.
14026 * All slide formats now support incremental slide view for definition lists.
14028 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
14029 Parse `:<math>...</math>` as display math. These notations are used with
14030 the MathJax MediaWiki extension.
14032 * All writers: template variables are set automatically from metadata
14033 fields. However, variables specified on the command line with
14034 `--variable` will completely shadow metadata fields.
14036 * If `--variable` is used to set many variables with the same name,
14037 a list is created.
14039 * Man writer: The `title`, `section`, `header`, and `footer` can now
14040 all be set individually in metadata. The `description` variable has been
14041 removed. Quotes have been added so that spaces are allowed in the
14042 title. If you have a title that begins
14044 COMMAND(1) footer here | header here
14046 pandoc will still parse it into a title, section, header, and
14047 footer. But you can also specify these elements explicitly (#885).
14049 * Markdown reader
14051 + Added support for YAML metadata blocks, which can come anywhere
14052 in the document (not just at the beginning). A document can contain
14053 multiple YAML metadata blocks.
14054 + HTML span and div tags are parsed as pandoc Span and Div elements.
14056 * Markdown writer
14058 + Allow simple tables to be printed as grid tables,
14059 if other table options are disabled. This means you can do
14060 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
14061 and all tables will render as grid tables.
14062 + Support YAML title block (render fields in alphabetical order
14063 to make output predictable).
14065### API changes
14067 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
14068 structured metadata. (Note: existing code that pattern-matches
14069 on `Meta` will have to be revised.) Metadata can now contain
14070 indefinitely many fields, with content that can be a string,
14071 a Boolean, a list of `Inline` elements, a list of `Block`
14072 elements, or a map or list of these.
14074 * A new generic block container (`Div`) has been added to `Block`,
14075 and a generic inline container (`Span`) has been added to `Inline`.
14076 These can take attributes. They will render in HTML, Textile,
14077 MediaWiki, Org, RST and Markdown (with `markdown_in_html`
14078 extension) as HTML `<div>` and `<span>` elements; in other formats
14079 they will simply pass through their contents. But they can be
14080 targeted by scripts.
14082 * `Format` is now a newtype, not an alias for String.
14083 Equality comparisons are case-insensitive.
14085 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
14086 functions that are much faster than the SYB functions from
14087 `Text.Pandoc.Generic`. These functions are now used where possible
14088 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
14089 match the generic traversals `bottomUp` and `queryWith`.)
14091 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
14092 instances for the basic pandoc types. They use GHC generics and
14093 should be faster than the old JSON serialization using
14094 `Data.Aeson.Generic`.
14096 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
14097 This is a souped-up version of `readProcessWithErrorcode` that
14098 uses lazy bytestrings instead of strings and allows setting
14099 environment variables. (Used in `Text.Pandoc.PDF`.)
14101 * New module `Text.Pandoc.Readers.OPML`.
14103 * New module `Text.Pandoc.Writers.OPML`.
14105 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
14106 This is based on Haddock's own lexer/parser.
14108 * New module `Text.Pandoc.Writers.Custom`.
14110 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
14111 Either, for better error handling.
14113 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
14115 * Removed `stripTags` from `Text.Pandoc.XML`.
14117 * `Text.Pandoc.Templates`:
14119 + Simplified `Template` type to a newtype.
14120 + Removed `Empty`.
14121 + Changed type of `renderTemplate`: it now takes a JSON context
14122 and a compiled template.
14123 + Export `compileTemplate`.
14124 + Export `renderTemplate'` that takes a string instead of a compiled
14125 template.
14126 + Export `varListToJSON`.
14128 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
14130 * `Text.Pandoc`:
14132 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
14133 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
14134 `Text.Pandoc.JSON` should be used instead. (Compiling against
14135 pandoc-types instead of pandoc will also produce smaller executables.)
14136 * Removed the deprecated `jsonFilter` function.
14137 + Added `readJSON`, `writeJSON` to the API (#817).
14139 * `Text.Pandoc.Options`:
14141 + Added `Ext_lists_without_preceding_blankline`,
14142 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
14143 `Ext_yaml_metadataBlock` to `Extension`.
14144 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
14145 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
14146 first command-line argument is an absolute URL. (So, relative links
14147 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
14148 + All bibliography-related fields have been removed from
14149 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
14150 `readerReferences`, `readerCitationStyle`.
14152 * The `Text.Pandoc.Biblio` module has been removed. Users of the
14153 pandoc library who want citation support will need to use
14154 `Text.CSL.Pandoc` from `pandoc-citeproc`.
14156### Bug fixes
14158 * In markdown, don't autolink a bare URI that is followed by `</a>`
14159 (#937).
14161 * `Text.Pandoc.Shared`
14163 + `openURL` now follows redirects (#701), properly handles `data:`
14164 URIs, and prints diagnostic output to stderr rather than stdout.
14165 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
14166 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
14167 + Fixed `readDefaultDataFile` so it works on Windows.
14168 + Better error messages for `readDefaultDataFile`. Instead of
14169 listing the last path tried, which can confuse people who are
14170 using `--self-contained`, so now we just list the data file name.
14171 + URL-escape pipe characters. Even though these are legal, `Network.URI`
14172 doesn't regard them as legal in URLs. So we escape them first (#535).
14174 * Mathjax in HTML slide shows: include explicit "Typeset" call.
14175 This seems to be needed for some formats (e.g. slideous) and won't
14176 hurt in others (#966).
14178 * `Text.Pandoc.PDF`
14180 + On Windows, create temdir in working directory, since the system
14181 temp directory path may contain tildes, which can cause
14182 problems in LaTeX (#777).
14183 + Put temporary output directory in `TEXINPUTS` (see #917).
14184 + `makePDF` tries to download images that are not found locally,
14185 if the first argument is a URL (#917).
14186 + If compiling with `pdflatex` yields an encoding error, offer
14187 the suggestion to use `--latex-engine=xelatex`.
14189 * Produce automatic header identifiers in parsing textile, RST,
14190 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
14192 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
14193 before treating as a filename. This fixes `--self-contained` when used
14194 with CSS files that include web fonts using the method described here:
14195 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
14196 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
14198 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
14199 percent-encoding, or a `+` character, as final punctuation.
14201 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
14202 EPS images properly sized on conversion to Word.
14204 * Slidy: Use slidy.js rather than slidy.js.gz.
14205 Reason: some browsers have trouble with the gzipped js file,
14206 at least on the local file system (#795).
14208 * Markdown reader
14210 + Properly handle blank line at beginning of input (#882).
14211 + Fixed bug in unmatched reference links. The input
14212 `[*infile*] [*outfile*]` was getting improperly parsed:
14213 "infile" was emphasized, but "*outfile*" was literal (#883).
14214 + Allow internal `+` in citation identifiers (#856).
14215 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
14216 + Do not generate blank title, author, or date metadata elements.
14217 Leave these out entirely if they aren't present.
14218 + Allow backtick code blocks not to be preceded by blank line (#975).
14220 * Textile reader:
14222 + Correctly handle entities.
14223 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
14224 in code blocks, rather than printing them verbatim. Parse attributes
14225 on `<pre>` tag for code blocks.
14227 * HTML reader: Handle non-simple tables (#893). Column widths are read from
14228 `col` tags if present, otherwise divided equally.
14230 * LaTeX reader
14232 + Support alltt environment (#892).
14233 + Support `\textasciitilde`, `\textasciicircum` (#810).
14234 + Treat `\textsl` as emphasized text reader (#850).
14235 + Skip positional options after `\begin{figure}`.
14236 + Support `\v{}` for hacek (#926).
14237 + Don't add spurious ", " to citation suffixes.
14238 This is added when needed in pandoc-citeproc.
14239 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
14240 + Improved support for accented characters (thanks to Scott Morrison).
14241 + Parse label after section command and set id (#951).
14243 * RST reader:
14245 + Don't insert paragraphs where docutils doesn't.
14246 `rst2html` doesn't add `<p>` tags to list items (even when they are
14247 separated by blank lines) unless there are multiple paragraphs in the
14248 list. This commit changes the RST reader to conform more closely to
14249 what docutils does (#880).
14250 + Improved metadata. Treat initial field list as metadata when
14251 standalone specified. Previously ALL fields "title", "author",
14252 "date" in field lists were treated as metadata, even if not at
14253 the beginning. Use `subtitle` metadata field for subtitle.
14254 + Fixed 'authors' metadata parsing in reST. Semicolons separate
14255 different authors.
14257 * MediaWiki reader
14259 + Allow space before table rows.
14260 + Fixed regression for `<ref>URL</ref>`.
14261 `<` is no longer allowed in URLs, according to the uri parser
14262 in `Text.Pandoc.Parsing`. Added a test case.
14263 + Correctly handle indented preformatted text without preceding
14264 or following blank line.
14265 + Fixed `|` links inside table cells. Improved attribute parsing.
14266 + Skip attributes on table rows. Previously we just crashed if
14267 rows had attributes, now we ignore them.
14268 + Ignore attributes on headers.
14269 + Allow `Image:` for images (#971).
14270 + Parse an image with caption in a paragraph by itself as a figure.
14272 * LaTeX writer
14274 + Don't use ligatures in escaping inline code.
14275 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
14276 wherein notes were numbered incorrectly in tables (#827).
14277 + Always create labels for sections. Previously the labels were only
14278 created when there were links to the section in the document (#871).
14279 + Stop escaping `|` in LaTeX math.
14280 This caused problems with array environments (#891).
14281 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
14282 `\` will cause major problems if unescaped.
14283 + Write id for code block to label attribute in LaTeX when listings
14284 is used (thanks to Florian Eitel).
14285 + Scale LaTeX tables so they don't exceed columnwidth.
14286 + Avoid problem with footnotes in unnumbered headers (#940).
14288 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
14289 to the slide if it is one of the header classes. It is recommended
14290 that your bibliography slide have this attribute:
14292 # References {.allowframebreaks}
14294 This causes multiple slides to be created if necessary, depending
14295 on the length of the bibliography.
14297 * ConTeXt writer: Properly handle tables without captions. The old output
14298 only worked in MkII. This should work in MkIV as well (#837).
14300 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
14302 * HTML writer:
14304 + Fixed `--no-highlight` (Alexander Kondratskiy).
14305 + Don't convert to lowercase in email obfuscation (#839).
14306 + Ensure proper escaping in `<title>` and `<meta>` fields.
14308 * AsciiDoc writer:
14310 + Support `--atx-headers` (Max Rydahl Andersen).
14311 + Don't print empty identifier blocks `([[]])` on headers (Max
14312 Rydahl Andersen).
14314 * ODT writer:
14316 + Fixing wrong numbered-list indentation in open document format
14317 (Alexander Kondratskiy) (#369).
14318 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
14319 + Minor changes for ODF 1.2 conformance (#939). We leave the
14320 nonconforming `contextual-spacing` attribute, which is provided by
14321 LibreOffice itself and seems well supported.
14323 * Docx writer:
14325 + Fixed rendering of display math in lists.
14326 In 1.11 and 1.11.1, display math in lists rendered as a new list
14327 item. Now it always appears centered, just as outside of lists,
14328 and in proper display math style, no matter how far indented the
14329 containing list item is (#784).
14330 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
14331 Previously we used `w:cr` (#873).
14332 + Use Compact style for Plain block elements, to
14333 differentiate between tight and loose lists (#775).
14334 + Ignore most components of `reference.docx`.
14335 We take the `word/styles.xml`, `docProps/app.xml`,
14336 `word/theme/theme1.xml`, and `word/fontTable.xml` from
14337 `reference.docx`, ignoring everything else. This should help
14338 with the corruption problems caused when different versions of
14339 Word resave the reference.docx and reorganize things.
14340 + Made `--no-highlight` work properly.
14342 * EPUB writer
14344 + Don't add `dc:creator` tags if present in EPUB metadata.
14345 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
14346 + Don't put blank title page in reading sequence.
14347 Set `linear="no"` if no title block. Addresses #797.
14348 + Download webtex images and include as data URLs.
14349 This allows you to use `--webtex` in creating EPUBs.
14350 Math with `--webtex` is automatically made self-contained.
14351 + In `data/epub.css`, removed highlighting styles (which
14352 are no longer needed, since styles are added by the HTML
14353 writer according to `--highlighting-style`). Simplified
14354 margin fields.
14355 + If resource not found, skip it, as in Docx writer (#916).
14357 * RTF writer:
14359 + Properly handle characters above the 0000-FFFF range.
14360 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
14361 + Fixed regression with RTF table of contents.
14362 + Only autolink absolute URIs. This fixes a regression, #830.
14364 * Markdown writer:
14366 + Only autolink absolute URIs. This fixes a regression, #830.
14367 + Don't wrap attributes in fenced code blocks.
14368 + Write full metadata in MMD style title blocks.
14369 + Put multiple authors on separate lines in pandoc titleblock.
14370 Also, don't wrap long author entries, as new lines get treated
14371 as new authors.
14373 * `Text.Pandoc.Templates`:
14375 + Fixed bug retrieving default template for markdown variants.
14376 + Templates can now contain "record lookups" in variables;
14377 for example, `author.institution` will retrieve the `institution`
14378 field of the `author` variable.
14379 + More consistent behavior of `$for$`. When `foo` is not a list,
14380 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
14381 So if `foo` resolves to "", no output should be produced.
14382 See pandoc-templates#39.
14384 * Citation processing improvements (now part of pandoc-citeproc):
14386 + Fixed `endWithPunct` The new version correctly sees a sentence
14387 ending in '.)' as ending with punctuation. This fixes a bug which
14388 led such sentences to receive an extra period at the end: '.).'.
14389 Thanks to Steve Petersen for reporting.
14390 + Don't interfere with Notes that aren't citation notes.
14391 This fixes a bug in which notes not generated from citations were
14392 being altered (e.g. first letter capitalized) (#898).
14393 + Only capitalize footnote citations when they have a prefix.
14394 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
14395 inserted before it before passing to citeproc-hs, so that bare numbers
14396 are treated as page numbers by default. A suffix not beginning with
14397 punctuation has a space added at the beginning (rather than a comma and
14398 space, as was done before for not-author-in-text citations).
14399 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
14400 properly, with '23' treated as a locator of type 'page'.
14401 + Many improvements to citation rendering, due to fixes in citeproc-hs
14402 (thanks to Andrea Rossato).
14403 + Warnings are issued for undefined citations, which are rendered
14404 as `???`.
14405 + Fixed hanging behavior when locale files cannot be found.
14407### Template changes
14409 * DocBook: Use DocBook 4.5 doctype.
14411 * Org: '#+TITLE:' is inserted before the title.
14412 Previously the writer did this.
14414 * LaTeX: Changes to make mathfont work with xelatex.
14415 We need the mathspec library, not just fontspec, for this.
14416 We also need to set options for setmathfont (#734).
14418 * LaTeX: Use `tex-ansi` mapping for `monofont`.
14419 This ensures that straight quotes appear as straight, rather than
14420 being treated as curly. See #889.
14422 * Made `\includegraphics` more flexible in LaTeX template.
14423 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
14425 * LaTeX/Beamer: Added `classoption` variable.
14426 This is intended for class options like `oneside`; it may
14427 be repeated with different options. (Thanks to Oliver Matthews.)
14429 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
14431 * LaTeX: Added `biblio-style` variable (#920).
14433 * DZSlides: title attribute on title section.
14435 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
14437### Under-the-hood improvements
14439 * Markdown reader:Improved strong/emph parsing, using the strategy of
14440 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
14441 no backtracking, and no keeping track of nesting levels. It will give
14442 different results in some edge cases, but these should not affect normal
14443 uses.
14445 * Added `Text.Pandoc.Compat.Monoid`.
14446 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
14447 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
14449 * Added `Text.Pandoc.Compat.TagSoupEntity`.
14450 This allows pandoc to compile with `tagsoup` 0.13.x.
14451 Thanks to Dirk Ullrich for the patch.
14453 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
14454 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
14455 handle simple math in bibliography fields.)
14457 * Added `Text.Pandoc.Writers.Shared` for shared functions used
14458 only in writers. `metaToJSON` is used in writers to create a
14459 JSON object for use in the templates from the pandoc metadata
14460 and variables. `getField`, `setField`, and `defField` are
14461 for working with JSON template contexts.
14463 * Added `Text.Pandoc.Asciify` utility module.
14464 This exports functions to create ASCII-only versions of identifiers.
14466 * `Text.Pandoc.Parsing`
14468 + Generalized state type on `readWith` (API change).
14469 + Specialize readWith to `String` input. (API change).
14470 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
14471 with `stateMeta` and `stateMeta'`.
14473 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
14474 bytestrings seemed to cause problems using pandoc on 64-bit Windows
14475 7/8 (#874).
14477 * Factored out `registerHeader` from markdown reader, added to
14478 `Text.Pandoc.Parsing`.
14480 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
14481 Reason: < 0.5 does not provide a monoid instance for Attribute,
14482 which is now needed by the HTML writer (#803).
14484 * Added `http-conduit` flag, which allows fetching https resources.
14485 It also brings in a large number of dependencies (`http-conduit`
14486 and its dependencies), which is why for now it is an optional flag
14487 (#820).
14489 * Added CONTRIBUTING.md.
14491 * Improved INSTALL instructions.
14493 * `make-windows-installer.bat`: Removed explicit paths for executables.
14495 * `aeson` is now used instead of `json` for JSON.
14497 * Set default stack size to 16M. This is needed for some large
14498 conversions, esp. if pandoc is compiled with 64-bit ghc.
14500 * Various small documentation improvements.
14501 Thanks to achalddave and drothlis for patches.
14503 * Removed comment that chokes recent versions of CPP (#933).
14505 * Removed support for GHC version < 7.2, since pandoc-types now
14506 requires at least GHC 7.2 for GHC generics.
14509## pandoc 1.11.1 (2013-03-17)
14511 * Markdown reader:
14513 + Fixed regression in which parentheses were lost in link URLs.
14514 Added tests. Closes #786.
14515 + Better handling of unmatched double quotes in `--smart` mode.
14516 These occur frequently in fiction, since it is customary not to
14517 close quotes in dialogue if the speaker does not change between
14518 paragraphs. The unmatched quotes now get turned into literal
14519 left double quotes. (No `Quoted` inline is generated, however.)
14520 Closes #99 (again).
14522 * HTML writer: Fixed numbering mismatch between TOC and sections.
14523 `--number-offset` now affects TOC numbering as well
14524 as section numbering, as it should have all along. Closes #789.
14526 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
14527 as markdown citations, even if `--bibliography` was specified, unless
14528 `citation` extension is disabled. Now, formatted citations are always
14529 printed if `--bibliography` was specified. If you want to reformat
14530 markdown keeping pandoc markdown citations intact, don't use
14531 `--bibliography`. Note that citations parsed from LaTeX documents will
14532 be rendered as pandoc markdown citations when `--bibliography` is not
14533 specified.
14535 * ODT writer: Fixed regression leading to corrupt ODTs.
14536 This was due to a change in the `Show` instance for
14537 `Text.Pandoc.Pretty.Doc`. Closes #780.
14539 * Fixed spacing bugs involving code block attributes in
14540 RST reader and Markdown writer. Closes #763.
14542 * Windows package: Various improvements due to Fyodor Sheremetyev.
14544 + Automatically set installation path (Program Files or Local App Data).
14545 + Set system PATH environment variable when installing for all users.
14546 + Pandoc can installed for all users using the following command.
14547 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
14549 * Bumped QuickCheck version bound.
14551## pandoc 1.11 (2013-03-09)
14553 * Added `--number-offset` option. (See README for description.)
14555 * Added `--default-image-extension` option. (See README for description.)
14557 * `--number-sections` behavior change: headers with class `unnumbered`
14558 will not be numbered.
14560 * `--version` now reports the default data directory.
14562 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
14564 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
14566 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
14567 a field for `Attr` rather than just `String`. (API change.)
14569 * Added `markdown_github` as input format. This was an accidental
14570 omission in 1.10.
14572 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
14573 change.)
14575 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
14577 * Beamer template:
14579 + Fixed captions with longtable. Thanks to Joost Kremers.
14580 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
14582 * LaTeX template:
14584 + Load microtype after fonts. Microtype needs to know
14585 what fonts are being used. Thanks to dfc for the patch.
14586 + Set `secnumdepth` to 5 if `--number-sections` specified.
14587 This yields behavior equivalent to the other writers, numbering
14588 level 4 and 5 headers too. Closes #753.
14590 * HTML reader:
14592 + Handle `<colgroup>` tag.
14593 + Preserve all header attributes.
14595 * LaTeX reader:
14597 + Parse `\hrule` as `HorizontalRule`. Closes #746.
14598 + Parse starred variants of `\section` etc. as headers with
14599 attribute `unnumbered`.
14600 + Read optional attributes in `lstlisting` and `Verbatim` environments.
14601 We convert these to pandoc standard names, e.g. `numberLines`
14602 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
14603 + Handle language attribute for lstlistings.
14604 + Better support for Verbatim and minted environments. Closes #763.
14606 * Markdown reader:
14608 + `-` in an attribute context = `.unnumbered`. The point of this
14609 is to provide a way to specify unnumbered headers in non-English
14610 documents.
14611 + Fixed bug parsing key/value attributes. Parsing failed if you
14612 had an unquoted attribute immediately before the final '}'.
14613 + Make backslash escape work in attributes.
14614 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
14615 pandoc will parse a MMD title block if it sees one, even if
14616 `pandoc_title_blocks` is enabled.
14617 + Refactoring: `litChar` now includes entities, so we don't need
14618 to use `fromEntities` e.g. on titles.
14619 + Allow spaces around borders in pipe tables. Closes #772.
14620 + Allow all punctuation in angle-bracket autolinks. Previously
14621 things like `----` were disallowed, because the uri parser
14622 treated them as trailing punctuation. Closes #768.
14623 + Make `implicit_header_references` work properly when
14624 headers are given explicit identifiers.
14625 + Check for tables before line blocks. Otherwise some pipe
14626 tables get treated as line blocks.
14627 + Allow `&` in emails (for entities).
14628 + Properly handle entities in titles and links. A markdown link
14629 `<http://g&ouml;ogle.com>` should be a link to `http://göogle.com`.
14630 Closes #723.
14632 * Textile reader:
14634 + Handle attributes on headers.
14636 * LaTeX reader:
14638 + Add `fig:` as title for images with captions.
14639 This is needed for them to be rendered as figures. Closes #766.
14640 + Never emit an empty paragraph. See #761.
14641 + Handle `\caption` for images in figures. Closes #766.
14642 + Parse `\section*`, etc. as unnumbered sections.
14644 * HTML writer:
14646 + Support header attributes. The attributes go on
14647 the enclosing `section` or `div` tag if `--section-divs` is specified.
14648 + Fixed a regression (only now noticed) in html+lhs output.
14649 Previously the bird tracks were being omitted.
14651 * LaTeX writer:
14653 + Omit lists with no items to avoid LaTeX errors.
14654 + Support line numbering with `--listings`.
14655 If `numberLines` class is present, we add `numbers=left`;
14656 if `startFrom` is present, we add `firstnumber=`. (#763)
14658 * ConTeXt writer:
14660 + Removed `\placecontent`. This produced a duplicate toc,
14661 in conjunction with `\placelist`.
14662 + Use `\title`, `\subject` etc. for headers with
14663 `unnumbered` class.
14665 * Textile writer:
14667 + Support header attributes.
14669 * Markdown writer:
14671 + Use grid tables when needed, and if enabled. Closes #740.
14672 + Render citations as pandoc-markdown citations.
14673 Previously citations were rendered as citeproc-formatted citations
14674 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
14675 unless the `citations` extension is disabled.
14676 If you still want formatted citations in your markdown output,
14677 use `pandoc -t markdown-citations`.
14679 * RST writer:
14681 + Support `:number-lines:` in code blocks.
14683 * Docx writer:
14685 + Better treatment of display math. Display math inside a
14686 paragraph is now put in a separate paragraph, so it will render
14687 properly (centered and without extra blank lines around it).
14688 Partially addresses #742.
14689 + Content types and document rels xml files are now created from
14690 scratch, rather than being taken over from `reference.docx`.
14691 This fixes problems that arise when you edit the `reference.docx`
14692 with Word.
14693 + We also now encode mime types for each individual image rather
14694 than using defaults. This should allow us to handle a wider
14695 range of image types (including PDF). Closes #414.
14696 + Changed style names in `reference docx`.
14697 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
14698 The old names got changed by Word when the `reference.docx` was
14699 edited. Closes #414.
14701 * EPUB writer:
14703 + Fix section numbering. Previously the numbering restarted from 1
14704 in each chapter (with `--number-sections`), though the numbers in
14705 the table of contents were correct.
14706 + Headers with "unnumbered" attribute are not numbered. (Nor do they
14707 cause an increment in running numbering.) Section numbers now work
14708 properly, even when there is material before the first numbered section.
14709 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
14710 but `linear` is set to `no` unless the `--toc` option is specified.
14711 Include `<guide>` element in OPF. This should allow the TOC to
14712 be usable in Kindles when converted with kindlegen. Closes #773.
14714 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
14715 This dramatically reduces the speed penalty that comes from enabling the
14716 `autolink_bare_uris` extension. The penalty is still substantial (in one
14717 test, from 0.33s to 0.44s), but nowhere near what it used to be.
14718 The RST reader is also much faster now, as it autodetects URIs.
14720 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
14721 with class "unnumbered". Unnumbered sections get `[]` for their
14722 section number.
14724 * `Text.Pandoc.Pretty`:
14726 + Fixed `chomp` so it works inside `Prefixed` elements.
14727 + Changed `Show` instance so it is better for debugging.
14729 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
14731 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
14733 * Windows installer improvements:
14735 + The installer is now signed with a certificate (thanks to
14736 Fyodor Sheremetyev).
14737 + WiX is used instead of InnoSetup. The installer is now a
14738 standard msi file.
14739 + The version number is now auto-detected, and need not be
14740 updated separately.
14742 * OSX installer improvements:
14744 + The package and pandoc executable are now signed with a
14745 certificate (thanks to Fyodor Sheremetyev).
14746 + RTF version of license is used.
14747 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
14748 Closes #580.
14750 * Converted COPYING to markdown.
14752 * pandoc.cabal: Require latest versions of highlighting-kate,
14753 texmath, citeproc-hs, zip-archive.
14755## pandoc 1.10.1 (2013-01-23)
14757 * Markdown reader: various optimizations, leading to a
14758 significant performance boost.
14760 * RST reader: Allow anonymous form of inline links:
14761 `` `hello <url>`__ `` Closes #724.
14763 * Mediawiki reader: Don't require newlines after tables.
14764 Thanks to jrunningen for the patch. Closes #733.
14766 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
14767 when output is LaTeX, and applied when it is another format.
14768 Partially addresses #730.
14770 * Markdown and RST readers: Added parser to `block` that skips blank
14771 lines. This fixes a subtle regression involving grid tables with
14772 empty cells. Also added test for grid table with empty cells.
14773 Closes #732.
14775 * RST writer: Use `.. code:: language` for code blocks with language.
14776 Closes #721.
14778 * DocBook writer: Fixed output for hard line breaks, adding a newline
14779 between `<literallayout>` tags.
14781 * Markdown writer: Use an autolink when link text matches url.
14782 Previously we also checked for a null title, but this
14783 test fails for links produced by citeproc-hs in bibliographies.
14784 So, if the link has a title, it will be lost on conversion
14785 to an autolink, but that seems okay.
14787 * Markdown writer: Set title, author, date variables as before.
14788 These are no longer used in the default template, since we use
14789 titleblock, but we set them anyway for those who use custom templates.
14791 * LaTeX writer: Avoid extra space at start/end of table cell.
14792 Thanks to Nick Bart for the suggestion of using @{}.
14794 * `Text.Pandoc.Parsing`:
14796 + More efficient version of `anyLine`.
14797 + Type of `macro` has changed; the parser now returns `Blocks`
14798 instead of `Block`.
14800 * Relaxed old-time version bound, allowing 1.0.*.
14802 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
14803 should create a symlink as described in the README.
14805## pandoc 1.10.0.5 (2013-01-23)
14807 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
14808 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
14809 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
14811 * Markdown reader: Fixed bug with headerless grid tables.
14812 The 1.10 code assumed that each table header cell contains exactly one
14813 block. That failed for headerless tables (0) and also for tables with
14814 multiple blocks in a header cell. The code is fixed and tests provided.
14815 Thanks to Andrew Lee for pointing out the bug.
14817 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
14819 + Tilde code fences can again take a bare language string
14820 (`~~~ haskell`), not just curly-bracketed attributes
14821 (`~~~ {.haskell}`).
14822 + Backtick code blocks can take the curly-bracketed attributes.
14823 + Backtick code blocks don't *require* a language.
14824 + Consolidated code for the two kinds of fenced code blocks.
14826 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
14828 * Markdown writer: Use proportional font for email autolinks with
14829 obfuscation. Closes #714.
14831 * Corrected name of `blank_before_blockquote` in README. Closes #718.
14833 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
14834 The bug prevented an autolink at the end of a string (e.g.
14835 at the end of a line block line) from counting as a link. Closes #711.
14837 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
14838 This should work on Windows, unlike the TH solution with
14839 file-embed.
14841 * Eliminated use of TH in test suite.
14843 * Added `Text.Pandoc.Data` (non-exported) to hold the association
14844 list of embedded data files, if the `embed_data_files` flag is selected.
14845 This isolates the code that needs special treatment with file-embed or
14846 `hsb2hs`.
14848 * Changes to `make-windows-installer.bat`.
14850 + Exit batch file if any of the cabal-dev installs fail.
14851 + There's no longer any need to reinstall `highlighting-kate`.
14852 + Don't start with a `cabal update`; leave that to the user.
14853 + Force reinstall of pandoc.
14855 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
14856 Jens Petersen.
14858## pandoc 1.10.0.4 (2013-01-20)
14860 * Fixed bug with escaped % in LaTeX reader. Closes #710.
14862## pandoc 1.10.0.3 (2013-01-20)
14864 * Added further missing fb2 tests to cabal file.
14866## pandoc 1.10.0.2 (2013-01-20)
14868 * Added fb2 tests to cabal file's extra-source-files.
14870## pandoc 1.10.0.1 (2013-01-20)
14872 * Bump version bounds on test-framework packages.
14874## pandoc 1.10 (2013-01-19)
14876### New features
14878 * New input formats: `mediawiki` (MediaWiki markup).
14880 * New output formats: `epub3` (EPUB v3 with MathML),
14881 `fb2` (FictionBook2 ebooks).
14883 * New `--toc-depth` option, specifying how many levels of
14884 headers to include in a table of contents.
14886 * New `--epub-chapter-level` option, specifying the header
14887 level at which to divide EPUBs into separate files.
14888 Note that this normally affects only performance, not the
14889 visual presentation of the EPUB in a reader.
14891 * Removed the `--strict` option. Instead of using `--strict`,
14892 one can now use the format name `markdown_strict` for either input
14893 or output. This gives more fine-grained control that `--strict`
14894 did, allowing one to convert from pandoc's markdown to strict
14895 markdown or vice versa.
14897 * It is now possible to enable or disable specific syntax
14898 extensions by appending them (with `+` or `-`) to the writer
14899 or reader name. For example,
14901 pandoc -f markdown-footnotes+hard_line_breaks
14903 disables footnotes and enables treating newlines as hard
14904 line breaks. The literate Haskell extensions are now implemented
14905 this way as well, using either `+lhs` or `+literate_haskell`.
14906 For a list of extension names, see the README under
14907 "Pandoc's Markdown."
14909 * The following aliases have been introduced for specific
14910 combinations of markdown extensions: `markdown_phpextra`,
14911 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
14912 work just like regular reader and writer names, and can be modified
14913 with extension modifiers as described above. (Note that conversion
14914 from one markdown dialect to another does not work perfectly,
14915 because there are differences in markdown parsers besides
14916 just the extensions, and because pandoc's internal document model is
14917 not rich enough to capture all of the extensions.)
14919 * New `--html-q-tags` option. The previous default was to use `<q>`
14920 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
14921 Moreover, they are not a robust way of typesetting quotes, since
14922 some user agents don't support them, and some CSS resets (e.g.
14923 bootstrap) prevent pandoc's quotes CSS from working properly.
14924 We now just insert literal quote characters by default in both
14925 `html` and `html5` output, but this option is provided for
14926 those who still want `<q>` tags.
14928 * The markdown reader now prints warnings (to stderr) about
14929 duplicate link and note references. Closes #375.
14931 * Markdown syntax extensions:
14933 + Added pipe tables. Thanks to François Gannaz for the initial patch.
14934 These conform to PHP Markdown Extra's pipe table syntax. A subset
14935 of org-mode table syntax is also supported, which means that you can
14936 use org-mode's nice table editor to create tables.
14938 + Added support for RST-style line blocks. These are
14939 useful for verse and addresses.
14941 + Attributes can now be specified for headers, using the same
14942 syntax as in code blocks. (However, currently only the
14943 identifier has any effect in most writers.) For example,
14945 # My header {#foo}
14947 See [the header above](#foo).
14949 + Pandoc will now act as if link references have been defined
14950 for all headers without explicit identifiers.
14951 So, you can do this:
14953 # My header
14955 Link to [My header].
14956 Another link to [it][My header].
14958 Closes #691.
14960 * LaTeX reader:
14962 + Command macros now work everywhere, including non-math.
14963 Environment macros still not supported.
14964 + `\input` now works, as well as `\include`. TEXINPUTS is used.
14965 Pandoc looks recursively into included files for more included files.
14967### Behavior changes
14969 * The Markdown reader no longer puts the text of autolinks in a
14970 `Code` inline. This means that autolinks will no longer appear
14971 in a monospace font.
14973 * The character `/` can now appear in markdown citation keys.
14975 * HTML blocks in strict_markdown are no longer required to begin
14976 at the left margin. Technically this is required, according to
14977 the markdown syntax document, but `Markdown.pl` and other markdown
14978 processors are more liberal.
14980 * The `-V` option has been changed so that if there are duplicate
14981 variables, those specified later on the command line take precedence.
14983 * Tight lists now work in LaTeX and ConTeXt output.
14985 * The LaTeX writer no longer relien on the `enumerate` package.
14986 Instead, it uses standard LaTeX commands to change the list numbering
14987 style.
14989 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
14990 tables to be split over page boundaries.
14992 * The RST writer now uses a line block to render paragraphs containing
14993 linebreaks (which previously weren't supported at all).
14995 * The markdown writer now applies the `--id-prefix` to footnote IDs.
14996 Closes #614.
14998 * The plain writer no longer uses backslash-escaped line breaks
14999 (which are not very "plain").
15001 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
15002 Read bytestring and use `Text`'s decodeUtf8 instead of using
15003 `System.IO.hGetContents`. This way you get a message saying
15004 "invalid UTF-8 stream" instead of "invalid byte sequence."
15005 You are also told which byte caused the problem.
15007 * Docx, ODT, and EPUB writers now download images specified by a URL
15008 instead of skipping them or raising an error.
15010 * EPUB writer:
15012 + The default CSS now left-aligns headers by default, instead of
15013 centering. This is more consistent with the rest of the writers.
15014 + A proper multi-level table of contents is now used in `toc.ncx`.
15015 There is no longer a subsidiary table of contents at the beginning
15016 of each chapter.
15017 + Code highlighting now works by default.
15018 + Section divs are used by default for better semantic markup.
15019 + The title is used instead of "Title Page" in the table of contents.
15020 Otherwise we have a hard-coded English string, which looks
15021 strange in ebooks written in other languages. Closes #572.
15023 * HTML writer:
15025 + Put mathjax in span with class "math". Closes #562.
15026 + Put citations in a span with class "citation." In HTML5, also include
15027 a `data-cite` attribute with a space-separated list of citation
15028 keys.
15030 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
15031 This treats both `\r\n` and `\n` as `\n` on input, no matter
15032 what platform we're running on.
15034 * Citation processing is now done in the Markdown and LaTeX
15035 readers, not in `pandoc.hs`. This makes it easier for library users
15036 to use citations.
15038### Template changes
15040 * HTML: Added css to template to preserve spaces in `<code>` tags.
15041 Thanks to Dirk Laurie.
15043 * Beamer: Remove English-centric strings in section pages.
15044 Section pages used to have "Section" and a number as well as the
15045 section title. Now they just have the title. Similarly for part
15046 and subsection. Closes #566.
15048 * LaTeX, ConTeXt: Added papersize variable.
15050 * LaTeX, Beamer templates: Use longtable instead of ctable.
15052 * LaTeX, Beamer templates: Don't require 'float' package for tables.
15053 We don't actually seem to use the '[H]' option.
15055 * Markdown, plain: Fixed titleblock so it is just a single string.
15056 Previously separate title, author, and date variables were used,
15057 but this didn't allow different kinds of title blocks.
15059 * EPUB:
15061 + Rationalized templates. Previously there were three different
15062 templates involved in epub production. There is now just one
15063 template, `default.epub` or `default.epub3`. It can now be
15064 overridden using `--template`, just like other templates.
15065 The titlepage is now folded into the default template.
15066 A `titlepage` variable selects it.
15067 + UTF-8, lang tag, meta tags, title element.
15069 * Added scale-to-width feature to beamer template
15071### API changes
15073 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
15074 Previously header identifiers were autogenerated by the writers.
15075 Now they are added in the readers (either automatically or explicitly).
15077 * `Text.Pandoc.Builder`:
15079 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
15080 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
15081 custom Monoid instances for `Many Inline` and `Many Block. This
15082 allows `Many` to be made an instance of `Foldable` and `Traversable`.
15083 + The old `Listable` class has been removed.
15084 + The module now exports `isNull`, `toList`, `fromList`.
15085 + The old `Read` and `Show` instances have been removed; derived
15086 instances are now used.
15087 + Added `headerWith`.
15089 * The readers now take a `ReaderOptions` rather than a `ParserState`
15090 as a parameter. Indeed, not all parsers use the `ParserState` type;
15091 some have a custom state. The motivation for this change was to separate
15092 user-specifiable options from the accounting functions of parser state.
15094 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
15095 formerly in `Text.Pandoc.Shared`, and its associated
15096 data types. It also includes a new type `ReaderOptions`, which
15097 contains many options formerly in `ParserState`, and its associated
15098 data types:
15100 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
15101 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
15102 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
15103 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
15104 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
15105 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
15106 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
15107 + `ParserState.stateIndentedCodeClasses` ->
15108 `ReaderOptions.readerIndentedCodeClasses`.
15109 + Added `ReaderOptions.readerCitationStyle`.
15111 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
15112 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
15113 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
15114 been renamed `writerEpubMetadata` for consistency.
15116 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
15117 longer stylesheet, fonts, reference files as separate parameters.
15119 * Removed `writerLiterateHaskell` from `WriterOptions`, and
15120 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
15121 by an extension (`Ext_literate_haskell`).
15123 * Removed deprecated `writerXeTeX`.
15125 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
15126 Strict is now handled through extensions.
15128 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
15129 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
15130 and `multimarkdownExtensions`, as well as the `Extensions` type.
15132 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
15133 `readMediaWiki`.
15135 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
15136 (thanks to Sergey Astanin).
15138 * `Text.Pandoc`:
15140 + Added `getReader`, `getWriter` to `Text.Pandoc`.
15141 + `writers` is now an association list `(String, Writer)`.
15142 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
15143 an `IOByteStringWriter`. ALL writers are now in the 'writers'
15144 list, including the binary writers and FB2 writer. This allows
15145 code in `pandoc.hs` to be simplified.
15146 + Changed type of `readers`, so all readers are in IO.
15147 Users who want pure readers can still get them form the reader
15148 modules; this just affects the function `getReader` that looks up
15149 a reader based on the format name. The point of this change is to
15150 make it possible to print warnings from the parser.
15152 * `Text.Pandoc.Parsing`:
15154 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
15155 No other module directly imports Parsec. This will make it easier
15156 to change the parsing backend in the future, if we want to.
15157 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
15158 + Export the type synonym `Parser`.
15159 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
15160 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
15161 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
15162 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
15163 + `ParserState` is no longer an instance of `Show`.
15164 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
15165 + Generalized type of `withQuoteContext`.
15166 + Added `guardEnabled`, `guardDisabled`, `getOption`.
15167 + Removed `failIfStrict`.
15168 + `lookupKeySrc` and `fromKey` are no longer exported.
15170 * `Data.Default` instances are now provided for `ReaderOptions`,
15171 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
15172 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
15173 of `defaultWriterOptions` (which is still defined). Closes #546.
15175 * `Text.Pandoc.Shared`:
15177 + Added `safeRead`.
15178 + Renamed `removedLeadingTrailingSpace` to `trim`,
15179 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
15180 + Count `\r` as space in `trim` functions.
15181 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
15182 to `Shared`.
15183 + Removed `failUnlessLHS`.
15184 + Export `compactify'`, formerly in Markdown reader.
15185 + Export `isTightList`.
15186 + Do not export `findDataFile`.
15187 + `readDataFile` now returns a strict ByteString.
15188 + Export `readDataFileUTF8` which returns a String, like the
15189 old `readDataFile`.
15190 + Export `fetchItem` and `openURL`.
15192 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
15193 Removed `readImageSize`.
15195 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
15196 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
15197 `fromStringLazy`.
15199 * `Text.Pandoc.UTF8` is now an exposed module.
15201 * `Text.Pandoc.Biblio`:
15203 + csl parameter now a `String` rather than a `FilePath`.
15204 + Changed type of `processBiblio`. It is no longer in the IO monad.
15205 It now takes a `Maybe Style` argument rather than parameters for CSL
15206 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
15207 the style file and add abbreviations.)
15209 * Markdown reader now exports `readMarkdownWithWarnings`.
15211 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
15212 `rtfEmbedImage`.
15214### Bug fixes
15216 * Make `--ascii` work properly with `--self-contained`. Closes #568.
15218 * Markdown reader:
15220 + Fixed link parser to avoid exponential slowdowns. Closes #620.
15221 Previously the parser would hang on input like this:
15223 [[[[[[[[[[[[[[[[[[hi
15225 We fixed this by making the link parser parser characters
15226 between balanced brackets (skipping brackets in inline code spans),
15227 then parsing the result as an inline list. One change is that
15229 [hi *there]* bud](/url)
15231 is now no longer parsed as a link. But in this respect pandoc behaved
15232 differently from most other implementations anyway, so that seems okay.
15234 + Look for raw html/latex blocks before tables.
15235 Otherwise the following gets parsed as a table:
15237 \begin{code}
15238 --------------
15239 -- My comment.
15240 \end{code}
15242 Closes #578.
15244 * RST reader:
15246 + Added support for `:target:` on `.. image::` blocks
15247 and substitutions.
15248 + Field list fixes:
15250 - Fixed field lists items with body beginning after a new line
15251 (Denis Laxalde).
15252 - Allow any char but ':' in names of field lists in RST reader
15253 (Denis Laxalde).
15254 - Don't allow line breaks in field names.
15255 - Require whitespace after field list field names.
15256 - Don't create empty definition list for metadata field lists.
15257 Previously a field list consisting only of metadata fields (author,
15258 title, date) would be parsed as an empty DefinitionList, which is
15259 not legal in LaTeX and not needed in any format.
15261 + Don't recognize inline-markup starts inside words.
15262 For example, `2*2 = 4*1` should not contain an emphasized
15263 section. Added test case for "Literal symbols". Closes #569.
15264 + Allow dashes as separator in simple tables. Closes #555.
15265 + Added support for `container`, `compound`, `epigraph`,
15266 `rubric`, `highlights`, `pull-quote`.
15267 + Added support for `.. code::`.
15268 + Made directive labels case-insensitive.
15269 + Removed requirement that directives begin at left margin.
15270 This was (correctly) not in earlier releases; docutils doesn't
15271 make the requirement.
15272 + Added support for `replace::` and `unicode::` substitutions.
15273 + Ignore unknown interpreted roles.
15274 + Renamed image parser to `subst`, since it now handles all
15275 substitution references.
15277 * Textile reader:
15279 + Allow newlines before pipes in table. Closes #654.
15280 + Fixed bug with list items containing line breaks.
15281 Now pandoc correctly handles hard line breaks inside list items.
15282 Previously they broke list parsing.
15283 + Implemented comment blocks.
15284 + Fixed bug affected words ending in hyphen.
15285 + Properly handle links with surrounding brackets.
15286 Square brackets need to be used when the link isn't surrounded by
15287 spaces or punctuation, or when the URL ending may be ambiguous.
15288 Closes #564.
15289 + Removed nullBlock. Better to know about parsing problems than
15290 to skip stuff when we get stuck.
15291 + Allow ID attributes on headers.
15292 + Textile reader: Avoid parsing dashes as strikeout.
15293 Previously the input
15295 text--
15296 text--
15297 text--
15298 text--
15300 would be parsed with strikeouts rather than dashes. This fixes
15301 the problem by requiring that a strikeout delimiting - not be
15302 followed by a -. Closes #631.
15303 + Expanded list of `stringBreakers`.
15304 This fixes a bug on input like "(_hello_)" which should
15305 be a parenthesized emphasized "hello".
15306 The new list is taken from the PHP source of textile 2.4.
15307 + Fixed autolinks. Previously the textile reader and writer
15308 incorrectly implemented RST-style autolinks for URLs and email
15309 addresses. This has been fixed. Now an autolink is done this way:
15310 `"$":http://myurl.com`.
15311 + Fixed footnotes bug in textile. This affected notes occurring
15312 before punctuation, e.g. `foo[1].`. Closes #518.
15314 * LaTeX reader:
15316 + Better handling of citation commands.
15317 + Better handling of `\noindent`.
15318 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
15319 Closes #622.
15320 + Made `rawLaTeXInline` try to parse block commands as well. This
15321 is usually what we want, given how `rawLaTeXInline` is used in
15322 the markdown and textile readers. If a block-level LaTeX command
15323 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
15324 we can treat it as raw inline LaTeX.
15325 + Handle `\slash` command. Closes #605.
15326 + Basic `\enquote` support.
15327 + Fixed parsing of paragraphs beginning with a group. Closes #606.
15328 + Use curly quotes for bare straight quotes.
15329 + Support obeylines environment. Closes #604.
15330 + Guard against "begin", "end" in inlineCommand and
15331 blockCommand.
15332 + Better error messages for environments. Now it should tell you that
15333 it was looking for \end{env}, instead of giving "unknown parse error."
15335 * HTML reader:
15337 + Added HTML 5 tags to list of block-level tags.
15338 + HTML reader: Fixed bug in `htmlBalanced`, which
15339 caused hangs in parsing certain markdown input using
15340 strict mode.
15341 + Parse `<q>` as `Quoted DoubleQuote`.
15342 + Handle nested `<q>` tags properly.
15343 + Modified `htmlTag` for fewer false positives.
15344 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
15345 This makes it more useful in the wikimedia and markdown parsers.
15347 * DocBook reader: Support title in "figure" element. Closes #650.
15349 * MediaWiki writer:
15351 + Remove newline after `<br/>` in translation of `LineBreak`
15352 There's no particular need for a newline (other than making the
15353 generated MediaWiki source look nice to a human), and in fact
15354 sometimes it is incorrect: in particular, inside an enumeration, list
15355 items cannot have embedded newline characters. (Brent Yorgey)
15356 + Use `<code>` not `<tt>` for Code.
15358 * Man writer: Escape `-` as `\-`.
15359 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
15360 signs. That is preferable for use with command-line options. See
15361 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
15362 to Andrea Bolognani for bringing the issue to our attention.
15364 * RST writer:
15366 + Improved line block output. Use nonbreaking spaces for
15367 initial indent (otherwise lost in HTML and LaTeX).
15368 Allow multiple paragraphs in a single line block.
15369 Allow soft breaks w continuations in line blocks.
15370 + Properly handle images with no alt text. Closes #678.
15371 + Fixed bug with links with duplicate text. We now (a) use anonymous
15372 links for links with inline URLs, and (b) use an inline link instead
15373 of a reference link if the reference link would require a label that
15374 has already been used for a different link. Closes #511.
15375 + Fixed hyperlinked images. Closes #611. Use `:target:`
15376 field when you have a simple linked image.
15377 + Don't add `:align: center` to figures.
15379 * Texinfo writer: Fixed internal cross-references.
15380 Now we insert anchors after each header, and use `@ref` instead of `@uref`
15381 for links. Commas are now escaped as `@comma{}` only when needed;
15382 previously all commas were escaped. (This change is needed, in part,
15383 because `@ref` commands must be followed by a real comma or period.) Also
15384 insert a blank line in from of `@verbatim` environments.
15386 * DocBook writer:
15388 + Made --id-prefix work in DocBook as well as HTML.
15389 Closes #607.
15390 + Don't include empty captions in figures. Closes #581.
15392 * LaTeX writer:
15394 + Use `\hspace*` for nonbreaking space after line break,
15395 since `~` spaces after a line break are just ignored.
15396 Closes #687.
15397 + Don't escape `_` in URLs or hyperref identifiers.
15398 + Properly escape strings inside `\url{}`. Closes #576.
15399 + Use `[fragile]` only for slides containing code rendered
15400 using listings. Closes #649.
15401 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
15402 highlighting-kate's macros, which redefine `|` as a short verbatim
15403 delimiter. Thanks to Björn Peemöller for raising this issue.
15404 + Use minipage rather than parbox for block containers in tables.
15405 This allows verbatim code to be included in grid tables.
15406 Closes #663.
15407 + Prevent paragraphs containing only linebreaks or spaces.
15409 * HTML writer:
15411 + Included `highlighting-css` for code spans, too.
15412 Previously it was only included if used in a code block. Closes #653.
15413 + Improved line breaks with `<dd>` tags. We now put a newline between
15414 `</dd>` and `<dd>` when there are multiple definitions.
15415 + Changed mathjax cdn url so it doesn't use https. (This caused
15416 problems when used with `--self-contained`.) See #609.
15418 * EPUB writer:
15420 + `--number-sections` now works properly.
15421 + Don't strip meta and link elements in epub metadata.
15422 Patch from aberrancy. Closes #589.
15423 + Fixed a couple validation bugs.
15424 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
15425 of chapters in some readers, which apparently sort ch2 after ch10.
15426 Closes #610.
15428 * ODT writer: properly set title property (Arlo O'Keeffe).
15430 * Docx writer:
15432 + Fixed bug with nested lists. Previously a list like
15434 1. one
15435 - a
15436 - b
15437 2. two
15439 would come out with a bullet instead of "2."
15440 Thanks to Russell Allen for reporting the bug.
15441 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
15442 This seems to fix a problem viewing pandoc-generated
15443 docx files in LibreOffice.
15444 + Use integer ids for bookmarks. Closes #626.
15445 + Added nsid to abstractNum elements. This helps when merging
15446 word documents with numbered or bulleted lists. Closes #627.
15447 + Use separate footnotes.xml for notes.
15448 This seems to help LibreOffice convert the file, even though
15449 it was valid docx before. Closes #637.
15450 + Use rIdNN identifiers for r:embed in images.
15451 + Avoid reading image files again when we've already processed them.
15452 + Fixed typo in `referenc.docx` that prevented image captions from
15453 working. Thanks to Huashan Chen.
15455 * `Text.Pandoc.Parsing`:
15457 + Fixed bug in `withRaw`, which didn't correctly handle the case
15458 where nothing is parsed.
15459 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
15460 though it still doesn't implement quoted strings in email addresses.
15461 + Revised URI parser. It now allows many more schemes, allows
15462 uppercase URIs, and better handles trailing punctuation and
15463 trailing slashes in bare URIs. Added many tests.
15464 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
15465 etc. parse properly. Formerly we had some English-centric heuristics,
15466 but they are no longer needed. Closes #698.
15468 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
15469 This fixes bug with Chinese commas in markdown and reST tables, and
15470 a bug that caused combining characters to be dropped.
15472 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
15474 * `Text.Pandoc.Biblio`:
15476 + Run `mvPunc` and `deNote` on metadata too.
15477 This fixed a bug with notes on titles using footnote styles.
15478 + Fixed bug in fetching CSL files from CSL data directory.
15480 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
15481 is provided. It should be the URL up to the path.
15483 * Fixed/simplified diff output for tests.
15484 Biblio: Make sure mvPunc and deNote run on metadata too.
15485 This fixed a bug with notes on titles using footnote styles.
15487### Under the hood improvements
15489 * We no longer depend on `utf8-string`. Instead we use functions
15490 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
15492 * Use `safeRead` instead of using `reads` directly (various modules).
15494 * "Implicit figures" (images alone in a paragraph) are now handled
15495 differently. The markdown reader gives their titles the prefix `fig:`; the
15496 writers look for this before treating the image as a figure. Though this
15497 is a bit of a hack, it has two advantages: (i) implicit figures can be
15498 limited to the markdown reader, and (ii) they can be deactivated by turning
15499 off the `implicit_figures` extension.
15501 * `catch` from `Control.Exception` is now used instead of the
15502 old Preface `catch`.
15504 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
15505 and `oneOfStrings` (which is now non-backtracking).
15507 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
15508 Now citeproc-hs is fixed upstream, so this is no longer needed.
15509 Closes #531.
15511 * Textile reader: Improved speed of `hyphenedWords`.
15512 This speeds up the textile reader by about a factor of 4.
15514 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
15515 better performance, and automatic normalization.
15517 * Major rewrite of markdown reader:
15519 + Use `Text.Pandoc.Builder` instead of lists. This also
15520 means that everything is normalized automatically.
15521 + Move to a one-pass parsing strategy, returning values in the reader
15522 monad, which are then run (at the end of parsing) against the final
15523 parser state.
15525 * In HTML writer, we now use `toHtml` instead of pre-escaping.
15526 We work around the problem that blaze-html unnecessarily escapes `'`
15527 by pre-escaping just the `'` characters, instead of the whole string.
15528 If blaze-html later stops escaping `'` characters, we can simplify
15529 `strToHtml` to `toHtml`. Closes #629.
15531 * Moved code for embedding images in RTFs from `pandoc.hs` to the
15532 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
15534 * Moved citation processing from `pandoc.hs` into the readers.
15535 This makes things more convenient for library users.
15537 * The man pages are now built by an executable `make-pandoc-man-pages`,
15538 which has its own stanza in the cabal file so that dependencies can be
15539 handled by Cabal. Special treatment in `Setup.hs` ensures that this
15540 executable never gets installed; it is only used to create the man pages.
15542 * The cabal file has been modified so that the pandoc library is used
15543 in building the pandoc executable. (This required moving `pandoc.hs`
15544 from `src` to `.`.) This cuts compile time in half.
15546 * The `executable` and `library` flags have been removed.
15548 * `-threaded` has been removed from ghc-options.
15550 * Version bounds of dependencies have been raised, and the
15551 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
15552 GHC 7.6.
15554 * We now require base >= 4.2.
15556 * Integrated the benchmark program into cabal. One can now do:
15558 cabal configure --enable-benchmarks && cabal build
15559 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
15561 The benchmark now uses README + testsuite, so benchmark results
15562 from older versions aren't comparable.
15564 * Integrated test suite with cabal.
15565 To run tests, configure with `--enable-tests`, then `cabal test`.
15566 You can specify particular tests using `--test-options='-t markdown'`.
15567 No output is shown unless tests fail. The Haskell test modules
15568 have been moved from `src/` to `tests/`.
15570 * Moved all data files and templates to the `data/` subdirectory.
15572 * Added an `embed_data_files` cabal flag. This causes all
15573 data files to be embedded in the binary, so that the binary
15574 is self-sufficient and can be relocated anywhere, copied on
15575 a USB key, etc. The Windows installer now uses this.
15576 (Since we no longer have the option to build the executable
15577 without the library, this is the only way to get a relocatable
15578 binary on Windows.)
15580 * Removed pcre3.dll from windows package.
15581 It isn't needed unless highlighting-kate is compiled with the
15582 `pcre-light` flag. By default, regex-prce-builtin is used.
15585## pandoc 1.9.4.5 (2012-10-21)
15587 * Raised version bounds on network, base64-bytestring, json,
15588 and template-haskell.
15590## pandoc 1.9.4.4 (2012-10-20)
15592 * Removed `tests` flag and made test suite into a proper cabal
15593 test suite, which can now be enabled using `--enable-tests`
15594 and run with `cabal test`.
15596 * Moved man page creation out of `Setup.hs` and into an
15597 executable built by Cabal, but never installed. This
15598 allows dependencies to be specified, and solves a problem
15599 with 1.9.4.3, which could only be installed if `data-default`
15600 had already been installed.
15602 * Updated `lhs-latex.tex` test for latest highlighting-kate
15603 representation of backticks.
15605## pandoc 1.9.4.3 (2012-10-20)
15607 * Removed `-threaded` from default compile flags.
15609 * Modified modules to compile with GHC 7.6 and latest version of time
15610 package.
15612## pandoc 1.9.4.2 (2012-06-29)
15614 * Don't encode/decode file paths if base >= 4.4.
15615 Prior to base 4.4, filepaths and command line arguments were treated
15616 as unencoded lists of bytes, not unicode strings, so we had to work
15617 around that by encoding and decoding them. This commit adds CPP
15618 checks for the base version that intelligibly enable encoding/decoding
15619 when needed. Fixes a bug with multilingual filenames when pandoc was
15620 compiled with ghc 7.4 (#540).
15622 * Don't generate an empty H1 after hrule slide breaks.
15623 We now use a slide-level header with contents `[Str "\0"]` to mark
15624 an hrule break. This avoids creation of an empty H1 in these
15625 contexts. Closes #484.
15627 * Docbook reader: Added support for "bold" emphasis. Thanks to mb21.
15629 * In make_osx_package.sh, ensure citeproc-hs is built with the
15630 embed_data_files flag.
15632 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
15634 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
15635 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
15637 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
15638 Closes #535.
15640 * Added webm to mime types. Closes #543.
15642 * Added some missing exports and tests to the cabal file
15643 (Alexander V Vershilov).
15645 * Compile with `-rtsopts` and `-threaded` by default.
15647## pandoc 1.9.4.1 (2012-06-08)
15649 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
15651 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
15652 variables. Make TOC links black.
15654 * LaTeX template improvements.
15656 + Don't print date unless one is given explicitly in the document.
15657 + Simplified templates.
15658 + Use fontenc [T1] by default, and lmodern.
15659 + Use microtype if available.
15661 * Biblio:
15663 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
15664 Motivation: `@item1 [50]` should be as close as possible to
15665 `[@item1, 50]`.
15666 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
15667 beginning with a citation to be empty. Closes #531.
15669 * Fixed documentation on mixed lists. Closes #533.
15671## pandoc 1.9.4 (2012-06-03)
15673 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
15674 footnotes and captions. We now handle note citations by inserting
15675 footnotes during initial citation processing, and doing a separate
15676 pass later to remove notes inside notes.
15678 * Added 'zenburn' highlight style from highlighting-kate.
15680 * Added Slideous writer. Slideous is an HTML + javascript slide show
15681 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
15683 * LaTeX writer:
15685 + Ensure we don't have extra blank lines at ends of cells.
15686 This can cause LaTeX errors, as they are interpreted as new paragraphs.
15687 + More consistent interblock spacing.
15688 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
15689 code in LaTeX. Closes #527.
15690 + Ensure that a Verbatim at the end of a footnote is followed by
15691 a newline. (Fixes a regression in the previous version.)
15692 + In default template, use black for internal links and TOC.
15693 Added commented-out code to use footnotes for links, as would
15694 be suitable in print output.
15696 * Beamer writer: When `--incremental` is used, lists inside
15697 a block quote should appear all at once. (This makes Beamer
15698 output consistent with the HTML slide show formats.)
15700 * ConTeXt writer:
15702 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
15703 to avoid gobbling spaces after the `%` sign.
15704 + Ensure space after `\stopformula`.
15706 * Markdown writer:
15708 + Use `:` form instead of `~` in definition lists, for better
15709 compatibility with other markdown implementations.
15710 + Don't wrap the term, because it breaks definition lists.
15711 + Use a nonzero space to prevent false recognition
15712 of list marker in ordered lists. Closes #516.
15714 * Org writer: Add space before language name. Closes #523.
15716 * Docx writer: Simplified bullet characters so they work properly
15717 with Word 2007. Closes #520.
15719 * LaTeX reader: Support `\centerline`.
15721 * RST reader: handle figures. Closes #522.
15723 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
15724 (Paul Rivier)
15726## pandoc 1.9.3 (2012-05-12)
15728 * Added docbook reader (with contributions from Mauro Bieg).
15730 * Fixed bug in `fromEntities`. The previous version would turn
15731 `hi & low you know;` into `hi &`.
15733 * HTML reader:
15735 + Don't skip nonbreaking spaces.
15736 Previously a paragraph containing just `&nbsp;` would be rendered
15737 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
15738 + Support `<col>` and `<caption>` in tables. Closes #486.
15740 * Markdown reader:
15742 + Don't recognize references inside delimited code blocks.
15743 + Allow list items to begin with lists.
15745 * LaTeX reader:
15747 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
15748 + Control sequences can't be followed by a letter.
15749 This fixes a bug where `\begingroup` was parsed as `\begin`
15750 followed by `group`.
15751 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
15752 + Make `\label` and `\ref` sensitive to `--parse-raw`.
15753 If `--parse-raw` is selected, these will be parsed as raw latex
15754 inlines, rather than bracketed text.
15755 + Don't crash on unknown block commands (like `\vspace{10pt}`)
15756 inside `\author`; just skip them. Closes #505.
15758 * Textile reader:
15760 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
15761 + Added support for LaTeX blocks and inlines (Paul Rivier).
15762 + Better conformance to RedCloth inline parsing (Paul Rivier).
15763 + Parse '+text+' as emphasized (should be underlined, but this
15764 is better than leaving literal plus characters in the output.
15766 * Docx writer: Fixed multi-paragraph list items. Previously they each
15767 got a list marker. Closes #457.
15769 * LaTeX writer:
15771 + Added `--no-tex-ligatures` option to avoid replacing
15772 quotation marks and dashes with TeX ligatures.
15773 + Use `fixltx2e` package to provide `\textsubscript`.
15774 + Improve spacing around LaTeX block environments:
15775 quote, verbatim, itemize, description, enumerate.
15776 Closes #502.
15777 + Use blue instead of pink for URL links in latex/pdf output.
15779 * ConTeXt writer: Fixed escaping of `%`.
15780 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
15781 Inside URLs, `%` needs to be escaped as `\%`
15782 Thanks to jmarca and adityam for the fix. Closes #492.
15784 * Texinfo writer: Escape special characters in node titles.
15785 This fixes a problem pointed out by Joost Kremers. Pandoc used
15786 to escape an '@' in a chapter title, but not in the corresponding
15787 node title, leading to invalid texinfo.
15789 * Fixed document encoding in texinfo template.
15790 Resolves Debian Bug #667816.
15792 * Markdown writer:
15794 + Don't force delimited code blocks to be flush left.
15795 Fixes bug with delimited code blocks inside lists etc.
15796 + Escape `<` and `$`.
15798 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
15799 Previously we used `\href{\#ident}{text}`, which didn't work on
15800 all systems. Thanks to Dirk Laurie.
15802 * RST writer: Don't wrap link references. Closes #487.
15804 * Updated to use latest versions of blaze-html, mtl.
15807## pandoc 1.9.2 (2012-04-05)
15809 * LaTeX reader:
15811 + Made `lstlisting` work as a proper verbatim environment.
15812 + Fixed bug parsing LaTeX tables with one column.
15814 * LaTeX writer:
15816 + Use `{}` around `ctable` caption, so that formatting can be used.
15817 + Don't require eurosym package unless document has a €.
15819 * LaTeX template: Added variables for `geometry`, `romanfont`,
15820 `sansfont`, `mathfont`, `mainfont` so users can more easily
15821 customize fonts.
15823 * PDF writer:
15825 + Run latex engine at least two times, to ensure
15826 that PDFs will have hyperlinked bookmarks.
15827 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
15829 * Texinfo writer: retain directories in image paths. (Peter Wang)
15831 * RST writer: Better handling of inline formatting, in accord
15832 with docutils' "inline markup recognition rules" (though we don't
15833 implement the unicode rules fully). Now `hi*there*hi` gets
15834 rendered properly as `hi\ *there*\ hi`, and unnecessary
15835 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
15837 * RST reader:
15839 + Parse `\ ` as null, not escaped space.
15840 + Allow `` :math:`...` `` even when not followed by blank
15841 or `\`. This does not implement the complex rule docutils follows,
15842 but it should be good enough for most purposes.
15843 + Add support for the rST default-role directive. (Greg Maslov)
15845 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
15846 (Greg Maslov)
15848 * Markdown reader: Properly handle citations nested in other inline
15849 elements.
15851 * Markdown writer: don't replace empty alt in image with "image".
15853 * DZSlides: Updated template.html and styles in default template.
15854 Removed bizarre CSS for `q` in dzslides template.
15856 * Avoid repeated `id` attribute in section and header in HTML slides.
15858 * README improvements: new instructions on internal links,
15859 removed misleading note on reST math.
15861 * Build system:
15863 + Fixed Windows installer so that dzslides works.
15864 + Removed stripansi.sh.
15865 + Added .travis.yml for Travis continuous integration support..
15866 + Fixed upper bound for zlib (Sergei Trofimovich).
15867 + Fixed upper bound for test-framework.
15868 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
15871## pandoc 1.9.1.2 (2012-03-09)
15873 * Added `beamer+lhs` as output format.
15875 * Don't escape `<` in `<style>` tags with `--self-contained`.
15876 This fixes a bug which prevented highlighting from working
15877 when using `--self-contained`.
15879 * PDF: run latex engine three times if `--toc` specified.
15880 This fixes page numbers in the table of contents.
15882 * Docx writer: Added TableNormal style to tables.
15884 * LaTeX math environment fixes. `aligned` is now used instead of
15885 the nonexistent `aligned*`. `multline` instead of the nonexistent
15886 `multiline`.
15888 * LaTeX writer: Use `\textasciitilde` for literal `~`.
15890 * HTML writer: Don't escape contents of EQ tags with --gladtex.
15891 This fixes a regression from 1.8.
15893 * Use `<q>` tags for Quoted items for HTML5 output.
15894 The quote style can be changed by modifying the template
15895 or including a css file. A default quote style is included.
15897 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
15898 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
15900 * Updated LaTeX template for better language support.
15901 Use `polyglossia` instead of `babel` with xetex.
15902 Set `lang` as documentclass option.
15903 `\setmainlanguage` will use the last of a comma-separated
15904 list of languages. Thanks to François Gannaz.
15906 * Fixed default LaTeX template so `\euro` and `€` work. The
15907 `eurosym` package is needed if you are using pdflatex.
15909 * Fixed escaping of period in man writer (thanks to Michael Thompson).
15911 * Fixed list label positions in beamer.
15913 * Set `mainlang` variable in context writer.
15914 This parallels behavior of latex writer. `mainlang` is the last
15915 of a comma-separated list of languages in lang.
15917 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
15919 * Changed `-V` so that you can specify a key without a value.
15920 Such keys get the value `true`.
15922 * Fixed permissions on installed man pages - thanks Magnus Therning.
15924 * Windows installer: require XP or higher. The installer is
15925 now compiled on a Windows 7 machine, which fixes a problem
15926 using citation functions on Windows 7.
15928 * OSX package: Check for 64-bit Intel CPU before installing.
15931## pandoc 1.9.1.1 (2012-02-11)
15933 * Better handling of raw latex environments in markdown. Now
15935 \begin{equation}
15936 a_1
15937 \end{equation}
15939 turns into a raw latex block as expected.
15941 * Improvements to LaTeX reader:
15943 + Skip options after block commands.
15944 + Correctly handle `{\\}` in braced.
15945 + Added a needed 'try'.
15946 + Citations: add `, ` to suffix if it doesn't start with space or
15947 punctuation. Otherwise we get no space between the year and the
15948 suffix in author-date styles.
15950 * Added two needed data files for S5. This fixes a problem with
15951 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
15952 which was no longer being used.
15954 * Fixed some minor problems in `reference.docx`:
15955 name on "Date" style, `xCs` instead of `xIs`.
15957 * Fixed a problem creating docx files using a reference docx
15958 modified using Word. The problem seems to be that Word
15959 modifies `_rels/.rels`, changing the Type of the Relationship to
15960 `docProps/core.xml`. Pandoc now changes this back to the correct
15961 value if it has been altered, fixing the problem.
15963 * Fixed html5 template so it works properly with highlighting.
15965## pandoc 1.9.1 (2012-02-09)
15967 * LaTeX reader:
15969 + Fixed regression in 1.9; properly handle escaped $ in latex math.
15970 + Put LaTeX verse environments in blockquotes.
15972 * Markdown reader:
15974 + Limit nesting of strong/emph. This avoids exponential lookahead
15975 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
15976 + Improved attributes syntax (in code blocks/spans): (1)
15977 Attributes can contain line breaks. (2) Values in key-value
15978 attributes can be surrounded by either double or single quotes, or
15979 left unquoted if they contain no spaces.
15981 * Headers no longer wrap in markdown or RST writers.
15983 * Added `stateMaxNestingLevel` to `ParserState`.
15984 We set this to 6, so you can still have `Emph` inside `Emph`,
15985 just not indefinitely.
15987 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
15989 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
15990 is present.
15992 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
15994## pandoc 1.9.0.5 (2012-02-06)
15996 * Changed cabal file so that build-depends for the test program
15997 are not required unless the tests flag is used.
15999 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
16000 form ligatures (dashes) in code spans.
16002## pandoc 1.9.0.4 (2012-02-06)
16004 * Raised version bound on test-framework to avoid problems
16005 compiling tests on GHC 7.4.1.
16007 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
16008 so citations don't just disappear unless you process with
16009 citeproc. Ignore `\bibliographystyle`, `\nocite`.
16011 * Simplified tex2pdf; it will always run latex twice to
16012 resolve table of contents and hyperrefs.
16014## pandoc 1.9.0.3 (2012-02-06)
16016 * Require Cabal >= 1.10.
16018 * Tweaked cabal file to meet Cabal 1.10 requirements.
16020## pandoc 1.9.0.2 (2012-02-05)
16022 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
16023 ghc 6.12.
16025## pandoc 1.9 (2012-02-05)
16027### New features
16029 * Added a Microsoft Word `docx` writer. The writer includes support
16030 for highlighted code and for math (which is converted from TeX to OMML,
16031 Office's native math markup language, using texmath's new OMML module).
16032 A new option `--reference-docx` allows the user to customize the
16033 styles.
16035 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
16037 * Better support for slide shows:
16039 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
16040 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
16042 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
16043 slide presentations.
16045 + New, flexible rules for dividing documents into sections and slides
16046 (see the "Structuring the slide show" in the User's Guide). These
16047 are backward-compatible with the old rules, but they allow slide
16048 shows to be organized into sections and subsections containing
16049 multiple slides.
16051 + A new `--slide-level` option allows users to override defaults
16052 and select a slide level below the first header level with content.
16054 * A new `--self-contained` option produces HTML output that does not
16055 depend on an internet connection or the presence of any external
16056 files. Linked images, CSS, and javascript is downloaded (or fetched
16057 locally) and encoded in `data:` URIs. This is useful for making portable
16058 `HTML slide shows. The --offline` option has been deprecated and is now
16059 `treated as a synonym or --self-contained`.
16061 * Support for PDF output:
16063 + Removed the old `markdown2pdf`.
16064 + `pandoc` can now create PDFs (assuming you have latex and a set of
16065 appropriate packages installed): just specify an output file with the
16066 `.pdf` extension.
16067 + A new option `--latex-engine` allows you to specify `pdflatex`,
16068 `xelatex`, or `lualatex` as the processor.
16070 * Highlighting changes:
16072 + Syntax highlighting is now a standard feature; the `highlighting`
16073 flag is no longer needed when compiling.
16074 + A new `--no-highlight` option allows highlighting to be disabled.
16075 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
16076 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
16077 + A new `--highlight-style` option selects between various highlighting
16078 color themes.
16080 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
16082 * LaTeX `\include` and `\usepackage` commands are now processed,
16083 provided the files are in the working directory.
16085 * EPUB improvements:
16087 + Internal and external links now work in EPUB.
16088 + Raw HTML is allowed.
16089 + New `--epub-embed-font` option.
16090 + Customizable templates for EPUB pages offer more control over
16091 formatting: `epub-page.html`, `epub-coverimage.html`,
16092 `epub-titlepage.html`.
16094 * `--mathml` now works with DocBook.
16096 * Added support for math in RST reader and writer. Inline math uses the
16097 `` :math:`...` `` construct. Display math uses
16099 .. math:: ...
16101 or if the math is multiline,
16103 .. math::
16105 ...
16107 These constructions are now supported now by `rst2latex.py`.
16109 * Github syntax for fenced code blocks is supported in pandoc's
16110 markdown. You can now write
16112 ```ruby
16113 x = 2
16114 ```
16116 instead of
16118 ~~~ {.ruby}
16119 x = 2
16120 ~~~~
16122 * Easier scripting: a new `toJsonFilter` function makes it easier to
16123 write Haskell scripts to manipulate the Pandoc AST.
16124 See [Scripting with pandoc](scripting.html#pandoc-1.9-changes).
16126### Behavior changes
16128 * Fixed parsing of consecutive lists in markdown.
16129 Pandoc previously behaved like Markdown.pl for consecutive
16130 lists of different styles. Thus, the following would be parsed
16131 as a single ordered list, rather than an ordered list followed
16132 by an unordered list:
16134 1. one
16135 2. two
16137 - one
16138 - two
16140 This change makes pandoc behave more sensibly, parsing this as
16141 two lists. Any change in list type (ordered/unordered) or in
16142 list number style will trigger a new list. Thus, the following
16143 will also be parsed as two lists:
16145 1. one
16146 2. two
16148 a. one
16149 b. two
16151 Since we regard this as a bug in Markdown.pl, and not something
16152 anyone would ever rely on, we do not preserve the old behavior
16153 even when `--strict` is selected.
16155 * Dashes work differently with `--smart`: `---` is always em-dash,
16156 and `--` is always en-dash. Pandoc no longer tries to guess when
16157 `-` should be en-dash. *Note:* This may change how existing documents
16158 look when processed with pandoc. A new option, `--old-dashes`,
16159 is provided for legacy documents.
16161 * The markdown writer now uses setext headers for levels 1-2.
16162 The old behavior (ATX headers for all levels) can be restored
16163 using the new `--atx-headers` option.
16165 * Links are now allowed in markdown image captions. They are also
16166 allowed in links, but will appear there as regular text. So,
16168 [link with [link](/url)](/url)
16170 will turn into
16172 <p><a href="/url">link with link</a></p>
16174 * Improved handling of citations using `citeproc-hs-0.3.4`.
16175 Added `--citation-abbreviations` option.
16177 * Citation keys can no longer end with a punctuation character.
16178 This means that `@item1.` will be parsed as a citation with key
16179 'item1', followed by a period, instead of a citation with key
16180 'item1.', as was the case previously.
16182 * In HTML output, citations are now put in a span with class `citation`.
16184 * The markdown reader now recognizes DocBook block and inline tags.
16185 It was always possible to include raw DocBook tags in a markdown
16186 document, but now pandoc will be able to distinguish block from
16187 inline tags and behave accordingly. Thus, for example,
16189 <sidebar>
16190 hello
16191 </sidebar>
16193 will not be wrapped in `<para>` tags.
16195 * The LaTeX parser has been completely rewritten; it is now much more
16196 accurate, robust, and extensible. However, there are two important
16197 changes in how it treats unknown LaTeX. (1) Previously, unknown
16198 environments became BlockQuote elements; now, they are treated
16199 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
16200 same as `xyz`. (2) Previously, arguments of unknown commands
16201 were passed through with their braces; now the braces are stripped
16202 off.
16204 * `--smart` is no longer selected automatically with `man` output.
16206 * The deprecated `--xetex` option has been removed.
16208 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
16209 instead. `html5` and `html5+lhs` are now separate output formats.
16211 * Single quotes are no longer escaped in HTML output. They do not
16212 need to be escaped outside of attributes.
16214 * Pandoc will no longer transform leading newlines in code
16215 blocks to `<br/>` tags.
16217 * The ODT writer now sizes images appropriately, using the image
16218 size and DPI information embedded in the image.
16220 * `--standalone` is once again implicitly for a non-text output format
16221 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
16222 and get a standalone ODT file.
16224 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
16225 `<section>`.
16227 * The HTML writer now uses `<del>` for strikeout.
16229 * In HTML output with `--section-divs`, the classes `section` and
16230 `level[1,2,..6]` are put on the `div` tags so they can be styled.
16231 In HTML 5 output with `--section-divs`, the classes
16232 `level[1,2,...6]` are put on `section` tags.
16234 * EPUB writer changes:
16236 + The `lang` variable now sets the language
16237 in the metadata (if it is not set, we default to the locale).
16238 + EPUB: UTF-8 is used rather than decimal entities.
16240 * Added `titleslide` class to title slide in S5 template.
16242 * In HTML, EPUB, and docx metadata, the date is normalized into
16243 YYYY-MM-DD format if possible. (This is required for validation.)
16245 * Attributes in highlighted code blocks are now preserved in HTML.
16246 The container element will have the classes, id, and key-value attributes
16247 you specified in the delimited code block. Previously these were stripped
16248 off.
16250 * The reference backlink in the HTML writer no longer has a special
16251 `footnoteBacklink` class.
16253 * The HTML template has been split into `html` and `html5` templates.
16255 * Author and date are treated more consistently in HTML templates.
16256 Authors are now `<h2>`, date `<h3>`.
16258 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
16260 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
16262### Bug fixes
16264 * Better support for combining characters and East Asian wide characters
16265 in markdown and reST.
16267 * Better handling of single quotes with `--smart`.
16268 Previously `D'oh l'*aide*` would be parsed with left and right single
16269 quotes instead of apostrophes. This kind of error is now fixed.
16271 * Highlighting: Use `reads` instead of `read` for better error handling.
16272 Fixes crash on `startNum="abc"`.
16274 * Added blank comment after directives in rst template.
16276 * Unescape entities in citation `refId`. The `refId`s coming
16277 from citeproc contain XML numeric entities, and these don't match with the
16278 citation keys parsed by pandoc. Solution is to unescape them.
16280 * HTML reader: Fixed bug parsing tables with both thead and tbody.
16282 * Markdown reader:
16284 + Better handling of escapes in link URLs and titles.
16285 + Fixed backslash escapes in reference links.
16286 + Fixed bug in table/hrule parsing, by checking that the top
16287 line of a table is not followed by a blank line. This bug caused
16288 slowdowns on some files with hrules and tables, as pandoc tried to
16289 interpret the hrules as the tops of multiline tables.
16290 + Fixed bug in code block attribute parser. Previously the ID attribute
16291 got lost if it didn't come first. Now attributes can come in any order.
16293 * RST reader: allow footnotes followed by newline without space characters.
16295 * LaTeX reader:
16297 + Ignore empty groups {}, { }.
16298 + LaTeX reader: Handle `\@`.
16299 + LaTeX reader: Don't crash on commands like `\itemsep`.
16300 + LaTeX reader: Better handling of letter environments.
16302 * RST writer: Fixed bug involving empty table cells. isSimple was being
16303 calculated in a way that assumed there were no non-empty cells.
16305 * ConTeXt writer:
16307 + Made `--toc` work even without `--number-sections`.
16308 + Escape # in link URLs.
16309 + Use buffering for footnotes containing code blocks.
16310 + Changed 'descr' to 'description', fixed alignment.
16312 * LaTeX writer:
16314 + Escape euro character.
16315 + Don't escape `~` inside `\href{...}`.
16316 + Escape `#` in href URLs.
16317 + Improved detection of book classes. We now check the
16318 `documentclass` variable, and if that is not set, we look through
16319 the template itself. Also, we have added the KOMA classes scrreprt
16320 and scrbook. You can now make a book using
16321 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
16322 + LHS files now set the "listings" variable, so that the definition
16323 of the `code` environment will be included in the template.
16324 + Links are colored blue by default (this can be changed by
16325 modifying `hyperref` settings in the template).
16326 + Added `lang` variable to LaTeX template.
16328 * HTML writer:
16330 + Fixed bug in HTML template with html5 and mathml.
16331 + Don't use self-closing img, br, hr tags for HTML5.
16332 + Use `<section>` for footnotes if HTML5.
16333 + Update HTML templates to use Content-Style-Type meta tag.
16334 + Use separate variables for meta-date, meta-author.
16335 This makes footnotes work in author and date fields.
16336 + Use 'vertical-align:middle' in WebTeX math for better alignment.
16338 * S5/slidy writer: Make footnotes appear on separate slide at end.
16340 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
16341 META-INF/manifest.xml for ODT files will have everything it needs, so
16342 that ODT files modified by LibreOffice can be used as `--reference-odt`.
16344 * `Text.Pandoc.Templates`: Return empty string for json template.
16346 * `Text.Pandoc.Biblio`:
16348 + Expand citations recursively inside nested inlines.
16349 + Treat `\160` as space when parsing locator and suffix.
16350 This fixes a bug with "p. 33" when `--smart` is used. Previously
16351 the whole "p. 33" would be included in the suffix, with no locator.
16352 + Put whole author-in-text citation in a Cite. Previously just the
16353 date and other info went in the Cite.
16354 + Don't add comma+space to prefix if it ends in punctuation.
16356 * Updated chicago-author-date.csl. The old version did not work
16357 properly for edited volumes with no author.
16359 * EPUB writer:
16361 + Add date to EPUB titlepage and metadata.
16362 + Added TOC identifier in EPUB page template.
16363 + Don't generate superfluous file `cover-image.jpg`.
16365### Under the hood improvements
16367 * Modified `make_osx_package.sh` to use cabal-dev.
16368 Items are no longer installed as root.
16369 Man pages are zipped and given proper permissions.
16371 * Modified windows installer generator to use cabal-dev.
16373 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
16374 Setup.hs we now invoke 'runghc' in a way that points it to the correct
16375 package databases, instead of always falling back to the default user
16376 package db.
16378 * Updated to work with GHC 7.4.1.
16380 * Removed dependency on old-time.
16382 * Removed dependency on dlist.
16384 * New slidy directory for "self-contained."
16386 * TeXMath writer: Use unicode thin spaces for thin spaces.
16388 * Markdown citations: don't strip off initial space in locator.
16390### API changes
16392 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
16393 from the native `Inline` type in pandoc-types. Now we use `Str`
16394 elements with unicode.
16396 * Improvements to `Text.Pandoc.Builder`:
16398 + `Inlines` and `Blocks` are now newtypes (not synonyms for
16399 sequences).
16400 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
16401 and a new `Listable` class, which allows these to be manipulated
16402 to some extent like lists. Monoid append includes automatic
16403 normalization.
16404 + `+++` has been replaced by `<>` (mappend).
16406 * Use blaze-html instead of xhtml for HTML generation.
16407 This changes the type of `writeHtml`.
16409 * `Text.Pandoc.Shared`:
16411 + Added `warn` and `err`.
16412 + Removed `unescapeURI`, modified `escapeURI`.
16413 (See under [behavior changes], above.)
16415 * Changes in URI escaping: Previously the readers escaped URIs by
16416 converting unicode characters to octets and then percent encoding.
16417 Now unicode characters are left as they are, and `escapeURI` only
16418 percent-encodes space characters. This gives more readable
16419 URIs, and works well with modern user agents. URIs are no longer unescaped
16420 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
16422 * New module `Text.Pandoc.SelfContained`.
16424 * New module `Text.Pandoc.Docx`.
16426 * New module `Text.Pandoc.PDF`.
16428 * Added `writerBeamer` to `WriterOptions`.
16430 * Added `normalizeDate` to `Text.Pandoc.Shared`.
16432 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
16433 This is like `splitWithIndices`, but it is sensitive to distinctions
16434 between wide, combining, and regular characters.
16436 * `Text.Pandoc.Pretty`:
16438 + Added `chomp` combinator.
16439 + Added `beforeNonBreak` combinator. This allows you to include
16440 something conditionally on it being before a nonblank.
16441 Used for RST inline math.
16442 + Added `charWidth` function. All characters marked W or F in the unicode
16443 spec EastAsianWidth.txt get width 2.
16444 + Added `realLength`, based on `charWidth`. `realLength` is now
16445 used in calculating offsets.
16447 * New module `Text.Pandoc.Slides`, for common functions for breaking
16448 a document into slides.
16450 * Removed `Text.Pandoc.S5`, which is no longer needed.
16452 * Removed `Text.Pandoc.CharacterReferences`. Moved
16453 `characterReference` to `Text.Pandoc.Parsing`.
16454 `decodeCharacterReferences` is replaced by `fromEntities`
16455 in `Text.Pandoc.XML`.
16457 * Added `Text.Pandoc.ImageSize`. This is intened for use
16458 in `docx` and `odt` writers, so the size and dpi of images
16459 can be calculated.
16461 * Removed `writerAscii` in `WriterOptions`.
16463 * Added `writerHighlight` to `WriterOptions`.
16465 * Added `DZSlides` to `HTMLSlideVariant`.
16467 * `writeEPUB` has a new argument for font files to embed.
16469 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
16470 of whether we're parsing the position immediately after a regular
16471 (non-space, non-symbol) string, which is useful for distinguishing
16472 apostrophes from single quote starts.
16474 * `Text.Pandoc.Parsing`:
16476 + `escaped` now returns a `Char`.
16477 + Removed `charsInBalanced'`, added a character parser as
16478 a parameter of `charsInBalanced`. This is needed for
16479 proper handling of escapes, etc.
16480 + Added `withRaw`.
16482 * Added `toEntities` to `Text.Pandoc.XML`.
16484 * `Text.Pandoc.Readers.LaTeX`:
16486 + Export `handleIncludes`.
16487 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
16489 * Added `ToJsonFilter` class and `toJsonFilter` function to
16490 `Text.Pandoc`, deprecating the old `jsonFilter` function.
16492 * `Text.Pandoc.Highlighting`:
16494 + Removed `highlightHtml`, `defaultHighlightingCss`.
16495 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
16496 key functions from highlighting-kate.
16497 + Changed types of highlighting function. `highlight` returns a
16498 `Maybe`, not an `Either`.
16501## pandoc 1.8.2.1 (2011-08-01)
16503 * Adjusted Arbitrary instance to help avoid timeouts in tests.
16505 * Added `Tests.Writers.Markdown` to cabal file.
16507 * Relaxed version bounds on pandoc-types, test-framework.
16509## pandoc 1.8.2 (2011-07-30)
16511 * Added script to produce OS X package.
16513 * Made `templates` directory a git submodule. This should make it
16514 easier for people to revise their custom templates when the default
16515 templates change.
16517 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
16518 **Note:** If you have existing templates in `~/.pandoc/templates`, you
16519 must rename them to conform to the new scheme!
16521 * Default template improvements:
16523 + HTML: Display author and date after title.
16524 + HTML: Made table of contents more customizable. The container
16525 for the TOC is now in the template, so users can insert a header
16526 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
16527 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
16528 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
16529 hard-coding. If you want to put your slidy files in the slidy
16530 subdirectory, for example, you can do
16531 `pandoc -t slidy -V slidy-url=slidy -s`.
16532 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
16533 & writer). Closes #279.
16534 + LaTeX: Set `\emergencystretch` to prevent overfull lines.
16535 + LaTeX: Use different `hyperref` options for `xetex`, fixing
16536 problems with unicode bookmarks (thanks to CircleCode).
16537 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
16538 with `inputenc`. This covers fewer characters but is more
16539 robust with other packages, and `ucs` is unmaintained. Users
16540 who need better unicode support should use xelatex or lualatex.
16542 * If a template specified with `--template` is not found, look for it
16543 in `datadir`. Also, if no extension is provided, supply one based
16544 on the writer. So now you can put your `special.latex` template in
16545 `~/.pandoc/templates`, and use it from any directory via
16546 `pandoc -t latex --template special`.
16548 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
16550 * Fixed smart quotes bug, now handling `'...hi'` properly.
16552 * RST reader:
16554 + Partial support for labeled footnotes.
16555 + Improved accuracy of `simpleReferenceName` parser.
16557 * HTML reader:
16559 + Substitute correct unicode characters for
16560 characters in the 128..159 range, which are often found even in
16561 HTML that purports to be UTF-8.
16563 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
16564 to the title, after a colon and linebreak). Closes #280.
16566 * Leaner `reference.odt`.
16568 * Added unexported module `Text.Pandoc.MIME` for use in
16569 the ODT writer.
16571 * ODT writer: Construct `manifest.xml` based on archive contents.
16572 This fixes a bug in ODTs containing images. Recent versions of
16573 LibreOffice would reject these as corrupt, because `manifest.xml`
16574 did not contain a reference to the image files.
16576 * LaTeX writer:
16578 + Make verbatim environments flush to avoid spurious
16579 blank lines. Closes #277.
16580 + Use `\texttt` and escapes insntead of `\verb!...!`, which
16581 is too fragile (doesn't work in command arguments).
16582 + Use `\enquote{}` for quotes if the template includes
16583 the `csquotes` package. This provides better support for
16584 local quoting styles. (Thanks to Andreas Wagner for the idea.)
16586 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
16587 margin, preventing spurious blank lines.
16589 * Slidy writer:
16591 + Use non-minimized version of `slidy.css` with `--offline`
16592 option, so users can more easily edit it.
16593 + Also fixed a bug in the CSS that prevented proper centering
16594 of title (now reported and fixed upstream).
16596 * S5 writer:
16598 + Replaced `s5/default/slides.js.{comment,packed}` with
16599 new compressed `s5/default/slides.min.js`.
16600 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
16601 when `--offline` is specified. Using inline CSS didn't
16602 work with Chrome or Safari. This fixes offline
16603 S5 on those browsers.
16605 * HTML writer: Removed English title on footnote backlinks.
16606 This is incongrous in non-English documents.
16608 * Docbook writer:
16610 + Use CALS tables. (Some older docbook software does not work
16611 well with XHTML tables.) Closes #77.
16612 + Use `programlisting` tags (instead of `screen`) for code blocks.
16614 * `markdown2pdf`:
16616 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
16617 of `-interaction=batchmode`, which essentially just ignored errors,
16618 leading to bad results. Better to know when something is wrong.
16619 + Fixed issues with non-UTF-8 output of `pdflatex`.
16620 + Better error reporting.
16622 * `--mathjax` now takes an optional URL argument. If it is not
16623 provided, pandoc links directly to the (secure) mathjax CDN,
16624 as now recommended (thanks to dsanson).
16626 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
16627 since the LaTeX writer now produces a file that can be processed by
16628 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
16630 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
16631 to be used to create the PDF.
16634## pandoc 1.8.1.2 (2011-07-16)
16636 * Added `--epub-cover-image` option.
16638 * Documented `--biblatex` and `--natbib` options.
16640 * Allow `--section-divs` with slidy output. Resolves Issue #296.
16642 * Disallow notes within notes in reST and markdown.
16643 These previously caused infinite looping and stack overflows.
16644 For example:
16646 [^1]
16648 [^1]: See [^1]
16650 Note references are allowed in reST notes, so this isn't a full
16651 implementation of reST. That can come later. For now we need to
16652 prevent the stack overflows. Partially resolves Issue #297.
16654 * EPUB writer: Allow non-plain math methods.
16656 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
16657 `(@item1; @item2)` because the final paren was being parsed as part of
16658 the item key.
16660 * Changed URI parser so it doesn't include trailing punctuation.
16661 So, in RST, `http://google.com.` should be parsed as a link followed by a
16662 period. The parser is smart enough to recognize balanced parentheses, as
16663 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
16665 * Markdown+lhs reader: Require space after inverse bird tracks, so that
16666 HTML tags can be used freely at the left margin of a markdown+lhs document.
16667 Thanks to Conal Elliot for the suggestion.
16669 * Markdown reader: Fixed bug in footnote order (reported by CircleCode).
16671 * RST reader:
16672 + Fixed bug in in field lists with multi-line items at the
16673 end of the list.
16674 + Added parentheses to RST `specialChars`, so
16675 `(http://google.com)` will be parsed as a link in parens.
16676 Resolves Issue #291.
16677 + Allow `|` followed by newline in RST line block.
16679 * LaTeX reader:
16680 + Support `\dots`.
16681 + Gobble option & space after linebreak `\\[10pt]`.
16683 * Textile reader:
16684 + Make it possible to have colons after links. (qerub)
16685 + Make it possible to have colons after links. (Christoffer Sawicki)
16687 * HTML reader:
16688 + Skip spaces after `<b>`, `<emph>`, etc.
16689 + Handle tbody, thead in simple tables. Closes #274.
16690 + Implicit `Para`s instead of `Plains` in some contexts.
16692 * OpenDocument writer: Use special `First paragraph` style for
16693 first paragraph after most non-paragraph blocks. This allows users to
16694 specify e.g. that only paragraphs after the first paragraph of a block are
16695 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
16697 * LaTeX writer: use `deVerb` on table and picture captions.
16698 Otherwise LaTeX complains about `\verb` inside command argument.
16699 Thanks to bbanier for reporting the bug.
16701 * Markdown writer: Insert HTML comment btw list and indented code block.
16702 This prevents the code block from being interpreted as part of the list.
16704 * EPUB writer: Add a meta element specify the cover.
16705 Some EPUB e-readers, such as the Nook, require a meta element inside the
16706 OPF metadata block to ensure the cover image is properly displayed.
16707 (Kelsey Hightower)
16709 * HTML writer: Use embed tag for images with non-image extensions.
16710 (e.g. PDFs). Closes #264.
16712 * LaTeX writer: Improved tables.
16714 + More space between lines, top-align cells.
16715 + Use ctable package, which allows footnotes and
16716 provides additional options.
16717 + Made cell alignments work in multiline tables.
16718 + Closes #271, #272.
16720 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
16721 Also do this when copying image files into EPUBs and ODTs.
16722 Closes #263.
16724 * Changed to github issue tracker.
16726 * Added failing emph/strong markdown test case due to Perry Wagle.
16728 * Slidy improvements:
16729 + Updated to use Slidy2.
16730 + Fixed bug, unclosed div tag.
16731 + Added `duration` variable in template.
16732 Setting this activates the timer.
16733 + Use 'titlepage' instead of 'cover' for title div.
16736## pandoc 1.8.1.1 (2011-02-13)
16738 * `markdown2pdf`: Removed some debugging lines accidentally included
16739 in the 1.8.1 release. With those lines, the temp directory is created
16740 in the working directory, and it is not deleted. This fix restores
16741 the original behavior.
16743## pandoc 1.8.1 (2011-02-13)
16745 * Added `--ascii` option. Currently supported only in HTML writer,
16746 which it causes to use numerical entities instead of UTF-8.
16748 * EPUB writer: `--toc` now works to provide a table of contents
16749 at the beginning of each chapter.
16751 * LaTeX writer: Change figure defaults to `htbp`.
16752 This prevents "too many unprocessed floats." Resolves
16753 Issue #285.
16755 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
16756 base.
16758 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
16759 Tanimoto. Resolves Issue #286.
16761 * HTML writer: Put line breaks in section divs.
16763 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
16765## pandoc 1.8.0.3 (2011-02-05)
16767 * Fixed Source-repository stanza in cabal file.
16769## pandoc 1.8.0.2 (2011-02-05)
16771 * HTML writer:
16773 + Stringify alt text instead of converting to HTML.
16774 + Break lines after block elements, not inside tags.
16775 HTML output now closely resembles that of tidy. Resolves Issue #134.
16777 * Markdown reader: Fixed bug in footnote block parser (pointed out
16778 by Jesse Rosenthal). The problem arose when the blank line
16779 at the end of a footnote block contained indenting spaces.
16781 * Shared: Improved 'normalize' function so it normalizes Spaces too.
16782 In normal form, Space elements only occur to separate two non-Space
16783 elements. So, we never have [Space], or [, ..., Space].
16785 * Tests:
16787 + Improved Arbitrary instance.
16788 + Added timeout for test instances.
16790 * README:
16792 + Added section on four-space rule for lists. Resolves Issue #283.
16793 + Clarified optional arguments on math options.
16795 * markdown2pdf: Fixed bug with output file extensions.
16796 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
16797 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
16799## pandoc 1.8.0.1 (2011-01-31)
16801 * Revised Interact.hs so that it works with the CPP macros
16802 in the UTF8 module.
16804 * Revised Setup.hs so that we don't call MakeManPage.hs unless
16805 the man pages are out of date.
16807## pandoc 1.8 (2011-01-30)
16809### New features
16811 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
16812 You can now write, for example,
16814 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
16816 and, when you process your document using `pandoc`, specifying
16817 a citation style using `--csl` and a bibliography using `--bibliography`,
16818 the citation will be replaced by an appropriately formatted
16819 citation, and a list of works cited will be added to the end
16820 of the document.
16822 This means that you can switch effortlessly between different citation
16823 and bibliography styles, including footnote, numerical, and author-date
16824 formats. The bibliography can be in any of the following formats: MODS,
16825 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
16826 See the README for further details.
16828 Citations are supported in the markdown reader, using a special
16829 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
16830 (Thanks to Nathan Gass for the natbib and biblatex support.)
16832 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
16833 the `textile` reader, an almost complete implementation of the textile
16834 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
16835 Resolves Issue #51.
16837 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
16839 * New `json` reader and writer, for reading and writing a JSON
16840 representation of the native Pandoc AST. These are much faster
16841 than the `native` reader and writer, and should be used for
16842 serializing Pandoc to text. To convert between the JSON representation
16843 and native Pandoc, use `encodeJSON` and `decodeJSON` from
16844 `Text.JSON.Generic`.
16846 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
16847 to write scripts that transform a JSON-encoded pandoc document.
16848 For example:
16850 -- removelinks.hs - removes links from document
16851 import Text.Pandoc
16852 main = interact $ jsonFilter $ bottomUp removeLink
16853 where removeLink (Link xs _) = Emph xs
16854 removeLink x = x
16856 To use this to remove links while translating markdown to LaTeX:
16858 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
16860 * Attributes are now allowed in inline `Code` elements, for example:
16862 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
16864 The attribute syntax is the same as for delimited code blocks.
16865 `Code` inline has an extra argument place for attributes, just like
16866 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
16867 is compiled with highlighting support. Resolves Issue #119.
16869 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
16870 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
16871 scripts to transform Pandoc documents. Scripts can now change
16872 how each element is rendered in each output format.
16874 * You can now define LaTeX macros in markdown documents, and pandoc
16875 will apply them to TeX math. For example,
16877 \newcommand{\plus}[2]{#1 + #2}
16878 $\plus{3}{4}$
16880 yields `3+4`. Since the macros are applied in the reader, they
16881 will work in every output format, not just LaTeX.
16883 * LaTeX macros can also be used in LaTeX documents (both in math
16884 and in non-math contexts).
16886 * A new `--mathjax` option has been added for displaying
16887 math in HTML using MathJax. Resolves issue #259.
16889 * Footnotes are now supported in the RST reader. (Note, however,
16890 that unlike docutils, pandoc ignores the numeral or symbol used in
16891 the note; footnotes are put in an auto-numbered ordered list.)
16892 Resolves Issue #258.
16894 * A new `--normalize` option causes pandoc to normalize the AST
16895 before writing the document. This means that, for example,
16896 `*hi**there*` will be rendered as `<em>hithere</em>`
16897 instead of `<em>hi</em><em>there</em>`. This is not the default,
16898 because there is a significant performance penalty.
16900 * A new `--chapters` command-line option causes headers
16901 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
16902 Resolves Issue #265.
16904 * In DocBook output, `<chapter>` is now used for top-level
16905 headers if the template contains `<book>`. Resolves Issue #265.
16907 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
16908 the LaTeX writer to use the listings package for code blocks.
16909 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
16910 Millon for the markdown2pdf patch.)
16912 * `markdown2pdf` now supports `--data-dir`.
16914 * URLs in autolinks now have class "url" so they can be styled.
16916 * Improved prettyprinting in most formats. Lines will be wrapped
16917 more evenly and duplicate blank lines avoided.
16919 * New `--columns` command-line option sets the column width for
16920 line wrapping and relative width calculations for tables.
16922 * Made `--smart` work in HTML, RST, and Textile readers, as well
16923 as markdown.
16925 * Added `--html5` option for HTML5 output.
16927 * Added support for listings package in LaTeX reader
16928 (Puneeth Chaganti).
16930 * Added support for simple tables in the LaTeX reader.
16932 * Added support for simple tables in the HTML reader.
16934 * Significant performance improvements in many readers and writers.
16936### API and program changes
16938 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
16939 auxiliary package, `pandoc-types`. This will make it possible for other
16940 programs to supply output in Pandoc format, without depending on the whole
16941 pandoc package.
16943 * Added `Attr` field to `Code`.
16945 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
16946 `RawBlock` and `RawInline`.
16948 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
16949 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
16950 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
16952 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
16954 * `Text.Pandoc` now exports association lists `readers` and `writers`.
16956 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
16957 `readNative` can now read full pandoc documents, block lists, blocks,
16958 inline lists, or inlines. It will interpret `Str "hi"`
16959 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
16960 This should make testing easier.
16962 * Removed deprecated `-C/--custom-header` option.
16963 Use `--template` instead.
16965 * `--biblio-file` has been replaced by `--bibliography`.
16966 `--biblio-format` has been removed; pandoc now guesses the format
16967 from the file extension (see README).
16969 * pandoc will treat an argument as a URI only if it has an
16970 `http(s)` scheme. Previously pandoc would treat some
16971 Windows pathnames beginning with `C:/` as URIs.
16973 * The `--sanitize-html` option and the `stateSanitize` field in
16974 `ParserState` have been removed. Sanitization is better done in the
16975 resulting HTML using `xss-sanitize`, which is based on pandoc's
16976 sanitization, but improved.
16978 * pandoc now adds a newline to the end of its output in fragment
16979 mode (= not `--standalone`).
16981 * Added support for `lang` in `html` tag in the HTML template,
16982 so you can do `pandoc -s -V lang=es`, for example.
16984 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
16985 a boolean argument that selects between "inline" and
16986 "block" HTML.
16988 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
16989 Images are embedded in RTF output when possible (png, jpeg).
16990 Resolves Issue #275.
16992 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
16993 `pretty` package. Changed all writers that used
16994 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
16996 * Rewrote `writeNative` using the new prettyprinting module. It is
16997 now much faster. The output has been made more consistent and compressed.
16998 `writeNative` is also now sensitive to writerStandalone`, and will simply
16999 `print a block list if writerStandalone` is False.
17001 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
17002 blocks and concatenate them, so a separate module is no longer needed.
17004 * `Text.Pandoc.Shared`:
17006 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
17007 `WriterOptions`.
17008 + Added `normalize`.
17009 + Removed unneeded prettyprinting functions:
17010 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
17011 `BlockWrapper`, `wrappedBlocksToDoc`.
17012 + Made `splitBy` take a test instead of an element.
17013 + Added `findDataFile`, refactored `readDataFile`.
17014 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
17015 + Fixed `inlineListToIdentifier` to treat `\160` as ' '.
17017 * `Text.Pandoc.Readers.HTML`:
17019 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
17020 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
17021 `htmlBlockElement`, `htmlComment`
17022 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
17023 `isTextTag`
17025 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
17026 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
17027 an inline parser.
17029 * Ellipses are no longer allowed to contain spaces.
17030 Previously we allowed '. . .', ' . . . ', etc. This caused
17031 too many complications, and removed author's flexibility in
17032 combining ellipses with spaces and periods.
17034 * Allow linebreaks in URLs (treat as spaces). Also, a string of
17035 consecutive spaces or tabs is now parsed as a single space. If you have
17036 multiple spaces in your URL, use `%20%20`.
17038 * `Text.Pandoc.Parsing`:
17040 + Removed `refsMatch`.
17041 + Hid `Key` constructor.
17042 + Removed custom `Ord` and `Eq` instances for `Key`.
17043 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
17044 + Generalized type on `readWith`.
17046 * Small change in calculation of relative widths of table columns.
17047 If the size of the header > the specified column width, use
17048 the header size as 100% for purposes of calculating
17049 relative widths of columns.
17051 * Markdown writer now uses some pandoc-specific features when `--strict`
17052 is not specified: `\` newline is used for a hard linebreak instead of
17053 two spaces then a newline. And delimited code blocks are used when
17054 there are attributes.
17056 * HTML writer: improved gladTeX output by setting ENV appropriately
17057 for display or inline math (Jonathan Daugherty).
17059 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
17061 * LaTeX reader:
17063 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
17064 + `\index{}` commands are skipped.
17066 * Added `fontsize` variable to default LaTeX template.
17067 This makes it easy to set the font size using `markdown2pdf`:
17068 `markdown2pdf -V fontsize=12pt input.txt`.
17070 * Fixed problem with strikeout in LaTeX headers when using
17071 hyperref, by adding a command to the default LaTeX template
17072 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
17073 for the fix.
17075 * The `COLUMNS` environment variable no longer has any effect.
17077### Under-the-hood improvements
17079 * Pandoc now compiles with GHC 7. (This alone leads to a
17080 significant performance improvement, 15-20%.)
17082 * Completely rewrote HTML reader using tagsoup as a lexer. The
17083 new reader is faster and more accurate. Unlike the
17084 old reader, it does not get bogged down on some input
17085 (Issues #277, 255). And it handles namespaces in tags
17086 (Issue #274).
17088 * Replaced `escapeStringAsXML` with a faster version.
17090 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
17091 for a significant performance boost.
17093 * Improved performance of all readers by rewriting parsers.
17095 * Simplified Text.Pandoc.CharacterReferences by using
17096 entity lookup functions from TagSoup.
17098 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
17099 from `System.IO` if base >= 4.2. This gives support for
17100 windows line endings on windows.
17102 * Remove duplications in documentation by generating the
17103 pandoc man page from README, using `MakeManPage.hs`.
17105 * README now includes a full description of markdown syntax,
17106 including non-pandoc-specific parts. A new `pandoc_markdown`
17107 man page is extracted from this, so you can look up markdown
17108 syntax by doing `man pandoc_markdown`.
17110 * Completely revised test framework (with help from Nathan Gass).
17111 The new test framework is built when the `tests` Cabal flag is set. It
17112 includes the old integration tests, but also some new unit and quickcheck
17113 tests. Test output has been much improved, and you can now specify a glob
17114 pattern after `cabal test` to indicate which tests should be run;
17115 for example `cabal test citations` will run all the citation tests.
17117 * Added a shell script, `stripansi.sh`, for filtering ANSI control
17118 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
17120 * Added `Interact.hs` to make it easier to use ghci while developing.
17121 `Interact.hs` loads `ghci` from the `src` directory, specifying
17122 all the options needed to load pandoc modules (including
17123 specific package dependencies, which it gets by parsing
17124 dist/setup-config).
17126 * Added `Benchmark.hs`, testing all readers + writers using criterion.
17128 * Added `stats.sh`, to make it easier to collect and archive
17129 benchmark and lines-of-code stats.
17131 * Added upper bounds to all cabal dependencies.
17133 * Include man pages in extra-source-files. This allows users to
17134 install pandoc from the tarball without needing to build the man
17135 pages.
17137### Bug fixes
17139 * Filenames are encoded as UTF8. Resolves Issue #252.
17141 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
17142 were just parsed literally, leading to problems in some output formats.
17143 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
17144 Resolves Issue #270.
17146 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
17147 Spaces at end of line were not being stripped properly,
17148 resulting in unintended LineBreaks.
17150 * Markdown reader:
17152 + Allow HTML comments as inline elements in markdown.
17153 So, `aaa <!-- comment --> bbb` can be a single paragraph.
17154 + Fixed superscripts with links: `^[link](/foo)^` gets
17155 recognized as a superscripted link, not an inline note followed by
17156 garbage.
17157 + Fixed regression, making markdown reference keys case-insensitive again.
17158 Resolves Issue #272.
17159 + Properly handle abbreviations (like `Mr.`) at the end of a line.
17160 + Better handling of intraword underscores, avoiding exponential
17161 slowdowns in some cases. Resolves Issue #182.
17162 + Fixed bug in alignments in tables with blank rows in the header.
17164 * RST reader:
17166 + Field lists now allow spaces in field names, and
17167 block content in field values. (Thanks to Lachlan Musicman
17168 for pointing out the bug.)
17169 + Definition list items are now always `Para` instead of
17170 `Plain`, matching behavior of `rst2xml.py`.
17171 + In image blocks, the description is parsed properly and
17172 used for the alt attribute, not also the title.
17173 + Skip blank lines at beginning of file. Resolves
17174 Debian #611328.
17176 * LaTeX reader:
17178 + Improved parsing of preamble.
17179 Previously you'd get unexpected behavior on a document that
17180 contained `\begin{document}` in, say, a verbatim block.
17181 + Allow spaces between `\begin` or `\end` and `{`.
17182 + Support `\L` and `\l`.
17183 + Skip comments inside paragraphs.
17185 * LaTeX writer:
17187 + Escape strings in `\href{..}`.
17188 + In nonsimple tables, put cells in `\parbox`.
17190 * OpenDocument writer: don't print raw TeX.
17192 * Markdown writer:
17194 + Fixed bug in `Image`. URI was getting unescaped twice!
17195 + Avoid printing extra blank lines at the end if there are
17196 no notes or references.
17198 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
17199 This avoids unwanted interpretation as an optional argument.
17201 * ConTeXt writer: Fixed problem with inline code. Previously
17202 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
17203 If it contains neither, use `\type{}`; otherwise use `\mono{}`
17204 with an escaped version of the string.
17206 * `:` now allowed in HTML tags. Resolves Issue #274.
17210## pandoc 1.6 (2010-07-24)
17212+ New EPUB and HTML Slidy writers. (Issue #122)
17214 - [EPUB] is a standard ebook format, used in Apple's iBooks for
17215 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
17216 reader, and many other devices, and by online ebook readers like
17217 [bookworm]. (Amazon's Kindle uses a different format, MobiPocket,
17218 but EPUB books can easily be converted to Kindle format.) Now you
17219 can write your book in markdown and produce an ebook with a single
17220 command! I've put up a short [tutorial here].
17221 - [Slidy], like S5, is a system for producing HTML+javascript slide shows.
17223+ All input is assumed to be UTF-8, no matter what the locale and ghc
17224 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
17225 Also, a BOM, if present, is stripped from the input.
17227+ Markdown now supports grid tables, whose cells can contain
17228 arbitrary block elements. (Issue #43)
17230+ Sequentially numbered example lists in markdown with `@` marker.
17232+ Markdown table captions can begin with a bare colon and no longer need
17233 to include the English word "table." Also, a caption can now occur
17234 either before or after the table. (Issue #227)
17236+ New command-line options:
17238 - `--epub-stylesheet` allows you to specify a CSS file that will
17239 be used to style your ebook.
17240 - `--epub-metadata` allows you to specify metadata for the ebook.
17241 - `--offline` causes the generated HTML slideshow to include all
17242 needed scripts and stylesheets.
17243 - `--webtex` causes TeX math to be converted to images using the
17244 Google Charts API (unless a different URL is specified).
17245 - `--section-divs` causes div tags to be added around each section
17246 in an HTML document. (Issue #230, 239)
17248+ Default behavior of S5 writer in standalone mode has changed:
17249 previously, it would include all needed scripts and stylesheets
17250 in the generated HTML; now, only links are included unless
17251 the `--offline` option is used.
17253+ Default behavior of HTML writer has changed. Between 1.2 and 1.5,
17254 pandoc would enclose sections in div tags with identifiers on the
17255 div tags, so that the sections can be manipulated in javascript.
17256 This caused undesirable interactions with raw HTML div tags. So,
17257 starting with 1.6, the default is to put the identifiers directly
17258 on the header tags, and not to include the divs. The `--section-divs`
17259 option selects the 1.2-1.5 behavior.
17261+ API changes:
17263 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
17264 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
17265 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
17266 `writerIncludeAfter`.
17267 - Added `headerShift` to `Text.Pandoc.Shared`.
17268 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
17269 to a new module, `Text.Pandoc.Parsing`.
17270 - Added `stateHasChapters` to `ParserState`.
17271 - Added `HTMLSlideVariant`.
17272 - Made `KeyTable` a map instead of an association list.
17273 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`, `docDate`).
17274 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord` instances.
17275 - Reference keys now have a type of their own (`Key`), with its
17276 own `Ord` instance for case-insensitive comparison.
17277 - Added `Text.Pandoc.Writers.EPUB`.
17278 - Added `Text.Pandoc.UUID`.
17279 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
17280 Removed `saveOpenDocumentAsODT`, added `writeODT`.
17281 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
17282 Removed `prettyPandoc`.
17283 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
17284 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
17285 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
17286 To write S5, you now use `writeHtml` with `writerSlideVariant`
17287 set to `S5Slides` or `SlidySlides`.
17289+ Template changes. If you use custom templates, please update them,
17290 particularly if you use syntax highlighting with pandoc. The old HTML
17291 templates hardcoded highlighting CSS that will no longer work with
17292 the most recent version of highlighting-kate.
17294 - HTML template: avoid empty meta tag if no date.
17295 - HTML template: Use default highlighting CSS from highlighting-kate
17296 instead of hard-coding the CSS into the template.
17297 - HTML template: insert-before text goes before the title, and
17298 immediately after the `<body>` tag, as documented. (Issue #241)
17299 - Added slidy and s5 templates.
17300 - Added amssymb to preamble of latex template. (github Issue 1)
17302+ Removed excess newlines at the end of output. Note: because output
17303 will not contain an extra newline, you may need to make adjustments
17304 if you are inserting pandoc's output into a template.
17306+ In S5 and slidy, horizontal rules now cause a new slide, so you
17307 are no longer limited to one slide per section.
17309+ Improved handling of code in man writer. Inline code is now monospace,
17310 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
17312+ HTML reader parses `<tt>` as Code. (Issue #247)
17314+ html+lhs output now contains bird tracks, even when compiled without
17315 highlighting support. (Issue #242)
17317+ Colons are now no longer allowed in autogenerated XML/HTML identifiers,
17318 since they have a special meaning in XML.
17320+ Code improvements in ODT writer. Remote images are now replaced with
17321 their alt text rather than a broken link.
17323+ LaTeX reader improvements:
17325 - Made latex `\section`, `\chapter` parsers more forgiving of whitespace.
17326 - Parse `\chapter{}` in latex.
17327 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
17328 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
17329 for use in markdown reader.
17330 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
17331 in markdown document.
17333+ LaTeX writer: images are automatically shrunk if they would extend
17334 beyond the page margin.
17336+ Plain, markdown, RST writers now use unicode for smart punctuation.
17338+ Man writer converts math to unicode when possible, as in other writers.
17340+ `markdown2pdf` can now recognize citeproc options.
17342+ Command-line arguments are converted to UTF-8. (Issue #234)
17344+ `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
17345 This allows it to handle a wider range of formulas. Also, if a formula
17346 cannot be converted, it is left in raw TeX; formulas are no longer
17347 partially converted.
17349+ Unicode curly quotes are left alone when parsing smart quotes. (Issue #143)
17351+ Cabal file changes:
17353 - Removed parsec < 3 restriction.
17354 - Added 'threaded' flag for architectures where GHC lacks a threaded
17355 runtime.
17356 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
17357 - Require highlighting-kate 0.2.7.
17359+ Use explicit imports from `Data.Generics`. Otherwise we have a
17360 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
17362+ New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
17364[EPUB]: http://en.wikipedia.org/wiki/EPUB
17365[Slidy]: http://www.w3.org/Talks/Tools/Slidy
17366[bookworm]: http://bookworm.oreilly.com/
17367[tutorial here]: http://johnmacfarlane.net/pandoc/epub.html
17369## pandoc 1.5.1.1 (2010-03-29)
17371+ Fixed header identifiers (uniqueIdent in Shared) so they
17372 work as advertized in README and are guaranteed to be
17373 valid XHTML names. Thanks to Xyne for reporting the bug.
17375## pandoc 1.5.1 (2010-03-23)
17377+ Fixed treatment of unicode characters in URIs.
17378+ Revised Setup.hs so it works with debian's build process.
17379+ Fixed bug in OpenDocument writer that led to invalid
17380 XML for some input.
17382## pandoc 1.5.0.1 (2010-03-21)
17384+ HTML writer: Fixed error in math writer (with MathML option)
17385 that caused an infinite loop for unparsable MathML.
17387## pandoc 1.5 (2010-03-20)
17389+ Moved repository to [github](http://github.com/jgm/pandoc).
17390+ New `--mathml` option, for display of TeX math as MathML.
17391+ New `--data-dir` option, allowing users to specify a data
17392 directory other than `~/.pandoc`. Files placed in this directory
17393 will be used instead of system defaults.
17394+ New `--base-header-level` option. For example, `--base-header-level=2`
17395 changes level 1 headers to level 2, level 2 to level 3, etc.
17396+ New 'plain' output format: plain text without pictures, hyperlinks,
17397 inline formatting, or anything else that looks even vaguely
17398 markupish.
17399+ Titles and authors in title blocks can now span multiple lines,
17400 as long as the continuation lines begin with a space character.
17401+ When given an absolute URI as a parameter, pandoc will fetch
17402 the content via HTTP.
17403+ The HTML reader has been made much more forgiving. It no
17404 longer requires well-formed xhtml as input.
17405+ `html2markdown` has been removed; it is no longer necessary, given
17406 the last two changes. `pandoc` can be used by itself to convert
17407 web pages to markdown or other formats.
17408+ `hsmarkdown` has also been removed. Use `pandoc --strict` instead.
17409 Or symlink pandoc's executable to `hsmarkdown`; `pandoc` will then
17410 behave like `hsmarkdown` used to.
17411+ An image in a paragraph by itself is now rendered as a figure
17412 in most writers, with the alt text as the caption.
17413+ Incomplete support for reST tables (simple and grid). Thanks to
17414 Eric Kow. Colspans and rowspans not yet supported.
17415+ In mediawiki, links with relative URLs are now formatted as wikilinks.
17416 Also, headers have been promoted: `= head =` is now level 1 instead of
17417 level 2.
17418+ The markdown reader now handles "inverse bird tracks" when parsing
17419 literate haskell. These are used for haskell example code that
17420 is not part of the literate program.
17421+ The `-B` and `-A` options now imply `-s` and no longer work in
17422 fragment mode.
17423+ Headerless tables are now printed properly in all writers.
17424 In addition, tbody, thead, and cols are used in HTML and Docbook
17425 tables.
17426+ Improved build system; removed obsolete Makefile.
17427+ In LaTeX writer, `\chapter` is now used instead of `\section`.
17428 when the documentclass is book, report, or memoir.
17429+ Many small bug fixes. See [changelog] for details.
17431## pandoc 1.4 (2010-01-02)
17433+ New template system replaces old headers, giving users much
17434 more control over pandoc's output in `--standalone` mode.
17435 Added `--template` and `--variable` options. The `--print-default-header`
17436 option is now `--print-default-template`. See README under
17437 "Templates" for details.
17438+ The old `--custom-header` option should still work, but it has
17439 been deprecated.
17440+ New `--reference-odt` option allows users to customize styles
17441 in ODT output.
17442+ Users may now put custom templates, s5 styles, and a reference
17443 ODT in the `~/.pandoc` directory, where they will override system
17444 defaults. See README for details.
17445+ Unicode is now used whenever possible in HTML and XML output. Entities
17446 are used only where necessary (`&gt;`, `&lt;`, `&quot;`, `&amp;`).
17447+ Authors and dates may now include formatting and notes.
17448+ Added `--xetex` option for `pandoc` and `markdown2pdf`.
17449+ Windows installer now includes highlighting support and
17450 `markdown2pdf` and `hsmarkdown` wrappers.
17451+ Pandoc no longer requires Template Haskell, which should make
17452 it more portable.
17453+ Pandoc can now be built on GHC 6.12, as well as earlier versions.
17454+ See README for other small improvements and bug fixes.
17456## pandoc 1.3 (2009-12-10)
17458+ Added `--id-prefix` option to help prevent duplicate
17459 identifiers when you're generating HTML fragments.
17460+ Added `--indented-code-classes` option, which specifies
17461 default highlighting syntax for indented code blocks.
17462+ `--number-sections` now affects HTML output.
17463+ Improved syntax for markdown definition lists.
17464+ Better looking simple tables.
17465+ Markdown tables without headers are now possible.
17466+ New hard line break syntax: backslash followed by newline.
17467+ Improved performance of markdown reader by ~10% by eliminating the
17468 need for a separate parsing pass for notes.
17469+ Improved syntax highlighting for literate Haskell.
17470+ Support for "..code-block" directive in RST reader.
17471+ Windows binary now includes highlighting support.
17472+ Many bug fixes and small improvements. See [changelog]
17473 for details.
17475## pandoc 1.2.1 (2009-07-18)
17477+ Improved the efficiency of the markdown reader's
17478 abbreviation parsing (should give a big performance
17479 boost with `--smart`).
17480+ HTML writer now wraps sections in divs with unique
17481 identifiers, for easier manipulation.
17482+ Improved LaTeX reader's coverage of math modes.
17483+ Added a portable Haskell version of markdown2pdf (thanks
17484 to Paolo Tanimoto).
17485+ Made `--strict` compatible with `--standalone` and `--toc.`
17486+ Many other small improvements and bug fixes.
17487 See [changelog] for details.
17489## pandoc 1.2 (2009-03-01)
17491+ Added support for literate Haskell. lhs support is triggered by
17492 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
17493 Haskell LaTeX. '.lhs' files are treated by default as literate
17494 markdown.
17495+ Added `--email-obfuscation` option.
17496+ Brought citeproc support up to date for citeproc-hs-0.2.
17497+ Many bugs fixed. See [changelog] for details.
17499## pandoc 1.1 (2008-11-06)
17501+ New `--jsmath` option supporting use of pandoc with [jsMath].
17502+ Classes on HTML table output for better CSS styling.
17503+ Windows installer no longer requires admin privileges.
17504+ Many bugs fixed. See [changelog] for details.
17506## pandoc 1.0 (2008-09-13)
17508+ New writers for MediaWiki, GNU Texinfo (thanks to Peter Wang),
17509 OpenDocument XML (thanks to Andrea Rossato), and ODT (OpenOffice
17510 document).
17511+ New [delimited code blocks](README.html#delimited-code-blocks),
17512 with optional syntax highlighting.
17513+ Reorganized build system: pandoc can now be built using standard
17514 Cabal tools. It can be compiled on Windows without Cygwin.
17515 The tests can also be run without perl or unix tools.
17516+ LaTeXMathML replaces ASCIIMathML for rendering math in HTML.
17517+ Support for "displayed" math.
17518+ Common abbreviations are now handled more intelligently, with
17519 a non-breaking space (and not a sentence-ending space) after
17520 the period.
17521+ Code is -Wall clean.
17522+ Many bug fixes and small improvements. See [changelog] for
17523 full details.
17525## pandoc 0.46 (2008-01-08)
17527+ Added a `--sanitize-html` option (and a corresponding parameter
17528 in `ParserState` for those using the pandoc libraries in programs).
17529 This option causes pandoc to sanitize HTML (in HTML or Markdown
17530 input) using a whitelist method. Possibly harmful HTML elements
17531 are replaced with HTML comments. This should be useful in the
17532 context of web applications, where pandoc may be used to convert
17533 user input into HTML.
17534+ Made -H, -A, and -B options cumulative: if they are specified
17535 multiple times, multiple files will be included.
17536+ Many bug fixes and small improvements. See [changelog] for full
17537 details.
17539## pandoc 0.45 (2007-12-09)
17541+ Many bug fixes and structural improvements. See [changelog] for
17542 full details.
17543+ Improved treatment of math. Math is now rendered using unicode
17544 by default in HTML, RTF, and DocBook output. For more accurate
17545 display of math in HTML, `--gladtex`, `--mimetex`, and `--asciimathml`
17546 options are provided. See the [User's Guide](README.html#math) for
17547 details.
17548+ Removed support for box-style block quotes in markdown.
17549+ More idiomatic ConTeXt output.
17550+ Text wrapping in ConTeXt and LaTeX output.
17551+ Pandoc now correctly handles all standard line endings
17552 (CR, LF, CRLF).
17553+ New `--no-wrap` option that disables line wrapping and minimizes
17554 whitespace in HTML output.
17555+ Build process is now compatible with both GHC 6.8 and GHC 6.6.
17556 GHC and GHC_PKG environment variables may be used to specify
17557 which version of the compiler to use, when multiple versions are
17558 installed.
17560## pandoc 0.44 (2007-09-03)
17562 [ John MacFarlane ]
17564 * Fixed bug in HTML writer: when --toc was used, anchors were put around
17565 headers, which is invalid XHTML (block content within inline element).
17566 Now the anchors are put inside the header tags. Resolves Issue #23.
17568 * Added xmlns attribute to html element in html writer tests.
17569 This attribute is added by more recent versions of the
17570 xhtml library (>= 3000), and is required for valid XHTML.
17572 [ Recai Oktaş ]
17574 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
17575 command instead of 'runhaskell', which, on some platforms (such as s390,
17576 alpha, m68k), throws the following error:
17578 runhaskell Setup.hs configure --prefix=/usr
17579 ghc-6.6.1: not built for interactive use
17581 This causes a serious FTBFS bug. Closes: #440668.
17583## pandoc 0.43 (2007-09-02)
17585 [ John MacFarlane ]
17587 * The focus of this release is performance. The markdown parser
17588 is about five times faster than in 0.42, based on benchmarks
17589 with the TextMate manual.
17591 * Main.hs: Replaced CRFilter and tabFilter with single function
17592 tabFilter, which operates on the whole string rather than breaking
17593 it into lines, and handles dos-style line-endings as well as tabs.
17595 * Added separate LaTeX reader and native reader tests; removed
17596 round-trip tests.
17598 * Text.Pandoc.Shared:
17600 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
17601 + General code cleanup (to elimante warnings when compiling with -Wall.)
17602 + Added 'wrapped' function, which helps wrap text into paragraphs,
17603 using the prettyprinting library.
17604 + Rewrote charsInBalanced and charsInBalanced'.
17605 - Documented restriction: open and close must be distinct characters.
17606 - Rearranged options for greater efficiency.
17607 - Bug fix: Changed inner call to charsInBalanced inside
17608 charsInBalanced' to charsInBalanced'.
17609 + anyLine now requires that the line end with a newline (not eof).
17610 This is a harmless assumption, since we always add newlines to the
17611 end of a block before parsing with anyLine, and it yields a 10% speed
17612 boost.
17613 + Removed unnecessary 'try' in anyLine.
17614 + Removed unneeded 'try' from romanNumeral parser.
17615 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
17616 + Removed unneeded 'try' in parseFromString.
17617 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
17618 like 'string'.)
17619 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
17620 'try' is not automatically applied to the 'end' parser. Added
17621 'try' in calls to 'enclosed' where needed. Slight speed increase.
17623 * Writers:
17625 + Replaced individual wrapping routines in RST, Man, and Markdown
17626 writers with 'wrapped' from Text.Pandoc.Shared.
17627 + Rewrote LaTeX writer to use the prettyprinting library,
17628 so we get word wrapping, etc.
17629 + Modified latex writer tests for new latex writer using prettyprinter.
17630 + Fixed bug in LaTeX writer: autolinks would not cause
17631 `\usepackage{url}` to be put in the document header. Also, changes
17632 to state in enumerated list items would be overwritten.
17633 + In Markdown writer, escape paragraphs that begin with ordered list
17634 markers, so they don't get interpreted as ordered lists.
17636 * Text.Pandoc.Reades.LaTeX:
17638 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
17639 numeral after "enum" in "setcounter" would consist entirely of
17640 "i"s. 'enumiv' is legitimate.
17641 + LaTeX command and environment names can't contain numbers.
17642 + Rearranged order of parsers in inline for slight speed improvement.
17643 + Added '`' to special characters and 'unescapedChar'.
17645 * Text.Pandoc.Readers.RST:
17647 + Removed unneeded try's in RST reader; also minor code cleanup.
17648 + Removed tabchar.
17649 + Rearranged parsers in inline (doubled speed).
17651 * Text.Pandoc.Readers.Markdown:
17653 + Skip notes parsing if running in strict mode. (This yields a nice
17654 speed improvement in strict mode.)
17655 + Simplify autolink parsing code, using Network.URI to test for
17656 URIs. Added dependency on network library to debian/control and
17657 pandoc.cabal.
17658 + More perspicuous definition of nonindentSpaces.
17659 + Removed unneeded 'try' in 'rawLine'.
17660 + Combined linebreak and whitespace into a new whitespace parser, to
17661 avoid unnecessary reparsing of space characters.
17662 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
17663 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
17664 + Use lookAhead in parsers for setext headers and definition lists
17665 to see if the next line begins appropriately; if not, don't waste
17666 any more time parsing.
17667 + Don't require blank lines after code block. (It's sufficient to
17668 end code block with a nonindented line.)
17669 + Changed definition of 'emph': italics with '_' must not
17670 be followed by an alphanumeric character. This is to help
17671 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
17672 `[LC<em>TYPE]:my</em>type`.
17673 + Improved Markdown.pl-compatibility in referenceLink: the two parts
17674 of a reference-style link may be separated by one space, but not
17675 more... [a] [link], [not] [a link].
17676 + Fixed markdown inline code parsing so it better accords with
17677 Markdown.pl: the marker for the end of the code section is a clump
17678 of the same number of `'s with which the section began, followed
17679 by a non-` character. So, for example,
17680 ` h ``` i ` -> `<code>h ``` i</code>`.
17681 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
17682 rules are slightly different.
17683 + Rewrote 'para' for greater efficiency.
17684 + Rewrote link parsers for greater efficiency.
17685 + Removed redundant 'referenceLink' in definition of inline (it's
17686 already in 'link').
17687 + Refactored escapeChar so it doesn't need 'try'.
17688 + Refactored hrule for performance in Markdown reader.
17689 + More intelligent rearranging of 'inline' so that most frequently
17690 used parsers are tried first.
17691 + Removed tabchar parser, as whitespace handles tabs anyway.
17693 * Text.Pandoc.CharacterReferences:
17695 + Refactored.
17696 + Removed unnecessary 'try's for a speed improvement.
17697 + Removed unnecessary '&' and ';' from the entity table.
17699 * Build process:
17701 + Makefile: Get VERSION from cabal file, not Main.hs.
17702 + Modified MacPorts Portfile:
17703 - Depend on haddock
17704 - Build and install libraries and library documentation in
17705 addition to pandoc executable
17706 - Added template item for md5 sum in Portfile.in.
17707 - Incorporated changes from MacPorts repository (r28278).
17708 + FreeBSD port: Don't try to generate distinfo in Makefile.
17709 It can be made using 'make makesum' in FreeBSD.
17710 + Make both freebsd and macports targets depend on tarball.
17712 * Website and documentation:
17714 + Updated INSTALL instructions.
17715 + Added pandocwiki demo to website.
17716 + Removed local references to Portfile, since pandoc is now in the
17717 MacPorts repository.
17719## pandoc 0.42 (2007-08-26)
17721 [ John MacFarlane ]
17723 * Main.hs: Use utf8 conversion on the extra files loaded with
17724 the -H, -C, -B, and -A options. This fixes problems with unicode
17725 characters in these files.
17727 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
17728 Text.Pandoc.Readers.HTML and without it we get a linking error when
17729 using the library.
17731 * Markdown reader:
17733 + Added new rule for enhanced markdown ordered lists: if the list
17734 marker is a capital letter followed by a period (including a
17735 single-letter capital roman numeral), then it must be followed by
17736 at least two spaces. The point of this is to avoid accidentally
17737 treating people's initials as list markers: a paragraph might begin,
17738 "B. Russell was an English philosopher," and this shouldn't be
17739 treated as a list. Documented change in README.
17740 + Blocks that start with "p. " and a digit are no longer treated
17741 as ordered lists (it's a page number).
17742 + Added a needed 'try' to listItem.
17743 + Removed check for a following setext header in endline.
17744 A full test is too inefficient (doubles benchmark time), and the
17745 substitute we had before is not 100% accurate.
17746 + Don't use Code elements for autolinks if --strict specified.
17748 * LaTeX writer: When a footnote ends with a Verbatim environment, the
17749 close } of the footnote cannot occur on the same line or an error occurs.
17750 Fixed this by adding a newline before the closing } of every footnote.
17752 * HTML writer:
17753 + Removed incorrect "{}" around style information in HTML tables.
17754 Column widths now work properly in HTML.
17755 + If --strict option is specified (and --toc is not), don't include
17756 identifiers in headers, for better Markdown compatibility.
17758 * Build process:
17760 + Separated $(web_dest) and website targets.
17761 + In website, index.txt is now constructed from template index.txt.in.
17762 + Added freebsd target to Markefile. This creates the freebsd Makefile
17763 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
17764 from the repository.
17765 + Added macport target to Makefile. Portfile is built from template
17766 Portfile.in.
17767 + Removed OSX package targets. (Too many difficulties involving
17768 dependencies on dynamic libraries.)
17769 + More complete INSTALL instructions for all architectures.
17771 * Website:
17772 + Added a programming demo, pandocwiki.
17774 [ Recai Oktaş ]
17776 * Do not forget to close pandoc's ITP. Closes: #391666
17778## pandoc 0.41 (2007-08-19)
17780 [ John MacFarlane ]
17782 * Fixed bugs in HTML reader:
17783 + Skip material at end *only if* `</html>` is present (previously,
17784 only part of the document would be parsed if an error was
17785 found; now a proper error message is given).
17786 + Added new constant eitherBlockOrInline with elements that may
17787 count either as block-level or as inline. Modified isInline and
17788 isBlock to take this into account.
17789 + Modified rawHtmlBlock to accept any tag (even an inline tag):
17790 this is innocuous, because rawHtmlBlock is tried only if a regular
17791 inline element can't be parsed.
17792 + Added a necessary 'try' in definition of 'para'.
17794 * Fixed bug in markdown ordered list parsing. The problem was that
17795 anyOrderedListStart did not check for a space following the
17796 ordered list marker. So in 'A.B. 2007' the parser would be
17797 expecting a list item, but would not find one, causing an error.
17798 Fixed a similar bug in the RST reader. Resolves Issue #22.
17800 * Refactored RST and Markdown readers using parseFromString.
17802 * LaTeX reader will now skip anything after \end{document}.
17804 * Fixed blockquote output in markdown writer: previously, block
17805 quotes in indented contexts would be indented only in the first
17806 line.
17808 * Added note to INSTALL about variations in versions of the xhtml
17809 library that can lead to failed tests (thanks to Leif LeBaron).
17811## pandoc 0.4 (2007-01-16)
17813 [ John MacFarlane ]
17815 * Added two new output formats: groff man pages and ConTeXt. By
17816 default, output files with extensions ".ctx" and ".context" are
17817 assumed to be ConTeXt, and output files with single-digit extensions
17818 are assumed to be man pages.
17820 * Enhanced ordered lists (documented in README, under Lists):
17821 + The OrderedList block element now stores information about
17822 list number style, list number delimiter, and starting number.
17823 + The readers parse this information when possible.
17824 + The writers use this information to style ordered lists.
17825 + The enhancement can be disabled using the --strict option.
17827 * Added support for tables (with a new Table block element). Two kinds
17828 of tables are supported: a simple table with one-line rows, and a
17829 more complex variety with multiline rows. All output formats are
17830 supported, but only markdown tables are parsed at the moment. The
17831 syntax is documented in README.
17833 * Added support for definition lists (with a new DefinitionList block
17834 element). All output and input formats are supported. The syntax is
17835 documented in README.
17837 * Added support for superscripts and subscripts (with new Superscript
17838 and Subscript inline elements). All input and output
17839 formats. The syntax is documented in README.
17841 * Added support for strikeout (with a new Strikeout inline element).
17842 All input and output formats are supported. Thanks to Bradley Kuhn,
17843 who contributed a patch. The syntax is documented in README. Resolves
17844 Issue #18.
17846 * Added a --toc|--table-of-contents option. This causes an automatically
17847 generated table of contents (or an instruction that creates one) to
17848 be inserted at the beginning of the document. Not supported in S5,
17849 DocBook, or man page writers.
17851 * Modified the -m|--asciimathml option:
17853 + If an optional URL argument is provided, a link is inserted
17854 instead of the contents of the ASCIIMathML.js script.
17855 + Nothing is inserted unless the document actually contains
17856 LaTeX math.
17858 * Removed Blank block element as unnecessary.
17860 * Removed Key and Note blocks from the Pandoc data structure. All
17861 links are now stored as explicit links, and note contents are
17862 stored with the (inline) notes.
17864 + All link Targets are now explicit (URL, title) pairs; there
17865 is no longer a 'Ref' target.
17866 + Markdown and RST parsers now need to extract data from key and
17867 note blocks and insert them into the relevant inline elements.
17868 Other parsers have been simplified, since there is no longer any need
17869 to construct separate key and note blocks.
17870 + Markdown, RST, and HTML writers need to construct lists of
17871 notes; Markdown and RST writers need to construct lists of link
17872 references (when the --reference-links option is specified); and
17873 the RST writer needs to construct a list of image substitution
17874 references. All writers have been rewritten to use the State monad
17875 when state is required.
17876 + Several functions (generateReference, keyTable,
17877 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
17878 used by them) have been removed from Text.Pandoc.Shared, since
17879 they are no longer needed. New functions and data structures
17880 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
17881 added. The functions inTags, selfClosingTag, inTagsSimple, and
17882 inTagsIndented have been moved to the DocBook writer, since that
17883 is now the only module that uses them. NoteTable is now exported
17884 in Text.Pandoc.Shared.
17885 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
17886 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
17887 + Added writerNotes and writerReferenceLinks to WriterOptions.
17889 * Added Text.Pandoc module that exports basic readers, writers,
17890 definitions, and utility functions. This should export everything
17891 needed for most uses of Pandoc libraries. The haddock documentation
17892 includes a short example program.
17894 * Text.Pandoc.ASCIIMathML is no longer an exported module.
17896 * Added Text.Pandoc.Blocks module to help in printing markdown
17897 and RST tables. This module provides functions for working with
17898 fixed-width blocks of text--e.g., placing them side by side, as
17899 in a table row.
17901 * Refactored to avoid reliance on Haskell's Text.Regex library, which
17902 (a) is slow, and (b) does not properly handle unicode. This fixed
17903 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
17905 + Replaced 'gsub' with a general list function 'substitute'
17906 that does not rely on Text.Regex.
17907 + Rewrote extractTagType in HTML reader so that it doesn't use
17908 regexs.
17909 + In Markdown reader, replaced email regex test with a custom email
17910 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
17911 with a custom function isSelfClosingTag.
17912 + Modified Docbook writer so that it doesn't rely on Text.Regex for
17913 detecting 'mailto' links.
17914 + Removed escapePreservingRegex and reamped entity-handling
17915 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
17916 avoid reliance on Text.Regex (see below on character reference
17917 handling changes).
17919 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
17921 * Changed handling of XML entities. Entities are now parsed (and unicode
17922 characters returned) in the Markdown and HTML readers, rather than being
17923 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
17924 instead of entities for characters above 128. This makes the HTML and
17925 DocBook output much more readable and more easily editable.
17927 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
17928 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
17929 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
17930 Moved both functions to Text.Pandoc.Writers.Docbook.
17931 + Added characterReference parser to Text.Pandoc.CharacterReferences.
17932 This parses a string and return a unicode character.
17933 + Rewrote decodeCharacterReferences to use the new parser instead of
17934 Text.Regex.
17935 + Added new charRef parser for Markdown and HTML, which replaces the
17936 old 'entity' parser. Added '&' as a special character in Markdown reader.
17937 + Modified HTML and Markdown readers to call decodeEntities on all raw
17938 strings (e.g. authors, dates, link titles), to ensure that no
17939 unprocessed entities are included in the native representation of
17940 the document. (In the HTML reader, most of this work is done by a
17941 change in extractAttributeName.)
17942 + In XML and Markdown output, escape unicode nonbreaking space as '&nbsp;',
17943 since a unicode non-breaking space is impossible to distinguish visually
17944 from a regular space. (Resolves Issue #3.)
17945 + Removed encodeEntitiesNumerical.
17946 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
17947 slight performance boost over the old association list.
17948 + Removed unneeded decodeEntities from 'str' parser in HTML and
17949 Markdown readers.
17951 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
17952 fromUTF8, for clarity.
17954 * Replaced old haskell98 module names replaced by hierarchical module
17955 names, e.g. List by Data.List. Removed haskell98 from dependencies
17956 in pandoc.cabal, and added mtl (needed for state monad). Substituted
17957 xhtml for html.
17959 * Refactored and cleaned up character escaping in writers, using
17960 backslashEscapes and escapeStringUsing functions.
17962 * Instead of adding `\n\n` to the end of an input string in Main.hs,
17963 this is now done in the readers. This makes the libraries behave
17964 the way you'd expect from the pandoc program. Resolves Issue #10.
17966 * URLs and email addresses in autolinks are now typeset as Code.
17968 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
17969 doesn't display the whole output unless there's a line ending.
17971 * Major code cleanup in all modules, for greater consistency, concision,
17972 and readability.
17974 * HTML reader:
17976 + Fixed several bugs (extractTagType, attribute parsing).
17977 + Remove Null blocks in lists of blocks when possible.
17978 + Allow HTML comments as raw HTML inline.
17980 * Markdown reader:
17982 + Ordered list items may no longer begin with uppercase letters, or
17983 letters greater than 'n'. (This prevents first initials and page
17984 reference, e.g. 'p. 400', from being parsed as beginning lists.)
17985 Also, numbers beginning list items may no longer end with ')',
17986 which is now allowed only after letters. Note: These changes
17987 may cause documents to be parsed differently. Users should take
17988 care in upgrading.
17989 + Changed autoLink parsing to conform better to Markdown.pl's
17990 behavior. `<google.com>` is not treated as a link, but
17991 `<http://google.com>`, `<ftp://google.com>`, and
17992 `<mailto:google@google.com>` are.
17993 + Cleaned up handling of embedded quotes in link titles. Now these are
17994 stored as a '"' character, not as '&quot;'.
17995 + Use lookAhead parser for the 'first pass' (looking for reference keys),
17996 instead of parsing normally, then using setInput to reset input. This
17997 yields a slight performance boost.
17998 + Fixed several bugs in smart quote recognition.
17999 + Fixed bug in indentSpaces (which didn't properly handle
18000 cases with mixed spaces and tabs).
18001 + Consolidated 'text', 'special', and 'inline' into 'inline'.
18002 + Fixed bug which allowed URL and title to be separated by multiple blank
18003 lines in links and reference keys. They can be on separate lines but
18004 can't have blank lines between them.
18005 + Correctly handle bracketed text inside inline footnotes and links,using
18006 new function inlinesInBalanced. Resolves Issue #14.
18007 + Fixed bug in footnotes: links in footnotes were not being
18008 processed. Solution: three-stage parse. First, get all the
18009 reference keys and add information to state. Next, get all the
18010 notes and add information to state. (Reference keys may be needed
18011 at this stage.) Finally, parse everything else.
18012 + Replaced named constants like 'emphStart' with literals.
18013 + Removed an extra occurrence of escapedChar in definition of inline.
18015 * RST reader:
18017 + Allow the URI in a RST hyperlink target to start on the line
18018 after the reference key.
18019 + Added 'try' in front of 'string', where needed, or used a different
18020 parser. This fixes a bug where ````` would not be correctly parsed as
18021 a verbatim `.
18022 + Fixed slow performance in parsing inline literals in RST reader. The
18023 problem was that ``#`` was seen by 'inline' as a potential link or image.
18024 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
18025 Resolves Issue #8.
18026 + Use lookAhead instead of getInput/setInput in RST reader. Removed
18027 unneeded getState call, since lookAhead automatically saves and
18028 restores the parser state.
18029 + Allow hyperlink target URIs to be split over multiple lines, and
18030 to start on the line after the reference. Resolves Issue #7.
18031 + Fixed handling of autolinks.
18033 * LaTeX reader:
18035 + Replaced `choice [(try (string ...), ...]` idiom with `oneOfStrings`,
18036 for clarity.
18037 + Added clauses for tilde and caret. Tilde is `\ensuremath{\sim}`, and
18038 caret is `\^{}`, not `\^` as before.
18039 + Added parsing for `\url`.
18040 + Parse `\texttt{}` as code, provided there's nothing fancy inside.
18042 * HTML writer:
18044 + Modified HTML writer to use the Text.XHtml library. This results
18045 in cleaner, faster code, and it makes it easier to use Pandoc in
18046 other projects, like wikis, which use Text.XHtml. Two functions are
18047 now provided, writeHtml and writeHtmlString: the former outputs an
18048 Html structure, the latter a rendered string. The S5 writer is also
18049 changed, in parallel ways (writeS5, writeS5String).
18050 + The Html header is now written programmatically, so it has been
18051 removed from the 'headers' directory. The S5 header is still
18052 needed, but the doctype and some of the meta declarations have
18053 been removed, since they are written programmatically. This change
18054 introduces a new dependency on the xhtml package.
18055 + Fixed two bugs in email obfuscation involving improper escaping
18056 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
18057 Issue #9.
18058 + Fixed another bug in email obfuscation: If the text to be obfuscated
18059 contains an entity, this needs to be decoded before obfuscation.
18060 Thanks to thsutton for the patch. Resolves Issue #15.
18061 + Changed the way the backlink is displayed in HTML footnotes.
18062 Instead of appearing on a line by itself, it now generally
18063 appears on the last line of the note. (Exception: when the
18064 note does not end with a Plain or Para block.) This saves space
18065 and looks better.
18066 + Added automatic unique identifiers to headers:
18067 - The identifier is derived from the header via a scheme
18068 documented in README.
18069 - WriterState now includes a list of header identifiers and a table
18070 of contents in addition to notes.
18071 - The function uniqueIdentifiers creates a list of unique identifiers
18072 from a list of inline lists (e.g. headers).
18073 - This list is part of WriterState and gets consumed by blockToHtml
18074 each time a header is encountered.
18075 + Include CSS for .strikethrough class in header only if strikethrough
18076 text appears in the document.
18077 + If the 'strict' option is specified, elements that do not appear in
18078 standard markdown (like definition lists) are passed through as
18079 raw HTML.
18080 + Simplified treatment of autolinks, using pattern matching instead of
18081 conditionals.
18083 * Markdown writer:
18085 + Links in markdown output are now printed as inline links by default,
18086 rather than reference links. A --reference-links option has been added
18087 that forces links to be printed as reference links. Resolves Issue #4.
18088 + Use autolinks when possible. Instead of `[site.com](site.com)`,
18089 use `<site.com>`.
18091 * LaTeX writer:
18093 + Rewrote to use the State monad. The preamble now includes only those
18094 packages that are actually required, given the document's content.
18095 Thus, for example, if strikeout is not used, ulem is not required.
18096 Modified LaTeXHeader accordingly.
18097 + Modified LaTeX writer to insert `\,` between consecutive quotes.
18098 + Removed unused function tableRowColumnWidths.
18099 + Simplified code for escaping special characters.
18100 + Leave extra blank line after `\maketitle`.
18101 + Include empty `\author{}` when no author specified to avoid LaTeX
18102 errors.
18103 + Include fancyvrb code in header only if needed -- that is, only
18104 if there is actually code in a footnote.
18105 + Use `\url{}` for autolinks.
18106 + Include [mathletters] option in ucs package, so that basic unicode
18107 Greek letters will work correctly.
18109 * RST writer: Force blank line before lists, so that sublists will
18110 be handled correctly.
18112 * Docbook writer: Fixed a bug: email links with text, like
18113 [foo](me@bar.baz), were being incorrectly treated as autolinks.
18115 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
18116 Text.Pandoc.Shared.
18118 * Text.Pandoc.Shared:
18120 + Added defaultWriterOptions.
18121 + Added writerTableOfContents to WriterOptions.
18122 + Added writerIgnoreNotes option to WriterOptions. This is needed
18123 for processing header blocks for a table of contents, since notes on
18124 headers should not appear in the TOC.
18125 + Added prettyprinting for native Table format.
18126 + Removed some unneeded imports.
18127 + Moved escape and nullBlock parsers from
18128 Text.ParserCombinators.Pandoc, since the latter is for
18129 general-purpose parsers that don't depend on Text.Pandoc.Definition.
18130 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
18131 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
18132 writer, because HTML writer now uses these in constructing a table
18133 of contents.
18134 + Added clauses for new inline elements (Strikeout, Superscript,
18135 Subscript) to refsMatch.
18136 + Removed backslashEscape; added new functions escapeStringUsing and
18137 backslashEscapes.
18138 + Moved failIfStrict from markdown reader, since it is now used also
18139 by the HTML reader.
18140 + Added a 'try' to the definition of indentSpaces.
18141 + In definition of 'reference', added check to make sure it's not a note
18142 reference.
18143 + Added functions: camelCaseToHyphenated, toRomanNumeral,
18144 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
18145 charsInBalanced', withHorizDisplacement, romanNumeral
18146 + Fixed a bug in the anyLine parser. Previously it would parse an empty
18147 string "", but it should fail on an empty string, or we get an error
18148 when it is used inside "many" combinators.
18149 + Removed followedBy' parser, replacing it with the lookAhead parser from
18150 Parsec.
18151 + Added some needed 'try's before multicharacter parsers, especially in
18152 'option' contexts.
18153 + Removed the 'try' from the 'end' parser in 'enclosed', so that
18154 'enclosed' behaves like 'option', 'manyTill', etc.
18155 + Added lineClump parser, which parses a raw line block up to and
18156 including any following blank lines.
18157 + Renamed parseFromStr to parseFromString.
18158 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
18159 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
18160 in calling code.
18161 + Removed unneeded 'try' in blanklines.
18162 + Removed endsWith function and rewrote calling functions to use
18163 isSuffixOf instead.
18164 + Added >>~ combinator.
18165 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
18166 Space.
18168 * Refactored runtests.pl; added separate tests for tables.
18170 * Shell scripts:
18172 + Added -asxhtml flag to tidy in html2markdown. This will
18173 perhaps help the parser, which expects closing tags.
18174 + Modified markdown2pdf to run pdflatex a second time if --toc or
18175 --table-of-contents was specified; otherwise the table of
18176 contents won't appear.
18177 + Modified markdown2pdf to print a helpful message if the 'ulem'
18178 LaTeX package is required and not found.
18180 * Changes to build process:
18182 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
18183 is now required.
18184 + Removed cabalize and Pandoc.cabal.in. The repository now contains
18185 pandoc.cabal itself.
18186 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
18187 likes the cabal file to have the same name as the tarball.
18188 + Expanded and revised the package description in pandoc.cabal.
18189 Revised the package synopsis.
18190 + The tarball built by 'make tarball' now contains files built from
18191 templates (including man pages and shell scripts), so pandoc can
18192 be built directly using Cabal tools, without preprocessing.
18193 + Executable binaries are now stripped before installing.
18194 + Man pages are now generated from markdown sources, using pandoc's
18195 man page writer.
18196 + Use HTML version of README (instead of RTF) in Mac OS X installer.
18197 + Instead of testing for the existence of a pandoc symlink in build-exec,
18198 use ln -f.
18200 * Documentation:
18202 + Updated README and man pages with information on new features.
18203 + Updated INSTALL instructions with some useful clarifications and
18204 links.
18205 + Updated web content.
18207 * Added FreeBSD port.
18209 [ Recai Oktaş ]
18211 * debian/control:
18213 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
18214 libghc6-xhtml-dev. Removed libghc6-html-dev.
18215 + Suggest texlive-latex-recommended | tetex-extra instead of
18216 tetex-bin. This brings in fancyvrb and unicode support.
18219## pandoc 0.3 (2007-01-05)
18221 [ John MacFarlane ]
18223 * Changes in pandoc options:
18225 + Allow options to follow or precede arguments.
18226 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
18227 + Added '--strict' option.
18228 + Added '-o/--output' option.
18229 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
18230 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
18231 error conditions. This is helpful for writing wrappers.
18232 + Added copyright message to '-v' output, modeled after FSF messages.
18233 + Reformatted usage message so that it doesn't wrap illegibly.
18234 + Removed extra blanks after '-h' and '-D' output.
18236 * Added docbook writer.
18238 * Added implicit setting of default input and output format based
18239 on input and output filename extensions. These defaults are
18240 overridden if explicit input and output formats are specified using
18241 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
18242 and README.
18244 * Allow ordered list items to begin with (single) letters, as well
18245 as numbers. The list item marker may now be terminated either by
18246 '.' or by ')'. This extension to standard markdown is documented
18247 in README.
18249 * Revised footnote syntax. (See README for full details.) The
18250 '[^1]' format now standard in markdown extensions is supported,
18251 as are inline footnotes with this syntax: `^[My note.]`.
18252 The earlier footnote syntax `^(1)` is no longer supported.
18254 * Improved HTML representation of footnotes. All footnotes
18255 are now auto-numbered and appear in an ordered list at the
18256 end of the HTML document. Since the default appearance is now
18257 acceptable, the old footnote styles have been removed from the
18258 HTML header.
18260 * Bug fixes:
18262 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
18263 These readers ran 'runParser' on processed chunks of text to handle
18264 embedded block lists in lists and quotation blocks. But then
18265 any changes made to the parser state in these chunks was lost,
18266 as the state is local to the parser. So, for example, footnotes
18267 didn't work in quotes or list items. The fix: instead of calling
18268 runParser on some raw text, use setInput to make it the input, then
18269 parse it, then use setInput to restore the input to what it was
18270 before. This is shorter and more elegant, and it fixes the problem.
18271 + Fixed bug in notFollowedBy' combinator (adding 'try' before
18272 'parser'). Adjusted code that uses this combinator accordingly.
18273 + Fixed bug in RTF writer that caused improper indentation on
18274 footnotes occurring in indented blocks like lists.
18275 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
18276 and date are parsed correctly. Everything else in the preamble
18277 is skipped.
18278 + Modified escapedChar in LaTeX reader to allow a `\` at the end of a
18279 line to count as escaped whitespace.
18280 + Modified LaTeX reader to produce inline links rather than reference
18281 links. Otherwise, links in footnotes aren't handled properly.
18282 + Fixed handling of titles in links in Markdown reader, so that
18283 embedded quotation marks are now handled properly.
18284 + Fixed Markdown reader's handling of embedded brackets in links.
18285 + Fixed Markdown reader so that it only parses bracketed material
18286 as a reference link if there is actually a corresponding key.
18287 + Revised inline code parsing in Markdown reader to conform to
18288 markdown standard. Now any number of `s can begin inline code,
18289 which will end with the same number of `s. For example, to
18290 have two backticks as code, write ``` `` ```. Modified Markdown
18291 writer accordingly.
18292 + Fixed bug in text-wrapping routine in Markdown and RST writers.
18293 Now LineBreaks no longer cause wrapping problems.
18294 + Supported hexadecimal numerical entity references as well as
18295 decimal ones.
18296 + Fixed bug in Markdown reader's handling of underscores and other
18297 inline formatting markers inside reference labels: for example,
18298 in '[A_B]: /url/a_b', the material between underscores was being
18299 parsed as emphasized inlines.
18300 + Changed Markdown reader's handling of backslash escapes so that
18301 only non-alphanumeric characters can be escaped. Strict mode
18302 follows Markdown.pl in only allowing a select group of punctuation
18303 characters to be escaped.
18304 + Modified HTML reader to skip a newline following a `<br>` tag.
18305 Otherwise the newline will be treated as a space at the beginning
18306 of the next line.
18308 * Made handling of code blocks more consistent. Previously, some
18309 readers allowed trailing newlines, while others stripped them.
18310 Now, all readers strip trailing newlines in code blocks. Writers
18311 insert a newline at the end of code blocks as needed.
18313 * Modified readers to make spacing at the end of output more consistent.
18315 * Minor improvements to LaTeX reader:
18317 + `\thanks` now treated like a footnote.
18318 + Simplified parsing of LaTeX command arguments and options.
18319 commandArgs now returns a list of arguments OR options (in
18320 whatever order they appear). The brackets are included, and
18321 a new stripFirstAndLast function is provided to strip them off
18322 when needed. This fixes a problem in dealing with \newcommand
18323 and \newenvironment.
18325 * Revised RTF writer:
18327 + Default font is now Helvetica.
18328 + An `\f0` is added to each `\pard`, so that font resizing works
18329 correctly.
18331 * Moved handling of "smart typography" from the writers to the Markdown
18332 and LaTeX readers. This allows great simplification of the writers
18333 and more accurate smart quotes, dashes, and ellipses. DocBook can
18334 now use `<quote>`. The '--smart' option now toggles an option in
18335 the parser state rather than a writer option. Several new kinds
18336 of inline elements have been added: Quoted, Ellipses, Apostrophe,
18337 EmDash, EnDash.
18339 * Changes in HTML writer:
18341 + Include title block in header even when title is null.
18342 + Made javascript obfuscation of emails even more obfuscatory,
18343 by combining it with entity obfuscation.
18345 * Changed default ASCIIMathML text color to black.
18347 * Test suite:
18349 + Added --strip-trailing-cr option to diff in runtests.pl, for
18350 compatibility with Windows.
18351 + Added regression tests with footnotes in quote blocks and lists.
18353 * Makefile changes:
18355 + osx-pkg target creates a Mac OS X package (directory). New osx
18356 directory contains files needed for construction of the package.
18357 + osx-dmg target creates a compressed disk image containing the package.
18358 + win-pkg target creates Windows binary package.
18359 + tarball target creates distribution source tarball.
18360 + website target generates pandoc's website automatically, including
18361 demos. New 'web' directory contains files needed for construction
18362 of the website (which will be created as the 'pandoc' subdirectory
18363 of 'web').
18364 + Makefile checks to see if we're running Windows/Cygwin; if so,
18365 a '.exe' extension is added to each executable in EXECS.
18367 * Removed all wrappers except markdown2pdf and html2markdown.
18369 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
18370 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
18371 option and disables other options.
18373 * Added code to html2markdown that tries to determine the character
18374 encoding of an HTML file, by parsing the "Content-type" meta tag.
18376 + If the encoding can't be determined, then if the content is local,
18377 the local encoding is used; if it comes from a URL, UTF-8 is used
18378 by default.
18379 + If input is from STDIN, don't try to determine character encoding.
18380 + Encoding can be specified explicitly using '-e' option.
18382 * Improved warning messages in wrappers:
18384 + Print warning if iconv not available
18385 + More user-friendly error messages in markdown2pdf, when
18386 pdflatex fails.
18388 * Code cleanup:
18390 + Renamed 'Text/Pandoc/HtmlEntities' module to
18391 'Text/Pandoc/Entities'. Also changed function names so as
18392 not to be HTML-specific.
18393 + Refactored SGML string escaping functions from HTML and Docbook
18394 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
18395 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
18396 used anywhere.
18397 + Removed splitBySpace and replaced it with a general, polymorphic
18398 splitBy function.
18399 + Refactored LaTeX reader for clarity (added isArg function).
18400 + Converted some CR's to LF's in src/ui/default/print.css.
18401 + Added license text to top of source files.
18402 + Added module data for haddock to source files.
18403 + Reformatted code for consistency.
18405 * Rewrote documentation and man pages. Split README into INSTALL
18406 and README.
18408 * Split LICENSE into COPYING and COPYRIGHT.
18410 * Removed TODO, since we now maintain ToDo on the wiki.
18412 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
18413 duplication.
18415 [ Recai Oktaş ]
18417 * Revamped build process to conform to debian standards and created
18418 a proper debian package. Closes: #391666.
18420 * Modified build process to support GHC 6.6.
18422 + The package can still be compiled using GHC 6.4.2, though because
18423 of dependencies the "make deb" target works only with GHC 6.6+.
18424 + The script 'cabalize' is used to create an appropriate
18425 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
18426 Cabal versions.
18428 * Refactored template processing (fillTemplates.pl).
18430 * Modified wrapper scripts to make them more robust and portable.
18431 To avoid code duplication and ensure consistency, wrappers are
18432 generated via a templating system from templates in src/wrappers.
18434 + Wrappers now accept multiple filenames, when appropriate.
18435 + Spaces and tabs allowed in filenames.
18436 + getopts shell builtin is used for portable option parsing.
18437 + Improved html2markdown's web grabber code, making it more robust,
18438 configurable and verbose. Added '-e', '-g' options.
18441## pandoc 0.2 (2006-08-14)
18443 * Fixed unicode/utf-8 translation
18445## pandoc 0.1 (2006-08-14)
18447 * Initial creation of debian package