1# Revision history for pandoc
3## pandoc 2.9.2.1 (2020-03-23)
5 * Markdown reader: Fix table alignment when heading begins with t (#6153).
6 Due to a typo (`t` instead of `\t`) we were center aligning column
7 headings that begin with a lowercase `t`!
9 * Text.Pandoc.Readers.Roff:
11 + Fix parsing of `\.` in man/ms readers (#6175).
12 Previously due to a typo it was being parsed as `` ` ``.
13 + Fix parsing of `\'` in man/ms readers (#6175). It was being parsed
16 * Jira reader (Albert Krewinkel):
18 + Fix parsing of tables without preceding blankline (#6198).
19 A bug was fixed which caused faulty parsing if a table was not
20 preceded by a newline and the first table cell had no space
21 after the initial `|` characters.
22 + Fix parsing of strikeout, emphasis (#6196). A bug was fixed which
23 caused non-emphasized text containing digits and/or non-special
24 symbols (like dots) to sometimes be parsed incorrectly.
25 + Support colored inline text, indented lists (#6183, #6184).
29 + Fix definition lists so indent even when paragraph indent is
30 set to 0 (as is the default). Also ensure indent for display math
31 that falls back to TeX.
32 + Use `.QS/.QE` instead of `.RS/.RE` for block quotes.
34 * EPUB writer: fix regression on detection of front/back/bodymatter
35 (#6170). This bug caused sections with epub:type `dedication` to be
36 misplaced in bodymatter instead of frontmatter as specified
37 in the manual. The same problem would affect other epub:types.
38 The pattern matching needed to be changed with the use of
41 * AsciiDoc writer: remove redundant `otherwise` guard in
42 `inlineToAsciiDoc` (#6146, Ryan Scott).
46 + Fix missing import when data files are not embedded (Albert Krewinkel).
47 + Subdivide Text.Pandoc.Class into small unexported modules
48 and ensure that all functions have Haddock documentation (#6106,
50 + Finer grained imports of Text.Pandoc.Class submodules (#6203, Albert
53 * Text.Pandoc.XML: Add to list of HTML5 attributes:
54 `allow`, `autocapitalize`, `decoding`, `enterkeyhint`,
55 `imagesizes`, `imagesrcset`, `loading`.
57 * Use implicit Prelude (#6187, Albert Krewinkel).
58 The previous behavior was introduced as a fix for #4464. It seems that
59 this change alone did not fix the issue, and `stack ghci` and `cabal
60 repl` only work with GHC 8.4.1 or newer, as no custom Prelude is loaded
61 for these versions. Given this, it seems cleaner to revert to the
64 * Always use custom prelude (#6187, Albert Krewinkel).
65 Previously, the custom prelude was used only with older GHC versions, as
66 a workaround for problems with ghci. The ghci problems are resolved by
67 replacing package `base` with `base-noprelude`, allowing for consistent
68 use of the custom prelude across all GHC versions.
70 * Remove outdated checks for no longer supported base versions
73 * PDF via wkhtmltopdf: put user-specified options last (#6171).
74 Certain options (e.g. `cover`) need to come after flags on
77 * Text.Pandoc.App: set resource path at the beginning so it can affect
78 things like include-in-header (#5982).
80 * Change macOS release candidate CI process so that notarized
81 packages can be produced (#6169).
83 * Make MANUAL more explicit about nonbreaking space handling by
84 `all_symbols_escapable` (#6154, Fabien Schurter).
86 * trypandoc (Mike Tzou):
88 + Add checkbox for standalone option (#6189).
89 + Use strict mode for JavaScript code (#6188).
90 + Fetch resources over https (#6188).
91 + Remove unnecessary attributes on style, script elements (#6188).
93 * Use details tag to make GitHub releases changelog collapsible.
95 * Update filter code in doc/filters.md so it works with latest pandoc
98 * linux/Dockerfile: upgrade to alpine 3.11 (#6180, Albert Krewinkel).
99 This is used to build the static linux binaries.
102## pandoc 2.9.2 (2020-02-15)
104 * Add `csv` as an input format (#6100). The CSV table is converted into a
105 pandoc simple table. A new module Text.Pandoc.Readers.CSV
106 exports `readCSV` [API change].
108 * Introduce new format variants for JATS writer (#6014, Albert Krewinkel):
110 - `jats_archiving` for the "Archiving and Interchange Tag Set",
111 - `jats_publishing` for the "Journal Publishing Tag Set", and
112 - `jats_articleauthoring` for the "Article Authoring Tag Set."
114 The `jats` output format is now an alias for `jats_archiving`.
115 The module Text.Pandoc.Writers.JATS now exports
116 `writeJatsArchiving`, `writeJatsPublishing`, and
117 `writeJatsArticleAuthoring`, as well as the legacy
118 `writeJATS` [API change].
120 * `--defaults`: Support `bibliography` and `csl` fields.
121 Move `addMeta` from Text.Pandoc.App.CommandLineOptions to
122 Text.Pandoc.App.Opt (internal change).
124 * Add timing info for filters in `--verbose` mode (#6112).
125 When verbose mode is specified (verbosity == INFO), print a
126 notice when running a filter and when a filter completes (including
131 + Allow `&` in LaTeX citation keys (#6110).
132 + Improve caption and label parsing.
133 + Don't emit empty Span elements for labels.
134 + Put tables with labels in a surrounding Div.
135 + Resolve `\ref` to table numbers (#6137).
136 + Skip comments in more places where this is needed (#6114).
137 + Allow beamer overlays for all commands in all raw tex (#6043).
138 This affects parsing of raw tex in LaTeX and in Markdown and
140 + Improve parsing of raw environments (#6034). If parsing fails
141 in a raw environment (e.g. due to special characters like unescaped
142 `_`), try again as a verbatim environment, which is less sensitive to
143 special characters. This allows us to capture special environments
144 that change catcodes as raw tex when `-f latex+raw_tex` is used.
148 + Add highlight directive (#6140, Lucas Escot).
152 + Prevent triple `[[[` which confuses MediaWiki (#6119).
156 + Don't parse `data-id` as `id` attribute. And similarly don't
157 parse any `data-X` as `X` when `X` is a valid HTML attribute.
161 + Simplify parsing of sub- and superscripts (#6127, Albert Krewinkel).
162 Speeds up parsing of single-word, markup-less sub- and superscripts.
166 + Group biblatex citations even with prefix and suffix (#5849, Ethan
167 Riley). Previously biblatex citations were only grouped if there
168 was no prefix. This patch allows them to be grouped in subgroups split
169 by prefixes and suffixes, which allows better citation sorting.
170 + Fix regression in handling of columns in beamer slides (#6033).
171 Columns in title slides were causing problems with
173 + Fix duplicate frame classes in LaTeX/Beamer output (#6107).
177 + Fix duplicate attributes on headings (#6062), regression from 2.7.x.
178 + Fix `--number-offset` with HTML TOC. Eventually it would be worth
179 adding a parameter to `makeSections` so this could be done at that
180 level; then it would also affect other writers that construct
182 + reveal.js: restore old behavior for 2D nesting (#6032).
183 The fix to #6030 actually changed behavior, so that the
184 2D nesting occurred at slide level N-1 and N, instead of
185 at the top-level section. This commit restores the v2.7.3 behavior.
186 If there are more than 2 levels, the top level is horizontal
187 and the rest are collapsed to vertical.
188 + reveal.js: ensure that pauses work even in title slides (#5819).
192 + Fix regression: spurious dots in markdown_mmd metadata output (#6133).
196 + Fix regression with Compact style on tight lists (#6072).
197 Starting in 2.8, the docx writer no longer distinguishes between tight
198 and loose lists, since the Compact style is omitted. This is a
199 side-effect of the fix to #5670, as explained in the changelog. This
200 patch fixes the problem by extending the exception currently offered to
201 Plain blocks inside tables to Plain blocks inside list items.
205 + Fix output of table headers (Albert Krewinkel, #6035).
207 * Add Text.Pandoc.Image with unexported svgToPng.
209 * Text.Pandoc.XML: Export `html5Attributes`, `html4Attributes`,
210 `rdfaAttributes` (formerly unexported in Text.Pandoc.Writers.HTML).
213 * Text.Pandoc.Shared: Export a new function `findM` (#6125,
216 * Text.Pandoc.Logging: Add `RunningFilter`, `FilterCompleted`
217 constructors to LogMessage [API change].
219 * Text.Pandoc.CSV: fix bug in CSV parser; previously an extra blank record
220 would sometimes be inserted at the end.
222 * LaTeX template: add space option to xeCJK with PassOptionsToPackage
223 (#6002). Otherwise we can get a clash with documentclasses that
224 already load the package.
228 + Allow filtering of element lists (#6038, Albert Krewinkel). Lists of
229 Inline and Block elements can now be filtered via `Inlines` and
230 `Blocks` functions, respectively. This is helpful if a filter
231 conversion depends on the order of elements rather than a single
232 element. For example, the following filter can be used to remove all
233 spaces before a citation:
235 function isSpaceBeforeCite (spc, cite)
236 return spc and spc.t == 'Space'
237 and cite and cite.t == 'Cite'
240 function Inlines (inlines)
241 for i = #inlines-1,1,-1 do
242 if isSpaceBeforeCite(inlines[i], inlines[i+1]) then
249 + Add methods `insert`, `remove`, and `sort` to pandoc.List
250 (Albert Krewinkel). Example of use:
252 local numbers = pandoc.List {2, 3, 1}
253 numbers:sort() -- numbers is now {1, 2, 3}
254 + Make `pandoc.List` a callable constructor (Albert Krewinkel).
255 It is now possible to construct a new List via
256 `pandoc.List()` instead of `pandoc.List:new()`.
257 + Add tests for pandoc.List module (Albert Krewinkel).
259 * Text.Pandoc.App.CommandLineOptions: Change `setVariable` to use `Text`
260 instead of `String`. This avoids some unnecessary unpacking.
262 * Use versioned directory for windows release zipfile.
263 Also remove old `make-windows-installer.bat`, superseded by GitHub
264 actions workflow, and modify `pandoc.wxs` for new paths.
266 * Extensive code cleanup (#6141, #6128, #6129, #6130, #6123,
267 #6105, 6102, #6117, #6124, #6115, #6116, #6111, Joseph C. Sible).
269 * Fix hlint warnings (Albert Krewinkel).
271 * Use latest doclayout, doctemplates (#6031). The new version of
272 doclayout fixes a memory leak that affected `--include-in-header` with
273 large files (and possibly other cases involving extremely long lines).
275 * Use latest texmath.
277 * Use latest skylighting and fix test suite (#6086).
279 * sample.lua: Fix typo in descriptive comments (#6136, Caleb Maclennan).
280 Fix typo in error message (#6135).
282 * Add Docker and GH Actions instructions/links to INSTALL.md.
284 * Update filter documentation (#6065). Improve cabal v2 instructions.
285 Remove example using pandoc API directly (we have other
286 docs for that and it was outdated).
290 + Cross-link constructors and types (Albert Krewinkel).
291 Thanks to @bpj for the idea.
292 + Sort pandoc.List methods alphabetically (Albert Krewinkel).
293 + Unify, fix anchors and internal links (#6061, Albert Krewinkel).
294 Links and anchors now follow consistent conventions, like
295 lowercase-only anchor names. This breaks some links to specific
296 sections in the document, but will make it much easier to link
297 documentation in the future.
298 + Clarify filter function execution order (#6059, Albert Krewinkel).
300 * In docs, update URLs and use `https:` wherever possible (#6090,
303## pandoc 2.9.1.1 (2020-01-05)
307 + Fix parsing bug affected indented code after raw HTML (#6009, #5360).
311 + Fix regression in beamer slide structure with certain slide levels
313 + Allow framebreaks for beamer's TOC (Heiko Schlittermann, #6012)
314 + Properly handle unnumbered headings level 4+ (#6018).
315 Previously the `\paragraph` command was used instead of
316 `\paragraph*` for unnumbered level 4 headings.
320 + Fix revealjs slide structure regression with certain slide levels
322 + Add newlines to make slide show output more readable.
326 + Remove extra spaces from table cells (Albert Krewinkel, #6024).
328 * JATS template: Update JATS dtd (Arfon Smith, #6020). Use the archiving
329 and interchange DTD rather than the more restrictive journal publishing
330 DTD (which doesn't permit ext-link as a valid child).
332 * Text.Pandoc.PDF: Fix `runTeXProgram` so that the input source is always
333 overwritten (#6027). Previously it wasn't overridden if the file already
334 existed, which led to bad results on subsequent runs when
335 `pdf-engine-opt=-output-directory=` was used to specify an explicit temp
338 * Text.Pandoc.BCP47: Change `getLang` to handle block-level contents
339 (#6008). Some readers (e.g. RST) will populate the `lang` metadata field
340 with block-level content. `getLang` has been modified to handle this.
341 Previously in these cases the LaTeX writer would not properly set the
342 "main language" of the document.
344 * Fix `test/tables.org` (Albert Krewinkel).
346 * Use HTTPS in copyright message (Felix Yan, #6010)
349## pandoc 2.9.1 (2019-12-23)
351 * Add Jira reader (Albert Krewinkel, #5556).
353 * Jira writer: use jira-wiki-markup renderer (Albert Krewinkel,
354 #5926). The following improvements are included in this change:
356 + non-jira raw blocks are fully discarded instead of showing
358 + table cells can contain multiple blocks;
359 + unnecessary blank lines are removed from the output;
360 + markup chars within words are properly surrounded by
362 + preserving soft linebreaks via `--wrap=preserve` is
365 Note that backslashes are rendered as HTML entities, as there
366 appears no alternative to produce a plain backslash if it is
367 followed by markup. This may cause problems when used with
368 confluence, where rendering seems to fail in this case.
370 * Fix regression with `--number-sections`. Starting with 2.8,
371 `--number-sections` also had the effect of `--section-divs`,
372 even if `--section-divs` was not specified.
374 * Improved table of contents generation in markdown, RTF,
375 commonmark, better handling cases where section headings are
378 * Ensure that later default file values for `variable` replace
381 * HTML reader: Add `nav` to list of block-level tags.
383 * Org reader (Albert Krewinkel):
385 + Wrap named table in Div, using name as id (#5984).
386 Tables which are given a name via `#+NAME:` or `#+LABEL:`
387 are wrapped in an additional Div, with the name set as the
389 + Report parsing errors properly.
390 + Fix parsing problem for colons in headline (#5993).
392 * Text.Pandoc.PDF: Ensure UTF8 when printing source in
393 `--verbose` mode, avoiding an error on platforms that
394 default to something other than UTF-8 (#5997).
396 * Text.Pandoc.Templates: Strip directory before trying to find
397 partial in data files (#5987).
399 * Text.Pandoc.Shared: Improve `makeSections` so we don't get
400 doubled "number" attributes in EPUB output (or anywhere
403 * Added tests for `--toc` and `--section-divs`.
405 * Text.Pandoc.MIME: Added glsl MIME type for WebGL maps (#6000,
408 * MANUAL: A bit clearer explanation for `--base-header-level`.
409 We now say exactly how to translate between the deprecated
410 `--base-header-level` and `--shift-heading-level-by`.
414 + Remove spurious dot in title (#5996, Mauro Bieg).
415 + Replace metadata example with image centering (#6004,
416 Albert Krewinkel). Thanks to @efx for proposing this filter.
419## pandoc 2.9 (2019-12-11)
421 * Text.Pandoc.Templates [API change]
423 + Add Monad wrappers `WithDefaultPartials` and `WithPartials`.
424 Wrapping these around an instance of `PandocMonad` gives
425 us different instances of `TemplateMonad`, with different
426 search behavior in retrieving partials.
427 To compile a template and limit partial search to pandoc's
428 data files, use `runWithDefaultPartials (compileTemplate ...)`.
429 To compile a template and allow partials to be found locally
430 (either on the file system or via HTTP, in the event that
431 the main template has an absolute URL), ue
432 `runWithPartials (compileTemplate ...)`.
433 + Export `getTemplate`, which seeks a template locally,
434 or via HTTP if the template has an absolute URL, falling
435 back to the data files if not found.
436 + Export `compileDefaultTemplate` -- does `getDefaultTemplate`
437 and compiles the result, raising an error on failure.
439 * Text.Pandoc.Class [API change]
441 + Remove `TemplateMonad` instances for `PandocIO` and `PandocPure`.
442 These were too limiting and caused a bug whereby a local
443 partial could be used even when the default template was requested.
444 We now rely on instances provided in the Templates module.
446 * Text.Pandoc.App.OutputSettings: Simplify template retrieval code.
448 * ConTeXt template: Adjust to title formatting (#5949, Denis Maier).
449 Add `\setupinterlinespace` to `title`, `subtitle`, `date` and `author`
450 elements: otherwise longer titles that run over multiple lines will look
451 squashed as `\tfd` etc. won't adapt the line spacing to the font size.
453 * reveal.js template: Add title-slide-attributes variable (#5981,
456 * More informative JSON parse error (#5973).
458 * Use external emojis package (forked from pandoc). Removed emoji data
459 in Text.Pandoc.Emoji.
461 * Fix regression in `makeSections` (#5965).
462 Previously `hierarchicalize` (the ancestor of `makeSections`) would put
463 header attributes on the containing Div. In 2.8 this behavior changed,
464 which broke some tools depending on pandoc. Here we roll back this change,
465 so that attributes again migrate from the header to the containing Div when
466 `makeSections` is run. Note that attributes are retained on the header as
467 well (unlike before) -- with the exception of the `id` attribute, which of
468 course cannot be duplicated.
470 * Fix `--toc-depth` regression in 2.8 (#5967).
472 * Use doctemplates 0.8. Rename template 'filters' as 'pipes'
473 to avoid confusion with the other notion of filter used by pandoc.
475 * Fix README.md so that relative links from manual become absolute.
476 Previously they'd be broken links when viewed on GitHub or Hackage.
477 So we add the base URL for the pandoc manual.
479 * Document display math syntax in manual.
481## pandoc 2.8.1 (2019-12-05)
483 * Add `ascii_identifiers` as a supported extension for `markdown`.
484 This fixes a regression in 2.8.
486 * Fix regression with behavior of `--variable` (#5962).
487 Previously `-Vfoo=1 -Vfoo=2` would produce a list value for foo;
488 with 2.8 it produced just `2`. This commit restores the earlier
491 * Roll back part of of `--shift-heading-level-by` change (#5957).
492 With positive heading shifts, starting in 2.8 this option
493 caused metadata titles to be removed and changed to regular
494 headings. This behavior is incompatible with the old
495 behavior of `--base-header-level` and breaks old workflows,
496 so we have rolled back the change. Note that there is now an
497 asymmetry in positive and negative heading level shifts:
498 With positive shifts, the metadata title stays the same and
499 does not get changed to a heading in the body, while with
500 negative shifts, a heading can be converted into the
503 * Text.Pandoc.Shared: Fix `makeSections` so it doesn't turn
504 column Divs into sections.
506 * HTML writer: add task-list class to ul if all elements are
507 task list items. This will allow styling unordered task
508 lists in a way that omits the bullet.
510 * HTML-based templates: Add CSS to suppress bullet on unordered task lists.
512 * ConTeXt template: Fix `\startcslreferences` and use ConTeXt syntax
513 conventions (#5945, Denis Maier). The old version had a too large
514 a skip at the beginning of the reference list.
516 * LaTeX template: keep the `\author{}` command even if author is not
517 specified (#5961, Yihui Xie). Avoids a LaTeX warning.
519 * Generate Emoji module with TH.
521 + Add Text.Pandoc.Emoji.TH.
522 + Replace long literal list in Text.Pandoc.Emoji with one-liner
523 generating it from `emoji.json` using TH.
524 + Add Makefile target to download `emoji.json`.
525 + Remove `tools/emoji.hs`.
527 * Increase GC allocation space for compilation in cabal.project.
529 * Clean up manual on PDF generation backend options (#5940).
531 * Update release checklist to include code signing step and update
532 Windows release-candidate builds (#5950).
535## pandoc 2.8.0.1 (2019-11-26)
537 * List `pdf` in `--list-output-formats`.
538 * EPUB writer: Fix regression with `--css` (#5937). In 2.8 `--css`
539 would not have an effect on EPUB output.
540 * RST writer: Use grid tables for one-column tables, since
541 simple tables clash with heading syntax in this case (#5936).
542 * Add unexported module Text.Pandoc.Readers.Metadata (see #5914).
543 * Use doctemplates 0.7.2, which adds the `nowrap` filter to
545 * Update default man template using `nowrap` for .TH heading (#5929).
546 * HTML templates: Add support for `toc-title` variable (#5930,
548 * Remove `grffile` (LaTeX package) requirement in MANUAL.txt
549 (#5927, Ian Max Andolina).
550 * Use skylighting 0.8.3.
552## pandoc 2.8 (2019-11-22)
554 * Improvements in templates system (from doctemplates):
556 + Pandoc templates now support a number of new features that
557 have been added in doctemplates: notably, `elseif`, `it`,
558 partials, filters, and syntax to control nesting and reflowing of
559 text. These changes make pandoc more suitable out of the
560 box for generating plain-text documents from data in YAML
561 metadata. It can create enumerated lists and even tabular
563 + We now used templates parameterized on doclayout Doc types.
564 The main impact of this change is better reflowing of
565 content interpolated into templates. Previously,
566 interpolated variables were rendered independently and
567 intepolated as strings, which could lead to overly long
568 lines. Now the templates interpolated as Doc values which
569 may include breaking spaces, and reflowing occurs after
570 template interpolation rather than before.
571 + Remove code from the LaTeX, Docbook, and JATS writers that
572 looked in the template for strings to determine whether it
573 is a book or an article, or whether csquotes is used. This
574 was always kludgy and unreliable.
575 + Change template code to use new API for doctemplates.
577 * Add `--defaults`/`-d` option. This adds the ability to specify
578 a collection of default values for options in a YAML file. For
579 example, one might define a set of defaults for letters,
580 and then do `pandoc -d letter myletter.md -o myletter.pdf`.
581 See the documentation of this feature in MANUAL.txt.
583 * Raise error on unsupported extensions (#4338).
585 * The `--list-extensions[=FORMAT]` option now lists only
586 extensions that affect the given FORMAT.
588 * Add `-L` option as shortcut for `--lua-filter`.
590 * Add `--shift-heading-level-by` option and deprecate
591 `--base-heading-level` (#5615). The new option does
592 everything the old one does, but also allows negative shifts.
593 It also promotes the document metadata (if not null) to a
594 level-1 heading with a +1 shift, and demotes an initial
595 level-1 heading to document metadata with a -1 shift. This
596 supports converting documents that use an initial level-1
597 heading for the document title.
599 * Allow `--metadata-file` to be used repeatedly to include
600 multiple metadata files (Owen McGrath, #5702). Values in
601 files specified first will be overridden by those in later
604 * `--ascii` now uses numerical hex character references (#5718).
606 * Allow PDF output to stdout (#5751). PDF output now behaves like other
607 binary formats: it will not be output to the terminal, but can be
608 sent to stdout using either `-o -` or a pipe. The intermediate format
609 will be determined based on the setting of `--pdf-engine`.
611 * Make some writers sensitive to 'unlisted' class on headings (#1762).
612 If this is present on a heading with the 'unnumbered' class,
613 the heading won't appear in the TOC. This class has no
614 effect if 'unnumbered' is not also specified. This affects HTML-based
615 writers (including slide shows and EPUB), LateX (including beamer), RTF,
616 and PowerPoint. Other writers do not yet support `unlisted`.
618 * Fix `gfm_auto_identifiers` behavior with emojis (#5813). Note that
619 we also now use emoji names for emojis when `ascii_identifiers`
622 * When `--ipynb-output` is used with the default "best" format, strip
623 ANSI escape codes for non-ipynb output (#5633). These cause problems
624 in many formats, including LaTeX.
626 * Don't look for template files remotely for remote input (#5579).
627 Previously pandoc would look for the template at a remote URL when a
628 URL was used for the input file, instead of taking it from the
631 * Allow combining `-Vheader-includes` and `--include-in-header` (#5904).
632 Previously `header-includes` set as a variable would be
633 clobbered by material included using `--include-in-header`.
635 * Change merge behavior for metadata. Previously, if a document
636 contained two YAML metadata blocks that set the same field, the
637 conflict would be resolved in favor of the first. Now it is resolved
638 in favor of the second (due to a change in pandoc-types).
639 This makes the behavior more uniform with other things in pandoc
640 (such as reference links and `--metadata-file`).
642 * Don't add a newline to fragment output if there's already one.
644 * Change exit codes and document in MANUAL.txt:
646 + `PandocAppError` was 1, is now 4
647 + `PandocOptionError` was 2, is now 6
648 + `PandocMakePDFError` was 65, is now 66
650 * Switch to new pandoc-types and use Text instead of String [API change].
651 (Christian Despres, #5884).
655 + Better handling of `<q>` with cite attribute (#5798, Ole Martin Ruud).
656 If a `<q>` tag has a `cite` attribute, we interpret it as a Quoted
657 element with an inner Span.
658 + Add support for HTML `<samp>` element (#5792, Amogh Rathore).
659 The `<samp>` element is parsed as Code with class `sample`.
660 + Add support for HTML `<var>` element (#5799, Amogh Rathore).
661 The `<var>` element is parsed as Code with class `variable`.
662 + Add support for `<mark>` elements (Florian B, #5797). Parse
663 `<mark>` elements from HTML as Spans with class `mark`.
664 + Add support for `<kbd>` elements, parsing them as Span with class
665 `kbd` (Daniele D'Orazio, #5796).
666 + Add support for `<dfn>`, parsing this as a Span with class `dfn`
667 (#5882, Florian Beeres).
671 + Headers: don't parse content over newline boundary (#5714).
672 + Handle inline code more eagerly within lists (Brian Leung, #5627).
673 + Removed some needless lookaheads.
674 + Don't parse footnote body unless extension enabled.
675 + Fix small super/subscript issue (#5878). Superscripts and subscripts
676 cannot contain spaces, but newlines were previously allowed
677 (unintentionally). This led to bad interactions in some cases
678 with footnotes. With this change newlines are also not allowed inside
680 + Use `take1WhileP` for `str`, table row. This yields a small but
681 measurable performance improvement.
686 + Fix parsing of optional arguments that contain braced text (#5740).
687 + Don't try to parse includes if `raw_tex` is set (#5673).
688 When the `raw_tex` extension is set, we just carry through
689 `\usepackage`, `\input`, etc. verbatim as raw LaTeX.
690 + Properly handle optional arguments for macros (#5682).
691 + Fix `\\` in `\parbox` inside a table cell (#5711).
692 + Improve `withRaw` so it can handle cases where the token string is
693 modified by a parser (e.g. accent when it only takes part of a Word
694 token) (#5686). This fixes a bug that caused the ends of
695 certain documents to be dropped.
696 + Handle `\passthrough` macro used by latex writer (#5659).
697 + Support tex `\tt` command (#5654).
698 + Search for image with list of extensions like latex does, if an
699 extension is not provided (#4933).
700 + Handle `\looseness` command values better (#4439).
701 + Add `mbox` and `hbox` handling (Vasily Alferov, #5586).
702 When `+raw_tex` is enabled, these are passed through literally.
703 Otherwise, they are handled in a way that emulates LaTeX's behavior.
704 + Properly handle `\providecommand` and `\provideenvironment` (#5635).
705 They are now ignored if the corresponding command or environment
707 + Support epigraph command in LaTeX Reader (oquechy, #3523).
708 + Ensure that expanded macros in raw LaTeX end with a space
709 if the original did (#4442).
710 + Treat `ly` environment from lilypond as verbatim (Urs Liska, #5671).
711 + Add `tikzcd` to list of special environments (Eigil Rischel).
712 This allows it to be processed by filters, in the same way that
713 one can do for `tikzpicture`.
717 + Better support for `while`.
718 + More improvements in parsing conditionals.
719 + Fix problem parsing comments before macro.
720 + Improve handling of groups.
721 + Better parsing of groups (#5410). We now allow groups
722 where the closing `\\}` isn't at the beginning of a line.
726 + Keep `name` property in `imgAttr` (Brian Leung, #5619).
727 + Fixed parsing of indented blocks (#5753). We were requiring
728 consistent indentation, but this isn't required by RST.
729 + Use title, not admonition-title, for admonition title.
730 This puts RST reader into alignment with docbook reader.
731 + Don't strip final underscore from absolute URI (#5763).
732 + Avoid spurious warning when resolving links to internal anchors
733 ending with `_` (#5763).
737 + Accept `ATTR_LATEX` in block attributes (Albert Krewinkel, #5648).
738 Attributes for LaTeX output are accepted as valid block attributes;
739 however, their values are ignored.
740 + Modify handling of example blocks (Brian Leung, #5717).
741 + Allow the `-i` switch to ignore leading spaces (Brian Leung).
742 + Handle awkwardly-aligned code blocks within lists (Brian Leung).
743 Code blocks in Org lists must have their `#+BEGIN_` aligned in a
744 reasonable way, but their other components can be
745 positioned otherwise.
746 + Fix parsing of empty comment lines (#5856, Albert Krewinkel).
747 Comment lines in Org-mode can be completely empty.
749 * Muse reader (Alexander Krotov):
751 + Add RTL support (#5551).
752 + Do not allow closing asterisks to be followed by `*`.
753 + Do not split series of asterisks into symbols and emphasis (#5821).
754 + Do not terminate emphasis on `*` not followed by space.
758 + Parse markup inside monospace ('') (#5916, Alexander Krotov).
762 + Move style-parsing-specific code to a new unexported module,
763 Text.Pandoc.Readers.Docx.Parse.Styles (Nikolay Yakimov).
764 + Move StyleMap to docx writer (Nikolay Yakimov).
765 + Only use LTR when it is overriding BiDi setting (#5723, Jesse
766 Rosenthal). The left-to-right direction setting in docx is used
767 in the spec only for overriding an explicit right-to-left setting.
768 We only process it when it happens in a paragraph set with BiDi.
769 This is especially important for docs exported from Google Docs,
770 which explicitly (and unnecessarily) set `rtl=0` for every paragraph.
771 + Fix list number resumption for sublists (#4324).
772 The first list item of a sublist should not resume numbering
773 from the number of the last sublist item of the same level,
774 if that sublist was a sublist of a different list item.
778 + Richer parse for admonitions (Michael Peyton Jones, #1234).
779 Instead of parsing admonitions as blockquotes, we now parse
780 them as Divs with an appropriate class. We also handle titles
781 for admonitions as a nested Div with the "title" class.
782 + Fix nesting of chapters and sections (#5864, Florian Klink,
783 Félix Baylac-Jacqué).
784 + Fix bug with entities in mathphrase element (#5885).
788 + Skip optional `{{table}}` template (#5757).
792 + Fix dollar-math parsing to ensure that space is left between a
793 control sequence and a following letter (#5836).
794 + In `untokenize`, ensure space between control sequence
795 and following letter (#5836).
796 + Don't omit macro definitions defined in the preamble.
797 These were formerly omitted (though they still affected macro
798 resolution if `latex_macros` was set). Now they are included in
800 + Parse macro definitions as raw LaTeX when `latex_macros` is
801 disabled. (When `latex_macros` is enabled, we omit them, since
802 pandoc is applying the macros itself.)
803 + Fix a hang/memory leak in certain circumstances (#5845).
804 + Text.Pandoc.Readers.LaTeX.Parsing: add `[Tok]` parameter to
805 `rawLaTeXParser`. This allows us to repeat retokenizing
806 unnecessarily in e.g. `rawLaTeXBlock`.
807 + Add KOMA-Script metadata commands (#5910, Andrew Dunning).
808 Add all titling commands to existing definition for `\dedication`.
809 + Parse `\micro` siunitx unit command (#5921, Jose Luis Duran).
813 + Ensure proper nesting when we have long ordered list markers (#5705).
814 + Make `plain` output plainer (#5741). Previously we used the following
815 Project Gutenberg conventions for plain output: extra space before and
816 after level 1 and 2 headings, all-caps for strong emphasis,
817 underscores surrounding regular emphasis. Now these
818 conventions are used only when the `gutenberg` extension is
819 enabled. By default, Strong and Emph are rendered without
820 special formatting, and headings are rendered without
821 special formatting, and with only one blank line following.
822 To restore the former behavior, use `-t plain+gutenberg`.
823 + Prefer using raw_attribute when enabled (#4311).
824 The `raw_attribute` will be used to mark raw bits, even HTML
825 and LaTeX, and even when `raw_html` and `raw_tex` are
826 enabled, as they are by default. To get the old behavior,
827 disable `raw_attribute` in the writer.
828 + Prefer `pipe_tables` to raw HTML even when we must
829 lose width information (#2608, #4497).
830 + Improve escaping in list items (#5918).
834 + Don't include `+` in code blocks for regular asciidoc.
835 This is asciidoctor-specific.
836 + Handle admonitions (#5690).
840 + Add thin space when needed in LaTeX quote ligatures (#5684).
841 + Use `\hspace{0pt}` for 0-width space U+200B (#5756).
842 + Use `cslreferences` environment for csl bibliographies.
843 This allows bibliographies to receive special formatting.
844 The template now contains definition of this environment (enabled
845 only when CSL is used). It also defines a `\cslhangindent` length.
846 This is set to 2em by default when the bibliography style specifies
847 a hanging indent. To override the length, you can use e.g.
848 `\setlength{\cslhangindent}{7em}` in header-includes.
849 See jgm/pandoc-citeproc#410.
850 + Strip off `{}` around locator for biblatex/natbib output (#5722).
851 + Fix line breaks at start of paragraph (#3324).
852 Previously we just omitted these. Now we render them
853 using `\hfill\break` instead of `\\`. This is a revision
854 of a PR by @sabine (#5591) who should be credited with the idea.
855 + We no longer look in the template or header-includes to see if a
856 book or article documentclass is used, or to see whether the
857 `csquotes` package is used. To use `csquotes` for LaTeX, set
858 `csquotes` in your variables or metadata. To specify a book
859 style, use the `documentclass` variable or
860 `--top-level-division`.
861 + Fix horizontal rule (#5801). We change to use 0.5pt rather than
862 `\linethickness`, which apparently only ever worked "by accident"
863 and no longer works with recent updates to texlive.
867 + Add option to include source files in ConTeXt PDFs (Tristan
868 Stenner, #5578). The metadata field or variable
869 (`includesource`) can be set to attach the source documents
870 to the resulting PDF.
871 + Customizable type of PDF/A for the ConTeXt writer (Karl
872 Pettersson, #5608). The `pdfa` variable may now be set in metadata.
873 Also updated color profile settings in accordance with ConTeXt wiki,
874 and made ICC profile and output intent for PDF/A customizable
875 using `pdfaiccprofile` and `pdfaintent`.
876 + Unit tests: adjust code property to avoid an irrelevant
877 failure involving inline code with two consecutive newlines.
878 + Set `csl-hanging-indent` variable if needed.
879 + Use special environment for CSL references.
880 + Use braces, not start/stop, for inline language tags.
881 This prevents unwanted gobbling of spaces.
885 + Use numeric character references with `--ascii` (#5718).
886 Previously we used named character references with html5 output.
887 But these aren't valid XML, and we aim to produce html5 that is
888 also valid XHTML (polyglot markup). (This is also needed for epub3.)
889 + Ensure that line numbers in code blocks get id-prefix (#5650).
890 + Ensure TeX formulas are rendered correctly (Philip Pesca,
891 #5658). The web service passed in to `--webtex` may render
892 formulas using inline or display style by default.
893 Prefixing formulas with the appropriate command ensures
894 they are rendered correctly.
895 + Render inline formulas correctly with `--webtex` (Philip
896 Pesca, #5655). We add `\textstyle` to the beginning of the
897 formula to ensure it will be rendered in inline style.
898 + Pass through `aria-` attributes to HTML5 (#5642).
899 + Render a Quoted element with an inner Span with
900 `cite` attribute using a `<q>` tag (#5798, Ole Martin Ruud).
901 + Render a Span with class `mark` using the `<mark>` element
902 (Florian Beeres, #5797).
903 + Render Span with class `dfn` using `<dfn>` element
904 (Florian Beeres, #5882).
905 + Render Span with class `kbd` using `<kbd>` element (Daniele
907 + Render Code with class `variable` using `<var>` element
908 (Amogh Rathore, #5799).
909 + Render Code with class `sample` using `<samp>` element
910 (Amogh Rathore, #5799).
914 + Improve splitting into chapters (#5761), using `makeSection`.
915 + Avoid issuing warning multiple times when title not set (see #5760).
916 + Use svg tag wrapper for cover image (#5638). In addition, the
917 code generating the image has been moved to the template, to make it
918 more customizable. NOTE: Those who use custom EPUB
919 templates will need to adjust their templates, adding the
920 code to generate the cover image. (Previously this was just
921 inserted into 'body'.)
922 + Improve toChapters, making it work better if there are Divs
924 + Add support for EPUB2 covers (blmage, #3992).
925 + Do not override existing "fileN" medias when writing to EPUB format
927 + Ensure that `lang` variable is set on all chapters (so that it
928 will add an `xml:lang` attribute on the `html` element).
932 + Removed remnants of `admonition-title`.
933 + Fix handling of `:align:` on figures and images (#4420).
934 When the image has the `align-right` (etc.) class, we now use
935 an `:align:` attribute.
936 + Improve spacing for tables with no width information (#5899).
937 If a simple table would be too wide, we use a grid table.
938 + Fix backslash escaping after strings (Albert Krewinkel, #5906).
939 The check whether a complex inline element following a string must
940 be escaped, now depends on the last character of the string instead
942 + Ensure there's a blank line before tables (#5898).
946 + Handle mixed lists without HTML fallback (#5107).
950 + Fix multiline table (Zihang Chen, #5683).
954 + Add RTL support (Alexander Krotov, #5551).
958 + Suppress non-absolute link URLs (#5770). Absolute URLs are
959 still printed in parentheses following the link text, but relative
960 URLs are suppressed (just as internal links starting with '#'
962 + Improved definition list term output. Now we boldface code but
963 not other things. This matches the most common style in man pages
964 (particularly option lists).
968 + Use `.LP` instead of `.PP` for line block (#5588).
969 + Use boldface for definition terms in DefinitionLists.
973 + Do not emit empty `<fn-group>` (Mauro Bieg, #5595).
974 + Update template to v1.1dtd (#5632, Arfon Smith).
975 + Update `data/jats.csl` to avoid commas between editor
976 name-part elements. (#5629)
977 + Add `abstract` to template (Mauro Bieg).
981 + Don't strip hash from internal links (#5922).
985 + Remove escapeStringForJira for code blocks (Jan-Otto Kröpke).
986 + Remove extraneous newline after single-line block quotes
987 (#5858, Albert Krewinkel).
988 + Improve escaping of special characters, using backslash escapes
989 instead of HTML entities (#5858, Albert Krewinkel).
991 * OpenDocument writer:
993 + Avoid duplicate attributes (#4634). We use the innermost
994 attribute in nested cases.
995 + If `native_numbering` extension is set, use native OpenDocument
996 enumeration for figures and tables (Nils Carlson).
997 + Place caption before table (#5681, Dmitry Pogodin).
1001 + Add a test for MathML formulas in ODT documents (blmage).
1002 + Improve the parsing of frames in ODT documents (blmage).
1006 + Make handling of styles more robust in localized versions
1007 of Word (Nikolay Yakimov, #5523, #5052, #5074). We now use
1008 style names, not ids, for assigning semantic meaning, since
1009 the ids can change depending on the locale. Style name
1010 comparisons are case-insensitive, since those are
1011 case-insensitive in Word. Since docx style names can have
1012 spaces in them, and pandoc-markdown classes can't, anywhere
1013 when style name is used as a class name, spaces are
1014 replaced with ASCII dashes `-`. Code styles, i.e. "Source
1015 Code" and "Verbatim Char" now honor style inheritance. Docx
1016 Reader now honours "Compact" style (used in
1017 Pandoc-generated docx). The side-effect is that "Compact"
1018 style no longer shows up in docx+styles output. Styles
1019 inherited from "Compact" will still show up.
1020 + Re-use Readers.Docx.Parse for StyleMap (#5766, Nikolay Yakimov).
1021 + Internal improvements and code simplification (Nikolay Yakimov).
1022 + Preserve built-in styles in DOCX with custom style (Ben Steinberg,
1023 #5670). This change prevents custom styles on divs and spans
1024 from overriding styles on certain elements inside them, like
1025 headings, blockquotes, and links. On those elements, the
1026 "native" style is required for the element to display correctly.
1027 This change also allows nesting of custom styles; in order to do so,
1028 it removes the default "Compact" style applied to Plain blocks,
1029 except when inside a table.
1030 + Add `proofState` to list of elements carried over from
1031 settings.xml in the reference.docx (Krystof Beuermann, #5703).
1032 + Change order of `ilvl` and `numId` in `document.xml` (Agustín
1033 Martín Barbero, #5645). Also, make list para properties go first.
1034 This reordering of properties shouldn't be necessary but
1035 it seems Word Online does not understand the docx correctly otherwise.
1037 * PowerPoint writer:
1039 + Code formatting is now context dependent (Jeroen de Haas, #5573).
1040 This commit alters the way in which the Powerpoint writer treats
1041 inline code and code blocks. Inline code is now formatted at
1042 the same size as the surrounding text. Code blocks are now given
1043 a margin and font size according to their level.
1044 Furthermore this commit allows changing the font with which code is
1045 formatted via the `monofont` option.
1046 + Start numbering at appopriate numbers (Jesse Rosenthal, #5709).
1047 Starting numbers for ordered lists were previously ignored. Now
1048 we specify the number if it is something other than 1.
1050 * Text.Pandoc.Parsing:
1052 + Add `manyChar`, `many1Char`, `manyTillChar`, `many1TillChar`,
1053 `many1Till`, `manyUntil`, `mantyUntilChar`: these are like their
1054 unsuffixed counterparts but pack some or all of their output
1055 (Christian Despres, #5884).
1056 + Add `stateAllowLineBreaks` to `ParserState` [API change].
1057 + Fix inline parsing in grid table cells (#5708).
1058 + Change type of `setLastStrPos` so it takes a `Maybe SourcePos`
1059 rather than a `SourcePos` [API change].
1060 + Make `parseFromString'` and `gridTableWith` and
1061 `gridTableWith'` polymorphic in the parser state,
1062 constraining it with `HasLastStrPosition` [API change].
1063 + `parseFromString'`: reset `stateLastStrPos` to `Nothing` before parse.
1064 + Rename takeWhileP -> take1WhileP and clean it up.
1065 (It doesn't match the empty sequence.)
1069 + For PDFs via HTML, ensure temp file is deleted even if the pdf
1070 program is not found (#5720).
1071 + Better detection of a Cygwin environment (#5451).
1072 + Don't assume tex log file is UTF8-encoded (#5872).
1073 Fall back to latin1 if it can't be read as UTF-8.
1075 * Text.Pandoc.Extensions:
1077 + Export new function `getAllExtensions`, which returns the
1078 extensions that affect a given format (whether enabled by default
1079 or not) [API change].
1080 + Change type of `parseFormatSpec` from
1081 `Either ParseError (String, Extensions -> Extensions)`
1082 to `Either ParseError (String, [Extension], [Extension])`
1084 + Add `Ext_gutenberg` constructor to `Extension` [API change].
1085 + Add `Ext_native_numbering` constructor to `Extension` [API change]
1088 * Text.Pandoc.Readers, Text.Pandoc.Writers:
1090 + Change type of `getReader` and `getWriter` so they return
1091 a value in the PandocMonad instance rather than an Either
1092 [API change]. Exceptions for unknown formats and unsupported
1093 extensions are now raised by these functions.
1097 + Change `optMetadataFile` type from `Maybe FilePath` to `[FilePath]`
1098 (Owen McGrath, #5702) [API change].
1100 * Text.Pandoc.Logging:
1102 + Add `CouldNotDeduceFormat` constructor to `LogMessage` [API change].
1103 Issue this warning when we're falling back to markdown or
1104 html because we don't recognize the extension of the input or
1106 + Clarify warning for missing title (#5760).
1107 + Add `UnusualConversion` constructor to `LogMessage` [API change]
1108 (Mauro Bieg, #5736). Emit warning on `-f latex -o out.pdf`.
1112 + Improve function documentation (Albert Krewkinkel).
1113 + Traverse nested blocks and inlines in correct order (Albert
1114 Krewinkel, #5667). Traversal methods are updated to use the new
1115 Walk module so that sequences with nested Inline (or Block) elements
1116 are traversed in the order in which they appear in the linearized
1118 + New unexported module `Text.Pandoc.Lua.Walk` (Albert Krewinkel).
1119 Lua filters must be able to traverse sequences of AST
1120 elements and to replace elements by splicing sequences back
1121 in their place. Special `Walkable` instances can be used for
1122 this; those are provided in a new module
1123 `Text.Pandoc.Lua.Walk`.
1124 + `Attr` values can now be given as normal Lua tables (Albert
1125 Krewinkel, #5744). This can be used as a convenient alternative
1126 to constructing `Attr` values with `pandoc.Attr`. Identifiers
1127 are taken from the `id` field, classes must be given as
1128 space separated words in the `class` field. All remaining fields
1129 are included as attributes. With this change, the following lines
1130 now create equal elements:
1132 pandoc.Span('test', {id = 'test', class = 'a b', check = 1})
1133 pandoc.Span('test', pandoc.Attr('test', {'a','b'}, {check = 1}))
1135 This also works when using the *attr* setter:
1137 local span = pandoc.Span 'text'
1138 span.attr = {id = 'test', class = 'a b', check = 1}
1140 Furthermore, the *attributes* field of AST elements can now be a
1141 plain key-value table even when using the `attributes` accessor:
1143 local span = pandoc.Span 'test'
1144 span.attributes = {check = 1} -- works as expected now
1146 + Export `make_sections`, remove `hierarchicalize`. Lua filters that
1147 use `hierarchicalize` will need to be rewritten to use
1149 + Add a `clone()` method to all AST elements (Albert Krewinkel, #5568).
1150 + Fix Lua function names in pandoc.system (niszet). Change
1151 `get_current_directory` to `get_working_directory` and
1152 `with_temp_directory` to `with_temporary_directory`, to
1153 conform to the manual.
1155 * Text.Pandoc.Error:
1157 + Add constructors `PandocUnknownReaderError`,
1158 `PandocUnknownWriterError`, `PandocUnsupportedExtensionError`.
1160 + Better message for `PandocShouldNeverHappenError`.
1161 + Better message for `PandocTemplateError`.
1163 * Text.Pandoc.Emoji:
1165 + Update emoji list (#5666). Done using new `tools/emojis.hs`,
1166 which uses the list from the gem GitHub uses. Future updates
1167 can be done with this tool.
1171 + Pass value of `--dpi` to `rsvg-convert` when converting SVG to PDF
1172 in the process of creating a PDF (#5721).
1174 * Text.Pandoc.Shared:
1176 + Replace `Element` and `makeHierarchical` with `makeSections`.
1177 Now that we have Divs, we can use them to represent the
1178 structure of sections, and we don't need a special Element type.
1179 `makeSections` reorganizes a block list, adding Divs with class
1180 `section` around sections, and adding numbering if needed.
1181 This change also fixes some longstanding issues recognizing section
1182 structure when the document contains Divs (#3057, see also #997).
1183 + Remove `Element` type [API change]
1184 + Remove `makeHierarchicalize` [API change]
1185 + Add `makeSections` [API change]
1186 + Export `deLink` [API change]
1187 + Make `filterIpynbOutput` strip ANSI escapes from code in output
1188 for non-ipynb formats, when the default "best" option is used with
1189 `--ipynb-output` (#5633).
1190 + Fix `camelCaseToHyphenated` so it handles `ABCDef` better.
1191 + Improve `isTight` (#5857). If a list has an empty item,
1192 this should not count against its being a tight list.
1193 + Export `htmlSpanLikeElements` [API change] (Daniele D'Orazio, #5796).
1194 This is a mapping of HTML span-like elements that are internally
1195 represented as a Span with a single class.
1196 + Change the implementation of `htmlSpanLikeElements` to retain
1197 classes and attributes (#5882, Florian Beeres).
1199 * Text.Pandoc.Slides: recognize content in Divs when determining
1202 * Text.Pandoc.SelfContained:
1204 + Omit content-type on type attribute for `<style>` (#5725).
1205 It doesn't seem to be valid for HTML5, and as a result Chrome
1206 ignores the style element.
1208 * Text.Pandoc.Pretty has been removed [API change].
1209 We now use the new external doclayout module instead.
1211 * Text.Pandoc.Writers.Shared:
1213 + Remove `metaToJSON`, `metaToJSON'` [API change].
1214 + Modify `addVariablesToContext`, `defField`, `setField`, `getField`,
1215 `resetField` to work with Context rather than JSON values. [API change]
1216 + Export new function `endsWithPlain` [API change].
1217 + Change `gridTables` so it does better at keeping the widths of
1218 columns (#4320) and does better at figuring out column widths
1219 when no widths are given (#5899).
1221 * Text.Pandoc.Options
1223 + Change type of `writerTemplate` to `Maybe Template` instead
1225 + Change To/FromJSON instances for `HTMLMathMethod`, `CiteMethod`,
1226 `ObfuscationMethod`, `TrackChanges`, `WrapOption`,
1227 `TopLevelDivision`, `ReferenceLocation`, `HTMLSlideVariant` (#5790).
1228 In each case we use lowercase (or hyphenated lowercase) for
1229 constructors to line up more closely with command-line option
1230 values. This is a breaking change for those who manually decode or
1231 encode JSON for these data types (e.g. for `ReaderOptions` or
1234 * Text.Pandoc.Filters:
1236 + Add `FromYAML` instance for `Filter`.
1237 + `applyFilters`: Add and apply filters in order (not reversed)
1238 This changes `applyFilters` from Text.Pandoc.Filter so
1239 that it does a left fold rather than a right fold, applying
1240 the filters in the order listed.
1244 + Change `toEntities` to emit numerical hex character references
1247 * Text.Pandoc.Highlighting:
1249 + Add additional listings languages (Wandmalfarbe).
1251 * Text.Pandoc.MediaBag:
1253 + Some of the types using Strings were switched to use FilePath instead
1254 (Christian Despres, #5884).
1256 * Text.Pandoc.Templates:
1258 + Don't import/export `varListToJSON` [API change]. It is removed in
1259 doctemplates >= 0.3.
1260 + Change type of `renderTemplate'` [API change]. Return value is
1261 now Text rather than being polymorphic. This makes room for
1262 upcoming removal of the `TemplateTarget` class from doctemplates.
1264 * Text.Pandoc.App.Opt [API changes]:
1266 + More convenient To/FromJSON instances. Make the field names
1267 like `strip-empty-paragraphs` rather than `optStripEmptyParagraphs`.
1268 Anyone who is using JSON serialization of Opt will need to adjust
1270 + Change `optHighlightStyle` to a `Maybe String` instead of
1271 `Maybe Style`. Do the parsing/loading of themes later, after
1273 + Remove `optBaseHeaderLevel` from `Opt`. We now just use
1274 `optShiftHeadingLevelBy`, to avoid redundancy.
1275 + Change `optShiftHeadingLevel` to `optShiftHeadingLevelBy` to
1277 + Custom FromJSON instance for `LineEnding`, so either `CRLF`
1278 or `crlf` will work.
1279 + Change `optVariables` from `[(String, String)]` to `Context Text`.
1280 + Change `optMetadata` to `Meta`, to allow structured values.
1281 The current behavior of the `--metadata` option stays the same.
1282 + Rename `optReader`, `optWriter` as `optFrom`, `optTo`.
1283 + Add `FromYAML` instances to `Opt` and to all subsidiary types.
1284 + Rename `optMetadataFile` to `optMetadataFiles`.
1285 + Rename `optPDFEngineArgs` to `optPDFEngineOpts`.
1286 + Rename `optWrapText` to `optWrap`.
1287 + Add `IpynbOutput` enumerated type: use this instead of
1288 a string for `optIpynbOutput`.
1289 + Change optInputFiles to a `Maybe [FilePath]` (#5888) [API change].
1290 `Nothing` means: nothing specified.
1291 `Just []` means: an empty list specified (e.g. in defaults).
1292 + List fields in Opt so they aren't reversed (#5881) [API change].
1293 Previously `optIncludeInHeader`, etc. were in reverse order.
1294 + The `sourcefile` variable is now always a list. It used to be
1295 sometimes a string, sometimes a list (when there was more than one).
1299 + default.latex: added code for `cslreferences` environment,
1300 to be used for pandoc-citeproc references. A `csl-hanging-indent`
1301 variable (set automatically if there is a `hanging-ident`
1302 class on the references Div) controls whether contents of this
1303 environment receive a hanging indent.
1304 + default.latex: Add `space` as default option for xeCJK, so that
1305 spaces between words are preserved (#5855, jeongminkim-islab).
1306 This is necessary for Korean.
1307 + default.latex: Remove include of `grffile` (#5848).
1308 This package used to be needed for proper handling of image filenames
1309 containing periods (in addition to the period before the extension).
1310 It no longer works with the latest LaTeX kernel and graphicx,
1311 so we have removed it. Future versions of graphicx will handle
1312 these filenames without the need for `grffile`.
1313 + default.context: add a saner default for page numbers.
1314 Previously they appeared centered at the top of the page;
1315 now we put them centered at the bottom, unless the `pagenumbering`
1317 + default.context: define a start-stop-pair `cslreferences` to
1318 allow for hanging indents in the bibliography (#5875, Denis Maier).
1319 + default.ms: update defaults. Use Palatino font, use slightly
1320 wider interparagraph space, don't indent paragraphs,
1321 and put page numbers on the bottom. This brings ms output
1322 closer to default LaTeX output.
1323 + default.revealjs: add navigationMode (Mauro Bieg, #5657).
1324 + default.muse: handle multiple authors better.
1325 + docbook4, docbook5 templates: add indentation to body.
1326 + HTML-based templates: use `styles.html` partial to avoid
1328 + HTML-based templates: change indentation of styles in template.
1330 * reference.docx (#5820):
1332 + Change Block Text (block quote) style so that the same font
1333 is used as in the body text, and the block text is indented
1335 + All headings now have a uniform color.
1336 + Level-1 headings no longer set `w:themeShade="B5"`.
1337 + Level-2 headings are now 14 point rather than 16 point.
1338 + Level-3 headings are now 12 point rather than 14 point.
1339 + Level-4 headings are italic rather than bold.
1341 * epub.css: Add CSS for hanging-indent div to support pandoc-citeproc's
1342 new hanging indents.
1346 + Repeat ghc-options in all stanzas.
1347 + Remove conditionals for ghc < 8 (Albert Krewinkel, #5693).
1348 + Compile with `-Wcpp-undef` and `-fhide-source-paths` when possible
1350 + Add cabal.project to extra-source-files (Albert Krewinkel).
1351 + Add dependency on skylighting-core (#5729). Even though it shouldn't
1352 be needed, some tools require it.
1353 + Require latest pandoc-types, texmath, skylighting, haddock-library.
1354 + Ensure TemplateHaskell is added to other-extensions when it is
1355 used (Vanessa McHale, #5728).
1356 + Remove `derive_json_via_th` flag; always use TH. This cuts down
1357 on code duplication and reduces the chance for errors. See #4083.
1363 + Remove references to obsolete flag (#5694).
1365 * Benchmarks: fix failure on ipynb.
1367 * Use MathJax 3 (zorkow).
1369 * KaTeX math: respect `classoption=fleqn` variable,
1370 bump KaTeX version to 0.11.1 (#5815, Mauro Bieg).
1372 * Fix redundant constraint compiler warnings (Pete Ryland, #5625).
1374 * Use throwError instead of fail when appropriate.
1376 * Use Prelude.fail to avoid ambiguity with fail from GHC.Base.
1378 * Add `diff-zip.sh` to tools (John MacFarlane, Agustín Martín Barbero).
1379 This is intended to make it easier to test differences in zip
1380 containers, like epub, docx, or odt.
1382 * Add `.gitattributes` (#5747). This ensures that the golden files
1383 in `test/fb2/reader/` don't have newlines converted. This should fix
1384 a test failure on GitHub CI with Windows.
1386 * Reorder options in `--help`.
1388 * Revise code for HsYAML-0.2.0.0 (@vijayphoenix, #5704).
1390 * Remove blank line in code example in Haddocks (Leif Metcalf, #5679).
1392 * Fix trypandoc with `getReader`/`getWriter` changes.
1394 * Allow building pandoc with GHC 8.8.
1396 * linux tarball: add architecture `-amd64` to filename.
1397 Now it will be: `pandoc-VERSION-linux-ARCH.tar.gz`.
1401 + Add section for exit codes.
1402 + Document some pptx limitations in slide show section:
1403 No incremental display (#5689). No pause with `. . .` (#5701).
1404 + reveal.js flags (Mauro Bieg, #5653).
1405 + Document addition of `data-` prefix to unknown attributes in HTML5.
1406 + Link to YAML spec (Mauro Bieg, #5687).
1407 + Fix capitalization of "Linux" (#5859, Marcus Stollsteimer).
1408 + Use a table for exit codes.
1409 + Put all template variable docs into one section.
1410 + Use ATX headers consistently.
1411 + Add fuller documentation of templates (#5779), including
1412 new template syntax, partials, etc.
1413 + Add documentation for the variable `hyperrefoptions` (Wandmalfarbe).
1414 + Clarify when macro definitions are passed as raw latex.
1415 In Markdown input, they are always passed through. In LaTeX, only if
1416 `latex_macros` is disabled.
1417 + Clarify that `--dpi` provides a default and doesn't override
1418 dpi values specified in the images themselves (#5721).
1419 + Document how to use custom writers with `--standalone` (#5866).
1420 + Clarify `--preserve-tabs` default.
1424 + Fix instructions for libicu.
1425 + Add Void Linux instructions (Volodymyr Kozachnyskyi).
1429 + Add information on tests (Agustín Martín Barbero, #5652).
1430 + Add information about command test naming to CONTRIBUTING (Florian B).
1432 * Fix typos in changelog and comments (#5896, Brian Wignall).
1434 * doc/lua-filters.md:
1436 + Fix mistakes in mediabag module docs (#5851, Albert Krewinkel).
1437 + Improve metadata replacement example in lua-filters doc (#5851).
1438 + Mention which Lua version is shipped with pandoc (Albert Krewinkel,
1441## pandoc 2.7.3 (2019-06-11)
1443 * Add `jira` (Atlassian's Jira wiki markup) as output format (#2497,
1446 * Add `tex_math_dollars` to `multimarkdownExtensions` (#5512).
1447 This form is now supported in multimarkdown,
1448 in addition to `tex_math_double_backslash`.
1450 * Fix `--self-contained` so it works when output format has extensions.
1451 Previously if you used `--self-contained` with `html-smart` or
1452 `html+smart`, it wouldn't work.
1454 * Add template variable `curdir` with working directory
1455 from which pandoc is run (#5464).
1457 * Markdown reader: don't create implicit reference for empty header
1460 * Muse reader: allow images inside link descriptions (Alexander Krotov).
1462 * HTML reader: epub related fixes.
1464 + With epub extensions, check for `epub:type` in addition to `type`.
1465 + Fix problem with noteref parsing which caused block-level
1466 content to be eaten with the noteref.
1467 + Rename `pAnyTag` to `pAny`.
1468 + Refactor note resolution.
1469 + Trim definition list terms (Alexander Krotov).
1473 + Add braces when resolving `\DeclareMathOperator`
1474 (#5441). These seem to be needed for xelatex but not pdflatex.
1475 + Allow newlines in `\mintinline`.
1476 + Pass through unknown listings language as class (#5540).
1477 Previously if the language was not in the list of languages supported
1478 by listings, it would not be added as a class, so highlighting
1479 would not be triggered.
1480 + `rawLaTeXInline`: Include trailing `{}`s in raw latex commands (#5439).
1481 This change affects the markdown reader and other readers that allow raw
1482 LaTeX. Previously, trailing `{}` would be included for unknown
1483 commands, but not for known commands. However, they are sometimes used
1484 to avoid a trailing space after the command. The chances that a `{}`
1485 after a LaTeX command is not part of the command are very small.
1487 * MediaWiki reader: handle multiple attributes in table row (#5471,
1490 * Docx reader: Add support for `w:rtl` (#5545). Elements with this
1491 property are put into Span inlines with `dir="rtl"`.
1493 * DocBook reader: Issue `IgnoredElement` warnings.
1495 * Org reader (Albert Krewinkel):
1497 + Fix planning elements in headers level 3 and higher
1498 (#5494). Planning info is now always placed before
1499 the subtree contents. Previously, the planning info was placed after
1500 the content if the header's subtree was converted to a list, which
1501 happens with headers of level 3 and higher per default.
1502 + Omit, but warn about unknown export options. Unknown export
1503 options are properly ignored and omitted from the output.
1504 + Prefer plain symbols over math symbols (#5483).
1505 Symbols like `\alpha` are output plain and unemphasized, not as math.
1506 + Recognize emphasis after TODO/DONE keyword (#5484).
1510 + Skip unknown elements rather than throwing errors (#5560).
1511 Sometimes custom elements are used (e.g. `id` element
1512 inside `author`); previously the reader would halt with an error.
1513 Now it skips the element and issues an `IgnoredElement` warning.
1514 + Parse notes (#5493, Alexander Krotov).
1515 + Internal improvements (Alexander Krotov).
1517 * OpenDocument writer: Roll back automatic figure/table numbering
1518 (#5474). This was added in pandoc 2.7.2, but it makes it impossible
1519 to use pandoc-crossref. So this has been rolled back for now,
1520 until we find a good solution to make this behavior optional
1521 (or a creative way to let pandoc-crossref and this feature
1524 * New module Text.Pandoc.Writers.Jira, exporting `writeJira` [API
1525 change] (Albert Krewinkel).
1529 + Don't include 'landmarks' if there aren't any.
1530 Previously we could get an empty ol element, which caused
1531 validation errors with epubcheck.
1532 + Ensure unique ids for styleesheets in content.opf (#5463).
1533 + Make stylesheet link compatible with kindlegen (#5466,
1534 Eric Schrijver). Pandoc omitted `type="text/css"` from both
1535 `<style>` and `<rel="stylesheet">` elements in all templates, which
1536 is valid according to the spec. However, Amazon’s kindlegen software
1537 relies on this attribute on `<link>` elements when detecting
1538 stylesheets to include.
1542 + Output video and audio elements depending on file
1543 extension of the image path (Mauro Bieg).
1544 + Emit empty alt tag in figures (#5518, Mauro Bieg).
1545 The same text is already in the <figcaption> and
1546 screen-readers would read it twice, see #4737.
1547 + Don't add variation selector if it's already there.
1548 This fixes round-trip failures.
1549 + Prevent gratuitous emojification on iOS (#5469).
1550 iOS chooses to render a number of Unicode entities, including '↩', as
1551 big colorful emoji. This can be defeated by appending Unicode
1552 VARIATION SELECTOR-15'/'VARIATION SELECTOR-16'. So we now append this
1553 character when escaping strings, for both '↩' and '↔'. If other
1554 characters prove problematic, they can simply be added to
1555 `needsVariationSelector`. + Add `class="heading"` to level 7+ Headers
1556 rendered as `<p>` elements (#5457).
1558 * RST writer: treat Span with no attributes as transparent (#5446).
1559 Previously an Emph inside a Span was being treated as
1560 nested markup and ignored. With this patch, the Span
1565 + Include inline code attributes with `--listings` (#5420).
1566 + Don't produce columns environment unless beamer (#5485).
1567 + Fix footnote in image caption. Regression: the fix for #4683 broke
1569 + Don't highlight code in headings (#5574). This causes
1571 + Use `\mbox` to get proper behavior inside `\sout` (#5529).
1573 * EPUB writer: Fix document section assignments (#5546).
1574 For example, introduction should go in bodymatter, not frontmatter, and
1575 epigraph, conclusion, and afterward should go in bodymatter, not
1576 backmatter. For the full list of assignments, see the manual.
1580 + Add backslashes to avoid unwanted interpretation of
1581 definition list terms as other kinds of block (#554).
1582 + Ensure the code fence is long enough (#5519).
1583 Previously too few backticks were used when the code block
1584 contained an indented line of backticks. (Ditto tildes.)
1585 + Handle labels with integer names (Jesse Rosenthal, #5495).
1586 Previously if labels had integer names, it could produce a conflict
1587 with auto-labeled reference links. Now we test for a conflict and
1588 find the next available integer. This involves adding a new state
1589 variable `stPrevRefs` to keep track of refs used in other document
1590 parts when using `--reference-location=block|section`
1592 * Textile writer: fix closing tag for math output (Albert Krewinkel).
1593 Opening and closing tag for math output match now.
1595 * Org writer: always indent src blocks content by 2 spaces (#5440, Albert
1596 Krewinkel). Emacs always uses two spaces when indenting the content of
1597 src blocks, e.g., when exiting a `C-c '` edit-buffer. Pandoc used to
1598 indent contents by the space-equivalent of one tab, but now always uses
1603 + Use `` `+...+` `` form for inline code.
1604 The old `` `a__b__c` `` yields emphasis inside code in asciidoc.
1605 To get a pure literal code span, use `` `+a__b__c+` ``.
1606 + Use proper smart quotes with asciidoctor (#5487).
1607 Asciidoctor has a different format for smart quotes.
1608 + Use doubled ## when necessary for spans (#5566).
1609 + Ensure correct nesting of strong/emph (#5565): strong
1610 must be the outer element.
1614 + Wrap elements with p when needed (#5570). The JATS spec restricts
1615 what elements can go inside `fn` and `list-item`. So we wrap other
1616 elements inside `<p specific-use="wrapper">` when needed.
1617 + Properly handle footnotes (#5511) according to "best practice."
1618 (Group them at the end in `<fn-group>` and use `<xref>` elements
1620 + Fix citations with PMID so they validate (#5481). This includes
1621 an update to data/jats.csl.
1622 + Ensure validity of `<pub-date>` by parsing the date and
1623 extracting year, month, and day, as expected. Also add an
1624 iso-8601-date attribute automatically.
1625 + Don't use `<break>` element for LineBreak. It is only
1626 allowed in a few special contexts, and not in `<p>` elements.
1627 + Don't make `<string-name>` a child of `<string>`, which is illegal.
1631 + Do not wrap note references into `<sup>` and brackets
1632 (Alexander Krotov). Existing FB2 readers, such as FBReader, already
1633 display links with type="note" as a superscript.
1634 + Use genre metadata field (#5478).
1636 * Muse writer: do not escape empty line after `<br>` (Alexander Krotov).
1638 * Add unicode code point in "Missing character" warning (#5538).
1639 If the character isn't in the console font, the message is pretty useless,
1640 so we show the code point for anything non-ASCII.
1642 * Lua: add Version type to simplify comparisons (Albert Krewinkel).
1643 Version specifiers like `PANDOC_VERSION` and `PANDOC_API_VERSION` are
1644 turned into `Version` objects. The objects simplify version-appropriate
1645 comparisons while maintaining backward-compatibility.
1646 A function `pandoc.types.Version` is added as part of the newly
1647 introduced module `pandoc.types`, allowing users to create version
1650 * pandoc lua module (Albert Krewinkel):
1652 - Fix deletion of nonexistent attributes (#5569).
1653 - Better tests for Attr and AttributeList.
1655 * pandoc.mediabag lua module (Albert Krewinkel):
1657 + Add function `delete` for deleting a single item.
1658 + Add function `empty` for removing all entries.
1659 + Add function `items` for iterating over mediabag.
1661 * Text.Pandoc.Class: Fix handling of `file:` URL scheme in
1662 `downloadOrRead` (#5517, Mauro Bieg). Previously `file:/`
1663 URLs were handled wrongly and pandoc attempted to make HTTP
1664 requests, which failed.
1666 * Text.Pandoc.MIME: add `mediaCategory` [API change] (Mauro Bieg).
1668 * Text.Pandoc.Shared:
1670 + Add `onlySimpleTableCells` [API change]
1671 (Mauro Bieg) and use this to consolidate simple-table detection
1672 (#5524). This fixes an inconsistency in the HTML reader, which did not
1673 treat tables with `<p>` inside cells as simple.
1674 + `metaToJSON`: treat digits starting with 0 as a string, not a number
1675 (#5479). This fixes a regression in YAML metadata in pandoc 2.7.2.
1677 * Text.Pandoc.Logging: Add `IgnoredElement` constructor for
1678 `LogMessage`. `SkippedConetnt` doesn't work for some XML-based
1679 readers which don't have access to parsec source positions.
1681 * Text.Pandoc.Asciify: Add Turkish undotted-i (#5433, Mauro Bieg).
1683 * Improve output of Lua tests (#5499, Albert Krewinkel).
1684 This makes use of tasty-lua, a package to write tests in Lua
1685 and integrate the results into Tasty output. Test output becomes
1686 more informative: individual tests and test groups become visible
1687 in test output. Failures are reported with helpful error messages.
1689 * Lua: add `pandoc.system` module (#5468, Albert Krewinkel).
1690 The `system` Lua module provides utility functions to interact with the
1691 operating- and file system. E.g.
1692 `print(pandoc.system.get_current_directory())`
1695 pandoc.system.with_temporary_directory('tikz', function (dir)
1696 -- write and compile a TikZ file with pdflatex
1700 * LaTeX template: Add pdflang to hypersetup if lang is set (#5443).
1702 * beamer template: Fix using Beamer with geometry (#5505, Daniel Maslowski).
1703 Beamer already loads geometry, so we need to use the `\geometry`
1704 command to set geometry options.
1706 * EPUB2/3 templates: Move inline styles to default epub.css (#5466).
1707 NOTE: Those who use a custom CSS stylesheet with EPUB should
1710 code{ white-space: pre-wrap; }
1711 span.smallcaps{ font-variant: small-caps; }
1712 span.underline{ text-decoration: underline; }
1713 q { quotes: "“" "”" "‘" "’"; }
1714 div.column{ display: inline-block; vertical-align: top; width: 50%; }
1716 * reveal.js template:
1718 + Updates for revealjs 3.8.0 (#5435, ebiim).
1719 + Remove reference to head.min.js (#5448, Winnie Hellmann).
1720 NOTE: users will need to update reveal.js to at least 3.8.0
1721 for their presentations generated with this version of pandoc
1726 + Replace `</>` with literal `/` (#5451).
1727 We use forward-slash for a directory separator in tmpDir,
1728 even on Windows (because that's what tex likes). So we
1729 should not put a backslash between the tmpDir and the
1730 filename on Windows. This is harmless enough in normal
1731 Windows setups, but it breaks on Cygwin.
1732 Thanks to @cc2x for noticing and diagnosing the problem.
1733 + Allow use of `-output-directory` in `--pdf-engine-opt` (#5462).
1734 This is currently possible with `mklatex` and `-outdir`, but
1735 was not yet possible with xelatex and `-output-directory`.
1736 + For PDF via ms/pdfroff, make TOC appear at beginning and in
1737 PDF bookmarks (#5553). Previously the TOC appeared at the end
1738 of the document, and was not bookmarked. To keep it at the end,
1739 add `--pdf-engine-opt=--no-toc-relocation` to your command line.
1741 * Fix broken links in documents (#5473, Shim Myeongseob).
1742 Also, use absolute links to pandoc.org when possible, so that
1743 the links can be followed by people viewing these documents
1746 * Improved sample lua tikz filter in lua-filters docs (#5445,
1747 Matthew Doty). There are three changes:
1749 + It only processes elements which begin with `\begin{tikzpicture}`
1750 + It uses pdf2svg instead of imagemagick to preserve fidelity
1751 + The images produced have transparent backgrounds
1755 + Add note about `title-meta`, `author-meta`, `date-meta` (#5486).
1756 + Fix typo (#5489, Christian Krause).
1758 * add test/tables.xwiki to git and pandoc.cabal (#5498, Mauro Bieg).
1760 * Disable missing-home-modules warning in `stack.yaml`.
1761 Otherwise `stack ghci` fails.
1764## pandoc 2.7.2 (2019-04-05)
1766 * Add XWiki writer (#1800, Derek Chen-Becker).
1767 Add `Text.Pandoc.Writers.XWiki`, exporting `writeXWiki` [API change].
1769 * Dokuwiki Reader: parse single curly brace (#5416, Mauro Bieg).
1771 * Vimwiki reader: improve handling of internal links (#5414).
1772 We no longer append `.html` to link targets, and we add a title
1773 `wikilink`. This mirrors behavior of other wiki readers. Generally
1774 the `.html` extension is not wanted. It may be important for output
1775 to HTML in certain circumstances, but it can always be added using a
1776 filter that matches on links with title `wikilink`.
1778 If your workflow requires the current behavior, here is a lua filter
1779 that will add the `.html` extension:
1783 if el.title == 'wikilink' then
1784 el.target = el.target .. ".html"
1791 + Use format `ipynb` for raw cell where no format given.
1792 + Avoid introducing spurious `.0` on integers in metadata.
1794 * Markdown reader: fenced div takes priority over setext header.
1796 * HTML reader: read `data-foo` attribute into `foo` (#5392).
1797 The HTML writer adds the `data-` prefix for HTML5 for nonstandard
1798 attributes. But the attributes are represented in the AST without
1799 the `data-` prefix, so we should strip this when reading HTML.
1801 * LaTeX reader: Improve autolink detection (#5340).
1803 * PowerPoint writer (Jesse Rosenthal):
1805 + Expand builtin reference doc to model all layouts.
1806 The previous built-in reference doc had only title and content
1807 layouts. Add in a section-header slide and a two-content slide, so
1808 users can more easily modify it to build their own templates.
1809 + Always open up in slide view. When editing a
1810 template/reference-doc, the user might be in Master view, but when
1811 producing a slide show, it is assumed that slide view will be
1813 + Remove `handoutsMasterList` from template presentation.xml
1814 + Fix numerous errors in templating (#5402). Previously, some templates
1815 produced by Office 365 (MacOS) would not render with `--reference-doc`
1816 correctly. We now apply correct shapes for content, and build
1817 shape trees correctly.
1818 + Make default placeholder type for template lookup.
1819 + Apply speaker notes to metadata slide if applicable.
1820 + Test for speaker notes after breaking header.
1821 + Correctly handle notes after section-title header.
1822 Previously, if notes came after a section-title header (ie, a level-1
1823 header in a slide-level=2 presentation), they would go on the next
1824 slide. This keeps them on the slide with the header.
1825 + Internal improvements.
1829 + Use format `ipynb` for raw cell where no format given.
1830 According to nbformat docs, this is supposed to render in every
1831 format. We don't do that, but we at least preserve it as a raw
1832 block in markdown, so you can round-trip.
1833 + Consolidate adjacent raw blocks. Sometimes pandoc creates two
1834 HTML blocks, e.g. one for the open tag and one for a close tag.
1835 If these aren't consolidated, only one will show up in output cell.
1836 + Fixed carry-over of nbformat from metadata.
1837 + Preserve `nbformat_minor` if it's given. This helps with round-tripping.
1841 + Avoid inadvertently creating ?` or !` ligatures (#5407).
1842 These are upside down ? and !, resp.
1843 + Fix footnotes in table caption and cells (#5367). This fixes a
1844 bug wherein footnotes appeared in the wrong order, and with
1845 duplicate numbers, when in table captions and cells.
1846 We now use regular `\footnote` commands, even in the table
1847 caption and the minipages containing cells. Apparently
1848 longtable knows how to handle this.
1850 * HTML writer: Don't add data- prefix to RDFa attributes (#5403).
1852 * JATS writer: Ensure that plain strings go inside `<pub-id>` tag (#5397).
1856 + Better rendering of numbers (#5398). If the number is integral,
1857 we render it as an integral not a float.
1858 + Proper rendering of empty map in YAML metadata (#5398). Should
1859 be `{}`, not empty string.
1860 + Properly escape attributes in Markdown writer (#5369).
1861 + Be sure implicit figures work in list contexts (#5368).
1862 Previously they would sometimes not work: e.g., when they
1863 occurred in final paragraphs in lists that were originally
1864 parsed as Plain and converted later using PlainToPara.
1866 * Docx writer: Use `w:br` without attributes for line breaks (#5377).
1867 We previously added the attribute `type="textWrapping"`, but
1868 this causes problems on Word Online.
1870 * LaTeX template (Andrew Dunning):
1872 + Ensure correct heading/table order (#5365). Improve workaround
1873 (#1658) for tables following headings. The new solution works whether
1874 or not the `indent` variable is enabled.
1875 + Remove `subparagraph` variable. The default is now to use run-in
1876 style for level 4 and 5 headings (`\paragraph` and `\subparagraph`).
1877 To get the previous default behavior (where these were formatted as
1878 blocks, like `\subsubsection`), set the `block-headings` variable.
1879 + Add pandoc to PDF metadata (#5388).
1880 + Group graphics-related code (#5389).
1881 + Move `\setstretch` after front matter (#5179). Ensures that
1882 `\maketitle`, `\tableofcontents`, and so forth are not affected by
1883 changes to line spacing.
1885 * Update data/jats.csl to avoid commas between name-part elements
1888 * Add support for golang (`go`) with `--listings` (#5427).
1890 * Text.Pandoc.Shared - improve `metaToJSON` behavior with numbers.
1891 We now do a better job marshalling numbers from MetaString
1892 or MetaInlines into JSON Number.
1894 * Text.Pandoc.Writers.Shared: `metaValueToJSON`: use Number Values for
1895 integers. Pandoc's MetaValue doesn't have a distinguished number type,
1896 so numbers are put in MetaStrings. If the MetaString consists
1897 entirely of digits, we convert it to a Number. We should probably
1898 consider adding a MetaNumber constructor to MetaValue, for better
1899 round-tripping with JSON etc. This change aids round-tripping in
1900 ipynb metadata fields, like `toc_depth`.
1902 * Text.Pandoc.Class: `fetchItem`: don't treat UNC paths as
1903 protocol-relative URLs (#5127). These are paths beginning `//?/UNC/...`.
1905 * Text.Pandoc.ImageSize: Improve `pdfSize` so it handles
1906 a wider range of PDFs (#4322, with help from Richard Davis).
1908 * Text.Pandoc.Pretty: avoid stack overflow by using strict sum (#5401).
1910 * Fix harmless error in file-scope code (#5422).
1914 + Improve 'header' and 'heading' usage (#5423, Andrew
1915 Dunning). The term 'header' was being used where 'heading'
1916 is more appropriate.
1917 + Add paragraph on options affecting markdown in ipynb.
1919 * stack.yaml - remove -Wmissing-home-modules
1920 This seems to cause problems with stack ghci. Remove RTS options.
1922 * Add ghc-options to cabal.project.
1924 * appveyor.yml - use ghc 8.6.4. Fixes segfault issues on Windows (#5037).
1926 * linux build process: Remove clone of pandoc-citeproc (#5366).
1927 It wasn't being used; cabal.project specifies the version to use.
1929## pandoc 2.7.1 (2019-03-14)
1931 * Add tectonic as an option for --pdf-engine (#5345, Cormac Relf).
1932 Runs tectonic on STDIN instead of a temporary .tex file, so that it
1933 looks in the working directory for `\include` and `\input` like the rest
1934 of the engines. Allows overriding the output directory
1935 args with `--pdf-engine-opt=--outdir --pdf-engine-opt="$DIR"`.
1937 * Allow `-o/--output` to be used with `--print-default-data-file`,
1938 `--print-highlighting-style`, `--print-default-template`.
1939 Note that `-o` must occur BEFORE the `--print*` command on the command
1940 line (this is documented, #5357).
1944 + Support `\underline`, `\ul`, `\uline` (#5359, Paul
1945 Tilley). These are parsed as a Span with class `underline`, as
1947 + Ensure that `\Footcite` and `\Footcites` get put in a note.
1951 + Remove sensitivity to `raw_html`, `raw_tex` extensions.
1952 We now include every output format. Pruning is handled by
1954 + Better handling of cell metadata. We now include even complex cell
1955 metadata in the Div's attributes (as JSON, in complex cases, or
1956 as plain strings in simple cases).
1960 + Recurse into native divs for output cell data (#5354).
1961 + Render cell metadata fields from div attributes.
1963 * Docx writer: avoid extra copy of abstractNum and num elements
1964 in numbering.xml. This caused pandoc-produced docx files to
1965 be uneditable using Word Online (#5358).
1967 * Markdown writer: improve handling of raw blocks/inline.
1968 We now emit raw content using `raw_attribute` when no more
1969 direct method is available. Use of `raw_attribute` can be
1970 forced by disabling `raw_html` and `raw_tex`.
1972 * LaTeX writer: Add classes for frontmatter support (#5353, Andrew Dunning)
1973 and remove frontmatter from `scrreprt`.
1977 + Improve readability (#5363, Andrew Dunning).
1978 + Robust section numbering removal (#5351, Andrew Dunning).
1979 Ensures that section numbering does not reappear with custom
1980 section levels. See <https://tex.stackexchange.com/questions/473653/>.
1981 + Better handling of front/main/backmatter (#5348).
1982 In pandoc 2.7 we assumed that every class with chapters would accept
1983 `\frontmatter`, `\mainmatter`, and `\backmatter`. This is not so (e.g.
1984 report does not). So pandoc 2.7 breaks on report class by including an
1985 unsupported command. Instead of the `book-class` variable, we use two
1986 variables, `has-chapters` and `has-frontmatter`, and set these
1987 intelligently in the writer.
1989 * Text.Pandoc.Shared: Improve `filterIpynbOutput`. Ensure that
1990 images are prioritized over text. `best` should include everything
1993 * Tests.Old: specify `--data-dir=../data` to ensure tests can find
1994 data files even if they haven't been installed. Remove old
1995 `pandoc_datadir` environment variable, which hasn't done anything for a
1998 * MANUAL.txt: Add recommendation to use `raw_attribute` with ipynb (#5354).
2000 * Use cmark-gfm-hs 0.1.8 (note that 0.1.7 is buggy).
2002 * Use latest pandoc-citeproc, texmath.
2005## pandoc 2.7 (2019-03-03)
2007 * Use XDG data directory for user data directory (#3582). Instead of
2008 `$HOME/.pandoc`, the default user data directory is now
2009 `$XDG_DATA_HOME/pandoc`, where `XDG_DATA_HOME` defaults to
2010 `$HOME/.local/share` but can be overridden by setting the
2011 environment variable. If this directory is missing, then
2012 `$HOME/.pandoc` is searched instead, for backwards compatibility.
2013 However, we recommend moving local pandoc data files from
2014 `$HOME/.pandoc` to `$HOME/.local/share/pandoc`. On Windows the
2015 default user data directory remains the same.
2017 * Slide show formats behavior change: content under headers
2018 less than slide level is no longer ignored, but included in
2019 the title slide (for HTML slide shows) or in a slide after
2020 the title slide (for beamer). This change makes possible
2021 2D reveal.js slideshows with content in the top slide on
2022 each stack (#4317, #5237).
2024 * Add command line option `--ipynb-output=all|none|best` (#5339).
2025 Output cells in ipynb notebooks often contain several different
2026 versions of an output, with different MIME types, e.g. an HTML
2027 table and a plain-text fallback. Specifying `--ipynb-output=best`
2028 (the default) ensures that the best version for the output format
2029 is used. `all` includes all versions, and `none` suppresses them
2030 all, leaving output cells empty.
2032 * `asciidoctor` is now an output format separate from `asciidoc`,
2033 to accommodate some minor implementation-specific differences
2034 (currently just in the treatment of display math).
2036 * Add `latexmk` as an option for `--pdf-engine` (#3195).
2037 Note that you can use `--pdf-engine-opt=-outdir=bar` to specify
2038 a persistent temp directory.
2042 + Improve tight/loose list handling (#5285). Previously the
2043 algorithm allowed list items with a mix of Para and Plain, which
2045 + Add newline when parsing blocks in YAML (#5271). Otherwise last
2046 block gets parsed as a Plain rather than a Para. This is a
2047 regression in pandoc 2.x. This patch restores pandoc 1.19
2049 + Make `yamlToMeta` respect extensions (#5272, Mauro Bieg).
2050 This adds a `ReaderOptions` parameter to `yamlToMeta` [API change].
2051 + Fix bug parsing fenced code blocks (#5304). Previously parsing
2052 would break if the code block contained a string of backticks of
2053 sufficient length followed by something other than end of line.
2055 * LaTeX reader: don't let `\egroup` match `{`. `braced` now actually
2056 requires nested braces. Otherwise some legitimate command and
2057 environment definitions can break.
2059 * Docx reader (Jesse Rosenthal):
2061 + Rename `getDocumentPath` as `getDocumentXmlPath`.
2062 + Use field notation for setting `ReaderEnv`.
2063 + Figure out `document.xml` path once at the beginning of parsing, and
2064 add it to the environment, so we can avoid repeated lookups.
2065 + Dynamically determine main document xml path (#5277).
2066 The desktop Word program places the main document file in
2067 `word/document.xml`, but the online word places it in
2068 `word/document2.xml`. This file path is actually stated in the root
2069 `_rels/.rels` file, in the `Relationship` element with an
2070 `http://../officedocument` type.
2071 + Fix paths in archive to prevent Windows failure (#5277).
2072 Some paths in archives are absolute (have an opening slash) which, for
2073 reasons unknown, produces a failure in the test suite on MS
2074 Windows. This fixes that by removing the leading slash if it exists.
2075 + Add comments to aid code readability.
2076 + Trim space inside the last inline (#5273).
2077 + Unwrap sdt elements in footnotes and comments (#5302).
2079 * Muse reader (Alexander Krotov):
2081 + Test that block level markup does not break `<verbatim>`.
2082 + Add secondary note support.
2084 * ipynb reader: handle images referring to attachments. Previously
2085 we didn't strip off the attachment: prefix, so even though the
2086 attachment was available in the mediabag, pandoc couldn't find it.
2090 + Fix parsing of figures (#5321). This ensures that a figure
2091 containing a single image is parsed as a pandoc "implicit
2092 figure" (i.e., a Para with a single Image whose title attribute
2093 begins with `fig:`). More complex figures will still be parsed
2095 + Support `fig-group` block element (#5317).
2096 + Handle citations with multiple references (#5310). The `rid`
2097 attribute can have a space-separated list of ids.
2099 * AsciiDoc Writer: Add `writeAsciiDoctor` [API change, Tarik Graba].
2100 Handle display math appropriately for Asciidoctor.
2102 * JATS writer: wrap figure caption in `<p>` to fix validation (#5290,
2107 + Implement WAI-ARIA roles for (end)notes, citations, and
2108 bibliography (#4213). Note that doc-biblioref is only used when
2109 link-citations produces links, since it belongs on links.
2110 + Include content (including speaker notes) in title slides
2115 + Ensure final newline.
2116 + Only include metadata under `jupyter` field.
2117 + Don't create attachments for images with absolute URIs,
2118 including data: URIs (#5303).
2119 + Keep plain text fallbacks in output even if a richer format is
2120 included (#5293). We don't know what output format will be needed.
2121 See the `--ipynb-output` command line option for a way to control
2122 what formats are included in the output.
2124 * Markdown writer: use `markdown="1"` when appropriate for Divs:
2125 when `native_divs` and `markdown_in_html_blocks` are disabled
2126 but `raw_html` and `markdown_attribute` are enabled.
2130 + Use right fold for `escapeString`. This is more elegant than
2131 the explicit recursive code we were using.
2132 + Avoid `{}` after control sequences when escaping.
2133 `\ldots{}.` doesn't behave as well as `\ldots.` with the latex
2134 ellipsis package. This patch causes pandoc to avoid emitting
2135 the `{}` when it is not necessary. Now `\ldots` and other
2136 control sequences used in escaping will be followed by either
2137 a `{}`, a space, or nothing, depending on context.
2138 + For beamer, include contents under headers superordinate to
2139 slidelevel (#4317). Currently we keep the fancy title slide, and
2140 add a new slide with the same title and whatever content was
2143 * Powerpoint writer (Jesse Rosenthal): support underlines.
2144 Use span with single class "underline" as in docx writer.
2146 * Muse writer: escape secondary notes (Alexander Krotov).
2148 * FB2 writer: add section identifiers support (#5229, John KetzerX).
2150 * Make `--fail-if-warnings` work for PDF output (#5343).
2152 * Lua filters (Albert Krewinkel):
2154 + Load module `pandoc` before calling `init.lua` (#5287). The file
2155 `init.lua` in pandoc's data directory is run as part of pandoc's
2156 Lua initialization process. Previously, the `pandoc` module was
2157 loaded in `init.lua`, and the structure for marshaling was
2158 set up after. This allowed simple patching of element
2159 marshaling, but made using `init.lua` more difficult. Now, all
2160 required modules are now loaded before calling `init.lua`. The
2161 file can be used entirely for user customization. Patching
2162 marshaling functions, while discouraged, is still possible via
2164 + All Lua modules bundled with pandoc, i.e., `pandoc.List`,
2165 `pandoc.mediabag`, `pandoc.utils`, and `text` are re-exported from the
2166 `pandoc` module. They are assigned to the fields `List`, `mediabag`,
2167 `utils`, and `text`, respectively.
2169 * Text.Pandoc.Lua (Albert Krewinkel):
2171 + Split `StackInstances` into smaller Marshaling modules.
2172 + Get `CommonState` from Lua global. This allows more control over
2173 the common state from within Lua scripts.
2177 + Support the `subject` metadata variable (#5289, Pascal Wagler).
2178 + Add `\frontmatter`, `\mainmatter`, `\backmatter`
2179 for book classes (#5306).
2181 * epub3 template: Add titlepage class to section (#5269).
2183 * HTML5 template: Add ARIA role `doc-toc` for table of contents (#4213).
2185 * Make `--metadata-file` use selected extensions (#5279, #5272, Mauro Bieg).
2187 * Text.Pandoc.Shared:
2189 + Remove `withTempDir` [API change].
2190 + Add new exported function `defaultUserDataDirs` [API change].
2191 + Add `filterIpynbOutput` [API change].
2192 + `compactify`: Avoid lists with a mix of Plain and Para elements
2195 * Text.Pandoc.Translations: reorder alphabetically and remove `Author`
2196 (#5334, Mauro Bieg).
2198 * Text.Pandoc.Extensions:
2200 + More carefully groom ipynb default extensions.
2201 + Add `all_symbols_escapable` to `githubMarkdownExtensions`.
2205 + Use system temp directory when possible (#1192). Previously we
2206 created temp dirs in the working directory, partly (a) because
2207 there were problems using the system temp directory on Windows,
2208 when their pathnames included tildes, and partly (b) because
2209 programs like `epstopdf.pl` would not be allowed to write to
2210 directories outside the working directory in restricted mode. We
2211 now (a) use the system temp dir except when the path includes
2212 tildes, and (b) set `TEXMFOUTPUT` when creating the PDF, so that
2213 subsidiary programs can use the system temp directory. This
2214 addresses problems that occurred when pandoc was used in a
2215 synced directory (such as Dropbox).
2216 + Change types of subsidiary functions to PandocIO, to allow
2217 warnings to be threaded through (#5343).
2219 * Text.Pandoc.MIME: add WebP (#5267, Mauro Bieg).
2221 * Tests: avoid calling `findPandoc` multiple times.
2223 * Old tests: remove need for temp files by using `pipeProcess`.
2225 * Added simple ipynb reader/writer tests (#5274).
2227 * Rearrange `--help` output in a more rational way, with common
2228 options at the beginning and options grouped by function (#5336).
2230 * trypandoc: Add JATS and other missing formats (Arfon Smith, #5291).
2232 * Add missing copyright notices and remove license boilerplate (#4592,
2235 * Use latest basement/foundation on 32bit windows.
2237 * Use latest skylighting (#5328). Custom syntax definitions no
2238 longer try to load `language.dtd`.
2240 * Require texmath 0.11.2.1
2242 * Use latest pandoc-citeproc (0.16.1.1).
2246 + Clarify variable substitution indentation in templates (#5338,
2247 Agustín Martín Barbero).
2248 + Reorder custom-styles section (#5324, Mauro Bieg).
2250## pandoc 2.6 (2019-01-30)
2252 * Support ipynb (Jupyter notebook) as input and output format.
2254 + Add `ipynb` as input and output format (extension `.ipynb`).
2255 + Added Text.Pandoc.Readers.Ipynb [API change].
2256 + Added Text.Pandoc.Writers.Ipynb [API change].
2257 + Add `PandocIpynbDecodingError` constructor to Text.Pandoc.Error.Error
2259 + Depend on ipynb library.
2260 + Note: there is no template for ipynb.
2262 * Add DokuWiki reader (#1792, Alexander Krotov). This adds
2263 Text.Pandoc.Readers.DokuWiki [API change], and adds `dokuwiki`
2266 * Implement task lists (#3051, Mauro Bieg). Added `task_lists`
2267 extension. Task lists are supported from markdown and gfm input.
2268 They should work, to some degree, in all output formats, though in
2269 most formats you'll get a bullet list with a unicode character for
2270 the box. In HTML, you get checkboxes and in LaTeX/PDF output, a
2271 box is used as the list marker. API changes:
2273 + Added constructor `Ext_task_lists` to `Extension`.
2274 + Added `taskListItemFromAscii` and `taskListItemToAscii` to
2277 * Allow some command line options to take URL in addition to FILE.
2278 `--include-in-header`, `--include-before-body`, `--include-after-body`.
2282 + Handle empty `start` attribute (see #5162).
2283 + Treat `textarea` as a verbatim environment (#5241) and preserve
2288 + Change treatment of `number-lines` directive (Brian Leung,
2289 #5207). Directives of this type without numeric inputs should
2290 not have a `startFrom` attribute; with a blank value, the
2291 writers can produce extra whitespace.
2292 + Removed superfluous `sourceCode` class on code blocks (#5047).
2293 + Handle `sourcecode` directive as synonynm for `code` (#5204).
2297 + Remove `sourceCode` class for literate Haskell code blocks
2298 (#5047). Reverse order of `literate` and `haskell` classes on
2299 code blocks when parsing literate Haskell, so `haskell` is
2301 + Treat `<textarea>` as a verbatim environment (#5241).
2305 + Handle `minlevel` option differently (#5190, Brian Leung).
2306 When `minlevel` exceeds the original minimum level observed in
2307 the file to be included, every heading should be shifted
2309 + Allow for case of `:minlevel == 0` (#5190).
2310 + Fix treatment of links to images (#5191, Albert Krewinkel).
2311 Links with descriptions which are pointing to images are no
2312 longer parsed as inline images, but as links.
2313 + Add support for #+SELECT_TAGS (Brian Leung).
2314 + Separate filtering logic from conversion function (Brian Leung).
2316 * TWiki reader: Fix performance issue with underscores (#3921).
2318 * MediaWiki reader: use `_` instead of `-` in auto-identifiers (#4731).
2319 We may not still be exactly matching mediawiki's algorithm.
2323 + Remove `sourceCode` class for literate Haskell code blocks
2324 (#5047). Reverse order of `literate` and `haskell` classes on
2325 code blocks when parsing literate Haskell, so `haskell` is
2327 + Support `\DeclareMathOperator` (#5149).
2328 + Support `\inputminted` (#5103).
2329 + Support `\endinput` (#5233).
2330 + Allow includes with dots like `cc_by_4.0`. Previously the `.0`
2331 was interpreted as a file extension, leading pandoc not to add
2332 `.tex` (and thus not to find the file). The new behavior matches
2337 + Use `mapLeft` from Shared instead of defining own.
2339 * Docx reader (Jesse Rosenthal):
2341 + Handle level overrides (#5134).
2345 + Support custom properties (#3024, #5252, Agustín Martín Barbero).
2346 Also supports additional core properties: `subject`, `lang`,
2347 `category`, `description`.
2348 + Make Level into a real type, instead of an alias for a tuple
2351 * ICML writer (Mauro Bieg):
2353 + Support custom-styles (#5137, see #2106).
2354 + Support unnumbered headers (#5140).
2356 * Texinfo writer: Use header identifier for anchor if present (#4731).
2357 Previously we were overwriting an existing identifier with a new one.
2359 * Org writer: Preserve line-numbering for example and code blocks
2362 * Man/Ms writers: Don't escape `-` as `\-`. The `\-` gets rendered
2363 in HTML and PDF as a unicode minus sign.
2365 * Ms writer: Ensure we have a newline after .EN in disply math (#5251).
2367 * RST writer: Don't wrap simple table header lines (#5128).
2369 * Asciidoc writer: Shorter delimiters for tables, blockquotes
2370 (#4364). This matches asciidoctor reference docs.
2372 * Dokuwiki writer: Remove automatic `:` prefix before internal image
2373 links (#5183, Damien Clochard). This prevented users from making
2374 relative image links.
2376 * Zimwiki writer: remove automatic colon prefix before internal
2377 images (#5183, Damien Clochard).
2379 * MediaWiki writer: fix caption, use 'thumb' instead of 'frame'
2380 (#5105). Captions used to have the word 'caption' prepended; this
2381 has been removed. Also, 'thumb' is used instead of 'frame' to
2382 allow images to be resized.
2386 + Ensure that we don't get > 2 levels of section nesting,
2387 even with slide level > 2 (#5168).
2388 + If slide level == N but there is no N-level header, make
2389 sure the next header with level > N gets treated as a slide
2390 and put in a section, rather than remaining loose (#5168).
2394 + Make `plain` RawBlocks pass through in `plain` output.
2395 + Include needed whitespace after HTML figure (#5121).
2396 We use HTML for a figure in markdown dialects that can't
2397 represent it natively.
2399 * Commonmark writer:
2401 + Fix handling of SoftBreak with `hard_line_breaks` (#5195).
2402 + Implement `--toc` (`writerTableOfContents`)
2403 in commonmark/gfm writers (#5172).
2407 + Ensure that picture transforms are done on metadata too.
2408 + Small fixes to `nav.xhtml`:
2409 Add 'landmarks' id attribute to the landmarks nav.
2410 Replace old default CSS removing numbers from ol.toc li
2411 with new rules that match `nav#toc ol, nav#landmarks ol`.
2412 We keep the `toc` class on `ol` for backwards compatibility.
2416 + Make raw content marked `beamer` pass through in `beamer`
2417 output (pandoc/lua-filters#40).
2418 + Beamer: avoid duplicated `fragile` property in some cases
2420 + Add `#` special characters for listings (#4939).
2421 This character needs special handling in `\lstinline`.
2423 * RTF writer: use `toTableOfContents` from Shared to replace
2424 old duplicated code.
2428 + Support custom properties. Also supports additional core
2429 properties: `subject`, `category`, `description` (#5252,
2430 Agustín Martín Barbero).
2431 + Use `toTableOfContents` from Shared to replace old duplicated code.
2433 * ODT writer (Augustín Martín Barbero):
2435 + Fix typo in custom properties (#2839).
2436 + Improve standard properties, including the following core
2437 properties: `generator` (Pandoc/VERSION), `description`, `subject`,
2438 `keywords`, `initial-creator` (from authors), `creation-date`
2439 (actual creation date) (#5252).
2443 + Allow '-' in filenames for custom lua writers (#5187).
2444 + sample.lua: add `SingleQuoted`, `DoubleQuoted` (#5104).
2445 + sample.lua: Add a missing `>` (MichaWiedenmann).
2447 * reveal.js template: Add `zoomKey` config (#4249).
2449 * HTML5 template: Remove unnecessary type="text/css" on style and
2450 link for HTML5 (#5146).
2452 * LaTeX template (Andrew Dunning, except where noted):
2454 + Prevent fontspec from scaling `mainfont` to match the default
2455 font, Latin Modern. A main font set to 12pt could
2456 previously appear between 11pt to 13pt depending on its design.
2457 To return to the earlier rendering, use `-V
2458 mainfontoptions="Scale=MatchLowercase"` (#5212, #5218).
2459 + Display monospaced fonts without TeX ligatures when using
2460 `--pdf-engine=lualatex`. It now matches the behaviour of other
2461 engines (#5212, #5218).
2462 + Remove the deprecated `romanfont` variable. The functionality of
2463 `mainfont` is identical (#5218).
2464 + Render `\subtitle` with the standard document classes.
2465 Previously, `subtitle` only appeared when using the KOMA-Script
2466 classes or Beamer (#5213, #5244).
2467 + Use Babel instead of Polyglossia for LuaLaTeX. This avoids
2468 several language selection problems, notably with retaining
2469 French spacing conventions when switching to a verbatim
2470 environment or another language; and in printing Greek text
2471 without hyphenation (#5193).
2472 + Use the [`xurl`](https://ctan.org/pkg/xurl) package if
2473 available, improving the appearance of URLs by allowing them to
2474 break at additional points (#5193).
2475 + Use [`bookmark`](https://ctan.org/pkg/bookmark) if available
2476 to correct heading levels in PDF bookmarks: see the [KOMA-Script
2477 3.26 release notes](https://komascript.de/release3.26) (#5193).
2478 + Require the [`xcolor`](https://ctan.org/pkg/xcolor) package to
2479 avoid a possible error when using additional packages alongside
2480 footnotes in tables (#5193, closes #4861).
2481 + Remove obsolete `fixltx2e` package, which has no functionality
2482 with TeX Live 2015 or later (#5193).
2483 + Allow multiple `fontfamilies.options` (#5193, closes #5194).
2484 + Restrict `institute` variable to Beamer (#5219).
2485 + Use [`footnotehyper`](https://ctan.org/pkg/footnotehyper)
2486 package if available to make footnotes in tables compatible
2487 with `hyperref` (#5234).
2488 + Number parts and chapters in book classes only if the
2489 `numbersections` variable is set, for consistency with other
2490 output formats. To return to the previous behaviour, use
2491 `-V numbersections -V secnumdepth=0` (#5235).
2492 + Reindent file (#5193).
2493 + Use built-in parskip handling with KOMA-Script classes (#5143, Enno).
2494 + Set default listings language for lua, assembler (#5227, John
2495 MacFarlane). Otherwise we get an error when trying to compile code
2496 with lua or assembler code. To change the default dialect
2497 (currenty 5.3 for lua and x86masm for assembler), you can use
2498 `--include-in-header` to inject something like
2499 `\lstset{defaultdialect=[5.2]Lua}`.
2501 * Text.Pandoc.Readers: Changed types of `readJSON`; it now runs
2502 in an instance of PandocMonad, like the other readers and
2503 writers. [API change]
2505 * Text.Pandoc.Writers: Changed types of `writeJSON`; it now runs
2506 in an instance of PandocMonad, like the other readers and
2507 writers. [API change]
2509 * Text.Pandoc.Error: Added `PandocUTF8DecodingError` constructor
2510 for `PandocError`. [API change]
2512 * Text.Pandoc.Writers.Shared - add `toTableOfContents`. [API change]
2513 This is refactored out from the Markdown writer.
2514 It can be used in other writers to create a table of contents.
2516 * Improve error messages for UTF-8 decoding errors. Now we give
2517 the filename and byte offset (#4765).
2519 * Text.Pandoc.XML: Strip out illegal XML characters in
2520 `escapeXMLString` (#5119).
2522 * Text.Pandoc.Process: update `pipeProcess` (Albert Krewinkel).
2523 The implementation of `pipeProcess` was rewritten to fix sporadic
2524 failures caused by prematurely closed pipes.
2526 * Use `safeRead` instead of `read` everywhere in the code
2527 (John MacFarlane, Mauro Bieg, #5162, #5180).
2529 * Text.Pandoc.SelfContained: Decompress `.svgz` when
2530 converting to `data:` URI (#5163, Alexander Krotov).
2532 * Text.Pandoc.Parsing: Remove unused `HasHeaderMap`
2533 (#5175, Alexander Krotov). [API change]
2535 * Normalize Windows paths to account for change in ghc 8.6 (#5127).
2536 When pandoc is compiled with ghc 8.6, Windows paths are treated
2537 differently, and paths beginning `\\server` no longer work.
2538 This commit rewrites such patsh to `\\?\UNC\server` which works.
2539 The change operates at the level of argument parsing, so it
2540 only affects the command line program.
2542 * Simplify/fix reading of `--metadata` values on command line
2543 to avoid problems relating to hvr/HsYAML#7 (#5177).
2545 * data/pandoc.lua: auto-fix nested constructor arguments (Albert
2546 Krewinkel). Incorrect types to pandoc element constructors are
2547 automatically converted to the correct types when possible. This was
2548 already done for most constructors, but conversions are now also done
2549 for nested types (like lists of lists).
2551 * Removed custom Setup.hs, use build-type: simple. The only thing we
2552 gained from the custom build was automatic installation of the man
2553 page when using 'cabal install'. But custom builds cause problems,
2554 e.g., with cross-compilation. Installation of the man page is
2555 better handled by packagers. Note to packagers (e.g. Debian): it
2556 may be necessary to add a step installing the man page with the
2559 * Allow latest http-client, tasty, zip-archive, Glob.
2561 * Require skylighting >= 0.7.5, adding support for sml, J,
2564 * Tests: Cleaned up `findPandoc` in `Tests.Helpers`, so it
2565 works well with cabal v2.
2569 + Use button for installer links (John MacFarlane, Mauro Bieg,
2571 + Fix links and bump required stack version (max).
2572 + Improve installation notes on associated software (Andrew
2573 Dunning). Includes explanation of how to install related tools
2574 with package managers (since the method of installing
2575 `rsvg-convert` is not obvious).
2577 * doc/org.md: improve documentation of org features (Albert
2580 * doc/lua-filters.md: use 3rd level headers for module fields.
2584 + Clarify automatic identifiers (#5201). We remove
2585 non-alphanumerics. This includes, e.g., emojis.
2586 + Fix example for Div with id (Geoffrey Ely).
2587 + Update list of LaTeX packages used.
2588 + Make it clear that `hard_line_breaks` works in `gfm` (see #5195).
2589 + Mention `raw_attribute` in documentation for `raw_html` and
2590 `raw_tex` (#5240, thanks to @eiro).
2591 + Clarify that `$sep$` must come right before `$endfor$` in templates
2593 + Document metadata support for docx, odt, pptx writers (Agustín
2595 + Reorganize template variables (#5249, Andrew Dunning).
2596 Add additional headings to categorize variables, and
2597 alphabetize when there is large number; add more examples.
2598 + Document `date-meta` template variable (#5260, Tristan Stenner).
2600 * trypandoc: Fix CSS and viewport.
2602## pandoc 2.5 (2018-11-27)
2604 * Text.Pandoc.App: split into several unexported submodules (Albert
2605 Krewinkel): Text.Pandoc.App.FormatHeuristics,
2606 Text.Pandoc.App.Opt, Text.Pandoc.App.CommandLineOptions,
2607 Text.Pandoc.App.OutputSettings. This is motivated partly by the
2608 desire to reduce recompilations when something is modified,
2609 since App previously depended on virtually every other module.
2611 * Text.Pandoc.Extensions
2613 + Semantically, `gfm_auto_identifiers` is now a modifier of
2614 `auto_identifiers`; for identifiers to be set, `auto_identifiers` must
2615 be turned on, and then the type of identifier produced depends on
2616 `gfm_auto_identifiers` and `ascii_identifiers` are set. Accordingly,
2617 `auto_identifiers` is now added to `githubMarkdownExtensions` (#5057).
2618 + Remove `ascii_identifiers` from `githubMarkdownExtensions`.
2619 GitHub doesn't seem to strip non-ascii characters any more.
2621 * Text.Pandoc.Lua.Module.Utils (Albert Krewinkel)
2623 + Test AST object equality via Haskell (#5092). Equality of Lua
2624 objects representing pandoc AST elements is tested by unmarshalling
2625 the objects and comparing the result in Haskell.
2626 A new function `equals` which performs this test has been added to the
2627 `pandoc.utils` module.
2628 + Improve stringify. Meta value strings (MetaString)
2629 and booleans (MetaBool) are now converted to the literal string and the
2630 lowercase boolean name, respectively. Previously, all values of these
2631 types were converted to the empty string.
2633 * Text.Pandoc.Parsing: Remove Functor and Applicative constraints where Monad
2634 already exists (Alexander Krotov).
2636 * Text.Pandoc.Pretty: Don't render BreakingSpace at end of line
2637 or beginning of line (#5050).
2639 * Text.Pandoc.Readers.Markdown
2641 + Fix parsing of citations, quotes, and underline emphasis
2642 after symbols. Starting with pandoc 2.4, citations, quoted inlines,
2643 and underline emphasis were no longer recognized after certain
2644 symbols, like parentheses (#5099, #5053).
2645 + In pandoc 2.4, a soft break after an abbreviation would be
2646 relocated before it to allow for insertion of a nonbreaking
2647 space after the abbreviation. This behavior is here reverted.
2648 A soft break after an abbreviation will remain, and no nonbreaking
2649 space will be added. Those who care about this issue should take care not
2650 to end lines with an abbreviation, or to insert nonbreaking spaces
2653 * Text.Pandoc.Readers.FB2: Do not throw error for unknown elements in
2654 `<body>` (Alexander Krotov). Some libraries include custom elements
2657 * Text.Pandoc.Readers.HTML
2659 + Allow `tfoot` before body rows (#5079).
2660 + Parse `<small>` as a Span with class "small" (#5080).
2661 + Allow thead containing a row with `td` rather than `th` (#5014).
2663 * Text.Pandoc.Readers.LaTeX
2665 + Cleaned up handling of dimension arguments. Allow decimal points,
2667 + Don't allow arguments for verbatim, etc.
2668 + Allow space before bracketed options.
2669 + Allow optional arguments after `\\` in tables.
2670 + Improve parsing of `\tiny`, `\scriptsize`, etc. Parse as raw,
2671 but know that these font changing commands take no arguments.
2673 * Text.Pandoc.Readers.Muse
2675 + Trim whitespace before parsing grid table cells (Alexander Krotov).
2676 + Add grid tables support (Alexander Krotov).
2678 * Text.Pandoc.Shared
2680 + For bibliography match Div with id `refs`, not class `references`.
2681 This was a mismatch between pandoc's docx, epub, latex, and markdown
2682 writers and the behavior of pandoc-citeproc, which actually looks for a
2683 div with id `refs` rather than one with class `references`.
2684 + Exactly match GitHub's identifier generating algorithm (#5057).
2685 + Add parameter for `Extensions` to `uniqueIdent` and
2686 `inlineListToIdentifier` (#5057). [API change]
2687 This allows these functions to be sensitive to the settings of
2688 `Ext_gfm_auto_identifiers` and `Ext_ascii_identifiers`, and allows us to
2689 use `uniqueIdent` in the CommonMark reader, replacing custom code. It
2690 also means that `gfm_auto_identifiers` can now be used in all formats.
2692 * Text.Pandoc.Writers.AsciiDoc
2694 + Use `.`+ as list markers to support nested ordered lists (#5087).
2695 + Support list number styles (#5089).
2696 + Render Spans using `[#id .class]#contents#` (#5080).
2698 * Text.Pandoc.Writers.CommonMark
2700 + Respect `--ascii` (#5043, quasicomputational).
2701 + Make sure `--ascii` affects quotes, super/subscript.
2703 * Text.Pandoc.Writers.Docx
2705 + Fix bookmarks to headers with long titles (#5091).
2706 Word has a 40 character limit for bookmark names. In addition, bookmarks
2707 must begin with a letter. Since pandoc's auto-generated identifiers may
2708 not respect these constraints, some internal links did not work. With
2709 this change, pandoc uses a bookmark name based on the SHA1 hash of the
2710 identifier when the identifier isn't a legal bookmark name.
2711 + Add bookmarks to code blocks (Nikolay Yakimov).
2712 + Add bookmarks to images (Nikolay Yakimov).
2713 + Refactor common bookmark creation code into a function (Nikolay Yakimov).
2715 * Text.Pandoc.Writers.EPUB: Handle calibre metadata (#5098).
2718 <meta name="calibre:series" content="Classics on War and Politics"/>
2720 are now included from an epub XML metadata file. You can also include
2721 this information in your YAML metadata, like so:
2724 series: Classics on War and Policitics
2726 In addition, ibooks-specific metadata can now be included via an XML
2727 file. (Previously, it could only be included via YAML metadata, see
2730 * Text.Pandoc.Writers.HTML: Use plain `"` instead of `"` outside of
2733 * Text.Pandoc.Writers.ICML: Consolidate adjacent strings, inc. spaces.
2734 This avoids splitting up the output unnecessarily into separate elements.
2736 * Text.Pandoc.Writers.LaTeX: Don't emit `[<+->]` unless beamer output, even
2737 if `writerIncremental` is True (#5072).
2739 * Text.Pandoc.Writers.Muse (Alexander Krotov).
2741 + Output tables as grid tables if they have multi-line cells.
2742 + Indent simple tables only on the top level.
2743 + Output tables with one column as grid tables.
2744 + Add support for `--reference-location`.
2745 + Internal improvements.
2747 * Text.Pandoc.Writers.OpenDocument: Fix list indentation (Nils Carlson,
2748 #5095). This was a regression in pandoc 2.4.
2750 * Text.Pandoc.Writers.RTF: Fix warnings for skipped raw inlines.
2752 * Text.Pandoc.Writers.Texinfo: Add blank line before `@menu` section (#5055).
2754 * Text.Pandoc.XML: in `toHtml5Entities`, prefer shorter entities
2755 when there are several choices for a particular character.
2757 * data/abbreviations
2759 + Add additional abbreviations (Andrew Dunning)
2760 Many of these borrowed from the Chicago Manual of Style 10.42,
2761 'Scholarly abbreviations'.
2765 + Asciidoc template: add :lang: to title header is lang is set in
2768 * pandoc.cabal: Add cabal flag `derive_json_via_th` (Albert Krewinkel)
2769 Disabling the flag will cause derivation of ToJSON and FromJSON
2770 instances via GHC Generics instead of Template Haskell. The flag is
2771 enabled by default, as deriving via Generics can be slow (see #4083).
2775 + Tweaked drop-down lists.
2776 + Put link to site in footer.
2777 + Preselect output format.
2778 + Update on change of in or out format.
2779 + Add man input format.
2783 + Fix outdated description of latex_macros extension.
2784 + Clarified placement of bibliography.
2785 + Added "A note on security."
2786 + Fix note on curly brace syntx for locators.
2787 + Document new explicit syntax for citeproc locators.
2788 + Remove confusing cross-links for some extensions.
2789 + Don't put pandoc in code ticks in heading.
2790 + Document that `--ascii` works for gfm and commonmark too.
2791 + Add `man` to `--from` options.
2793 * doc/customizing-pandoc.md: various improvements (Mauro Bieg).
2796## pandoc 2.4 (2018-11-03)
2800 * New input format `man` (Yan Pashkovsky, John MacFarlane).
2804 * `--ascii` is now implemented in the writers, not in Text.Pandoc.App,
2805 via the new `writerPreferAscii` field in `WriterOptions`.
2806 Now the `write*` functions for Docbook, HTML, ICML, JATS, LaTeX,
2807 Ms, Markdown, and OPML are sensitive to `writerPreferAscii`.
2808 Previously the to-ascii translation was done in Text.Pandoc.App,
2809 and thus not available to those using the writer functions
2812 * `--ascii` now works with Markdown output. HTML5 character reference
2815 * `--ascii` now works with LaTeX output. 100% ASCII output can't be
2816 guaranteed, but the writer will use commands like `\"{a}` and `\l`
2817 whenever possible, to avoid emitting a non-ASCII character.
2819 * For HTML5 output, `--ascii` now uses HTML5 character reference
2820 entities rather than numerical entities.
2822 * Improved detection of format based on extension (in Text.Pandoc.App).
2823 We now ensure that if someone tries to convert a file for a
2824 format that has a pandoc writer but not a reader, it won't just
2825 default to markdown.
2827 * Add viz. to abbreviations file (#5007, Nick Fleisher).
2829 * AsciiDoc writer: always use single-line section headers,
2830 instead of the old underline style (#5038). Previously the single-line
2831 style would be used if `--atx-headers` was specified, but
2832 now it is always used.
2834 * RST writer: Use simple tables when possible (#4750).
2836 * CommonMark (and gfm) writer: Add plain text fallbacks. (#4528,
2837 quasicomputational). Previously, the writer would unconditionally
2838 emit HTML output for subscripts, superscripts, strikeouts (if the
2839 strikeout extension is disabled) and small caps, even with
2840 `raw_html` disabled. Now there are plain-text (and, where
2841 possible, fancy Unicode) fallbacks for all of these corresponding
2842 (mostly) to the Markdown fallbacks, and the HTML output is only
2843 used when `raw_html` is enabled.
2845 * Powerpoint writer: support raw openxml (Jesse Rosenthal, #4976).
2846 This allows raw openxml blocks and inlines to be used in the pptx
2847 writer. Caveats: (1) It's up to the user to write
2848 well-formed openxml. The chances for corruption, especially with
2849 such a brittle format as pptx, is high. (2) Because of
2850 the tricky way that blocks map onto shapes, if you are using
2851 a raw block, it should be the only block on a slide
2852 (otherwise other text might end up overlapping it). (3) The
2853 pptx ooxml namespace abbreviations are different from the
2854 docx ooxml namespaces. Again, it's up to the user to get it
2855 right. Unzipped document and ooxml specification should be
2858 * With `--katex` in HTML formats, do not use the autorenderer (#4946).
2859 We no longer surround formulas with `\(..\)` or `\[..\]`. Instead,
2860 we tell katex to convert the contents of span elements with
2861 class "math". Since math has already been identified, this
2862 avoids wasted time parsing for LaTeX delimiters. Note, however,
2863 that this may yield unexpected results if you have span elements
2864 with class "math" that don't contain LaTeX math.
2865 Also, use latest version of KaTeX by default (0.9.0).
2867 * The man writer now produces ASCII-only output, using groff escapes,
2872 + Add title, author and date to metadata; any remaining
2873 metadata fields are added as `meta:user-defined` tags.
2874 + Implement table caption numbering (#4949, Nils Carlson).
2875 Captioned tables are numbered and labeled with format "Table 1:
2876 caption", where "Table" is replaced by a translation, depending
2877 on the value of `lang` in metadata. Uncaptioned tables are not
2879 + OpenDocument writer: Implement figure numbering in captions (#4944,
2880 Nils Carlson). Figure captions are now numbered 1, 2, 3, ...
2881 The format in the caption is "Figure 1: caption" and so on
2882 (where "Figure" is replaced by a translation, depending on the
2883 value of `lang` in the metadata). Captioned figures are numbered
2884 consecutively and uncaptioned figures are not enumerated. This
2885 is necessary in order for LibreOffice to generate an
2886 Illustration Index (Table of Figures) for included figures.
2888 * RST reader: Pass through fields in unknown directives as div attributes
2889 (#4715). Support `class` and `name` attributes for all directives.
2891 * Org reader: Add partial support for `#+EXCLUDE_TAGS` option. (#4284,
2892 Brian Leung). Headers with the corresponding tags should not
2893 appear in the output.
2895 * Log warnings about missing title attributes now include a
2896 suggestion about how to fix the problem (#4909).
2898 * Lua filter changes (Albert Krewinkel):
2900 + Report traceback when an error occurs. A proper Lua traceback is
2901 added if either loading of a file or execution of a filter
2902 function fails. This should be of help to authors of Lua filters
2903 who need to debug their code.
2905 + Allow access to pandoc state (#5015). Lua filters and custom
2906 writers now have read-only access to most fields of pandoc's
2907 internal state via the global variable `PANDOC_STATE`.
2909 + Push ListAttributes via constructor (Albert Krewinkel).
2910 This ensures that ListAttributes, as present in OrderedList elements,
2911 have additional accessors (viz. `start`, `style`, and `delimiter`).
2913 + Rename ReaderOptions fields, use snake_case. Snake case is used
2914 in most variable names, using camelCase for these fields was an
2915 oversight. A metatable is added to ensure that the old field
2916 names remain functional.
2918 + Iterate over AST element fields when using `pairs`. This makes
2919 it possible to iterate over all ield names of an AST element by
2920 using a generic `for` loop with pairs`:
2922 for field_name, field_content in pairs(element) do
2926 Raw table fields of AST elements should be considered an
2927 implementation detail and might change in the future. Accessing
2928 element properties should always happen through the fields
2929 listed in the Lua filter docs.
2931 Note that the iterator currently excludes the `t`/`tag` field.
2933 + Ensure that MetaList elements behave like Lists. Methods usable
2934 on Lists can also be used on MetaList objects.
2936 + Fix MetaList constructor (Albert Krewinkel). Passing a MetaList
2937 object to the constructor `pandoc.MetaList` now returns the
2938 passed list as a MetaList. This is consistent with the
2939 constructor behavior when passed an (untagged) list.
2941 * Custom writers: Custom writers have access to the global variable
2942 `PANDOC_DOCUMENT`(Albert Krewinkel, #4957). The variable contains
2943 a userdata wrapper around the full pandoc AST and exposes two
2944 fields, `meta` and `blocks`. The field content is only
2945 marshaled on-demand, performance of scripts not accessing the
2946 fields remains unaffected.
2950 * Text.Pandoc.Options: add `writerPreferAscii` to `WriterOptions`.
2952 * Text.Pandoc.Shared:
2954 + Export `splitSentences`. This was previously duplicated in the Man and
2956 + Add `ToString` typeclass (Alexander Krotov).
2958 * New exported module Text.Pandoc.Filter (Albert Krewinkel).
2960 * Text.Pandoc.Parsing
2962 + Generalize `gridTableWith` to any `Char` Stream (Alexander Krotov).
2963 + Generalize `readWithM` from `[Char]` to any `Char` Stream
2964 that is a `ToString` instance (Alexander Krotov).
2966 * New exposed module Text.Pandoc.Filter (Albert Krewinkel).
2968 * Text.Pandoc.XML: add `toHtml5Entities`.
2970 * New exported module Text.Pandoc.Readers.Man (Yan Pashkovsky, John
2973 * Text.Pandoc.Writers.Shared
2975 + Add exported functions `toSuperscript` and
2976 `toSubscript` (quasicomputational, #4528).
2977 + Remove exported functions `metaValueToInlines`,
2978 `metaValueToString`. Add new exported functions
2979 `lookupMetaBool`, `lookupMetaBlocks`, `lookupMetaInlines`,
2980 `lookupMetaString`. Use these whenever possible for uniformity
2981 in writers (Mauro Bieg, #4907). (Note that
2982 removed function `metaValueToInlines` was in previous
2984 + Add `metaValueToString`.
2988 + Expose more useful internals (Albert Krewinkel):
2990 - `runFilterFile` to run a Lua filter from file;
2991 - data type `Global` and its constructors; and
2992 - `setGlobals` to add globals to a Lua environment.
2994 This module also contains `Pushable` and `Peekable` instances
2995 required to get pandoc's data types to and from Lua. Low-level
2996 Lua operation remain hidden in Text.Pandoc.Lua.
2998 + Rename `runPandocLua` to `runLua` (Albert Krewinkel).
3000 + Remove `runLuaFilter`, merging this into Text.Pandoc.Filter.Lua's
3001 `apply` (Albert Krewinkel).
3003### Bug fixes and under-the-hood improvements
3005 * Text.Pandoc.Parsing
3007 + Make `uri` accept any stream with Char tokens (Alexander Krotov).
3008 + Rewrite `uri` without `withRaw` (Alexander Krotov).
3009 + Generalize `parseFromString` and `parseFromString'` to any
3010 streams with Char token (Alexander Krotov)
3011 + Rewrite `nonspaceChar` using `noneOf` (Alexander Krotov)
3013 * Text.Pandoc.Shared: Reimplement `mapLeft` using `Bifunctor.first`
3016 * Text.Pandoc.Pretty: Simplify `Text.Pandoc.Pretty.offset`
3021 + Work around HXT limitation for --syntax-definition with windows
3023 + Always preserve tabs for man format. We need it for tables.
3024 + Split command line parsing code into a separate unexported
3025 module, Text.Pandoc.App.CommandLineOptions (Albert Krewinkel).
3027 * Text.Pandoc.Readers.Roff: new unexported module for tokenizing
3030 * New unexported module Text.Pandoc.RoffChar, provided character
3031 escape tables for roff formats.
3033 * Text.Pandoc.Readers.HTML: Fix `htmlTag` and `isInlineTag` to
3034 accept processing instructions (#3123, regression since 2.0).
3036 * Text.Pandoc.Readers.JATS: Use `foldl'` instead of `maximum` to
3037 account for empty lists (Alexander Krotov).
3039 * Text.Pandoc.Readers.RST: Don't allow single-dash separator in
3040 headerless table (#4382).
3042 * Text.Pandoc.Readers.Org: Parse empty argument array in inline src
3043 blocks (Brian Leung).
3045 * Text.Pandoc.Readers.Vimwiki:
3047 + Get rid of `F`, `runF` and `stateMeta'` in favor of `stateMeta`
3049 + Parse `Text` without converting to `[Char]` (Alexander Krotov).
3051 * Text.Pandoc.Readers.Creole: Parse `Text` without converting to
3052 `[Char]` (Alexander Krotov).
3054 * Text.Pandoc.Readers.LaTeX
3056 + Allow space at end of math after `\` (#5010).
3057 + Add support for `nolinkurl` command (#4992, Brian Leung).
3058 + Simplified type on `doMacros'`.
3059 + Tokenize before pulling tokens, rather than after (#4408). This
3060 has some performance penalty but is more reliable.
3061 + Make macroDef polymorphic and allow in inline context.
3062 Otherwise we can't parse something like `\lowercase{\def\x{Foo}}`.
3063 I have actually seen tex like this in the wild.
3064 + Improved parsing of `\def`, `\let`. We now correctly parse:
3074 + Improve parsing of `\def` argspec.
3075 + Skip `\PackageError` commands (see #4408).
3076 + Fix bugs omitting raw tex (#4527). The default is `-raw_tex`,
3077 so no raw tex should result unless we explicitly say `+raw_tex`.
3078 Previously some raw commands did make it through.
3079 + Moved `isArgTok` to Text.Pandoc.Readers.LaTeX.Parsing.
3080 + Moved `babelLangToBCP`, `polyglossiaLangToBCP` to new module,
3081 Text.Pandoc.Readers.LaTeX.Lang (unexported).
3082 + Simplified accent code using unicode-transforms.
3083 New dependency on unicode-transforms package for normalization.
3084 + Allow verbatim blocks ending with blank lines (#4624).
3085 + Support `breq` math environments: `dmath`, `dgroup`, `darray`.
3086 This collects some of the general-purpose code from the LaTeX reader,
3087 with the aim of making the module smaller.
3089 * Text.Pandoc.Readers.Markdown
3091 + Fix awkward soft break movements before abbreviations (#4635).
3092 + Add updateStrPos in a couple places where needed.
3094 * Text.Pandoc.Readers.Docx: Trigger bold/italic with bCs, iCs
3095 (#4947). These are variants for "complex scripts" like Arabic
3096 and are now treated just like b, i (bold, italic).
3098 * Text.Pandoc.Readers.Muse (Alexander Krotov)
3100 + Try to parse lists before trying to parse table.
3101 This ensures that tables inside lists are parsed correctly.
3102 + Forbid whitespace after opening and before closing markup
3104 + Parse page breaks.
3105 + Simplify `museToPandocTable` to get rid of partial functions.
3106 + Allow footnotes to start with empty line.
3107 + Make sure that the whole text is parsed.
3108 + Allow empty headers. Previously empty headers caused parser to
3109 terminate without parsing the rest of the document.
3110 + Allow examples to be indented with tabs.
3111 + Remove indentation from examples indicated by `{{{` and `}}}`.
3112 + Fix parsing of empty cells.
3113 + Various changes to internals.
3114 + Rewrite some parsers in applicative style.
3115 + Avoid tagsoup dependency.
3116 + Allow table caption to contain `+`.
3118 * Text.Pandoc.Writers.LaTeX
3120 + Add newline if math ends in a comment (#4880). This prevents the
3121 closing delimiter from being swalled up in the comment.
3122 + With `--listings`, don't pass through org-babel attributes (#4889).
3123 + With `--biblatex`, use `\autocite` when possible (#4960).
3124 `\autocites{a1}{a2}{a3}` will not collapse the entries. So, if
3125 we don't have prefixes and suffixes, we use instead
3126 `\autocite{a1,a2,a3}`.
3127 + Fix description lists contining highlighted code (#4662).
3129 * Text.Pandoc.Writers.Man
3131 + Don't wrap `.SH` and `.SS` lines (#5019).
3132 + Avoid unnecessary `.RS`/`.RE` pair in definition lists with
3133 one paragraph definitions.
3134 + Moved common groff functions to Text.Pandoc.Writers.Groff.
3135 * Fix strong/code combination on man (should be `\f[CB]` not
3136 `\f[BC]`, see #4973).
3137 + Man writer: use `\f[R]` instead of `\f[]` to reset font
3138 (Alexander Krotov, #4973).
3139 + Move `splitSentences` to Text.Pandoc.Shared.
3141 * Text.Pandoc.Writers.Docx
3143 + Add framework for custom properties (#3034). So far, we don't
3144 actually write any custom properties, but we have the
3145 infrastructure to add this.
3147 + Handle tables in table cells (#4953). Although this is not
3148 documented in the spec, some versions of Word require a `w:p`
3149 element inside every table cell. Thus, we add one when the
3150 contents of a cell do not already include one (e.g. when a table
3151 cell contains a table).
3153 * Text.Pandoc.Writers.AsciiDoc: Prevent illegal nestings.
3154 Adjust header levels so that n+1 level headers are only
3155 found under n level headers, and the top level is 1.
3157 * Text.Pandoc.Writers.OpenDocument: Improve bullet/numbering
3158 alignment (#4385). This change eliminates the large gap we used
3159 to have between bullet and text, and also ensures that numbers
3160 in numbered lists will be right-aligned.
3162 * Text.Pandoc.Writers.ZimWiki
3164 + Number ordered list items sequentially, rather than always
3166 + Remove extra indentation on lists (#4963).
3168 * Text.Pandoc.Writers.EPUB: Use metadata field `css` instead of
3169 `stylesheet` (Mauro Bieg, #4990).
3171 * Text.Pandoc.Writers.Markdown: Ensure blank between raw block and
3172 normal content (#4629). Otherwise a raw block can prevent a
3173 paragraph from being recognized as such.
3175 * Text.Pandoc.Writers.Ms
3177 + Removed old `escapeBar`. We don't need this now that we use
3179 + Moved common code to Text.Pandoc.Writers.Roff and to
3180 Text.Pandoc.RoffChar.
3181 + Move `splitSentences` to Text.Pandoc.Shared (to avoid duplication
3182 with the man writer).
3184 * Text.Pandoc.Writers.Muse (Alexander Krotov).
3186 + Add support for grid tables.
3187 + Fix Muse writer style.
3188 + Use `length` instead of `realLength` to calculate definition
3189 indentation. Muse parsers don't take character width into
3190 account when calculating indentation.
3191 + Do not insert newline before lists.
3192 + Use lightweight markup after `</em>` tag.
3194 * New unexported module Text.Pandoc.Writers.Roff, providing functions
3195 useful for all roff format writers (man, ms).
3199 + Move globals handling to separate module Text.Pandoc.Lua.Global
3202 + Lua filter internals: push Shared.Element as userdata (Albert
3203 Krewinkel). Hierarchical Elements were pushed to Lua as plain
3204 tables. This is simple, but has the disadvantage that marshaling
3205 is eager: all child elements will be marshaled as part of the
3206 object. Using a Lua userdata object instead allows lazy access
3207 to fields, causing content marshaling just (but also each time)
3208 when a field is accessed. Filters which do not traverse the full
3209 element contents tree become faster as a result.
3211### Default template changes
3215 + Add variable `hyperrefoptions` (#4925, Mathias Walter).
3216 + Add variable `romanfont`, `romanfontoptions` (#4665, OvidiusCicero).
3218 * AsciiDoc template: use single-line style for title.
3220 * revealjs template: Fix typo in the socket.io javascript plugin (#5006,
3223 * Text.Pandoc.Lua.Util: add missing docstring to `defineHowTo`
3226 * data/pandoc.lua: add datatype ListAttributes (Albert Krewinkel)
3228 * data/sample.lua: replace custom pipe function with pandoc.utils.pipe
3231### Documentation improvements
3235 + Add chromeos install instructions (#4958) (Evan Pratten).
3236 + Add note about TinyTeX.
3240 + Change `groff` -> `roff`.
3241 + Implement `--ascii` for Markdown writer.
3242 + Clarify LaTeX image dimensions output (Mauro Bieg).
3244 * doc/customizing-pandoc.md: added skeleton (Mauro Bieg, #3288).
3246 * doc/getting-started.md: Added title to test1.md to avoid warning.
3248 * doc/lua-filters.md: merge type references into main document,
3249 fix description of Code.text (Albert Krewinkel).
3251### Build infrastructure improvements
3255 + Makefile: added quick-cabal, full-cabal targets.
3256 + Make .msi download targets insensitive to order of appveyor builds.
3258 * Update benchmarks for ghc 8.6.1.
3262 + Enable more compiler warnings (Albert Krewinkel).
3263 + Make base lower bound 4.8.
3264 + Bump upper bound for QuickCheck.
3265 + Bump upper bound for binary.
3266 + Updated version bounds for containers and haddock-library (#4974).
3267 + Added docx/docPropos/custom.xml to cabal data-files.
3268 + Require skylighting 0.7.4 (#4920).
3269 + New dependency on unicode-transforms package for normalization.
3271 * Improved .travis.yml testing and test with GHC 8.6.1 (Albert Krewinkel).
3273 * Added `tools/changelog-helper.sh`.
3275 * Added test/grofftest.sh for testing the man reader on real man pages.
3277## pandoc 2.3.1 (2018-09-28)
3281 + Parse RST inlines containing newlines (#4912, Francesco Occhipinti).
3282 This eliminates a regression introduced after pandoc 2.1.1, which
3283 caused inline constructions containing newlines not to be recognized.
3284 + Fix bug with internal link targets (#4919). They were gobbling up
3285 indented content underneath.
3287 * Markdown reader: distinguish autolinks in the AST. With this change,
3288 autolinks are parsed as Links with the `uri` class. (The same is true
3289 for bare links, if the `autolink_bare_uris` extension is enabled.)
3290 Email autolinks are parsed as Links with the `email` class. This
3291 allows the distinction to be represented in the AST.
3295 + Force inline code blocks to honor export options (Brian Leung).
3296 + Parse empty argument array in inline src blocks (Brian Leung).
3298 * Muse reader (Alexander Krotov):
3300 + Added additional tests.
3301 + Do not allow code markup to be followed by digit.
3302 + Remove heading level limit.
3303 + Simplify `<literal>` tag parsers
3304 + Parse Text instead of String. Benchmark shows 7% improvement.
3305 + Get rid of HTML parser dependency.
3306 + Various code improvements.
3308 * ConTeXt writer: change `\` to `/` in Windows image paths (#4918).
3309 We do this in the LaTeX writer, and it avoids problems.
3310 Note that `/` works as a LaTeX path separator on Windows.
3314 + Add support for multiprenote and multipostnote arguments
3315 with `--biblatex` (Brian Leung, #4930). The multiprenotes occur before
3316 the first prefix of a multicite, and the multipostnotes follow the
3318 + Fix a use of `last` that might take empty list. If you ran with
3319 `--biblatex` and have an empty document (metadata but no blocks),
3320 pandoc would previously raise an error because of the use of
3321 `last` on an empty list.
3323 * RTF writer: Fix build failure with ghc-8.6.1 caused by missing
3324 MonadFail instance (Jonas Scholl).
3326 * ODT Writer: Improve table header row style handling (Nils Carlson).
3327 This changes the way styles for cells in the header row
3328 and normal rows are handled in ODT tables.
3329 Previously a new (but identical) style was generated for
3330 every table, specifying the style of the cells within the table.
3331 After this change there are two style definitions for table cells,
3332 one for the cells in the header row, one for all other cells.
3333 This doesn't change the actual styles, but makes post-processing
3334 changes to the table styles much simpler as it is no longer
3335 necessary to introduce new styles for header rows and there are
3336 now only two styles where there was previously one per table.
3340 + Don't add `uri` class to presumed autolinks. Formerly the `uri`
3341 class was added to autolinks by the HTML writer, but it had to
3342 guess what was an autolink and could not distinguish
3343 `[http://example.com](http://example.com)` from
3344 `<http://example.com>`. It also incorrectly recognized
3345 `[pandoc](pandoc)` as an autolink. Now the HTML writer
3346 simply passes through the `uri` attribute if it is present,
3347 but does not add anything.
3348 + Avoid adding extra section nestings for revealjs.
3349 Previously revealjs title slides at level (slidelevel - 1)
3350 were nested under an extra section element, even when
3351 the section contained no additional (vertical) content.
3352 That caused problems for some transition effects.
3353 + Omit unknown attributes in EPUB2 output. For example,
3354 `epub:type` attributes should not be passed through,
3355 or the epub produced will not validate.
3357 * JATS writer: remove 'role' attribute on 'bold' and 'sc' elements (#4937).
3358 The JATS spec does not allow these.
3360 * Textile writer: don't represent `uri` class explicitly
3361 for autolinks (#4913).
3363 * Lua filters (Albert Krewinkel):
3365 + Cleanup filter execution code.
3366 + Better error on test failure.
3368 * HTML, Muse reader tests: reduce time taken by round-trip test.
3370 * Added cabal.project.
3372 * MANUAL: `epub:type` is only useful for epub3 (Maura Bieg).
3374 * Use hslua v1.0.0 (Albert Krewinkel).
3376 * Fix `translations/ru` to use modern Russian orthography
3379 * Build Windows binary using ghc 8.6.1 and cabal new-build. This
3380 fixes issues with segfaults in the 32-bit Windows binaries (#4283).
3382## pandoc 2.3 (2018-09-16)
3384 * Add `--metadata-file` option (Mauro Bieg, #1960), which allows
3385 users to specify metadata in a YAML file, regardless of the
3386 input format (#1960).
3388 * Text.Pandoc.Writers.Shared: export `isDisplayMath` (API change).
3390 * Text.Pandoc.Readers.Markdown: export `yamlToMeta` (API change,
3393 * Text.Pandoc.Readers.LaTeX.Types:
3395 + New type `ArgSpec` (API change).
3396 + Second parameter of `Macro` constructor is now `[ArgSpec]` instead of
3401 + Use `tex` instead of `latex` for raw tex-ish content. We can't
3402 always tell if it's LaTeX, ConTeXt, or plain TeX. Better just to
3403 use `tex` always. Note that if `context` or `latex` specifically
3404 is desired, you can still force that in a markdown document by
3405 using the raw attribute. Note that this change may affect some
3406 filters, if they assume that raw tex parsed by the Markdown reader
3407 will be RawBlock (Format `latex`). In most cases it should be
3408 trivial to modify the filters to accept `tex` as well.
3409 + Refactor and reorganize YAML code (Mauro Bieg).
3410 + Make `example_lists` work for interrupted lists
3411 without `startnum` (#4908).
3415 + Parse `<script type="math/tex` tags as math (#4877).
3416 These are used by MathJax in some configurations.
3417 + Extract spaces inside links instead of trimming them
3418 (Alexander Krotov, #4845).
3419 + Added round-trip tests (Alexander Krotov).
3420 + Make parsing sensitive to the `raw_tex` extension (#1126). This now
3421 allows raw LaTeX environments, `\ref`, and `\eqref` to be parsed
3422 (which is helpful for translation HTML documents using MathJaX).
3424 * Org reader (Albert Krewinkel):
3426 + Respect export option `p` for planning info. Inclusion of planning info
3427 (`*DEADLINE*`, `*SCHEDULED*`, and `*CLOSED*`) can be controlled via the
3428 `p` export option: setting the option to `t` will add all planning
3429 information in a *Plain* block below the respective headline.
3430 + Org reader internals: don't rely on RecordWildCards and ViewPatterns
3432 + Strip planning info from output. Planning info is parsed, but not
3433 included in the output (as is the default with Emacs Org-mode, #4867).
3437 + Handle parameter patterns for `\def` (#4768, #4771).
3438 For example: `\def\foo#1[#2]{#1 and #2}`.
3439 + Allow `%` characters in URLs. This affects `\href` and `\url` (#4832).
3440 + Fixed parsing of `\texorpdfstring`. We were returning the wrong
3441 argument as the content.
3442 + Support `blockcquote`, `foreignblockquote`, `foreigncblockquote`,
3443 `hyphenblockquote`, `hyphencblockquote`, `enquote*`, `foreignquote`,
3444 `hyphenquote` from `csquotes` (#4848). Note that `foreignquote`
3445 will be parsed as a regular Quoted inline (not using the quotes
3446 appropriate to the foreign language).
3447 + Support more text-mode accents (#4652). Add support for `\|`, `\b`, `\G`,
3448 `\h`, `\d`, `\f`, `\r`, `\t`, `\U`, `\i`, `\j`, `\newtie`,
3449 `\textcircled`. Also fall back to combining characters when composed
3450 characters are not available.
3451 + Resolve `\ref` for figure numbers.
3452 + Support `mintinline` (#4365, Marc Schreiber).
3453 + Fix siunitx unit commands so they are only recognized in
3454 siunitx contexts (#4842). For example, `\l` outside of an
3455 siunitx context should be l-slash, not l (for liter).
3456 + Fix double `unnumbered` class (#4838). The `unnumbered` class
3457 was being included twice for starred sections.
3459 * RST reader: Don't skip link definitions after comments (#4860).
3461 * Muse reader (Alexander Krotov):
3463 + Close the `</quote>` in indented tag test.
3464 There is already a separate test for unclosed `</quote>`.
3465 + Autonumber sections in the correct order. Parsing now stops
3466 at each section header to ensure the header is registered before
3467 parsing of the next section starts.
3468 + Move duplicate code into `headingStart` function.
3469 + Allow newline after opening `*` or `**`.
3470 + Don't allow digits after closing marker in lightweight markup
3471 This change makes reader more compatible with Emacs Muse.
3472 + Parse `<verse>` tag in one pass instead of using
3473 `parseFromString`. This change makes it possible to have
3474 verbatim `</verse>` tag inside verse.
3476 * ODT reader: deal gracefully with missing `<office:font-face-decls/>`
3477 (#4336). This allows pandoc to parse ODT document produced by KDE's
3480 * Muse writer (Alexander Krotov):
3482 + Output headers without asterisks if not on the top level.
3483 + Never wrap definition list terms.
3484 + Set `envInsideBlock = True` when rendering notes.
3485 + Use `""` instead of `[]` for empty String.
3486 + Check for whitespace in the beginning and end of Str's.
3487 + Escape `-`, `;` and `>` in the beginning of strings.
3488 + Escape list markers in the beginning of notes.
3489 + Normalize inline list before testing if tags should be used.
3490 + Use tags instead of lightweight markup for empty strings.
3491 + Use lightweight markup when possible.
3492 + Escape empty strings. This guarantees that `conditionalEscapeString`
3493 never returns empty string.
3494 + Wrap conditionalEscapeString result into `Muse` type.
3495 This removes the need to pass `envInsideLinkDescription` to it.
3496 + Separate `shouldEscapeString` function.
3497 + Simplify inline list rendering.
3498 + Replace newlines in strings with spaces.
3502 + Add MetaString case for abstract, subtitle (#4900, Mauro Bieg).
3503 + Properly handle display math in spans (#4826). This isn't a
3504 complete solution, since other nestings of display math may still
3505 cause problems, but it should work for what is by far the most
3510 + Always output `<dt>` element, even if it is empty (#4883,
3512 + Don't prefix `epub:` attributes with `data-`.
3514 * Org writer: Don't escape literal `_`, `^` (#4882). Org doesn't
3515 recognize these escapes.
3517 * ODT writer: Fix percentage image scaling (#4881, Nils Carlson).
3518 Image scaling was broken when a width was set to a percentage.
3520 * EPUB writer: set `epub:type` on body element in each chapter,
3521 depending on the `epub:type` of the first section (#4823). This
3522 only affects epub3. See
3523 http://www.idpf.org/epub/profiles/edu/structure/#h.l0bzsloklt10
3525 * FB2 writer: put `coverpage` element between title and date rather than in
3526 `document-info` element (#4854).
3528 * Markdown writer: Escape `~` if strikeout extension enabled (#4840).
3530 * Haddock writer: Use proper format for latex math in haddock (#4571, Joe
3531 Hermaszewski). Inline math in `\(..\)`, display math in `\[..\]`,
3532 tex is now used. Previously we'd "fake it with unicode" and fall
3533 back to tex when that didn't work. But newer haddock versions
3538 + Ensure that title element is always present, even if empty (#4839).
3539 + Put author tags in the template, rather than adding them in
3542 * LaTeX writer/template: be sensitive to `filecolor` variable (#4822).
3543 `linkcolor` only affects internal links, and `urlcolor` only
3544 affects linked URLs. For external links, the option to use is
3547 * ConTeXt writer: output raw `tex` blocks as well as `context` (#969).
3551 + Use `.. raw:: latex` for `tex` content.
3552 + Use `.. container` for generic Divs, instead of raw HTML.
3553 + Render Divs with admonition classes as admonitions (#4833).
3554 Also omit Div with class `admonition-title`. These are generated
3555 by the RST reader and should be omitted on round-trip.
3557 * Text.Pandoc.PDF: fix message printed when rsvg-convert is not available
3558 (#4855, Antonio Terceiro).
3560 * HTML5 template: add the `title-block-header` identifier to the
3561 `header` element, to make it easier to style precisely (#4767,
3564 * OpenDocument template: Remove unnecessary indenting of TOC title (#4798,
3565 José de Mattos Neto).
3567 * latex template: Add support for $toc-title$ to LaTeX (and PDF)
3568 (#4853, Wandmalfarbe).
3570 * TEI template: improve `publicationStmt`. Add support for
3571 `publisher`, `address`, `pubPlace`, and `date` variables.
3573 * beamer template: Support "toc-title" (#4835, Cyril Roelandt).
3575 * Text.Pandoc.Extensions: Fix haddock on `Ext_footnotes` (Chris Martin).
3577 * Lua: cleanup Lua utils, remove unused functions (Albert Krewinkel).
3581 + Clarify that `--biblatex/--natbib` don't work directly for PDF
3583 + Document `epub:type` attribute (Mauro Bieg, #4901)
3584 + Clarify when `--resource-path` has an effect.
3585 + More detail on customization in syntax highlighting section.
3586 + Document encoding issue with `--listings` (#4871, Damien Clochard).
3587 + Remove docs on removed `--katex-stylesheet` (Mauro Bieg, #4862).
3588 + Use https for context wiki links (#4910).
3592 + Link to lua-filters repository (#4874).
3593 + Fix mistake in REPL instructions for stack. (#4849, Brian Leung).
3595 * lua-filters.md: add links to filters, and to lua-filters repository
3600 + Indicate that cabal >= 2.0 is needed.
3601 + Added chocolatey installation method (#4844, Miodrag Milić).
3603 * Travis: exclude round-trip tests, except for nightly test which can fail.
3605 * Use latest texmath, pandoc-citeproc.
3607 * Use a patched version of foundation until
3608 https://github.com/haskell-foundation/foundation/pull/503
3611 * Clean up appveyor build and Windows package creation.
3612 We now use 64-bit stack and ghc 8.4.3, lts-12 for the 64-bit build. The
3613 WiX-based msi is now 64-bit for 64-bit builds (fixing #4795).
3615 * Remove obsolete RELEASE-CHECKLIST.md.
3617 * Added additional compiler warnings in Makefile and CI builds.
3619## pandoc 2.2.3.2 (2018-08-07)
3621 * Markdown reader: Properly handle boolean values in YAML metadata (#4819).
3622 This fixes a regression in 2.2.3, which cause boolean values to
3623 be parsed as MetaInlines instead of MetaBool.
3625 We here record another undocumented (but desirable) change in 2.2.3:
3626 numerical metadata fields are now parsed as MetaInlines rather than
3629## pandoc 2.2.3.1 (2018-08-06)
3631 * Markdown reader: Fix parsing of embedded mappings in YAML metadata
3632 (#4817). This fixes a regression in 2.2.3 which caused embedded
3633 mappings (e.g. mappings in sequences) not to work in YAML metadata.
3635## pandoc 2.2.3 (2018-08-05)
3637 * RST reader: improve parsing of inline interpreted text roles (#4811).
3639 + Use a Span with class "title-reference" for the default
3640 title-reference role.
3641 + Use `B.text` to split up contents into `Space`s, `SoftBreak`s,
3642 and `Str`s for `title-reference`.
3643 + Use Code with class "interpreted-text" instead of Span and Str for
3644 unknown roles. (The RST writer has also been modified to round-trip
3646 + Disallow blank lines in interpreted text.
3647 + Backslash-escape now works in interpreted text.
3648 + Backticks followed by alphanumerics no longer end interpreted text.
3649 + Remove support for nested inlines (Francesco Occhipinti).
3650 RST does not allow nested emphasis, links, or other inline
3651 constructs. This fixes several bugs (#4581, #4561, #4792).
3653 * Org reader: fix parsers relying on `parseFromString` (#4784, Albert
3654 Krewinkel). Emphasis was not parsed when it followed directly after
3655 some block types (e.g., lists).
3657 * Markdown reader: Allow unquoted numbers and booleans as YAML mapping
3658 keys. Previously in 2.2.2 you could not do
3670 With this change, both forms work.
3672 * DocBook reader: metadata handling improvements.
3673 Now we properly parse title and subtitle elements that are direct
3674 children of book and article (as well as children of bookinfo,
3675 articleinfo, or info). We also now use the `subtitle` metadata
3676 field for subtitles, rather than tacking the subtitle on to the
3681 + Allow images to be directly nested within links (#4810, Francesco
3683 + Use `titleblock` instead of `title` variable for title block (#4803,
3684 Francesco Occhipinti). `titleblock` contains a properly formatted
3685 title and subtitle (using top-level headers). `title` and
3686 `subtitle` variables are still available and just contain the
3687 title and subtitle text. Note that this change will require an
3688 update to custom rst templates.
3689 + Render Code with class "interpreted-text" as interpreted text role.
3691 * MediaWiki writer: Avoid extra blank line in tables with empty cells
3692 (#4794). Note that the old output is semantically identical, but the
3693 new output looks better.
3695 * Lua Utils module: add function `blocks_to_inlines` (#4799, Albert
3696 Krewinkel). Exposes a function converting which flattenes a list of
3697 blocks into a list of inlines. An example use case would be the
3698 conversion of Note elements into other inlines.
3700 * RST template: use `titleblock` instead of `title`. Users of
3701 custom RST templates will want to update this.
3703 * LaTeX template: Moved some beamer code in default.latex template.
3704 This change allows beamer themes to change the template and font (as
3705 Metropolis does) (#4450).
3707 * Better error message on `-t pdf -o out.pdf` (#1155, Mauro Bieg).
3709 * Added test case for #4669 to repository.
3711 * INSTALL.md: Fix broken link for cabal-install (#4806, ChanHoHo).
3715 + Add beamer info for slide backgrounds (#4802, John Muccigrosso).
3716 + Clarify when `csquotes` is used in LaTeX writer (#4514).
3717 + Add `commonmark` to list of output formats where `raw_tex` has an
3721## pandoc 2.2.2.1 (2018-07-19)
3723 * Fix regression finding templates in user data directory (#4777).
3724 Under version 2.2.1 and prior pandoc found latex templates in the
3725 templates directory under the data directory, but this broke in 2.2.2.
3727 * Fix for bug in parsing `\input` in `rawLaTeXBlock` and
3728 `rawLaTeXInline` (#4781). (This primarily affects the markdown
3729 reader, and other readers that accept raw tex.)
3730 Starting in 2.2.2, everything after an `\input` (or `\include`)
3731 in a markdown file would be parsed as raw LaTeX.
3735 + Clarify `gfm` vs `markdown_github` (#4783, Mauro Bieg).
3736 * Use `keywords` instead of `tags` in YAML metadata example (#4779).
3737 Unlike `tags`, `keywords` is used in some of the writers
3738 and default templates.
3740 * Add missing `rollingLinks` option to revealjs template (#4778,
3743## pandoc 2.2.2 (2018-07-16)
3745 * Use HsYAML instead of yaml for translations and YAML metadata (#4747).
3746 yaml wraps a C library; HsYAML is pure Haskell. Advances #4535.
3748 Note: HsYAML implements YAML 1.2, in which the valid true
3749 values are `true`, `True`, `TRUE`. This means a change in
3750 the semantics of YAML metadata that could affect users:
3751 `y`, `yes`, and `on` no longer count as true values.
3753 * Fix regression: make `--pdf-engine` work with full paths (#4681, Mauro
3756 * CommonMark reader: Handle `ascii_identifiers` extension (#4742,
3757 Anders Waldenborg). Non-ascii characters were not stripped from
3758 identifiers even if the `ascii_identifiers` extension was
3759 enabled (which is is by default for gfm).
3761 * TikiWiki reader: Improve list parsing (#4722, Mauro Bieg).
3762 Remove trailing Space from list items. Parse lists that have no space
3767 + Treat `lilypond` as a verbatim environment (#4725).
3768 + Parse figure label into Image id (#4700, Mauro Bieg).
3769 + Beamer: Allow "noframenumbering" option (#4696, Raymond Ehlers).
3770 + Allow spaces around `\graphicspath` arguments (#4698).
3771 + Handle includes without surrounding blanklines (#4553).
3772 In addition, `\input` can now be used in an inline context,
3773 e.g. to provide part of a paragraph, as it can in LaTeX.
3774 + In `rawLaTeXBlock`, handle macros that resolve to a
3775 `\begin` or `\end` (#4667).
3776 + In `rawLaTeXBlock`, don't expand macros in macro definitions (#4653).
3777 Note that this only affected LaTeX in markdown.
3778 + Tighten up reading of beamer overlay specifications (#4669).
3779 Ideally we'd turn these on only when reading beamer, but currently
3780 beamer is not distinguished from latex as an input format.
3781 This commit also activates parsing of overlay specifications
3782 after commands in general (e.g. `\item`), since they can occur
3783 in many contexts in beamer.
3784 + Parse more siunitx unit commands (#4296, #4773).
3785 + Be more forgiving in key/value option parsing (#4761).
3789 + Allow empty code spans, e.g. `` ` ` ``.
3790 + Emojis are now wrapped in Spans with class `emoji` and
3791 attribute `data-emoji` (Anders Waldenborg, #4743).
3792 This allows the writer to handle them in a special way
3793 (e.g. using a special font, or just rendering the
3796 * Muse reader (Alexander Krotov, except where indicated):
3798 + Get rid of non-exhaustive pattern match warning (Mauro Bieg).
3799 + Add support for floating images.
3800 + Add support for images with specified width.
3801 + Parse image URLs without "guard" and "takeExtension".
3802 + Split link and image parsing into separate functions.
3803 + Parse links starting with "URL:" explicitly instead of trying to strip
3804 "URL:" prefix after parsing.
3806 * Texinfo writer: Use `@sup` and `@sub` instead of custom macros (#4728,
3809 * Markdown writer: Preserve `implicit_figures` with attributes, even if
3810 `implicit_attributes` is not set, by rendering in raw HTML (#4677).
3812 * Markdown and commonmark/github writers now respect the `emoji`
3813 extension. So, `-f markdown+emoji -t markdown+emoji` now leaves
3814 `:smile:` as `:smile:` rather than converting it to a smile
3817 * Docx writer: Be sensitive to `toc` in YAML metadata (#4645).
3819 * ODT/OpenDocument writer: Make internal links work (#4358).
3820 This adds proper bookmarks to the headers with non-null IDs.
3822 * EPUB writer: Properly escape pagetitle. Previously we weren't
3823 escaping `&` and other XML characters in the pagetitle, so a title
3824 containing a `&` would be invalid.
3826 * AsciiDoc Writer: Eescape square brackets at start of line (#4545,
3831 + Don't treat 'example' as a syntax name (#4748).
3832 This fixes conversions from org with example blocks.
3833 + Support `--number-sections` via the `section-numbering`
3834 directive in standalone output.
3836 * reveal.js writer and template: reuse mathjax URL
3837 provided by the argument to `--mathjax` or the normal pandoc default,
3838 rather than a hard-coded one in the template (#4701).
3842 + Properly handle footnotes in table captions (#4683).
3843 Refactored code from figure captions to use in both places.
3844 + In beamer output, fix single digit column percentage (#4690, Mauro
3847 * FB2 writer (Alexander Krotov):
3849 + Convert Plain to Para in annotation (#2424).
3850 + Fix order of items in title-info (#2424).
3852 * Custom writer: fix error message on script failure (Albert Krewinkel).
3853 Error messages produced by Lua were not displayed by Pandoc.
3855 * Text.Pandoc.Emoji now exports `emojiToInline`, which returns a Span
3856 inline containing the emoji character and some attributes with metadata
3857 (class `emoji`, attribute `data-emoji` with emoji name). (API change,
3858 Anders Waldenborg, #4743).
3862 + Revert fix for #4484 (only compress images on last run, #4755).
3863 This will mean some increase in the time it takes to
3864 produce an image-heavy PDF with xelatex, but it will
3865 make tables of contents correct, which is more important.
3866 + Fix logic error in `runTeXProgram`. We were running the tex program
3867 one more time than requested. This should speed up PDF production.
3869 * Allow `--template` to take a URL as argument.
3871 * Text.Pandoc.Highlighting: Add missing re-export of `breezeDark`
3872 highlighting style (#4687, Adrian Sieber, API change).
3874 * Clarify macOS install in INSTALL.md (#4661). Make the binary package
3875 installer the recommended method, and note that on some older versions of
3876 macOS, homebrew installs from source and takes a lot of disk space
3881 + Clarify EPUB linked media (#4756, Mauro Bieg)
3882 + Update manual for "true" YAML values. Now that we're using HsYAML and
3883 YAML 1.2, the valid true values are `true`, `True`, `TRUE`. NOTE!
3884 `y`, `yes`, `on` no longer count as true values.
3885 + Document `-F` as alias for `--filter` (thanks to Gandalf Saxe).
3886 + Update manual on how math is rendered in LaTeX.
3887 + Add proxy description (#4131, Mauro Bieg).
3888 + Clarify that `--toc` requires `--standalone` (#4703).
3889 + Update citation styles link (#4699, wiefling).
3891 * In API docs, clarify how `Ext_east_asian_line_breaks` extension works
3892 (kaizshang91). Note that it will not take effect when readers/writers
3893 are called as libraries (#4674).
3895 * Improved translations/fr (#4766, lux-lth).
3897 * Removed inadvertently added `.orig` files from repository (#4648).
3899 * Remove `network-uri` flag and use 'Network.Socket'.
3900 This removes a compiler warning. There is no need for the old
3901 `network-uri` flag, since network 2.6 was released in 2014.
3903 * Add stack.lts10.yaml, stack.lts11.yaml. use lts-12 in stack.yaml.
3905 * Bump upper bounds for dependent packages.
3907 * Exclude foundation 0.0.21 for ghc 7.10. Otherwise cabal gets
3908 confused because of the way ghc 7.10 is excluded in foundation's
3909 cabal file. This can be removed when haskell-foundation/foundation#500
3912 * Require cabal-version >= 2.0. This is needed for haddock-library.
3917## pandoc 2.2.1 (2018-05-10)
3919 * Restored and undeprecated gladtex for HTML math (#4607).
3921 + Added `GladTeX` constructor to `Text.Pandoc.Options.HTMLMathMethod`
3922 [API change, reverts removal in v2.2]
3923 + Restored and undeprecated `--gladtex` option, removed in v2.2.
3925 * LaTeX reader: Handle `$` in `/text{..}` inside math (#4576).
3927 * Org reader: Fix image filename recognition (Albert Krewinkel).
3928 Use a function from the filepath library to check whether a string is a
3929 valid file name. The custom validity checker that was used before gave
3930 wrong results (e.g. for absolute file paths on Windows,
3931 kawabata/ox-pandoc#52).
3933 * FB2 reader: Replace some errors with warnings (Alexander Krotov).
3937 + Strip links from headers when creating TOC (#4340).
3938 Otherwise the TOC entries will not link to the sections.
3939 + Fix regression with tex math environments in HTML + MathJax (#4639).
3941 * Muse writer (Alexander Krotov): Add support for left-align and
3942 right-align classes (#4542).
3944 * Docx writer: Support underline (#4633).
3946 * Text.Pandoc.Parsing: Lookahead for non-whitespace after
3947 `singleQuoteStart` and `doubleQuoteStart` (#4637).
3949 * `test-pandoc-utils.lua`: more robust testing on both windows
3950 and \*nix. Previously the pipe tests were only run if
3951 `\bin/false` and `/bin/sed` were present, which they aren't
3952 in default MacOS and Windows systems. Fixed by using `tr`
3953 and `false`, which should always be in the path on a \*nix
3954 system, and `find` and `echo` for Windows.
3956 * Text.Pandoc.Shared: add `uriPathToPath`.
3957 This adjusts the path from a file: URI in a way that is sensitive
3958 to Windows/Linux differences. Thus, on Windows,
3959 `/c:/foo` gets interpreted as `c:/foo`, but on Linux,
3960 `/c:/foo` gets interpreted as `/c:/foo`. See #4613.
3962 * Use `uriPathToPath` with file: URIs (#4613).
3964 * Revert piping HTML to pdf-engine (Mauro Bieg, #4413). Use a temp
3967 * Text.Pandoc.Class: Catch IO errors when writing media files
3968 and issue a warning, rather than an error (Francesco Occhipinti, #4559).
3970 * Don't lowercase custom writer filename (Alexander Krotov, #4610).
3972 * MANUAL (Mauro Bieg):
3974 + Clarify truthiness in template variables (#2281).
3975 + Clarify pipe table width calculation (#4520).
3977 * ConTeXt template: New Greek fallback typeface (Pablo Rodríguez, #4405).
3978 CMU Serif gives better typographic results than the previous
3979 Greek fallback DejaVu Serif.
3981 * Make HTML template polyglot (#4606, OvidiusCicero), by making
3982 `<link rel="stylesheet" href="$css$">` self-closing.
3984 * Use texmath 0.11, allowing better translation of non-ASCII
3985 characters in math (#4642).
3988## pandoc 2.2 (2018-04-27)
3990 * New input format: `fb2` (FictionBook2) (Alexander Krotov).
3992 * Make `--ascii` work for all XML formats (ICML, OPML, JATS,...),
3993 and for `ms` and `man`.
3995 * Remove deprecated `--latexmathml`, `--gladtex`, `--mimetex`, `--jsmath`, `-m`,
3996 `--asciimathml` options.
3998 * New module Text.Pandoc.Readers.FB2, exporting readFB2 (Alexander
3999 Krotov, API change).
4003 + Allow empty key-value attributes, like `title=""` (#2944).
4004 + Handle table w/o following blank line in fenced div (#4560).
4005 + Remove "fallback" for `doubleQuote` parser. Previously the
4006 parser tried to be efficient -- if no end double quote was found,
4007 it would just return the contents. But this could backfire in a
4008 case `**this should "be bold**`, since the fallback would return
4009 the content `"be bold**` and the closing boldface delimiter
4010 would never be encountered.
4011 + Improve computation of the relative width of the last column in a
4012 multiline table, so we can round-trip tables without constantly
4013 shrinking the last column.
4017 + Fix images with space in file path (#4344).
4021 + Properly resolve section numbers with `\ref` and chapters (#4529).
4022 + Parse sloppypar environment (#4517, Marc Schreiber).
4023 + Improve handling of raw LaTeX (for markdown etc.) (#4589, #4594).
4024 Previously there were some bugs in how macros were handled.
4025 + Support `\MakeUppercase`, `\MakeLowercase`, `\uppercase`,
4026 `\lowercase`, and also `\MakeTextUppercase` and
4027 `\MakeTextLowercase` from textcase (#4959).
4031 + Fixed tables with no body rows (#4513).
4032 Previously these raised an exception.
4036 + Improve table parsing (#4508). This fixes detection of table
4037 attributes and also handles `!` characters in cells.
4041 + Properly handle title in `section` element (#4526).
4042 Previously we just got `section_title` for `section` (though `sect1`,
4043 `sect2`, etc. were handled properly).
4044 + Read tex math as output by asciidoctor (#4569, Joe Hermaszewski).
4048 + Combine adjacent CodeBlocks with the same attributes into
4049 a single CodeBlock. This prevents a multiline codeblock in
4050 Word from being read as different paragraphs.
4054 + Allow < 3 spaces indent under directives (#4579).
4055 + Fix anonymous redirects with backticks (#4598).
4057 * Muse reader (Alexander Krotov):
4059 + Add support for Text::Amuse multiline headings.
4060 + Add `<math>` tag support.
4061 + Add support for `<biblio>` and `<play>` tags.
4062 + Allow links to have empty descriptions.
4063 + Require block `<literal>` tags to be on separate lines.
4064 + Allow `-` in anchors.
4065 + Allow verse to be indented.
4066 + Allow nested footnotes.
4067 + Internal improvements.
4069 * Muse writer (Alexander Krotov):
4071 + Escape `>` only at the beginning of a line.
4072 + Escape `]` in image title.
4073 + Escape `]` brackets in URLs as `%5D`.
4074 + Only escape brackets when necessary.
4075 + Escape ordered list markers.
4076 + Do not escape list markers unless preceded by space.
4077 + Escape strings starting with space.
4078 + Escape semicolons and markers after line break.
4079 + Escape `;` to avoid accidental comments.
4080 + Don't break headers, line blocks and tables with line breaks.
4081 + Correctly output empty headings.
4082 + Escape horizontal rule only if at the beginning of the line.
4083 + Escape definition list terms starting with list markers.
4084 + Place header IDs before header.
4085 + Improve span writing.
4086 + Do not join Spans in normalization.
4087 + Don't align ordered list items.
4088 + Remove key-value pairs from attributes before normalization.
4089 + Enable `--wrap=preserve` for all tests by default.
4090 + Reduced `<verbatim>` tags in output.
4095 + Use more consistent indentation (#4563). Previously we
4096 used an odd mix of 3- and 4-space indentation. Now we use 3-space
4097 indentation, except for ordered lists, where indentation must
4098 depend on the width of the list marker.
4099 + Flatten nested inlines (#4368, Francesco Occhipinti).
4100 Nested inlines are not valid RST syntax, so we flatten them following
4101 some readability criteria discussed in #4368.
4105 + Ensure that `pagetitle` is always set, even when structured titles
4106 are used. This prevents spurious warnings about empty title
4109 * FB2 writer (Alexander Krotov):
4111 + Output links inline instead of producing notes. Previously all links
4112 were turned into footnotes with unclickable URLs inside.
4113 + Allow emphasis and notes in titles.
4114 + Don't intersperse paragraph with empty lines.
4115 + Convert metadata value `abstract` to book annotation.
4116 + Use `<empty-line />` for `HorizontalRule` rather than `LineBreak`.
4117 FB2 does not have a way to represent line breaks inside paragraphs;
4118 previously we used `<empty-line />` elements, but these are not allowed
4121 * Powerpoint writer (Jesse Rosenthal):
4123 + Handle Quoted Inlines (#4532).
4124 + Simplify code with `ParseXml`.
4125 + Allow fallback options when looking for placeholder type.
4126 + Check reference-doc for all layouts.
4127 + Simplify speaker notes logic.
4128 + Change notes state to a simpler per-slide value.
4129 + Remove `Maybe` from `SpeakerNotes` in `Slide`. `mempty`
4130 means no speaker notes.
4131 + Add tests for improved speaker notes.
4132 + Handle speaker notes earlier in the conversion process.
4133 + Keep notes with related blocks (#4477). Some blocks automatically
4134 split slides (imgs, tables, `column` divs). We assume that any
4135 speaker notes immediately following these are connected to these
4136 elements, and keep them with the related blocks, splitting after them.
4137 + Remove `docProps/thumbnail.jpeg` in data dir (Jesse Rosenthal, #4588).
4138 It contained a nonfree ICC color calibration profile and is not needed
4139 for production of a powerpoint document.
4143 + Include a blank line at the end of the row in a single-row multiline
4144 table, to prevent it from being interpreted as a simple table (#4578).
4146 * CommonMark writer:
4148 + Correctly ignore LaTeX raw blocks when `raw_tex` is not
4149 enabled (#4527, quasicomputational).
4153 + Add `epub:type="footnotes"` to notes section in EPUB3 (#4489).
4157 + In beamer, don't use format specifier for default ordered lists
4158 (#4556). This gives better results for styles that put ordered list
4159 markers in boxes or circles.
4160 + Update `\lstinline` delimiters (#4369, Tim Parenti).
4164 + Use `\f[R]` rather than `\f[]` to reset font (#4552).
4165 + Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`,
4166 since the header font is automatically bold (#4552).
4167 + Use `\f[CB]` rather than `\f[BC]` for monospace bold (#4552).
4168 + Create pdf anchor for a Div with an identifier (#4515).
4169 + Escape `/` character in anchor ids (#4515).
4170 + Improve escaping for anchor ids: we now use _uNNN_ instead of uNNN
4175 + Don't escape U+2019 as `'` (#4550).
4177 * Text.Pandoc.Options:
4179 + Removed `JsMath`, `LaTeXMathML`, and `GladTeX` constructors from
4180 `Text.Pandoc.Options.HTMLMathMethod` [API change].
4182 * Text.Pandoc.Class:
4184 + `writeMedia`: unescape URI-escaping in file path. This avoids
4185 writing things like `file%20one.png` to the file system.
4187 * Text.Pandoc.Parsing:
4189 + Fix `romanNumeral` parser (#4480). We previously accepted 'DDC'
4191 + `uri`: don't treat `*` characters at end as part of URI (#4561).
4195 + Use the alias `application/eps` for EPS (#2067).
4196 This will ensure that we retain the eps extension after reading the
4197 image into a mediabag and writing it again.
4201 + Use `withTempDir` in `html2pdf`.
4202 + With `xelatex`, don't compress images til the last run (#4484).
4203 This saves time for image-heavy documents.
4204 + Don't try to convert EPS files (#2067). `pdflatex` converts them
4205 itself, and JuicyPixels can't do it.
4206 + For `pdflatex`, use a temp directory in the working directory.
4207 Otherwise we can have problems with the EPS conversion pdflatex
4208 tries to do, which can't operate on a file above the working
4209 directory without `--shell-escape`.
4211 * Changes to tests to accommodate changes in pandoc-types.
4212 In <https://github.com/jgm/pandoc-types/pull/36> we changed
4213 the table builder to pad cells. This commit changes tests
4214 (and two readers) to accord with this behavior.
4216 * Set default extensions for `beamer` same as `latex`.
4220 + Add `beameroption` variable (#4359, Étienne Bersac).
4221 + Use `pgfpages` package; this is needed for notes on second
4222 screen in beamer (Étienne Bersac).
4223 + Add `background-image` variable (#4601, John Muccigrosso).
4225 * reveal.js template: Add `background-image` variable (#4600,
4228 * ms template: Fix date. Previously `.ND` was used, but this only
4229 works if you have a title page, which we don't. Thanks to @teoric.
4231 * Removed pragmas for unused extensions (#4506, Anabra).
4233 * Fix bash completion for `--print-default-data-file` (#4549).
4234 Previously this looked in the filesystem, even if pandoc
4235 was compiled with `embed_data_files` (and sometimes it looked
4236 in a nonexistent build directory). Now the bash completion
4237 script just includes a hard-coded list of data file names.
4241 + Clarify template vs metadata variables (#4501, Mauro Bieg).
4242 + Fix raw content example (#4479, Mauro Bieg).
4243 + Specify that you use html for raw output in epub.
4244 + Add examples for raw docx blocks (#4472, Tristan Stenner).
4245 The documentation states that the target format name should match
4246 the output format, which isn't the case for `docx`/`openxml` and
4248 + Don't say that `empty_paragraphs` affects markdown output (#4540).
4249 + Consolidate input/output format documentation (#4577, Mauro Bieg).
4251 * New README template. Take in/out formats from manual.
4253 * Fix example in lua-filters docs (#4459, HeirOfNorton).
4255 * Use the `-threaded` GHC flag when building benchmarks (#4587,
4256 Francesco Occhipinti).
4258 * Bump temporary upper bound to 1.4.
4260 * Use pandoc-citeproc 0.14.3.1.
4262 * Use texmath-0.10.1.2 (fixes escapes in math in ms, #4597).
4264 * Removed old lib directory. This was used for something long ago,
4265 but plays no role now.
4267 * Removed unneeded data file `LaTeXMathML.js`.
4269 * Create 64- and 32-bit versions of Windows binary packages.
4271## pandoc 2.1.3 (2018-03-18)
4273 * Docx reader (Jesse Rosenthal):
4275 + Add tests for nested smart tags.
4276 + Parse nested smart tags.
4277 + Make unwrapSDT into a general `unwrap` function that can unwrap both
4278 nested SDT tags and smartTags. This makes the SmartTags constructor in
4279 the Docx type unnecessary, so we remove it (#4446).
4280 + Remove unused `docxWarnings` (Alexander Krotov).
4282 * RST reader: Allow unicode bullet characters (#4454).
4284 * Haddock reader: Better table handling, using haddock-library's
4285 new table support, if compiled against a version that
4286 includes it. Note that tables with col/rowspans will not
4287 translate well into Pandoc.
4289 * Muse reader (Alexander Krotov):
4291 + Various internal improvements.
4292 + Require closing tag to have the same indentation as opening.
4293 + Do not reparse blocks inside unclosed block tag (#4425).
4294 + Parse `<class>` tag (supported by Emacs Muse).
4295 + Do not produce empty Str element for unindented verse lines.
4299 + Add support to parse unit string of `\SI` command (closes #4296,
4302 * Haddock writer: In the writer, we now render tables always as
4303 grid tables, since Haddock supports these.
4305 * DokuWiki writer: rewrite backSlashLineBreaks (#4445, Mauro Bieg).
4307 * Docx writer: Fixed formatting of `DefaultStyle` ordered lists in
4308 docx writer. We want decimal for the top level, not lower roman.
4312 + Strip whitespace at beginning and ending of inline containers
4313 (#4327, Francesco Occhipinti).
4314 + Filter out empty inline containers (#4434). There is nothing in
4315 RST that corresponds to e.g. `Emph []`, so we just ignore elements
4316 like this (Francesco Occhipinti).
4318 * Muse writer (Alexander Krotov):
4320 + Support spans with anchors.
4321 + Replace smallcaps with emphasis before normalization.
4322 + Output smallcaps as emphasis.
4323 + Expand Cite before list normalization.
4324 + Write empty inline lists as `<verbatim></verbatim>`.
4325 + Remove empty Str from the beginning of inline lists during normalization.
4326 + Escape "-" to avoid creating bullet lists.
4327 + Fix math expansion for more than one expression per paragraph.
4328 + Expand math before inline list normalization.
4330 * Dokuwiki writer: fix LineBreaks in Tables (#4313, Mauro Bieg).
4334 + Asciify pdf anchors, since unicode anchors don't work (#4436).
4335 Internal links should be converted automatically, so this shouldn't
4336 affect users directly.
4337 + Don't escape hyphens as `\-`; that's for a minus sign (#4467).
4339 * Beamer writer: put hyperlink after `\begin{frame}` and not in the title
4340 (#4307). If it's in the title, then we get a titlebar on slides with
4341 the `plain` attribute, when the id is non-null. This fixes a regression
4344 * EPUB writer: Remove notes from TOC in nav.xhtml (#4453, Mauro Bieg).
4346 * JATS writer: Remove extraneous, significant whitespace (#4335,
4349 * html2pdf: inject base tag with current working directory (#4413, Mauro
4350 Bieg). This helps ensure that linked resources are included.
4352 * Add Semigroup instances for everything for which we defined a
4353 Monoid instance previously (API change):
4355 + Text.Pandoc.Class.FileTree.
4356 + Text.Pandoc.Translations.Translations.
4357 + Text.Pandoc.Extensions.Extensions.
4358 + Text.Pandoc.Readers.Odt.StyleReader.Styles.
4359 + Text.Pandoc.Pretty.Doc.
4360 + Text.Pandoc.MediaBag.MediaBag.
4362 * Add custom Prelude to give clean code for Monoid and Semigroup
4363 that works with ghc 7.10-8.4. The custom Prelude (`prelude/Prelude`)
4364 is used for ghc versions < 8.4. `NoImplicitPrelude` is used
4365 in all source files, and Prelude is explicitly imported
4366 (this is necessary for ghci to work properly with the custom prelude).
4368 * Text.Pandoc.Writers.Shared (Francesco Occhipinti):
4370 + Export `stripLeadingTrailingSpace`.
4371 + Don't wrap lines in grid tables when `--wrap=none` (#4320).
4372 + `gridTable`: Don't wrap lines in tables when `--wrap=none`. Instead,
4373 expand cells, even if it results in cells that don't respect relative
4374 widths or surpass page column width. This change affects RST,
4375 Markdown, and Haddock writers.
4377 * Raise error if someone tries to print docx, odt, etc. template (#4441).
4379 * LaTeX template: Provide `bidi` package's option using
4380 `\PassOptionsToPackage` (#4357, Václav Haisman). This avoid a
4381 clash when `polyglossia` loads it first and then it is loaded again
4384 * ConTeXt template: Added `pdfa` variable to generate PDF/A (#4294, Henri
4385 Menke). Instructions on how to install the ICC profiles on ConTeXt
4386 standalone can be found in the wiki:
4387 <http://wiki.contextgarden.net/PDFX#ICC_profiles>.
4388 If the ICC profiles are not available the log will contain error
4391 * Use latest pandoc-types, skylighting
4393 * Use latest pandoc-citeproc in binary package.
4395 * Bump upper bound for time, criterion, haddock-library, exceptions,
4396 http-types, aeson, haddock-library.
4398 * Bump upper bound tasty-quickcheck 0.10 (#4429, Felix Yan).
4400 * pandoc.cabal: fix up other-extensions and language fields.
4401 Language is now consistently `Haskell2010`, and other-extensions
4402 is consistently `NoImplicitPrelude`. Everything else to be specified
4403 in the module header as needed.
4405 * Removed `old-locale` flag and Text.Pandoc.Compat.Time.
4406 This is no longer necessary since we no longer support ghc 7.8.
4408 * Make `weigh-pandoc` into a benchmark program.
4409 Remove `weigh-pandoc` flag. `weigh-pandoc` is now built (and run)
4410 automatically when you build (and run) benchmarks.
4412 * MANUAL: add instructions for background images reveal.js (#4325, John
4415 * appveyor: use VS 2013 environment instead of VS 2015 for Windows builds.
4417## pandoc 2.1.2 (2018-03-02)
4421 + Fix parsing bug with nested fenced divs (#4281). Previously we allowed
4422 "nonindent spaces" before the opening and closing `:::`, but this
4423 interfered with list parsing, so now we require the fences to be flush with
4424 the margin of the containing block.
4426 * Commonmark reader:
4428 + `raw_html` is now on by default. It can be disabled explicitly
4429 using `-f commonmark-raw_html`.
4431 * Org reader (Albert Krewinkel):
4433 + Move citation tests to separate module.
4434 + Allow changing emphasis syntax (#4378). The characters allowed before
4435 and after emphasis can be configured via `#+pandoc-emphasis-pre` and
4436 `#+pandoc-emphasis-post`, respectively. This allows to change which
4437 strings are recognized as emphasized text on a per-document or even
4438 per-paragraph basis. Example:
4440 #+pandoc-emphasis-pre: "-\t ('\"{"
4441 #+pandoc-emphasis-post: "-\t\n .,:!?;'\")}["
4445 + Fixed comments inside citations (#4374).
4446 + Fix regression in package options including underscore (#4424).
4447 + Make `--trace` work.
4448 + Fixed parsing of `tabular*` environment (#4279).
4452 + Fix regression in parsing of headers with trailing space (#4280).
4454 * Muse reader (Alexander Krotov):
4456 + Enable `<literal>` tags even if amuse extension is enabled.
4457 Amusewiki disables <literal> tags for security reasons.
4458 If user wants similar behavior in pandoc, RawBlocks and RawInlines
4459 can be removed or replaced with filters.
4460 + Remove space prefix from `<literal>` tag contents.
4461 + Do not consume whitespace while looking for closing end tag.
4462 + Convert alphabetical list markers to decimal in round-trip test.
4463 Alphabetical lists are an addition of Text::Amuse.
4464 They are not present in Emacs Muse and can be ambiguous
4465 when list starts with "i.", "c." etc.
4466 + Allow `<quote>` and other tags to be indented.
4467 + Allow single colon in definition list term.
4468 + Fix parsing of verse in lists.
4469 + Improved parsing efficiency. Avoid `parseFromString`.
4470 Lists are parsed in linear instead of exponential time now.
4471 + Replace ParserState with MuseState.
4472 + Prioritize lists with roman numerals over alphabetical lists.
4473 This is to make sure "i." starts a roman numbered list,
4474 instead of a list with letter "i" (followed by "j", "k", ...").
4475 + Fix directive parsing.
4476 + Parse definition lists with multiple descriptions.
4477 + Parse next list item before parsing more item contents.
4478 + Fixed a bug: headers did not terminate lists.
4479 + Move indentation parsing from `definitionListItem` to `definitionList`.
4480 + Paragraph indentation does not indicate nested quote.
4481 Muse allows indentation to indicate quotation or alignment,
4482 but only on the top level, not within a <quote> or list.
4483 + Require that block tags are on separate lines.
4484 Text::Amuse already explicitly requires it anyway.
4485 + Fix matching of closing inline tags.
4486 + Various internal changes.
4487 + Fix parsing of nested definition lists.
4488 + Require only one space for nested definition list indentation.
4489 + Do not remove trailing whitespace from `<code>`.
4490 + Fix parsing of trailing whitespace. Newline after whitespace now
4491 results in softbreak instead of space.
4493 * Docx reader (Jesse Rosenthal, except where noted):
4495 + Handle nested sdt tags (#4415).
4496 + Don't look up dependant run styles if `+styles` is enabled.
4497 + Move pandoc inline styling inside custom-style span.
4498 + Read custom styles (#1843). This will read all paragraph and
4499 character classes as divs and spans, respectively. Dependent styles
4500 will still be resolved, but will be wrapped with appropriate style
4501 tags. It is controlled by the `+styles` extension (`-f docx+styles`).
4502 This can be used in conjunction with the `custom-style` feature in the
4503 docx writer for a pandoc-docx editing workflow. Users can convert from
4504 an input docx, reading the custom-styles, and then use that same input
4505 docx file as a reference-doc for producing an output docx file. Styles
4506 will be maintained across the conversion, even if pandoc doesn't
4508 + Small change to Fields hyperlink parser. Previously, unquoted string
4509 required a space at the end of the line (and consumed it). Now we
4510 either take a space (and don't consume it), or end of input.
4511 + Pick table width from the longest row or header (Francesco Occhipinti,
4514 * Muse writer (Alexander Krotov):
4516 + Change verse markup: `> ` instead of `<verse>` tag.
4517 + Remove empty strings during inline normalization.
4518 + Don't indent nested definition lists.
4519 + Use unicode quotes for quoted text.
4520 + Write image width specified in percent in Text::Amuse mode.
4521 + Don't wrap displayMath into `<verse>`.
4522 + Escape nonbreaking space (`~~`).
4523 + Join code with different attributes during normalization.
4524 + Indent lists inside Div.
4525 + Support definitions with multiple descriptions.
4527 * Powerpoint writer (Jesse Rosenthal):
4529 + Use table styles This will use the default table style in the
4530 reference-doc file. As a result they will be easier when using
4531 in a template, and match the color scheme.
4532 + Remove empty slides. Because of the way that slides were split, these
4533 could be accidentally produced by comments after images. When animations
4534 are added, there will be a way to add an empty slide with either
4535 incremental lists or pauses.
4536 + Implement syntax highlighting. Note that background colors can't
4537 be implemented in PowerPoint, so highlighting styles that require
4538 these will be incomplete.
4539 + New test framework for pptx. We now compare the output of the
4540 Powerpoint writer with files that we know to (a) not be corrupt,
4541 and (b) to show the desired output behavior (details below).
4542 + Add `notesMaster` to `presentation.xml` if necessary.
4543 + Ignore links and (end)notes in speaker notes.
4544 + Output speaker notes.
4545 + Read speaker note templates conditionally. If there are speaker
4546 notes in the presentation, we read in the notesMasters templates
4547 from the reference pptx file.
4548 + Fix deletion track changes (#4303, Jesse Rosenthal).
4550 * Markdown writer: properly escape @ to avoid capture as citation
4555 + Put hypertarget inside figure environment (#4388).
4556 This works around a problem with the endfloat package and
4557 makes pandoc's output compatible with it.
4558 + Fix image height with percentage (#4389). This previously caused
4559 the image to be resized to a percentage of textwidth, rather than
4562 * ConTeXt writer (Henri Menke):
4564 + New section syntax and support `--section-divs` (#2609).
4565 `\section[my-header]{My Header}` ->
4566 `\section[title={My Header},reference={my-header}]`.
4567 The ConTeXt writer now supports the `--section-divs` option to
4568 write sections in the fenced style, with `\startsection` and
4570 + xtables: correct wrong usage of caption (Henri Menke).
4574 + Fix image resizing with multiple images (#3930, Andrew Pritchard).
4575 + Use new golden framework (Jesse Rosenthal).
4576 + Make more deterministic to facilitate testing (Jesse Rosenthal).
4577 - `getUniqueId` now calls to the state to get an incremented digit,
4578 instead of calling to P.uniqueHash.
4579 - we always start the PRNG in mkNumbering/mkAbstractNum with the same
4580 seed (1848), so our randoms should be the same each time.
4581 + Fix ids in comment writing (Jesse Rosenthal). Comments from
4582 `--track-changes=all` were producing corrupt docx, because the
4583 writer was trying to get id from the `(ID,_,_)` field of
4584 the attributes, and ignoring the "id" entry in the key-value pairs. We
4587 * Ms writer: Added papersize variable.
4591 + Use `height` instead of `depth` for images (#4331).
4592 + Ensure that id prefix is always used.
4593 + Don't emit `role` attribute; that was a leftover from the
4595 + Use 'xml:id', not 'id' attribute (#4371).
4599 + Do not output implicit heading IDs (#4363, Alexander
4600 Krotov). Convert to `asciidoc-auto_identifiers` for old behaviour.
4604 + Remove `blockToRST'` moving its logic into `fixBlocks`
4605 (Francesco Occhipinti).
4606 + Insert comment between lists and quotes (#4248, Francesco Occchipinti).
4608 * RST template: remove definition of 'math' role as raw.
4609 This used to be needed prior to v 0.8 of docutils, but
4610 now math support is built-in.
4612 * Slides: Use divs to set incremental/non-incremental (#4381,
4613 Jesse Rosenthal). The old method (list inside blockquote) still
4614 works, but we are encouraging the use of divs with class
4615 `incremental` or `nonincremental`.
4617 * Text.Pandoc.ImageSize:
4619 + Make image size detection for PDFs more robust (#4322).
4620 + Determine image size for PDFs (#4322).
4621 + EMF Image size support (#4375, Andrew Pritchard).
4623 * Text.Pandoc.Extensions:
4625 + Add `Ext_styles` (Jesse Rosenthal, API change). This will be used in
4626 the docx reader (defaulting to off) to read pargraph and character
4627 styles not understood by pandoc (as divs and spans, respectively).
4628 + Made `Ext_raw_html` default for `commonmark` format.
4630 * Text.Pandoc.Parsing:
4632 + Export `manyUntil` (Alexander Krotov, API change).
4633 + Export improved `sepBy1` (Alexander Krotov).
4634 + Export list marker parsers: `upperRoman`, `lowerRoman`,
4635 `decimal`, `lowerAlpha`, `upperAlpha` (Alexander Krotov, API change).
4637 * Tests/Lua: fix tests on windows (Albert Krewinkel).
4639 * Lua: register script name in global variable (#4393). The name of the Lua
4640 script which is executed is made available in the global Lua variable
4641 `PANDOC_SCRIPT_FILE`, both for Lua filters and custom writers.
4643 * Tests: Abstract powerpoint tests out to OOXML tests (Jesse Rosenthal).
4644 There is very little pptx-specific in these tests, so we abstract out
4645 the basic testing function so it can be used for docx as well. This
4646 should allow us to catch some errors in the docx writer that slipped
4647 by the roundtrip testing.
4649 * Lua filters: store constructors in registry (Albert Krewinkel). Lua
4650 functions used to construct AST element values are stored in the Lua
4651 registry for quicker access. Getting a value from the registry is much
4652 faster than getting a global value (partly to idiosyncrasies of hslua);
4653 this change results in a considerable performance boost.
4657 + `doc/org.md` Add draft of Org-mode documentation (Albert Krewinkel).
4658 + `doc/lua-filters.md`: document global vars set for filters
4660 + INSTALL.md: mention Stack version. (#4343, Adam Brandizzi).
4661 + MANUAL: add documentation on custom styles (Jesse Rosenthal).
4662 + MANUAL.txt: Document incremental and nonincremental divs (Jesse
4663 Rosenthal). Blockquoted lists are still described, but fenced divs are
4664 presented in preference.
4665 + MANUAL.txt: document header and footer variables (newmana).
4666 + MANUAL.txt: self-contained implies standalone (#4304, Daniel Lublin).
4667 + CONTRIBUTING.md: label was renamed. (#4310, Alexander Brandizzi).
4669 * Require tagsoup 0.14.3 (#4282), fixing HTML tokenization bug.
4671 * Use latest texmath.
4673 * Use latest pandoc-citeproc.
4675 * Allow exceptions 0.9.
4677 * Require aeson-pretty 0.8.5 (#4394).
4679 * Bump blaze-markup, blaze-html lower bounds to 0.8, 0.9 (#4334).
4681 * Update tagsoup to 0.14.6 (Alexander Krotov, #4282).
4683 * Removed ghc-prof-options. As of cabal 1.24, sensible defaults are used.
4685 * Update default.nix to current nixpkgs-unstable for hslua-0.9.5 (#4348,
4688## pandoc 2.1.1 (2018-01-18)
4692 + Don't coalesce adjacent raw LaTeX blocks if they are separated by a
4693 blank line. See lierdakil/pandoc-crossref#160.
4694 + Improved `inlinesInBalancedBrackets` (#4272, jgm/pandoc-citeproc#315).
4695 The change both improves performance and fixes a regression whereby
4696 normal citations inside inline notes and figure captions were not
4701 + Better handling for headers with an anchor (#4240). Instead of creating a
4702 Div containing the header, we put the id directly on the header.
4703 This way header promotion will work properly.
4704 + Add aligned environment when needed in math (#4254). `rst2latex.py`
4705 uses an `align*` environment for math in `.. math::` blocks, so this
4706 math may contain line breaks. If it does, we put the math in an
4707 `aligned` environment to simulate `rst2latex.py`'s behavior.
4711 + Fix col width parsing for percentages < 10% (#4262, n3fariox).
4715 + Advance source position at end of stream.
4716 + Pass through macro defs in `rawLaTeXBlock` even if the `latex_macros`
4717 extension is set (#4246). This reverts to earlier behavior and is
4718 probably safer on the whole, since some macros only modify things in
4719 included packages, which pandoc's macro expansion can't modify.
4720 + Fixed pos calculation in tokenizing escaped space.
4721 + Allow macro definitions inside macros (#4253). Previously we went into
4722 an infinite loop with
4724 \newcommand{\noop}[1]{#1}
4725 \noop{\newcommand{\foo}[1]{#1}}
4728 + Fix inconsistent column widths (#4238). This fixes a bug whereby column
4729 widths for the body were different from widths for the header in some
4732 * Docx reader (Jesse Rosenthal):
4734 + Parse hyperlinks in `instrText` tags (#3389, #4266). This was a form of
4735 hyperlink found in older versions of word. The changes introduced for
4736 this, though, create a framework for parsing further fields in MS Word
4737 (see the spec, ECMA-376-1:2016, §17.16.5, for more on these fields).
4738 We introduce a new module, `Text.Pandoc.Readers.Docx.Fields` which
4739 contains a simple parsec parser. At the moment, only simple hyperlink
4740 fields are accepted, but that can be extended in the future.
4742 * Muse reader (Alexander Krotov):
4744 + Parse `~~` as non-breaking space in Text::Amuse mode.
4745 + Refactor list parsing.
4747 * Powerpoint writer (Jesse Rosenthal):
4749 + Change reference to `notesSlide` to `endNotesSlide`.
4750 + Move image sizing into `picProps`.
4751 + Improve table placement.
4752 + Make our own `_rels/.rels` file.
4753 + Import reference-doc images properly.
4754 + Move `Presentation.hs` out of `PandocMonad`.
4755 + Refactor into separate modules. T.P.W.Powerpoint.Presentation
4756 defines the Presentation datatype and goes Pandoc->Presentation;
4757 T.P.W.Pandoc.Output goes Presentation->Archive.
4758 Text.Pandoc.Writers.Powerpoint a thin wrapper around the two modules.
4759 + Avoid overlapping blocks in column output.
4760 + Position images correctly in two-column layout.
4761 + Make content shape retrieval environment-aware.
4762 + Improve image handling. We now determine image and caption placement
4763 by getting the dimensions of the content box in a given layout.
4764 This allows for images to be correctly sized and positioned in a
4765 different template. Note that images without captions and headers are
4766 no longer full-screened. We can't do this dependably in different
4767 layouts, because we don't know where the header is (it could be to
4768 the side of the content, for example).
4769 + Read presentation size from reference file. Our presentation size is
4770 now dependent on the reference/template file we use.
4771 + Handle (sub)headers above slidelevel correctly. Above the slidelevel,
4772 subheaders will be printed in bold and given a bit of extra space
4773 before them. Note that at the moment, no distinction is made between
4774 levels of headers above the slide header, though that can be changed.
4775 + Check for required files. Since we now import from reference/dist
4776 file by glob, we need to make sure that we're getting the files we
4777 need to make a non-corrupt Powerpoint. This performs that check.
4778 + Improve templating using `--reference-doc`. Templating should work
4779 much more reliably now.
4780 + Include Notes slide in TOC.
4781 + Set notes slide header to slide-level.
4782 + Add table of contents. This is triggered by the `--toc` flag. Note
4783 that in a long slide deck this risks overrunning the text box. The user
4784 can address this by setting `--toc-depth=1`.
4785 + Set notes slide number correctly.
4786 + Clean up adding metadata slide. We want to count the slide numbers
4787 correctly if it's in there.
4788 + Add anchor links. For anchor-type links (`[foo](#bar)`) we produce
4789 an anchor link. In powerpoint these are links to slides, so we keep
4790 track of a map relating anchors to the slides they occur on.
4791 + Make the slide number available to the blocks. For anchors,
4792 block-processing functions need to know what slide number
4793 they're in. We make the `envCurSlideId` available to blocks.
4794 + Move `curSlideId` to environment.
4795 + Allow setting `toc-title` in metadata.
4796 + Link notes to endnotes slide.
4800 + Fix cell width calculation (#4265). Previously we could get
4801 ever-lengthening cell widths when a table was run repeatedly through
4802 `pandoc -f markdown -t markdown`.
4806 + Escape `&` in lstinline (Robert Schütz).
4810 + Use xtables instead of Tables (#4223, Henri Menke).
4811 Default to xtables for context output. Natural Tables are used
4812 if the new `ntb` extension is set.
4816 + Fixed footnote backlinks with `--id-prefix` (#4235).
4818 * `Text.Pandoc.Extensions`: Added `Ext_ntb` constructor (API change,
4821 * `Text.Pandoc.ImageSize`: add derived `Eq` instance to `Dimension`
4822 (Jesse Rosenthal, API change).
4824 * Lua filters (Albert Krewinkel):
4826 + Make `PANDOC_READER_OPTIONS` available.
4827 The options which were used to read the document are made available to
4828 Lua filters via the `PANDOC_READER_OPTIONS` global.
4829 + Add lua module `pandoc.utils.run_json_filter`, which runs a JSON filter
4830 on a Pandoc document.
4831 + Refactor filter-handling code into `Text.Pandoc.Filter.JSON`,
4832 `Text.Pandoc.Filter.Lua`, and `Text.Pandoc.Filter.Path`.
4833 + Improve error messages. Provide more context about the task
4834 which caused an error.
4836 * data/pandoc.lua (Albert Krewinkel):
4838 + Accept singleton inline as a list. Every constructor which accepts a
4839 list of inlines now also accepts a single inline element for
4841 + Accept single block as singleton list. Every constructor which accepts
4842 a list of blocks now also accepts a single block element for
4843 convenience. Furthermore, strings are accepted as shorthand for
4844 `{pandoc.Str "text"}` in constructors.
4845 + Add attr, listAttributes accessors. Elements with
4846 attributes got an additional `attr` accessor. Attributes were
4847 accessible only via the `identifier`, `classes`, and `attributes`,
4848 which was in conflict with the documentation, which indirectly states
4849 that such elements have the an `attr` property.
4850 + Drop `_VERSION`. Having a `_VERSION` became superfluous, as this
4851 module is closely tied to the pandoc version, which is available via
4853 + Fix access to Attr components. Accessing an Attr value (e.g.,
4854 ` Attr().classes`) was broken; the more common case of accessing it via
4855 an Inline or Block element was unaffected by this.
4857 * Move `metaValueToInlines` to from Docx writer to
4858 `Text.Pandoc.Writers.Shared`, so it can be used by other writers
4863 + Clarify otherlangs in LaTeX (#4072).
4864 + Clarify `latex_macros` extension.
4865 + Recommend use of `raw_attribute` extension in header includes (#4253).
4867 * Allow latest QuickCheck, tasty, criterion.
4869 * Remove custom prelude and ghc 7.8 support.
4871 * Reduce compiler noise (exact paths for compiled modules).
4873## pandoc 2.1 (2018-01-07)
4875 * Allow filters and lua filters to be interspersed (#4196). Previously
4876 we ran all lua filters before JSON filters. Now we run filters in
4877 the order they are presented on the command line, whether lua or JSON.
4878 There are two incompatible API changes: The type of `applyFilters`
4879 has changed, and `applyLuaFilters` has been removed. `Filter` is
4882 * Use latest skylighting and omit the `missingIncludes` check, fixing
4883 a major performance regression in earlier releases of the 2.x series
4884 (#4226). Behavior change: If you use a custom syntax definition that
4885 refers to a syntax you haven't loaded, pandoc will now complain when
4886 it is highlighting the text, rather than doing a check at the start.
4887 This change dramatically speeds up invocations of pandoc on short
4890 * Text.Pandoc.Class: make `FileTree` opaque (don't export
4891 `FileTree` constructor). This forces users to interact with it using
4892 `insertInFileTree` and `getFileInfo`, which normalize file names.
4896 + Rewrite `inlinesInBalancedBrackets`. The rewrite is much more
4897 direct, avoiding `parseFromString`. And it performs significantly
4898 better; unfortunately, parsing time still increases exponentially
4900 + Avoid parsing raw tex unless `\` + letter seen. This seems to
4901 help with the performance problem, #4216.
4903 * LaTeX reader: Simplified a check for raw tex command.
4905 * Muse reader (Alexander Krotov):
4907 + Enable round trip test (#4107).
4908 + Automatically translate `#cover` into `#cover-image`.
4909 Amusewiki uses #cover directive to specify cover image.
4911 * Docx reader (Jesse Rosenthal):
4913 + Allow for insertion/deletion of paragraphs (#3927).
4914 If the paragraph has a deleted or inserted paragraph break (depending
4915 on the track-changes setting) we hold onto it until the next
4916 paragraph. This takes care of accept and reject. For this we introduce
4917 a new state which holds the ils from the previous para if necessary.
4918 For `--track-changes=all`, we add an empty span with class
4919 `paragraph-insertion`/`paragraph-deletion` at the end of the paragraph
4920 prior to the break to be inserted or deleted.
4921 + Remove unused anchors (#3679). Docx produces a lot of anchors with
4922 nothing pointing to them---we now remove these to produce cleaner
4923 output. Note that this has to occur at the end of the process
4924 because it has to follow link/anchor rewriting.
4925 + Read multiple children of `w:sdtContents`.
4926 + Combine adjacent anchors. There isn't any reason to have numerous
4927 anchors in the same place, since we can't maintain docx's
4928 non-nesting overlapping. So we reduce to a single anchor.
4931 * Muse writer (Alexander Krotov): don't escape URIs from AST
4935 + Removed redundant subtitle in title (Sebastian Talmon).
4936 + `firstRow` table definition compatibility for Word 2016 (Sebastian
4937 Talmon). Word 2016 seems to use a default value of "1" for table
4938 headers, if there is no firstRow definition (although a default
4939 value of 0 is documented), so all tables get the first Row formatted
4940 as header. Setting the parameter to 0 if the table has no header
4941 row fixes this for Word 2016
4942 + Fix custom styles with spaces in the name (#3290).
4944 * Powerpoint writer (Jesse Rosenthal):
4946 + Ignore Notes div for parity with other slide outputs.
4947 + Set default slidelevel correctly. We had previously defaulted to
4948 slideLevel 2. Now we use the correct behavior of defaulting to the
4949 highest level header followed by content. We change an expected test
4950 result to match this behavior.
4951 + Split blocks correctly for linked images.
4952 + Combine adjacent runs.
4953 + Make inline code inherit code size. Previously (a) the code size
4954 wasn't set when we force size, and (b) the properties was set from
4955 the default, instead of inheriting.
4956 + Simplify `replaceNamedChildren` function.
4957 + Allow linked images. The following markdown:
4958 `[](http://www.example.com)`
4959 will now produce a linked image in the resulting PowerPoint file.
4960 + Fix error with empty table cell. We require an empty `<a:p>` tag,
4961 even if the cell contains no paragraphs---otherwise PowerPoint
4962 complains of corruption.
4963 + Implement two-column slides. This uses the columns/column div
4964 format described in the pandoc manual. At the moment, only two
4965 columns (half the screen each) are allowed. Custom widths are not
4969 * OpenDocument/ODT writers: improved rendering of formulas (#4170, oltolm).
4971 * Lua filters (Albert Krewinkel):
4973 + `data/pandoc.lua`: drop 'pandoc-api-version' from Pandoc objects
4974 + The current pandoc-types version is made available to Lua programs in
4975 the global `PANDOC_API_VERSION`. It contains the version as a list of
4977 + The pandoc version available as a global `PANDOC_VERSION` (a list
4979 + `data/pandoc.lua`: make `Attr` an `AstElement`.
4980 + `data/pandoc.lua`: make all types subtypes of `AstElement`.
4981 `Pandoc`, `Meta`, and `Citation` were just plain functions and did
4982 not set a metatable on the returned value, which made it difficult
4983 to amend objects of these types with new behavior. They are now
4984 subtypes of AstElement, meaning that all their objects can gain
4985 new features when a method is added to the behavior object
4986 (e.g., `pandoc.Pandoc.behavior`).
4987 + `data/pandoc.lua`: split type and behavior tables. Clearly distinguish
4988 between a type and the behavioral properties of an instance of that
4989 type. The behavior of a type (and all its subtypes) can now be
4990 amended by adding methods to that types `behavior` object, without
4991 exposing the type objects internals. E.g.:
4993 pandoc.Inline.behavior.frob = function () print'42' end
4994 local str = pandoc.Str'hello'
4995 str.frob() -- outputs '42'
4997 + `data/pandoc.lua`: fix Element inheritance. Extending all elements
4998 of a given type (e.g., all inline elements) was difficult, as the
4999 table used to lookup unknown methods would be reset every time a
5000 new element of that type was created, preventing recursive property
5001 lookup. This is was changed in that all methods and attributes of
5002 supertypes are now available to their subtypes.
5003 + `data/pandoc.lua`: fix attribute names of Citation (#4222). The
5004 fields were named like the Haskell fields, not like the documented,
5005 shorter version. The names are changed to match the documentation
5006 and Citations are given a shared metatable to enable simple
5008 + `data/pandoc.lua`: drop function `pandoc.global_filter`.
5009 + Bump `hslua` version to 0.9.5. This version fixes a bug that made it
5010 difficult to handle failures while getting lists or a Map from Lua.
5011 A bug in pandoc, which made it necessary to always pass a tag when
5012 using MetaList or MetaBlock, is fixed as a result. Using the pandoc
5013 module's constructor functions for these values is now optional
5014 (if still recommended).
5015 + Stop exporting `pushPandocModule` (API change). The introduction
5016 of `runPandocLua` renders direct use of this function obsolete.
5017 + Update generation of module docs for lua filters.
5018 + `Lua.Module.Utils`: make stringify work on `MetaValues` (John
5019 MacFarlane). I'm sure this was intended in the first place,
5020 but currently only `Meta` is supported.
5022 * Improve benchmarks.
5024 + Set the default extensions properly.
5025 + Improve benchmark argument parsing. You can now say
5026 `make bench BENCHARGS="markdown latex reader"` and both the
5027 markdown and latex readers will be benchmarked.
5029 * MANUAL.txt simplify and add more structure (Mauro Bieg).
5031 * Generate README.md from template and MANUAL.txt.
5032 `make README.md` will generate the README.md after changes
5033 to MANUAL.txt have been made.
5035 * Update copyright notices to include 2018 (Albert Krewinkel).
5037## pandoc 2.0.6 (2017-12-28)
5039 * Added `jats` as an input format.
5041 + Add Text.Pandoc.Readers.JATS, exporting `readJATS` (API
5042 change) (Hamish Mackenzie).
5043 + Improved citation handling in JATS reader. JATS citations
5044 are now converted to pandoc citations, and JATS ref-lists
5045 are converted into a `references` field in metadata, suitable
5046 for use with pandoc-citeproc. Thus a JATS article with embedded
5047 bibliographic information can be processed with pandoc and
5048 pandoc-citeproc to produce a formatted bibliography.
5050 * Allow `--list-extensions` to take an optional FORMAT argument.
5051 This lists the extensions set by default for the selected FORMAT.
5052 The extensions are now alphabetized, and the `+` or `-`
5053 indicating the default setting comes before, rather than after,
5058 + Preserve original whitespace between blocks.
5059 + Recognize `\placeformula` as context.
5060 + Be pickier about table captions. A caption starts with a `:` which
5061 can't be followed by punctuation. Otherwise we can falsely interpret
5062 the start of a fenced div, or even a table header line like
5063 `:--:|:--:`, as a caption.
5064 + Always use four space rule for example lists. It would be awkward
5065 to indent example list contents to the first non-space character after
5066 the label, since example list labels are often long. Thanks to
5067 Bernhard Fisseni for the suggestion.
5068 + Improve raw tex parsing. Note that the Markdown reader is also
5069 affected by the `latex_macros` extension changes described below
5070 under the LaTeX reader.
5074 + `latex_macros` extension changes (#4179). Don't pass through macro
5075 definitions themselves when `latex_macros` is set. The macros
5076 have already been applied. If `latex_macros` is enabled, then
5077 `rawLaTeXBlock` in Text.Pandoc.Readers.LaTeX will succeed in parsing
5078 a macro definition, and will update pandoc's internal macro map
5079 accordingly, but the empty string will be returned.
5080 + Export `tokenize`, `untokenize` (API change).
5081 + Use `applyMacros` in `rawLaTeXBlock`, `rawLaTeXInline`.
5082 + Refactored `inlineCommand`.
5083 + Fix bug in tokenizer. Material following `^^` was
5084 dropped if it wasn't a character escape. This only affected
5085 invalid LaTeX, so we didn't see it in the wild, but it appeared
5086 in a QuickCheck test failure.
5087 + Fix regression in LateX tokenization (#4159). This mainly affects the
5088 Markdown reader when parsing raw LaTeX with escaped spaces.
5089 + Add tests of LaTeX tokenizer.
5090 + Support `\foreignlanguage` from babel.
5091 + Be more tolerant of `&` character (#4208). This allows us to parse
5092 unknown tabular environments as raw LaTeX.
5094 * Muse reader (Alexander Krotov):
5096 + Parse anchors immediately after headings as IDs.
5097 + Require that note references does not start with 0.
5098 + Parse empty comments correctly.
5100 * Org reader (Albert Krewinkel):
5102 + Fix asterisks-related parsing error (#4180).
5103 + Support minlevel option for includes (#4154). The level of headers
5104 in included files can be shifted to a higher level by specifying a
5105 minimum header level via the `:minlevel` parameter. E.g.
5106 `#+include: "tour.org" :minlevel 1` will shift the headers in
5107 tour.org such that the topmost headers become level 1 headers.
5108 + Break-up org reader test file into multiple modules.
5112 + Enable raw HTML and other extensions by default for notes
5113 (#4164). This fixes a regression in 2.0. Note that extensions can
5114 now be individually disabled, e.g. `-f opml-smart-raw_html`.
5118 + Allow empty list items (#4193).
5119 + More accurate parsing of references (#4156). Previously we erroneously
5120 included the enclosing backticks in a reference ID (#4156). This
5121 change also disables interpretation of syntax inside references, as
5122 in docutils. So, there is no emphasis in `` `my *link*`_ ``.
5126 + Continue lists after interruption (#4025, Jesse Rosenthal).
5127 Docx expects that lists will continue where they left off after an
5128 interruption and introduces a new id if a list is starting again. So
5129 we keep track of the state of lists and use them to define a "start"
5130 attribute, if necessary.
5131 + Add tests for structured document tags unwrapping (Jesse Rosenthal).
5132 + Preprocess Document body to unwrap `w:sdt` elements (Jesse Rosenthal,
5137 + Don't linkify table of contents.
5141 + Fix anchors for headers (#4188). We were missing an `_`.
5143 * PowerPoint writer (Jesse Rosenthal):
5145 + Treat lists inside BlockQuotes as lists. We don't yet produce
5146 incremental lists in PowerPoint, but we should at least treat lists
5147 inside BlockQuotes as lists, for compatibility with other slide formats.
5148 + Add ability to force size. This replaces the more specific
5149 `blockQuote runProp`, which only affected the size of blockquotes. We
5150 can use this for notes, etc.
5151 + Implement notes. This currently prints all notes on a final slide.
5152 Note that at the moment, there is a danger of text overflowing the
5153 note slide, since there is no logic for adding further slides.
5154 + Implement basic definition list functionality to PowerPoint writer.
5155 + Don't look for default template file for Powerpoint (#4181).
5156 + Add pptx to isTextFormat list. This is used to check standalone
5157 and not writing to the terminal.
5158 + Obey slide level option (Jesse Rosenthal).
5163 + Ensure that `distArchive` is the one that comes with pandoc
5164 (#4182). Previously a `reference.docx` in `~/.pandoc` (or the user data
5165 dir) would be used instead, and this could cause problems because a
5166 user-modified docx sometimes lacks vital sections that we count
5167 on the `distArchive` to supply.
5171 + Do not wrap "-" to avoid accidental bullet lists (Alexander Krotov).
5172 + Don't allow fn refs to wrap to beginning of line (#4171, with help from
5173 Alexander Krotov). Otherwise they can be interpreted as footnote
5176 * Muse writer (Alexander Krotov):
5178 + Don't wrap note references to the next line (#4172).
5182 + Use br elements in line blocks instead of relying on CSS
5183 (#4162). HTML-based templates have had the custom CSS for
5184 `div.line-block` removed. Those maintaining custom templates will want
5185 to remove this too. We still enclose line blocks in a div with class
5190 + Use `\renewcommand` for `\textlatin` with babel (#4161).
5191 This avoids a clash with a deprecated `\textlatin` command defined
5193 + Allow fragile=singleslide attribute in beamer slides (#4169).
5194 + Use `\endhead` after `\toprule` in headerless tables (#4207).
5198 + Add cover image specified by `cover-image` meta (Alexander Krotov,
5201 * JATS writer (Hamish Mackenzie):
5203 + Support writing `<fig>` and `<table-wrap>` elements
5204 with `<title>` and `<caption>` inside them by using Divs with class set
5205 to one of `fig`, `table-wrap` or `caption` (Hamish Mackenzie). The
5206 title is included as a Heading so the constraint on where Heading can
5207 occur is also relaxed.
5208 + Leave out empty alt attributes on links.
5209 + Deduplicate image mime type code.
5210 + Make `<p>` optional in `<td>` and `<th>` (#4178).
5211 + Self closing tags for empty xref (#4187).
5212 + Improve support for code language.
5216 + Use init file to setup Lua interpreter (Albert Krewinkel).
5217 The same init file (`data/init`) that is used to setup the Lua
5218 interpreter for Lua filters is also used to setup the interpreter of
5220 + Define instances for newtype wrapper (Albert Krewinkel). The custom
5221 writer used its own `ToLuaStack` instance definitions, which made
5222 it difficult to share code with Lua filters, as this could result
5223 in conflicting instances. A `Stringify` wrapper is introduced to
5225 + Added tests for custom writer.
5226 + Fixed definition lists and tables in `data/sample.lua`.
5228 * Fixed regression: when target is PDF, writer extensions were being
5229 ignored. So, for example, `pandoc -t latex-smart -o file.pdf`
5230 did not work properly.
5232 * Lua modules (Albert Krewinkel):
5234 + Add `pandoc.utils` module, to hold utility functions.
5235 + Create a Haskell module Text.Pandoc.Lua.Module.Pandoc to
5236 define the `pandoc` lua module.
5237 + Make a Haskell module for each Lua module. Move definitions for the
5238 `pandoc.mediabag` modules to a separate Haskell module.
5239 + Move `sha1` from the main `pandoc` module to `pandoc.utils`.
5240 + Add function `pandoc.utils.hierarchicalize` (convert list of
5241 Pandoc blocks into (hierarchical) list of Elements).
5242 + Add function `pandoc.utils.normalize_date` (parses a date and
5243 converts it (if possible) to "YYYY-MM-DD" format).
5244 + Add function `pandoc.utils.to_roman_numeral` (allows conversion
5245 of numbers below 4000 into roman numerals).
5246 + Add function `pandoc.utils.stringify` (converts any AST element
5247 to a string with formatting removed).
5248 + `data/init.lua`: load `pandoc.utils` by default
5249 + Turn pipe, read into full Haskell functions. The `pipe` and `read`
5250 utility functions are converted from hybrid lua/haskell functions
5251 into full Haskell functions. This avoids the need for intermediate
5252 `_pipe`/`_read` helper functions, which have dropped.
5253 + pandoc.lua: re-add missing MetaMap function. This was a bug
5254 introduced in version 2.0.4.
5256 * Text.Pandoc.Class: Add `insertInFileTree` [API change]. This gives
5257 a pure way to insert an ersatz file into a `FileTree`. In addition, we
5258 normalize paths both on insertion and on lookup.
5260 * Text.Pandoc.Shared: export `blocksToInlines'` (API change, Maura Bieg).
5262 * Text.Pandoc.MIME: Add opus to MIME type table as audio/ogg (#4198).
5264 * Text.Pandoc.Extensions: Alphabetical order constructors for
5265 `Extension`. This makes them appear in order in `--list-extensions`.
5267 * Allow lenient decoding of latex error logs, which are not always
5268 properly UTF8-encoded (#4200).
5270 * Update latex template to work with recent versions of beamer.
5271 The old template produced numbered sections with some recent
5272 versions of beamer. Thanks to Thomas Hodgson.
5274 * Updated reference.docx (#4175). Instead of just "Hello, world", the
5275 document now contains exemplars of most of the styles that have an
5276 effect on pandoc documents. This makes it easier to see the effect
5279 * Removed `default.theme` data file (#4096). It is no longer needed now
5280 that we have `--print-highlight-style`.
5282 * Added `stack.lts9.yaml` for building with lts 9 and ghc 8.0.2.
5283 We still need this for the alpine static linux build, since
5284 we don't have ghc 8.2.2 for that yet.
5286 * Removed `stack.pkg.yaml`. We only really need `stack.yaml`; we
5287 can put flag settings for pandoc-citeproc there.
5289 * Makefile: Add 'trypandoc' and 'pandoc-templates' targets to
5290 make releases easier.
5294 + Add note on what formats have `+smart` by default.
5295 + Use native syntax for custom-style (#4174, Mauro Bieg).
5296 + Introduce dedicated Extensions section, since some extensions
5297 affect formats other than markdown (Mauro Bieg, #4204).
5298 + Clarify default html output for `--section-divs` (Richard Edwards).
5300 * filters.md: say that Text.Pandoc.JSON comes form pandoc-types.
5301 Closes jgm/pandoc-website#16.
5303 * epub.md: Delete removed `-S` option from command (#4151, Georger Araújo).
5305## pandoc 2.0.5 (2017-12-12)
5307 * Fix a bug in 2.0.4, whereby pandoc could not read the theme files
5308 generated with `--print-highlight-style` (#4133). Improve JSON
5309 serialization of styles.
5311 * Fix CSS issues involving line numbers (#4128).
5312 Highlighted code blocks are now enclosed in a div with class `sourceCode`.
5313 Highlighting CSS no longer sets a generic color for pre and code; we only
5314 set these for class `sourceCode`.
5316 * `--pdf-engine-opt`: fix bug where option order was reversed (#4137).
5318 * Add PowerPoint (pptx) writer (Jesse Rosenthal).
5319 It works following the standard Pandoc conventions for making other
5320 sorts of slides. Caveats:
5322 + Syntax highlighting is not yet implemented. (This is difficult
5323 because there are no character classes in Powerpoint.)
5324 + Footnotes and Definition lists are not yet implemented. (Notes will
5325 usually take the form of a final slide.
5326 + Image placement and auto-resizing has a few glitches.
5327 + Reference powerpoint files don't work dependably from the command
5328 line. This will be implemented, but at the moment users are advised
5329 to change themes from within Powerpoint.
5331 * Create shared Text.Pandoc.Writers.OOXML module (Jesse Rosenthal).
5332 This is for functions used by both Powerpoint and Docx writers.
5334 * Add default pptx data for Powerpoint writer (Jesse Rosenthal).
5336 * Add `empty_paragraphs` extension.
5338 + Deprecate `--strip-empty-paragraphs` option. Instead we now
5339 use an `empty_paragraphs` extension that can be enabled on
5340 the reader or writer. By default, disabled.
5341 + Add `Ext_empty_paragraphs` constructor to `Extension`.
5342 + Revert "Docx reader: don't strip out empty paragraphs."
5343 This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b.
5344 + Implement `empty_paragraphs` extension in docx reader and writer,
5345 opendocument writer, html reader and writer.
5346 + Add tests for `empty_paragraphs` extension.
5350 + Don't parse native div as table caption (#4119).
5351 + Improved computation of column widths in pipe tables.
5352 Pipe tables with lines longer than the text width (as set
5353 by `--columns`) are now scaled to text width, with the relative
5354 widths of columns determined by the ratios between the
5355 header lines. Previously we computed column widths using
5356 the ratio of header line lengths to column width, so that
5357 tables with narrow header lines were extremely thin, which
5358 was very rarely the desired result.
5360 * LaTeX reader: fix `\` before newline (#4134). This should be a space,
5361 as long as it's not followed by a blank line. This has been fixed at the
5364 * Muse reader (Alexander Krotov):
5366 + Add test for `#disable-tables` directive in Emacs mode.
5367 + Don't allow emphasis to be preceded by letter.
5368 + Add underline support in Emacs Muse mode..
5369 + Support multiline directives in Amusewiki mode
5371 * Man writer: omit internal links (#4136). That is, just print the link
5372 text without the URL.
5374 * Markdown reader: accept processing instructions as raw HTML (#4125).
5376 * Lua filters (Albert Krewinkel):
5378 + Use script to initialize the interpreter. The file `init.lua` is
5379 used to initialize the Lua interpreter which is used in Lua filters.
5380 This gives users the option to require libraries which they want to
5381 use in all of their filters, and to extend default modules.
5382 + Fix package loading for Lua 5.1. The list of package searchers is
5383 named `package.loaders` in Lua 5.1 and LuaJIT, and `package.searchers`
5384 in Lua 5.2 and later.
5385 + Refactor lua module handling. The integration with Lua's package/module
5386 system is improved: A pandoc-specific package searcher is prepended to
5387 the searchers in `package.searchers`. The modules `pandoc` and
5388 `pandoc.mediabag` can now be loaded via `require`.
5389 + Bump lower bound of hslua. The release hslua 0.9.3 contains a new
5390 function which makes using Haskell functions as package loaders much
5393 * reveal.js template: add title-slide identifier to title slide (#4120).
5394 This allows it to be styled more easily.
5396 * LaTeX template: Added support for `pagestyle` variable (#4135,
5399 * Add `-threaded` to ghc-options for executable (#4130, fixes a build
5403## pandoc 2.0.4 (2017-12-03)
5405 * Add `--print-highlight-style` option. This generates a JSON version
5406 of a highlighting style, which can be saved as a `.theme` file, modified,
5407 and used with `--highlight-style` (#4106, #4096).
5409 * Add `--strip-empty-paragraphs` option. This works for any input format.
5410 It is primarily intended for use with docx and odt documents where
5411 empty paragraphs have been used for inter-paragraph spaces.
5413 * Support `--webtex` for `gfm` output.
5415 * Recognize `.muse` file extension.
5417 * Support beamer `\alert` in LaTeX reader. Closes #4091.
5419 * Docx reader: don't strip out empty paragraphs (#2252).
5420 Users who have a conversion pipeline from docx may want to consider adding
5421 `--strip-empty-paragraphs` to the command line.
5423 * Org reader (Albert Krewinkel): Allow empty list items (#4090).
5425 * Muse reader (Alexander Krotov):
5427 + Parse markup in definition list terms.
5428 + Allow definition to end with EOF.
5429 + Make code blocks round trip.
5430 + Drop common space prefix from list items.
5431 + Add partial round trip test.
5432 + Don't interpret XML entities.
5434 + Parse `~~` as non-breaking space in Emacs mode.
5435 + Correctly remove indentation from notes. Exactly one space is
5436 required and considered to be part of the marker.
5437 + Allow list items to be empty.
5438 + Add ordered list test.
5439 + Add more multiline definition tests.
5440 + Don't allow blockquotes within lists.
5441 + Fix reading of multiline definitions.
5442 + Add inline `<literal>` support.
5443 + Concatenate inlines of the same type
5445 * Docx writer: allow empty paragraphs (#2252).
5447 * CommonMark/gfm writer:
5449 + Use raw html for native divs/spans (#4113). This allows a pandoc
5450 markdown native div or span to be rendered in gfm using raw html tags.
5451 + Implement `raw_html` and `raw_tex` extensions. Note that `raw_html`
5452 is enabled by default for `gfm`, while `raw_tex` is disabled by default.
5454 * Muse writer (Alexander Krotov):
5456 + Test that inline math conversion result is normalized.
5457 Without normalization this test produced
5458 `<em>a</em><em>b</em><em>c</em>`.
5459 + Improve inline list normalization and move to writer.
5460 + Escape hash symbol.
5461 + Escape `----` to avoid accidental horizontal rules.
5462 + Escape only `</code>` inside code tag.
5463 + Additional `<verbatim>` is not needed as `<code>` is verbatim already.
5467 + Allow specifying just width or height for image size.
5468 Previously both needed to be specified (unless the image was
5469 being resized to be smaller than its original size).
5470 If height but not width is specified, we now set width to
5471 textwidth. If width but not height is specified, we now set
5472 height to textheight. Since we have `keepaspectratio`, this
5473 yields the desired result.
5474 + Escape `~` and `_` in code with `--listings` (#4111).
5476 * HTML writer: export `tagWithAttributes`. This is a helper allowing
5477 other writers to create single HTML tags.
5479 * Let papersizes `a0`, `a1`, `a2`, ... be case-insensitive by
5480 converting the case as needed in LaTeX and ConTeXt writers.
5482 * Change `fixDisplayMath` from `Text.Pandoc.Writers.Shared`
5483 so that it no longer produces empty `Para`'s as an artifact.
5485 * `Text.Pandoc.Shared.blocksToInlines`: rewrote using builder.
5486 This gives us automatic normalization, so we don't get
5487 for example two consecutive Spaces.
5489 * Include default CSS for 'underline' class in HTML-based templates.
5491 * revealjs template: add `tex2jax` configuration for the
5492 math plugin. With the next release of reveal.js, this will
5493 fix the problem of `$`s outside of math contexts being
5494 interpreted as math delimiters (#4027).
5496 * `pandoc.lua` module for use in lua filters (Albert Krewinkel):
5498 + Add basic lua List module (#4099, #4081). The List module is
5499 automatically loaded, but not assigned to a global variable. It can be
5500 included in filters by calling `List = require 'List'`. Lists of blocks,
5501 lists of inlines, and lists of classes are now given `List` as a metatable,
5502 making working with them more convenient. E.g., it is now possible to
5503 concatenate lists of inlines using Lua's concatenation operator `..`
5504 (requires at least one of the operants to have `List` as a metatable):
5506 function Emph (emph)
5507 local s = {pandoc.Space(), pandoc.Str 'emphasized'}
5508 return pandoc.Span(emph.content .. s)
5511 The `List` metatable is assigned to the tables which get passed to
5512 the constructors `MetaBlocks`, `MetaInline`, and `MetaList`. This
5513 enables the use of the resulting objects as lists.
5514 + `Lua/StackInstances`: push Pandoc and Meta via constructor.
5515 Pandoc and Meta elements are now pushed by calling the respective
5516 constructor functions of the pandoc Lua module. This makes serialization
5517 consistent with the way blocks and inlines are pushed to lua and allows
5518 to use List methods with the `blocks` value.
5519 + Add documentation for pandoc.List in `lua-filters.md`.
5521 * Use latest tagsoup. This fixes a bug in parsing HTML tags with
5522 `&` (but not a valid entity) following them (#4094, #4088).
5524 * Use skylighting 0.4.4.1, fixing the color of unmarked code text
5525 when `numberLines` is used (#4103).
5527 * Make `normalizeDate` more forgiving (Mauro Bieg, #4101), not
5528 requiring a leading 0 on single-digit days.
5530 * Fix `--help` output for `--highlight-style` to include `FILE` (Mauro
5533 * Clearer deprecation warning for `--latexmathml, --asciimathml, -m`.
5534 Previously we only mentioned `--latexmathml`, even if `-m` was
5537 * Changelog: fix description of lua filters in 2.0 release
5538 (Albert Krewinkel). Lua filters were initially run *after* conventional
5539 (JSON) filters. However, this was changed later to make it easier to deal
5540 with files in the mediabag. The changelog is updated to describe that
5541 feature of the 2.0 release correctly.
5543 * Change Generic JSON instances to TemplateHaskell (Jasper Van der Jeugt,
5544 #4085). This reduces compile time and memory usage significantly.
5546 * `lua-filters.md`: Added tikz filter example.
5548 * Create alternative zip file for macOS binaries.
5550 * Create alternative zip file for Windows binaries.
5552 * Update INSTALL.md since we now provide zips for binaries.
5554 * Relax `http-types` dependency (Justus Sagemüller, #4084).
5556 * Add `epub.md`, `getting-started.md` to docs. These used to live in
5559 * Add `packages` target to Makefile.
5561 * Bump bounds for binary, http-types, tasty-hunit
5563## pandoc 2.0.3 (2017-11-20)
5565 * Lua filters: preload text module (Albert Krewinkel, #4077).
5566 The `text` module is preloaded in lua. The module contains some UTF-8
5567 aware string functions, implemented in Haskell. The module is loaded on
5570 text = require 'text'
5572 s.text = text.upper(s.text)
5576 * Allow table-like access to attributes in lua filters (Albert Krewinkel,
5577 #4071). Attribute lists are represented as associative lists in Lua. Pure
5578 associative lists are awkward to work with. A metatable is attached to
5579 attribute lists, allowing to access and use the associative list as if
5580 the attributes were stored in as normal key-value pair in table.
5581 Note that this changes the way `pairs` works on attribute lists. Instead
5582 of producing integer keys and two-element tables, the resulting iterator
5583 function now returns the key and value of those pairs. Use `ipairs` to
5584 get the old behavior. Warning: the new iteration mechanism only works if
5585 pandoc has been compiled with Lua 5.2 or later (current default: 5.3).
5587 * Text.Pandoc.Parsing.uri: allow `&` and `=` as word characters (#4068).
5588 This fixes a bug where pandoc would stop parsing a URI with an
5589 empty attribute: for example, `&a=&b=` wolud stop at `a`.
5590 (The uri parser tries to guess which punctuation characters
5591 are part of the URI and which might be punctuation after it.)
5593 * Introduce `HasSyntaxExtensions` typeclass (Alexander Krotov, #4074).
5595 + Added new `HasSyntaxExtensions` typeclass for `ReaderOptions` and
5597 + Reimplemented `isEnabled` function from `Options.hs` to accept both
5598 `ReaderOptions` and `WriterOptions`.
5599 + Replaced `enabled` from `CommonMark.hs` with new `isEnabled`.
5601 * Add `amuse` extension (Alexander Krotov) to enable Amuse wiki
5602 behavior for `muse`. New `Ext_amuse` constructor for
5603 `Extension`. Note: this is switched on by default; for
5604 Emacs behavior, use `muse-amuse`.
5606 * Muse reader (Alexander Krotov):
5608 + Count only one space as part of list item marker.
5609 + Produce SoftBreaks on newlines. Now wrapping can be preserved
5610 with `--wrap=preserve`.
5611 + Add Text::Amuse footnote extensions. Footnote end is indicated by
5612 indentation, so footnotes can be placed anywhere in the text,
5613 not just at the end of it.
5614 + Accept Emacs Muse definition lists when `-amuse`.
5615 Emacs Muse does not require indentation.
5619 + Ensure we don't produce level 0 headers (#4076), even for chapter
5620 sections in epubs. This causes problems because writers aren't set
5622 + Allow spaces after `\(` and before `\)` with `tex_math_single_backslash`.
5623 Previously `\( \frac{1}{a} < \frac{1}{b} \)` was not parsed as math in
5624 `markdown` or `html` `+tex_math_single_backslash`.
5626 * MANUAL: clarify that math extensions work with HTML.
5627 Clarify that `tex_math_dollars` and `tex_math_single_backslash`
5628 will work with HTML as well as Markdown.
5630 * Creole reader: Fix performance issue for longer lists (Sascha Wilde,
5633 * RST reader: better support for 'container' directive (#4066).
5634 Create a div, incorporate name attribute and classes.
5638 + Support column specs like `*{2}{r}` (#4056). This is equivalent to
5639 `rr`. We now expand it like a macro.
5640 + Allow optional args for parbox (#4056).
5641 + Allow optional arguments on `\footnote` (#4062).
5643 * EPUB writer: Fixed path for cover image (#4069). It was previously
5644 `media/media/imagename`, and should have been `media/imagename`.
5646 * Markdown writer: fix bug with doubled footnotes in grid tables
5649 * LaTeX template: include natbib/biblatex after polyglossia (#4073).
5650 Otherwise we seem to get an error; biblatex wants polyglossia
5651 language to be defined.
5653 * Added examples to lua filters documentation.
5656## pandoc 2.0.2 (2017-11-12)
5658 * Deprecated ancient HTML math methods: `--latexmathml`, `--gladtex`,
5659 `--mimetex`, `--jsmath`.
5661 * Fixed URIs in `data/jats.csl`. They were being rendered twice,
5662 leading to invalid XML in default JATS output with pandoc-citeproc.
5664 * `lua-filters.md`: use real-world man page filter as example.
5666 * Add lua filter functions `walk_inline` and `walk_block`
5667 in the pandoc module, to apply filters inside particular
5668 inline and block elements.
5670 * Refactored some code from `Text.Pandoc.Lua.PandocModule`
5671 into new internal module `Text.Pandoc.Lua.Filter`.
5675 + Allow fenced code blocks to be indented 1-3 spaces (#4011).
5676 This brings our handling of them into alignment with CommonMark's.
5677 + Fix YAML metadata with "chomp" (`|-`). Previously if a
5678 YAML block under `|-` contained a blank line, pandoc would
5679 not parse it as metadata.
5681 * Removed `etc.` from abbreviations file. Often `etc.` ends a
5682 sentence, and we want the period to be treated as a
5683 sentence-ending period.
5685 * Fix regression with `--metadata` (#4054). Values specified with
5686 `--metadata` should replace a metadata value set in the document
5687 itself, rather than creating a list including a new value.
5691 + Fix EPUB OCF structure. #3720 had been improperly implemented.
5692 + Fix modified paths for raw HTML tags (src, poster, etc.)
5693 (#4050, #4055). This had not been updated for the new EPUB
5694 container layout, with a separate text/ subdirectory.
5695 + Fix image paths with empty `--epub-subdirectory`.
5697 * Miscellaneous code cleanup (Alexander Krotov).
5699 * Use pandoc-types 1.17.3, which adds `Walkable` instances
5700 for `[Block] Block` and `[Inline] Inline`.
5702 * Remove obsolete `stack.full.yaml` (#4052).
5704 * Change to using pandoc-citeproc 0.12.1 in binary packages.
5706 * Consolidate math output method documentation (#4049, Mauro Bieg).
5708 * `MANUAL.txt`: fix header level of "Extension: emoji" (Albert Krewinkel).
5710 * Use lua filter to generate man page from `MANUAL.txt`, replacing old
5711 Haskell filters. This is easier and faster.
5713 * Improved `INSTALL.md`.
5715 * Update commands to extract deb archive on Linux (#4043, Salim B).
5718## pandoc 2.0.1.1 (2017-11-04)
5720 * Improved fix to #3989 (parsing of HTML tags containing
5721 `>` in an attribute or comment). The previous fix (in 2.0.1) only
5722 worked in certain cases.
5724 * FB2 writer (Alexander Krotov):
5726 + Add `unrecognised` genre to `<title-info>`
5727 (Alexander Krotov). XML schema requires at least one genre.
5728 + Remove `<annotation>` from `<body>`.
5730 * CommonMark writer: fix strikethrough for `gfm` (#4038).
5732 * Use texmath 0.10, which adds support for a wider range of
5733 symbols and fixes default column alignments in MathML
5736 * Highlighting fixes, using skylighting 0.4.3.2:
5739 + Support `lineAnchors` (or `line-anchors`) in HTML code blocks.
5740 + Ensure that code lines don't get duplicate identifiers (#4031).
5741 The line identifiers are built using the code block's identifier
5742 as a prefix. If the code block has null identifier, we use
5745 * Added a few abbreviations to `data/abbreviations`,
5746 and sorted the list (#3984, Wandmalfarbe).
5748 * Improved support for columns in HTML writer (#4028).
5750 + Remove `width` attribute from the `div`.
5751 + Remove space between `<div class="column">` elements,
5752 since this prevents columns whose widths sum to 100%
5753 (the space takes up space).
5754 + Move as much as possible of the CSS to the template.
5755 + Ensure that all the HTML-based templates (including epub)
5756 contain the CSS for columns.
5757 + Columns default to 50% width unless they are given a width
5758 attribute. So if you want two equal-width columns, you
5759 can use a div with class `column` and no `width` attribute.
5761 * SelfContained: use `base64` for css links with media attribute (#4026).
5762 This fixes `--self-contained` with S5.
5764 * Improve `pandoc-template-mode.el` (Vaclav Haisman).
5766 * INSTALL.md: MacOS instructions needed xar -f (adam234).
5770 + Clarify that --setext-headers doesn't affect gfm output (#4035).
5771 + Clarify what is needed to open and close a div in `fenced_divs`
5772 (#4039, Tristano Ajmone).
5773 + Removed reference to `default.beamer` in docs (#4024).
5774 Also added mention of other templates affecting PDF output
5775 with different settings.
5778## pandoc 2.0.1 (2017-10-31)
5780 * Fixed regression in parsing of HTML comments in markdown and other
5781 non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`) (#4019).
5782 The parser stopped at the first `>` character, even if it wasn't
5783 the end of the comment.
5785 * Creole reader (Sascha Wilde):
5787 + Fix some minor typos and formatting.
5788 + Add additional test on nowiki-block after para.
5789 + Fix lists with trailing white space.
5791 * LaTeX reader: handle `%` comment right after command.
5792 For example, `\emph%`.
5794 * Markdown reader: make sure fenced div closers work in lists.
5795 Previously the following failed:
5802 and you needed a blank line before the closing `:::`.
5804 * Make `fenced_divs` affect the Markdown writer. If `fenced_divs` is
5805 enabled, Divs will be rendered as fenced divs.
5807 * LaTeX/Beamer writer: support "blocks" inside columns and other Divs
5810 * HTML Writer: consistently use dashed class-names (Mauro Bieg, #3556).
5811 Note: this change may require some changes in CSS rules.
5812 `footnoteRef` has become `footnote-ref`, `titleslide` has
5813 become `title-slide`, and `footnoteBack` has become `footnote-back`.
5815 * JATS writer: Properly pass through author metadata (#4020).
5817 * FB2 writer (Alexander Krotov):
5819 + Write blocks outside of `<p>` in definitions.
5820 + Make bullet lists consistent with ordered lists, repeating
5821 the marker for the outer list rather than indenting sublists,
5822 since indentation does not work in readers.
5823 + Add new style FB2 tests.
5825 * `Text.Pandoc.ImageSize`: Add `Millimeter` constructor to `Dimension`
5826 (#4012) [API change]. Now sizes given in 'mm' are no longer converted
5829 * Revise documentation of small caps syntax (Andrew Dunning, #4013).
5831 * Fix broken reference links in manual (Andrew Dunning, #4014)
5833 * Fixed example of slide columns structure in changelog (#4015).
5834 Also documented this feature in MANUAL.txt.
5837## pandoc 2.0.0.1 (2017-10-30)
5841 + Fixed filepaths for nonstandard epub-subdirectory values.
5842 + Ensure that epub2 is recognized as a non-text format,
5843 so that a template is used.
5844 + Don't include "prefix" attribute for ibooks for epub2.
5845 It doesn't validate.
5846 + Fix stylesheet paths; previously we had an incorrect
5847 stylesheet path for the cover page and nav page.
5851 + Insert space when needed in macro expansion (#4007).
5852 Sometimes we need to insert a space after a control sequence
5853 to prevent it merging with a following letter.
5854 + Allow unbraced arguments for macros (#4007).
5855 + Allow body of macro definition to be unbraced (#4007).
5857 * Linux package build: ensure that pandoc-citeproc is statically linked.
5859 * trypandoc: add native, ms.
5862## pandoc 2.0 (2017-10-29)
5866 * New output format `ms` (groff ms). Complete support, including
5867 tables, math, syntax highlighting, and PDF bookmarks. The writer uses
5868 texmath's new eqn writer to convert math to eqn format, so a ms file
5869 produced with this writer should be processed with `groff -ms -e` if
5872 * New output format `jats` (Journal Article Tag Suite). This is an XML
5873 format used in archiving and publishing articles. Note that a
5874 URI-encoded CSL stylesheet (`data/jats.csl`) is added automatically
5875 unless a stylesheet is specified using `--css`.
5877 * New output format `gfm` (GitHub-flavored CommonMark) (#3841).
5878 This uses bindings to GitHub's fork of cmark, so it should parse
5879 gfm exactly as GitHub does (excepting certain postprocessing
5880 steps, involving notifications, emojis, etc.). `markdown_github`
5881 has been deprecated in favor of `gfm`.
5883 * New output format `muse` (Emacs Muse) (Alexander Krotov, #3489).
5885 * New input format `gfm` (GitHub-flavored CommonMark) (#3841).
5886 This uses bindings to GitHub's fork of cmark. `markdown_github`
5887 has been deprecated in favor of `gfm`.
5889 * New input format `muse` (Emacs Muse) reader (Alexander Krotov, #3620).
5891 * New input format `tikiwiki` (TikiWiki markup) (rlpowell, #3800).
5893 * New input format `vimwiki` (Vimwiki markup) (Yuchen Pei, #3705).
5894 Note that there is a new data file, `data/vimwiki.css`, which can
5895 be used to display the HTML produced by this reader and
5896 pandoc's HTML writer in the style of vimwiki's own HTML
5899 * New input format `creole` (Creole 1.0) (#3994, Sascha Wilde).
5901 * New syntax for Divs, with `fenced_divs` extension enabled by
5902 default (#168). This gives an attractive, plain-text way to create
5903 containers for block-level content.
5905 * Added new syntax for including raw content in any output format,
5906 enabled by the `raw_attribute` extension (which is on by default
5907 for `markdown` and `multimarkdown`). The syntax is the same as
5908 for fenced code blocks or code inlines, only with `{=FORMAT}` for
5909 attributes, where `FORMAT` is the name of the output format
5910 (e.g., `ms`, `html`).
5912 * Implement multicolumn support for slide formats (#1710).
5913 The structure expected is:
5915 :::::::::::::: {.columns}
5916 ::: {.column width="40%"}
5919 ::: {.column width="60%"}
5924 Support has been added for beamer and all HTML slide formats.
5926 * Allows line comments in templates, beginning with `$--` (#3806).
5927 (Requires doctemplates 0.2.1.)
5929 * Add `--eol=crlf|lf|native` flag and writer option to control line endings
5930 (Stefan Dresselhaus, #3663, #2097).
5932 * Add `--log` option to save log messages in JSON format to a file (#3392).
5934 * Add `--request-header` option, to set request headers when pandoc
5935 makes HTTP requests to fetch external resources. For example:
5936 `--request-header User-Agent:blah`.
5938 * Added lua filters (Albert Krewinkel, #3514). The new `--lua-filter`
5939 option works like `--filter` but takes pathnames of special lua filters
5940 and uses the lua interpreter baked into pandoc, so that no external
5941 interpreter is needed. Note that lua filters are all applied after
5942 regular filters, regardless of their position on the command line.
5943 For documentation of lua filters, see `doc/lua-filters.md`.
5945 * Set `PANDOC_READER_OPTIONS` in environment where filters are run.
5946 This contains a JSON representation of `ReaderOptions`, so filters
5949 * Support creation of pdf via groff `ms` and pdfroff.
5950 `pandoc -t ms -o output.pdf input.txt`.
5952 * Support for PDF generation via HTML and `weasyprint` or `prince`
5953 (Mauro Bieg, #3909). `pandoc -t html5 -o output.pdf --pdf-engine=prince`.
5955 * Added `--epub-subdirectory` option (#3720). This specifies the
5956 subdirectory in the OCF container that holds the EPUB specific content.
5957 We now put all EPUB related content in an `EPUB/` subdirectory by default
5958 (later this will be configurable).
5963 com.apple.ibooks.display-options.xml
5965 EPUB/ <<--configurable-->>
5966 fonts/ <<--static-->>
5968 media/ <<--static-->>
5971 styles/ <<--static-->>
5975 text/ <<--static-->>
5979 * Added `--resource-path=SEARCHPATH` command line option (#852).
5980 SEARCHPATH is separated by the usual character, depending on OS
5981 (: on unix, ; on windows). Default resource path is just working
5982 directory. However, the working directory must be explicitly
5983 specified if the `--resource-path` option is used.
5985 * Added --abbreviations=FILE option for custom abbreviations file
5986 (#256). Dfault abbreviations file (`data/abbreviations`) contains
5987 a list of strings that will be recognized by pandoc's
5988 Markdown parser as abbreviations. (A nonbreaking space will
5989 be inserted after the period, preventing a sentence space in
5990 formats like LaTeX.) Users can override the default by putting a file
5991 abbreviations in their user data directory (`~/.pandoc` on *nix).
5993 * Allow a theme file as argument to `--highlight-style`.
5994 Also include a sample, `default.theme`, in `data/`.
5996 * Allow `--syntax-definition` option for dynamic loading of syntax
5997 highlighting definitions (#3334).
5999 * Lists in `markdown` by default now use the CommonMark variable
6000 nesting rules (#3511). The indentation required for a block-level
6001 item to be included in a list item is no longer fixed, but is
6002 determined by the first line of the list item. To be included in
6003 the list item, a block must be indented to the level of the first
6004 non-space content after the list marker. Exception: if are 5 or more
6005 spaces after the list marker, then the content is interpreted as an
6006 indented code block, and continuation paragraphs must be indented
6007 two spaces beyond the end of the list marker. See the CommonMark
6008 spec for more details and examples.
6010 Documents that adhere to the four-space rule should, in most cases,
6011 be parsed the same way by the new rules. Here are some examples
6012 of texts that will be parsed differently:
6017 will be parsed as a list item with a sublist; under the four-space
6018 rule, it would be a list with two items.
6024 Here we have an indented code block under the list item, even though it
6025 is only indented six spaces from the margin, because it is four spaces
6026 past the point where a continuation paragraph could begin. With the
6027 four-space rule, this would be a regular paragraph rather than a code
6034 Here the code block will start with two spaces, whereas under
6035 the four-space rule, it would start with `code`. With the four-space
6036 rule, indented code under a list item always must be indented eight
6037 spaces from the margin, while the new rules require only that it
6038 be indented four spaces from the beginning of the first non-space
6039 text after the list marker (here, `a`).
6041 This change was motivated by a slew of bug reports from people
6042 who expected lists to work differently (#3125, #2367, #2575, #2210,
6043 #1990, #1137, #744, #172, #137, #128) and by the growing prevalance
6044 of CommonMark (now used by GitHub, for example). Those who
6045 prefer the old behavior can use `-f markdown+four_space_rule`.
6047 * Added `four_space_rule` extension. This triggers the old pandoc
6048 parsing rule for content nested under list items (the "four space
6051 * Added `spaced_reference_links` extension (#2602). It allows whitespace
6052 between the two parts of a reference link: e.g.
6058 This was previously enabled by default; now it is forbidden by default.
6060 * Add `space_in_atx_header` extension (#3512). This is enabled by default
6061 in pandoc and GitHub markdown but not the other flavors.
6062 This requirse a space between the opening #'s and the header
6063 text in ATX headers (as CommonMark does but many other implementations
6064 do not). This is desirable to avoid falsely capturing things ilke
6072 * Add `sourcefile` and `outputfile` template variables (Roland Hieber,
6075 * Allow ibooks-specific metadata in epubs (#2693). You can now have
6076 the following fields in your YAML metadata, and it will be treated
6077 appropriately in the generated EPUB:
6082 specified-fonts: false
6083 ipad-orientation-lock: portrait-only
6084 iphone-orientation-lock: landscape-only
6086 scroll-axis: vertical
6092 * Reader functions no longer presuppose that CRs have been
6093 stripped from the input. (They strip CRs themselves, before
6094 parsing, to simplify the parsers.)
6096 * Added support for translations (localization) (#3559).
6097 Currently this only affects the LaTeX reader, for things
6098 like `\figurename`. Translation data files for 46 languages
6099 can be found in `data/translations`.
6101 * Make `--ascii` work with DocBook output too.
6103 * Rename `--latex-engine` to `--pdf-engine`,
6104 and `--latex-engine-opt` to `--pdf-engine-opt`.
6106 * Removed `--parse-raw` and `readerParseRaw`. These were confusing.
6107 Now we rely on the `+raw_tex` or `+raw_html` extension with latex or html
6108 input. Thus, instead of `--parse-raw -f latex` we use `-f latex+raw_tex`,
6109 and instead of `--parse-raw -f html` we use `-f html+raw_html`.
6111 * With `--filter` R filters are now recognized, even if they are
6112 not executable (#3940, #3941, Andrie de Vries).
6114 * Support SVG in PDF output, converting with `rsvg2pdf` (#1793).
6116 * Make epub an alias for epub3, not epub2.
6118 * Removed `--epub-stylesheet`; use `--css` instead (#3472, #847).
6119 Multiple stylesheets may be used. Stylesheets will be taken both from
6120 `--css` and from the `stylesheet` metadata field (which can contain
6121 either a file path or a list of them).
6123 * `--mathml` and MathML in HTMLMathMethod no longer take an argument.
6124 The argument was for a bridge JavaScript that used to be necessary
6125 in 2004. We have removed the script already.
6127 * `--katex` improvements. The latest version is used, and the
6128 autoload script is loaded by default.
6130 * Change MathJax CDN default since old one is shutting down (#3544).
6131 Note: The new URL requires a version number, which we'll have
6132 to update manually in subsequent pandoc releases in order to
6133 take advantage of mathjax improvements.
6135 * `--self-contained`: don't incorporate elements with `data-external="1"`
6136 (#2656). You can leave an external link as it is by adding the attribute
6137 data-external="1" to the element. Pandoc will then not try to
6138 incorporate its content when `--self-contained` is used. This is
6139 similar to a feature already supported by the EPUB writer.
6141 * Allow `--extract-media` to work with non-binary input formats
6142 (#1583, #2289). If `--extract-media` is supplied with a non-binary
6143 input format, pandoc will attempt to extract the contents of all
6144 linked images, whether in local files, data: uris, or external uris.
6145 They will be named based on the sha1 hash of the contents.
6147 * Make `papersize: a4` work regardless of the case of `a4`.
6148 It is converted to `a4` in LaTeX and `A4` in ConTeXt.
6150 * Make `east_asian_line_breaks` affect all readers/writers (#3703).
6152 * Underlined elements are now treated consistently by readers
6153 (#2270, hftf); they are always put in a Span with class `underline`.
6154 This allows the user to treat them differently from other emphasis,
6155 using a filter. Docx, Org, Textile, Txt2Tags, and HTML readers
6158 * Improved behavior of `auto_identifiers` when there are explicit ids
6159 (#1745). Previously only autogenerated ids were added to the list
6160 of header identifiers in state, so explicit ids weren't taken
6161 into account when generating unique identifiers. Duplicated
6162 identifiers could result. This simple fix ensures that explicitly given
6163 identifiers are also taken into account.
6165 * Use `table-of-contents` for contents of toc, make `toc` a boolean
6166 (#2872). Changed markdown, rtf, and HTML-based templates accordingly.
6167 This allows you to set `toc: true` in the metadata; this
6168 previously produced strange results in some output formats.
6169 For backwards compatibility, `toc` is still set to the
6170 toc contents. But it is recommended that you update templates
6171 to use `table-of-contents` for the toc contents and `toc`
6174 * Change behavior with binary format output to stdout.
6175 Previously, for binary formats, output to stdout was disabled
6176 unless we could detect that the output was being piped (and not
6177 sent to the terminal). Unfortunately, such detection is not
6178 possible on Windows, leaving windows users no way to pipe binary
6179 output. So we have changed the behavior in the following way:
6181 + Output to stdout is allowed when it can be determined that
6182 the output is being piped (on non-Windows platforms).
6183 + If the `-o` option is not used, binary output is never sent
6184 to stdout by default; instead, an error is raised.
6185 + If `-o -` is used, binary output is sent to stdout, regardless
6186 of whether it is being piped. This works on Windows too.
6188 * Better error behavior: uses of `error` have been replaced by
6189 raising of `PandocError`, which can be trapped and handled by the
6192 * Removed `hard_line_breaks` extension from `markdown_github` (#3594).
6193 GitHub has two Markdown modes, one for long-form documents like READMEs
6194 and one for short things like issue coments. In issue comments, a line
6195 break is treated as a hard line break. In README, wikis, etc., it is
6196 treated as a space as in regular Markdown. Since pandoc is more likely to
6197 be used to convert long-form documents from GitHub Markdown,
6198 `-hard_line_breaks` is a better default.
6200 * Include `backtick_code_blocks` extension in `mardkown_mmd` (#3637).
6202 * Escape `MetaString` values (as added with `-M/--metadata` flag) (#3792).
6203 Previously they would be transmitted to the template without any
6204 escaping. Note that `--M title='*foo*'` yields a different result from
6210 In the latter case, we have emphasis; in the former case, just
6211 a string with literal asterisks (which will be escaped
6212 in formats, like Markdown, that require it).
6214 * Allow `em`, `cm`, `in` for image height/width in HTML, LaTeX (#3450).
6216 * HTML writer: Insert `data-` in front of unsupported attributes. Thus,
6217 a span with attribute `foo` gets written to HTML5 with `data-foo`, so
6218 it is valid HTML5. HTML4 is not affected. This will allow us to use
6219 custom attributes in pandoc without producing invalid HTML. (With help
6220 from Wandmalfarbe, #3817.)
6222 * Plain writer: improved super/subscript rendering. We now
6223 handle more non-digit characters for which there are
6224 sub/superscripted unicode characters. When unicode
6225 sub/superscripted characters are not available, we use
6226 `_(..)` or `^(..)` (#3518).
6228 * Docbook, JATS, TEI writers: print INFO message when omitting interior
6229 header (#3750). This only applies to section headers inside list items,
6230 e.g., which were otherwise silently omitted.
6232 * Change to `--reference-links` in Markdown writer (#3701). With
6233 `--reference-location` of `section` or `block`, pandoc will now repeat
6234 references that have been used in earlier sections. The Markdown
6235 reader has also been modified, so that *exactly* repeated references
6236 do not generate a warning, only references with the same label but
6237 different targets. The idea is that, with references after every block,
6238 one might want to repeat references sometimes.
6240 * ODT/OpenDocument writer:
6242 + Support `lang` attribute (#1667).
6243 + Added support for `--toc` (#2836). Thanks to @anayrat.
6247 + `lang` meta, see #1667 (Mauro Bieg, #3515).
6248 + Change `FigureWithCaption` to `CaptionedFigure` (iandol, #3658).
6249 + Use `Table` rather than `Table Normal` for table style (#3275).
6250 `Table Normal` is the default table style and can't be modified.
6251 + Pass through comments (#2994). We assume that comments are defined as
6252 parsed by the docx reader:
6254 I want <span class="comment-start" id="0" author="Jesse Rosenthal"
6255 date="2016-05-09T16:13:00Z">I left a comment.</span>some text to
6256 have a comment <span class="comment-end" id="0"></span>on it.
6258 We assume also that the id attributes are unique and properly
6259 matched between comment-start and comment-end.
6260 + Bookmark improvements. Bookmark start/end now surrounds content rather
6261 than preceding it. Bookmarks generated for Div with id
6262 (jgm/pandoc-citeproc#205).
6263 + Add `keywords` metadata to docx document properties (Ian).
6265 * RST writer: support unknown interpreted text roles by
6266 parsing them as `Span` with `role` attributes (#3407). This
6267 way they can be manipulated in the AST.
6271 + Line block: Use class instead of style attribute (#1623). We now
6272 issue `<div class="line-block">` and include a default definition
6273 for `line-block` in the default templates, instead of hard-coding a
6275 + Add class `footnoteBack` to footnote back references (Timm Albers).
6276 This allows for easier CSS styling.
6277 + Render SmallCaps as span with smallcaps class (#1592), rather than
6278 using a style attribute directly. This gives the user more flexibility
6279 in styling small caps in CSS.
6280 + With reveal.js we use `data-src` instead of `src` for images for
6282 + Special-case `.stretch` class for images in reveal.js (#1291).
6283 Now in reveal.js, an image with class `stretch` in a paragraph
6284 by itself will stretch to fill the whole screen, with no
6285 caption or figure environment.
6287 * Added warnings for non-rendered blocks to writers.
6289 * Writers now raise an error on template failure.
6291 * When creating a PDF via LaTeX, warn if the font is missing some
6294 * Remove initial check for PDF-creating program (#3819).
6295 Instead, just try running it and raise the exception if it
6296 isn't found at that point. This improves things for users of Cygwin
6297 on Windows, where the executable won't be found by `findExecutable`
6298 unless `.exe` is added. The same exception is raised as before, but
6301 * Readers issue warning for duplicate header identifiers (#1745).
6302 Autogenerated header identifiers are given suffixes so as not to clash
6303 with previously used header identifiers. But they may still coincide with
6304 an explicit identifier that is given for a header later in the document,
6305 or with an identifier on a div, span, link, or image. We now issue
6306 a warning in this case, so users can supply an explicit identifier.
6308 * CommonMark reader now supports `emoji`, `hard_line_breaks`, `smart`,
6309 and `raw_html` extensions.
6313 + Don't allow backslash + newline to affect block structure (#3730).
6314 Note that as a result of this change, the following, which formerly
6315 produced a header with two lines separated by a line break, will
6316 now produce a header followed by a paragraph:
6321 This may affect some existing documents that relied on
6322 this undocumented and unintended behavior. This change makes pandoc
6323 more consistent with other Markdown implementations, and with itself
6324 (since the two-space version of a line break doesn't work inside ATX
6325 headers, and neither version works inside Setext headers).
6328 * Org reader (Albert Krewinkel, unless noted):
6330 + Support `table.el` tables (#3314).
6331 + Support macros (#3401).
6332 + Support the `#+INCLUDE:` file inclusion mechanism (#3510).
6333 Recognized include types are `example`, `export`, `src`, and
6334 normal org file inclusion. Advanced features like line numbers
6335 and level selection are not implemented yet.
6336 + Interpret more meta value as inlines. The values of the following
6337 meta variables are now interpreted using org-markup instead of
6338 treating them as pure strings: `keywords` (comma-separated list of
6339 inlines), `subtitle` (inline values), `nocite` (inline values, can
6341 + Support `\n` export option (#3940). This turns all newlines in the
6342 text into hard linebreaks.
6346 + Improved admonition support (#223). We no longer add an
6347 `admonition` class, we just use the class for the type of admonition,
6348 `note` for example. We put the word corresponding to the label in
6349 a paragraph inside a `Div` at the beginning of the admonition with
6350 class `admonition-title`. This is about as close as we can get to
6352 + Initial support of `.. table` directive. This allows adding captions
6354 + Support `.. line-block` directive. This is deprecated but may still
6355 be in older documents.
6356 + Support scale and align attributes of images (#2662).
6357 + Implemented implicit internal header links (#3475).
6358 + Support RST-style citations (#853). The citations appear at the end
6359 of the document as a definition list in a special div with id
6360 `citations`. Citations link to the definitions.
6361 + Recurse into bodies of unknown directives (#3432).
6362 In most cases it's better to preserve the content than
6363 to emit it. This isn't guaranteed to have good results;
6364 it will fail spectacularly for unknown raw or verbatim directives.
6365 + Handle chained link definitions (#262). For example,
6368 .. _goodbye: example.com
6370 Here both `hello` and `goodbye` should link to `example.com`.
6371 + Support anchors (#262). E.g.
6379 This is supported by putting "paragraph" in a `Div` with id `hello`.
6380 + Support `:widths:` attribute for table directive.
6381 + Implement csv-table directive (#3533). Most attributes are supported,
6382 including `:file:` and `:url:`.
6383 + Support unknown interpreted text roles by parsing them as Span
6384 with "role" attributes (#3407). This way they can be manipulated in
6387 * HTML reader: parse a span with class `smallcaps` as `SmallCaps`.
6391 + Implemented `\graphicspath` (#736).
6392 + Properly handle column prefixes/suffixes. For example, in
6393 `\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}`
6394 each cell will be interpreted as if it has a `$`
6395 before its content and a `$` after (math mode).
6396 + Handle komascript `\dedication` (#1845). It now adds a
6397 `dedication` field to metadata. It is up to the user to supply
6398 a template that uses this variable.
6399 + Support all `\textXX` commands, where XX = `rm`, `tt`, `up`, `md`,
6400 `sf`, `bf` (#3488). Spans with a class are used when there is
6402 + Expand `\newenvironment` macros (#987).
6403 + Add support for LaTeX subfiles package (Marc Schreiber, #3530).
6404 + Better support for subfigure package (#3577).
6405 A figure with two subfigures turns into two pandoc
6406 figures; the subcaptions are used and the main caption
6407 ignored, unless there are no subcaptions.
6408 + Add support for `\vdots` (Marc Schreiber, #3607).
6409 + Add basic support for hyphenat package (Marc Schreiber, #3603).
6410 + Add basic `\textcolor` support (Marc Schreiber).
6411 + Add support for `tabularx` environment (Marc Schreiber, #3632).
6412 + Better handling of comments inside math environments (#3113).
6413 This solves a problem with commented out `\end{eqnarray}` inside
6414 an eqnarray (among other things).
6415 + Parse tikzpicture as raw verbatim environment if `raw_tex` extension
6416 is selected (#3692). Otherwise skip with a warning. This is better
6417 than trying to parse it as text!
6418 + Add `\colorbox` support (Marc Schreiber).
6419 + Set identifiers on Spans used for `\label`.
6420 + Have `\setmainlanguage` set `lang` in metadata.
6421 + Support etoolbox's `\ifstrequal`.
6422 + Support `plainbreak`, `fancybreak` et al from the memoir class
6423 (bucklereed, #3833).
6424 + Support `\let`. Also, fix regular macros so they're expanded at the
6425 point of use, and NOT also the point of definition. `\let` macros,
6426 by contrast, are expanded at the point of definition. Added an
6427 `ExpansionPoint` field to `Macro` to track this difference.
6428 + Support simple `\def` macros. Note that we still don't support
6429 macros with fancy parameter delimiters, like `\def\foo#1..#2{...}`.
6430 + Support `\chaptername`, `\partname`, `\abstractname`, etc. (#3559,
6432 + Put content of `\ref`, `\label`, `\eqref` commands into `Span` with
6433 attributes, so they can be handled in filters (Marc Schreiber, #3639)
6434 + Add Support for `glossaries` and `acronym` package (Marc Schreiber,
6435 #3589). Acronyms are not resolved by the reader, but acronym and
6436 glossary information is put into attributes on Spans so that they
6437 can be processed in filters.
6438 + Use `Link` instead of `Span` for `\ref`. This makes more sense
6439 semantically and avoids unnecessary `Span [Link]` nestings when
6440 references are resolved.
6441 + Rudimentary support for `\hyperlink`.
6442 + Support `\textquoteleft|right`, `\textquotedblleft|right` (#3849).
6443 + Support `\lq`, `\rq`.
6444 + Implement `\newtoggle`, `\iftoggle`, `\toggletrue|false` from etoolbox
6446 + Support `\RN` and `\Rn`, from biblatex (bucklereed, #3854).
6447 + Improved support for `\hyperlink`, `\hypertarget` (#2549).
6448 + Support `\k` ogonek accent.
6449 + Improve handling of accents. Handle ogonek, and fall back correctly
6450 with forms like `\"{}`.
6451 + Better support for ogonek accents.
6452 + Support for `\faCheck` and `\faClose` (Marc Schreiber, #3727).
6453 + Support for `xspace` (Marc Schreiber, #3797).
6454 + Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia)
6456 + Better handling of `\part` in LaTeX (#1905). Now we parse chapters as
6457 level 0 headers, and parts as level -1 headers. After parsing, we
6458 check for the lowest header level, and if it's less than 1 we bump
6459 everything up so that 1 is the lowest header level. So `\part` will
6460 always produce a header; no command-line options are needed.
6461 + Add block version of `\textcolor` (Marc Schreiber).
6462 + `\textcolor` works as inline and block command (Marc Schreiber).
6463 + `\textcolor` will be parse as span at the beginning of a paragraph
6465 + Read polyglossia/babel `\text(LANG){...}` (bucklereed)
6466 + Improved handling of include files in LaTeX reader (#3971).
6467 Previously `\include` wouldn't work if the included file
6468 contained, e.g., a begin without a matching end.
6469 + Support `\expandafter` (#3983).
6470 + Handle `\DeclareRobustCommand` (#3983). Currently it's just treated
6471 as a synonym for `\newcommand`.
6472 + Handle `\lettrine` (Mauro Bieg).
6474 * Math improvements due to updates in texmath:
6476 + Improved handling of accents and upper/lower delimiters.
6477 + Support for output in GNU eqn format (used with *roff).
6478 + Allow `\boldsymbol` + a token without braces, and similarly
6479 with other styling commands.
6480 + Improve parsing of `\mathop` to allow multi-character operator names.
6481 + Add thin space after math operators when "faking it with
6484 * `walk` is now used instead of `bottomUp` in the `ToJSONFilter`
6485 instance for `a -> [a]` (pandoc-types). Note that behavior
6486 will be slightly different, since `bottomUp`'s treatment of
6487 a function `[a] -> [a]` is to apply it to each sublist of a
6488 list, while walk applies it only to maximal sublists.
6489 Usually the latter behavior is what is wanted, and the
6490 former can be simulated when needed. But there may be
6491 existing filters that need to be rewritten in light of the
6492 new behavior. Performance should be improved.
6494 * There are some changes to syntax highlighting due to revisions
6495 in the `skylighting` library:
6497 + Support for `powershell` has been added, and many syntax
6498 definitions have been updated.
6499 + Background colors have been added to the `kate` style.
6500 + The way highlighted code blocks are formatted in HTML has
6501 been changed (David Baynard), in ways that may require
6502 changes in hard-coded CSS affecting highlighting.
6503 (If you haven't included hard-coded highlighting CSS in
6504 your template, you needn't change anything.)
6509 * New module `Text.Pandoc.Class` (Jesse Rosenthal, John MacFarlane).
6510 This contains definitions of the `PandocMonad` typeclass, the
6511 `PandocIO` and `PandocPure` monads, and associated functions.
6513 * Changed types of all writers and readers.
6515 + We now use `Text` instead of `String` in the interface (#3731).
6516 (We have not yet changed the internals of most readers to work
6517 with `Text`, but making this change in the API now opens up a
6518 path to doing that.)
6519 + The result is now of form `m a` with constraint `PandocMonad m`.
6520 Readers and writers can be combined to form monadic values which
6521 can be run using either `runIO` or `runPure`. If `runIO` is used,
6522 then both readers and writers will be able to do IO when needed
6523 (for include files, for example); if `runPure` is used,
6524 then the functions are pure and will not touch IO.
6525 + Where previously you used
6526 `writeRST def (readMarkdown def "[foo](url)")`, now you
6528 `runPure $ readMarkdown def (pack "[foo](url)") >>= writeRST def`.
6530 * New module `Text.Pandoc.Readers` (Albert Krewinkel). This
6531 contains reader helper functions formerly defined in the
6532 top-level `Text.Pandoc` module.
6534 + Changed `StringReader` -> `TextReader`.
6535 + `getReader` now returns a pair of a reader and
6536 `Extensions`, instead of building the extensions into the
6537 reader (#3659). The calling code must explicitly set
6538 `readerExtensions` using the `Extensions` returned. The
6539 point of the change is to make it possible for the calling
6540 code to determine what extensions are being used.
6542 * New module `Text.Pandoc.Writers` (Albert Krewinkel).
6543 This contains writer helper functions formerly defined in the
6544 top-level `Text.Pandoc` module.
6546 + Changed `StringWriter` -> `TextWriter`.
6547 + `getWriter` now retuns a pair of a reader and
6548 `Extensions`, instead of building the extensions into the
6549 reader (#3659). The calling code must explicitly set
6550 `readerExtensions` using the `Extensions` returned. The
6551 point of the change is to make it possible for the calling
6552 code to determine what extensions are being used.
6554 * New module `Text.Pandoc.Lua`, exporting `runLuaFilter` (Albert Krewinkel,
6557 * New module `Text.Pandoc.App`. This abstracts out the functionality
6558 of the command line program (`convertWithOpts`), so it can be reproduced
6559 e.g. in a desktop or web application. Instead of exiting, we throw errors
6560 (#3548), which are caught (leading to exit) in pandoc.hs, but allow other
6561 users of `Text.Pandoc.App` to recover. `pandoc.hs` is now a 2-liner.
6562 The module also exports some utility functions for parsing options
6563 and running filters.
6565 * New module `Text.Pandoc.Logging` (exported module) (#3392).
6566 This now contains the `Verbosity` definition previously in
6567 `Text.Pandoc.Options`, as well as a new `LogMessage` datatype that will
6568 eventually be used instead of raw strings for warnings. This will enable
6569 us, among other things, to provide machine-readable warnings if desired.
6570 Include ToJSON instance and showLogMessage. This gives us the possibility
6571 of both machine-readable and human-readable output for log messages.
6573 * New module `Text.Pandoc.BCP47`, with `getLang`, `Lang(..)`, `parseBCP47`.
6575 * New module `Text.Pandoc.Translations`, exporting `Term`,
6576 `Translations`, `readTranslations`.
6578 * New module `Text.Pandoc.Readers.LaTeX.Types', exporting `Macro`, `Tok`,
6579 `TokType`, `Line`, `Column`.
6581 * `Text.Pandoc.Error`: added many new constructors for `PandocError`.
6583 * Expose some previously private modules (#3260). These are often
6584 helpful to people writing their own reader or writer modules:
6586 + `Text.Pandoc.Writers.Shared`
6587 + `Text.Pandoc.Parsing`
6588 + `Text.Pandoc.Asciify`
6589 + `Text.Pandoc.Emoji`
6590 + `Text.Pandoc.ImageSize`
6591 + `Text.Pandoc.Highlighting`
6593 * New module `Text.Pandoc.Extensions` (Albert Krewinkel):
6594 Extension parsing and processing functions were defined in the top-level
6595 `Text.Pandoc` module. These functions are moved to the Extensions
6596 submodule as to enable reuse in other submodules.
6598 * Add `Ext_raw_attribute` constructor for `Extension`.
6600 * Add `Ext_fenced_divs` constructor for `Extension'.
6602 * Add `Ext_four_space_rule` constructor in `Extension`.
6604 * Add `Ext_gfm_auto_identifiers` constructor for `Extension`.
6606 * Add `Monoid` instance for `Extensions`.
6608 * Add `Text.Pandoc.Writers.Ms`, exporting `writeMs`.
6610 * Add `Text.Pandoc.Writers.JATS`, exporting `writeJATS`.
6612 * Add `Text.Pandoc.Writers.Muse`, exporting `writeMuse`.
6614 * Add `Text.Pandoc.Readers.Muse`, exporting `readMuse`.
6616 * Add `Text.Pandoc.Readers.TikiWiki`, exporting `readTikiWiki`.
6618 * Add `Text.Pandoc.Readers.Vimwiki`, exporting `readVimwiki`.
6620 * Add `Text.Pandoc.Readers.Creole`, exporting `readCreole`.
6622 * Export `setVerbosity` from `Text.Pandoc`.
6624 * `Text.Pandoc.Pretty`: Add `Eq` instance for `Doc`.
6626 * `Text.Pandoc.XML`: `toEntities`: changed type to `Text -> Text`.
6628 * `Text.Pandoc.UTF8`:
6630 + Export `fromText`, `fromTextLazy`, `toText`, `toTextLazy`.
6631 Define `toString`, `toStringLazy` in terms of them.
6632 + Add new functions parameterized on `Newline`: `writeFileWith`,
6633 `putStrWith`, `putStrLnWith`, `hPutStrWith`, `hPutStrLnWith`.
6635 * `Text.Pandoc.MediaBag`: removed `extractMediaBag`.
6637 * `Text.Pandoc.Highlighting`:
6639 + `highlighting` now returns an Either rather than Maybe.
6640 This allows us to display error information returned by the skylighting
6641 library. Display a warning if the highlighting library throws an error.
6642 + Add parameter for `SyntaxMap` to `highlight`.
6644 * `Text.Pandoc.Writers.Math`:
6646 + Export `defaultMathJaxURL`, `defaultKaTeXURL`. This will ensure that
6647 we only need to update these in one place.
6649 * `Text.Pandoc.SelfContained`:
6651 + Removed `WriterOptions` parameter from `makeSelfContained`.
6652 + Put `makeSelfContained` in PandocMonad instead of IO. This removes
6653 the need to pass MediaBag around and improves exceptions. It also
6654 opens up the possibility of using makeSelfContained purely.
6655 + Export `makeDataURI`.
6657 * `Text.Pandoc.ImageSize`:
6659 + Export `lengthToDim`, new function `scaleDimension`.
6660 + Export `inEm` from ImageSize (#3450).
6661 + Change `showFl` and `show` instance for `Dimension` so
6662 extra decimal places are omitted.
6663 + Added `Em` as a constructor of `Dimension`.
6664 + Add `WriterOptions` parameter to `imageSize` signature (Mauro Bieg).
6666 * `Text.Pandoc.Templates`:
6668 + Change type of `renderTemplate'`. Now it runs in `PandocMonad`
6669 and raises a proper `PandocTemplateError` if there are problems, rather
6670 than failing with uncatchable `error`.
6671 + Change signature of `getDefaultTemplate`. Now it runs in any instance
6672 of `PandocMonad`, and returns a `String` rather than an `Either` value.
6673 And it no longer takes a `datadir` parameter, since this can be
6674 retrieved from `CommonState`.
6676 * `Text.Pandoc.Options`:
6678 + Added `writerEpubSubdirectory` to `WriterOptions` (#3720).
6679 The EPUB writer now takes its EPUB subdirectory from this option.
6680 + In `WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine`
6681 and `writerLaTeXArgs` to `writerPdfArgs` (Mauro Bieg, #3909).
6682 + Add `writerSyntaxMap` to `WriterOptions`.
6683 + Removed `writerEpubStylesheet` from `WriterOptions`.
6684 + Remove `writerUserDataDir` from `WriterOptions`. It is now carried
6685 in `CommonState` in `PandocMonad` instances. (And thus it can be used
6687 + Changed `writerEpubMetadata` to a `Maybe String`.
6688 + Removed `readerApplyMacros` from `ReaderOptions`. Now we just check
6689 the `latex_macros` reader extension.
6690 + FromJSON/ToJSON instances for `ReaderOptions`.
6691 + In `HTMLMathMethod`, the `KaTeX` contsructor now takes only
6692 one string (for the KaTeX base URL), rather than two.
6693 + Removed `writerSourceURL` from `WriterOptions`. We now use
6694 `stSourceURL` in `CommonState`, which is set by `setInputFiles`.
6696 * `Text.Pandoc.Shared`:
6698 + `tabFilter` now takes a `Text`, not `String`.
6699 + `openURL`: Changed type from an Either. Now it will just raise
6700 an exception to be trapped later.
6701 + Remove `normalizeSpaces` (#1530).
6702 + Remove `warn`. (Use `report` from `Text.Pandoc.Class` instead.)
6703 + Export a new function `crFilter`.
6704 + Add `eastAsianLineBreakFilter` (previously in Markdown reader).
6705 + Provide custom `isURI` that rejects unknown schemes.
6706 (Albert Krewinkel, #2713). We also export the set of known
6707 `schemes`. The new function replaces the function of the same name
6708 from `Network.URI`, as the latter did not check whether a scheme is
6709 well-known. All official IANA schemes (as of 2017-05-22) are
6710 included in the set of known schemes. The four non-official schemes
6711 `doi`, `isbn`, `javascript`, and `pmid` are kept.
6713 + Remove `readDataFile`, `readDefaultDataFile`, `getReferenceDocx`,
6714 `getReferenceODT`. These now live in `Text.Pandoc.Class`,
6715 where they are defined in terms of `PandocMonad`
6716 primitives and have different signatures.
6717 + Remove `openURL`. Use `openURL` from `Text.Pandoc.Class` instead.
6718 + Add `underlineSpan`.
6720 * `Text.Pandoc.Readers.HTML`: export new `NamedTag` class.
6722 * `Text.Pandoc.Readers.Markdown`: remove `readDocxWithWarnings`.
6723 With the new API one can simply use `getLog` after running
6726 * `Text.Pandoc.Readers.LaTeX`: Changed types for `rawLaTeXInline`
6727 and `rawLaTeXBlock`. (Both now return a `String`, and they are
6728 polymorphic in state.)
6731### Bug fixes and under-the-hood improvements
6733 * TEI writer: Added identifiers on `<div>` elements.
6735 * DokuWiki reader: Better handling for code block in list item (#3824).
6737 * Custom writer: Remove old preprocesesor conditionals (Albert Krewinkel).
6739 * ZimWiki writer: Removed internal formatting from note and table cells,
6740 because ZimWiki does not support it (Alex Ivkin, #3446).
6744 + Updated list of syntax highlighting languages (#3461).
6745 Now `r` gets you `<source>` rather than `<code>` (among others).
6746 + Add display attribute on `<math>` tags (#3452). This allows display
6747 math to be rendered properly.
6748 + Remove newline before `</ref>` (#2652).
6749 + Don't softbreak lines inside list items (#3531).
6753 + Reduce to two spaces after bullets (#3417, Albert Krewinkel).
6754 + Add unit tests (Alexander Krotov).
6755 + Stop using raw HTML to wrap divs (Albert Krewinkel, #3771).
6756 + Do not strip `#` from Org anchor links (Alexander Krotov).
6758 * CommonMark writer:
6760 + Avoid excess blank lines at end of output.
6761 + Prefer pipe tables to HTML tables even if it means losing relative
6762 column width information (#3734).
6763 + Support table, strikethrough extensions, when enabled (as with gfm).
6764 Note that we bypass the commonmark writer from cmark and construct our
6765 own pipe tables, with better results.
6766 + Properly support `--wrap=none`.
6767 + Use smallcaps class for `SmallCaps` (#1592).
6768 + Omit "fig:" prefix in image titles. This is used internally to
6769 indicate internal figures.
6773 + Properly handle table captions.
6774 + Don't wrap lines in in definition list terms. Wrapping is not allowed.
6775 + Implemented `+/-smart` and improved escaping with `+smart`.
6776 + Add empty comments when needed to avoid including a blockquote
6777 in the indented content of a preceding block (#3675).
6778 + Improve grid table output, fix bug with empty rows (#3516).
6779 Uses the new `gridTable` in Writers.Shared, which is here
6780 improved to better handle 0-width cells.
6781 + Remove space at beginning/end of RST code span (#3496). Otherwise
6782 we get invalid RST. There seems to be no way to escape the space.
6783 + Add header anchors when header has non-standard id (#3937).
6784 + Correctly handle inline code containing backticks, using a `:literal:`
6786 + Don't backslash-escape word-internal punctuation (#3978).
6790 + Don't include variables in metadata blocks. Previously variables set
6791 on the command line were included in e.g. YAML metadata, contrary to
6792 documentation and intentions.
6793 + Improved escaping with `+smart`.
6794 + Fixed grid tables embedded in grid tables (#2834).
6795 + Use span with class 'smallcaps' for SmallCaps, instead of a style
6796 attribute as before (#1592).
6797 + Escape initial `%` in a paragraph if the `pandoc_title_blocks`
6798 extension is enabled (#3454). Otherwise in a document starting with
6799 a literal `%` the first line is wrongly interpreted as a title.
6800 + Fixed false ordered lists in YAML metadata (#3492, #1685). Now we
6801 properly escape things that would otherwise start ordered lists,
6807 + Better handling of tables with empty columns (#3337). We now
6808 calculate the number of columns based on the longest row (or the
6809 length of aligns or widths).
6810 + Escape unordered list markers at beginning of paragraph (#3497), to
6811 avoid false interpretation as a list.
6812 + Escape `|` appropriately.
6813 + Ensure space before list at top level (#3487).
6814 + Avoid spurious blanklines at end of document after tables and list,
6816 + Fixed bugs in simple/multiline list output (#3384).
6817 Previously we got overlong lists with `--wrap=none`. This is fixed.
6818 Previously a multiline list could become a simple list (and would
6819 always become one with `--wrap=none`).
6820 + Don't emit a simple table if `simple_tables` disabled (#3529).
6821 + Case-insensitive reference links (David A Roberts, #3616).
6822 Ensure that we do not generate reference links whose labels differ only
6823 by case. Also allow implicit reference links when the link
6824 text and label are identical up to case.
6825 + Put space before reference link definitions (Mauro Bieg, #3630).
6826 + Better escaping for links (David A. Roberts, #3619). Previously the
6827 Markdown writer would sometimes create links where there were none
6828 in the source. This is now avoided by selectively escaping bracket
6829 characters when they occur in a place where a link might be created.
6830 + Added missing `\n` (David A. Roberts, #3647).
6831 + Fixed duplicated reference links with `--reference-links`
6832 and `--reference-location=section` (#3674). Also ensure that there
6833 are no empty link references `[]`.
6834 + Avoid inline surround-marking with empty content (#3715).
6835 E.g. we don't want `<strong></strong>` to become `****`.
6836 Similarly for emphasis, super/subscript, strikeout.
6837 + Don't allow soft break in header (#3736).
6838 + Make sure `plain`, `markdown_github`, etc. work for raw.
6839 Previously only `markdown` worked. Note: currently a raw block labeled
6840 `markdown_github` will be printed for any `markdown` format.
6841 + Ensure that `+` and `-` are escaped properly so they don't cause
6842 spurious lists (#3773). Previously they were only
6843 if succeeded by a space, not if they were at end of line.
6844 + Use pipe tables if `raw_html` disabled and `pipe_tables` enabled,
6845 even if the table has relative width information (#3734).
6846 + Markdown writer: don't crash on `Str ""`.
6847 + Make `Span` with null attribute transparent. That is, we don't use
6848 brackets or `<span>` tags to mark spans when there are no attributes;
6849 we simply output the contents.
6850 + Escape pipe characters when `pipe_tables` enabled (#3887).
6851 + Better escaping of `<` and `>`. If `all_symbols_escapable` is set,
6852 we backslash escape these. Otherwise we use entities as before.
6853 + When writing plain, don't use ` ` to separate list and indented
6854 code. There's no need for it in this context, since this isn't to be
6855 interpreted using Markdown rules.
6856 + Preserve classes in JS obfuscated links (Timm Albers, #2989).
6857 HTML links containing classes originally now preserve them when using
6858 javascript email obfuscation.
6859 + Render `SmallCaps` as a native span when `native_spans` are enabled.
6860 + Always write attributes with `bracketed_spans` (d-dorazio).
6864 + Fix handling of nested font commands (#3568). Previously pandoc emitted
6865 incorrect markup for bold + italic, for example, or bold + code.
6866 + Avoid error for definition lists with no definitions (#3832).
6870 + Fix internal links with `writerIdentifierPrefix opt`
6871 (#3397, Mauro Bieg).
6875 + Don't include bookmarks on headers unless non-null id (#3476).
6876 + Support 9 levels of headers (#1642).
6877 + Allow 9 list levels (#3519).
6878 + Don't take `distArchive` from datadir (#3322). The docx writer takes
6879 components from the distribution's version of `reference.docx` when it
6880 can't find them in a user's custom `reference.docx`. Previously, we
6881 allowed a `reference.docx` in the data directory (e.g. `~/.pandoc`)
6882 to be used as the distribution's reference.docx. This led to a
6883 bizarre situation where pandoc would produce a good docx using
6884 `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to
6885 `~/.pandoc/reference.docx`, it would then produce a corrupted docx.
6886 + Fixed handling of soft hyphen (0173) (#3691).
6887 + Better handling of keywords (#3719).
6888 + Cleaner code for handling dir and style attributes for `Div`.
6889 + Use `Set` for dynamic styles to avoid duplicates.
6890 + Removed redundant element from data/docx/word/numbering.xml.
6891 The elements we need are generated when the document is
6892 compiled; this didn't do anything.
6893 + Activate `evenAndOddHeaders` from reference docx (#3901,
6894 Augustín Martín Barbero).
6896 * ODT/OpenDocument writer:
6898 + Calculate aspect ratio for percentage-sized images (Mauro Bieg, #3239).
6899 + Use more widely available bullet characters (#1400). The old
6900 characters weren't available in some font sets. These seem to work
6901 well on Windows and Linux versions of LibreOffice.
6902 + Wider labels for lists (#2421). This avoids overly narrow labels for
6903 ordered lists with `()` delimiters. However, arguably it creates
6904 overly wide labels for bullets. Also, lists now start flush with
6905 the margin, rather than indented.
6906 + Fixed dropped elements in some ordered lists (#2434).
6910 + Don't render `RawBlock` as code.
6911 + Don't fail with an error on interior headers (e.g. in list) (#3750).
6912 Instead, omit them with an INFO message.
6913 + Add support for "lang" metadata (Alexander Krotov, #3625).
6914 + Format `LineBlock` as poem (Alexander Krotov). Previously writer
6915 produced one paragraph with `<empty-line/>` elements, which are not
6916 allowed inside `<p>` according to FB2 schema.
6917 + Replace `concatMap` with `cMap` (Alexander Krotov).
6918 + Write FB2 lists without nesting blocks inside `<p>` (Alexander
6923 + Make sure `html4`, `html5` formats work for raw blocks/inlines.
6924 + Render raw inline environments when `--mathjax` used (#3816).
6925 We previously did this only with raw blocks, on the assumption
6926 that math environments would always be raw blocks. This has changed
6927 since we now parse them as inline environments.
6928 + Ensure we don't get two style attributes for width and height.
6929 + Report when not rendering raw inline/block.
6930 + Issue warning if no title specified and template used (#3473).
6931 + Info message if `lang` is unspecified (#3486).
6932 + Removed unused parameter in `dimensionsToAttributeList`.
6933 + Avoid two class attributes when adding `uri` class (#3716).
6934 + Fix internal links with `writerIdentifierPrefix opt` (#3397, Mauro
6936 + Use revealjs's math plugin for mathjax (#3743). This is a thin
6937 wrapper around mathjax that makes math look better on revealjs.
6938 + Slidy: use h1 for all slides, even if they were originally
6939 level 2 headers (#3566). Otherwise the built-in table of contents
6944 + Don't render LaTeX images with data: URIs (#3636). Note that
6945 `--extract-media` can be used when the input contains data: URIs.
6946 + Make highlighted code blocks work in footnotes (Timm Albers).
6947 + Don't use figure inside table cell (#3836).
6948 + Use proper code for list enumerators (#3891). This should fix problems
6949 with lists that don't use arabic numerals.
6950 + Always add hypertarget when there's a non-empty identifier (#2719).
6951 Previously the hypertargets were only added when there was actually
6952 a link to that identifier.
6953 + Use `%` after hypertarget before code block.
6954 + Add `\leavevmode` before hypertarget at start of paragraph (#2704,
6955 fixes formatting problems in beamer citations).
6956 + Don't use `lstinline` in `\item[..]` (#645). If you do, the contents
6957 of item disappear or are misplaced. Use `\texttt` instead.
6958 + Fix problem with escaping in `lstinline` (#1629). Previously the
6959 LaTeX writer created invalid LaTeX when `--listings` was specified and
6960 a code span occurred inside emphasis or another construction.
6961 + Fix error with line breaks after empty content (#2874). LaTeX
6962 requires something before a line break, so we insert a `~` if no
6963 printable content has yet been emitted.
6965 + Fixed detection of otherlangs (#3770). We weren't recursing into
6967 + Handle language in inline code with `--listings` (#3422).
6968 + Write euro symbol directly in LaTeX (Andrew Dunning, #3801).
6969 The textcomp package allows pdfLaTeX to parse `€` directly, making the
6970 `\euro` command unneeded.
6971 + Fixed footnotes in table captions (#2378). Note that if the table has
6972 a first page header and a continuation page header, the notes will
6973 appear only on the first occurrence of the header.
6974 + In `writeBeamer` output, allow hyperlinks to frames (#3220).
6975 Previously you could link to a header above or below slide level but
6976 not *to* slide level. This commit changes that. Hypertargets are
6977 inserted inside frame titles; technically the reference is to just
6978 after the title, but in normal use (where slides are viewed full
6979 screen in a slide show), this does not matter.
6980 + Remove `\strut` at beginning of table cells (#3436). This fixes a
6981 problem with alignment of lists in table cells. The `\strut` at the
6982 end seems to be enough to avoid the too-close spacing that motivated
6983 addition of the strut in #1573.
6984 + Add partial siunitx Support (Marc Schreiber, #3588).
6988 + Refactored to use BCP47 module.
6989 + Remove unnecessary `$` (Alexander Krotov, #3482).
6990 + Use header identifiers for chapters (#3968).
6994 + `title_page.xhtml` is now put in `text/`.
6995 + Don't strip formatting in TOC (#1611).
6999 + Fix bug for certain links in table cells (#3667).
7000 + Allow 'pre' code in list item (#3916).
7004 + Added warnings for ignored material (#3392).
7005 + Better sanity checks to avoid parsing unintended things as
7006 raw HTML in the Markdown reader (#3257).
7007 + Revise treatment of `li` with `id` attribute (#3596). Previously we
7008 always added an empty div before the list item, but this created
7009 problems with spacing in tight lists. Now we do this: If the list
7010 item contents begin with a `Plain` block, we modify the `Plain`
7011 block by adding a `Span` around its contents. Otherwise, we add a
7012 `Div` around the contents of the list item (instead of adding an
7013 empty `Div` to the beginning, as before).
7014 + Add `details` tag to list of block tags (#3694).
7015 + Removed `button` from block tag list (#3717). It is already in the
7016 `eitherBlockOrInlineTag` list, and should be both places.
7017 + Use `Set`s instead of lists for block tag lookup.
7018 + Rewrote to use `Text` throughout. Effect on memory usage is modest
7020 + Use the lang value of `<html>` to set the lang meta value (bucklereed,
7022 + Ensure that paragraphs are closed properly when the parent block
7023 element closes, even without `</p>` (#3794).
7024 + Parse `<figure>` and `<figcaption>` (Mauro Bieg, #3813).
7025 + Parse `<main>` like `<div role=main>` (bucklereed, #3791).
7026 `<main>` closes `<p>` and behaves like a block element generally
7027 + Support column alignments (#1881). These can be set either
7028 with a `width` attribute or with `text-width` in a `style` attribute.
7029 + Modified state type to be an instance of `HasLogMessages`, so
7030 `registerHeader` can issue warnings.
7031 + `</td>` or `</th>` should close any open block tag (#3991).
7032 + `<td>` should close an open `<th>` or `<td>`.
7033 + `htmlTag` improvements (#3989). We previously failed on cases
7034 where an attribute contained a `>` character. This patch fixes the
7035 bug, which especially affects raw HTML in Markdown.
7039 + Newline is not indentation (Alexander Krotov).
7043 + Allow extra hyphens after `|-` in tables (#2649).
7044 + Allow blank line after table start (#2649).
7045 + Fixed more table issues (#2649).
7046 + Ensure that list starts begin at left margin (#2606). Including when
7047 they're in tables or other list items.
7048 + Make smart double quotes depend on `smart` extension (#3585).
7049 + Don't do curly quotes inside `<tt>` contexts (#3585). Even if `+smart`.
7050 + Modified state type to be an instance of `HasLogMessages`, so
7051 `registerHeader` can issue warnings.
7053 * TWiki reader (Alexander Krotov):
7055 + Remove unnecessary `$` (#3597).
7056 + Simplify `linkText` (#3605).
7060 + Minor refactoring, avoiding explicit MediaBag handling.
7061 This all works behind the scenes in CommonState plumbing.
7065 + Don't drop smartTag contents (#2242).
7066 + Handle local namespace declarations (#3365). Previously we didn't
7067 recognize math, for example, when the xmlns declaration occurred on
7068 the element and not the root.
7069 + More efficient trimSps (#1530). Replacing `trimLineBreaks`. This
7070 does the work of `normalizeSpaces` as well, so we avoid the need for
7072 + Avoid 0-level headers (Jesse Rosenthal, #3830). We used to parse
7073 paragraphs styled with "HeadingN" as "nth-level header." But if a
7074 document has a custom style named "Heading0", this will produce a
7075 0-level header, which shouldn't exist. We only parse this style
7076 if N>0. Otherwise we treat it as a normal style name, and
7077 follow its dependencies, if any.
7078 + Add tests for avoiding zero-level header (Jesse Rosenthal).
7082 + Replaced `collectRights` with Rights from `Data.Either`.
7083 + Remove dead code (Albert Krewinkel).
7085 * Org reader (Albert Krewinkel, unless noted).
7087 + Don't allow tables inside list items (John MacFarlane, #3499).
7088 + Disallow tables on list marker lines (#3499).
7089 + Convert markup at beginning of footnotes (John MacFarlane, #3576).
7090 + Allow emphasized text to be followed by `[` (#3577).
7091 + Handle line numbering switch for src blocks.
7092 The line-numbering switch that can be given to source blocks (`-n` with
7093 an start number as an optional parameter) is parsed and translated to a
7094 class/key-value combination used by highlighting and other readers and
7096 + Stop adding rundoc prefix to src params. Source block parameter names
7097 are no longer prefixed with `rundoc`. This was intended to simplify
7098 working with the rundoc project, a babel runner. However, the rundoc
7099 project is unmaintained, and adding those markers is not the reader's
7100 job anyway. The original language that is specified for a source
7101 element is now retained as the `data-org-language` attribute and only
7102 added if it differs from the translated language.
7103 + Allow multi-word arguments to src block params (#3477). The reader now
7104 correctly parses src block parameter list even if parameter arguments
7105 contain multiple words.
7106 + Avoid creating `nullMeta` by applying `setMeta` directly
7108 + Replace `sequence . map` with `mapM`.
7109 + Fix smart parsing behavior. Parsing of smart quotes and special
7110 characters can either be enabled via the `smart` language extension or
7111 the `'` and `-` export options. Smart parsing is active if either the
7112 extension or export option is enabled. Only smart parsing of special
7113 characters (like ellipses and en and em dashes) is enabled by default,
7114 while smart quotes are disabled. Previously, all smart parsing was
7115 disabled unless the language extension was enabled.
7116 + Subject full doc tree to headline transformations (Albert Krewinkel,
7117 #3695). Emacs parses org documents into a tree structure, which is
7118 then post-processed during exporting. The reader is changed to do the
7119 same, turning the document into a single tree of headlines starting
7121 + Fix cite parsing behaviour (Herwig Stuetz). Until now, `org-ref`
7122 cite keys included special characters also at the end. This caused
7123 problems when citations occur right before colons or at the end of
7124 a sentence. With this change, all non alphanumeric characters at
7125 the end of a cite key are ignored. This also adds `,` to the list
7126 of special characters that are legal in cite keys to better mirror
7127 the behaviour of org-export.
7128 + Fix module names in haddock comments. Copy-pasting had lead to
7129 haddock module descriptions containing the wrong module names.
7130 + Recognize babel result blocks with attributes (#3706). Babel
7131 result blocks can have block attributes like captions and names.
7132 Result blocks with attributes were not recognized and were parsed
7133 as normal blocks without attributes.
7134 + Include tags in headlines. The Emacs default is to include tags in the
7135 headline when exporting. Instead of just empty spans, which contain the
7136 tag name as attribute, tags are rendered as small caps and wrapped in
7137 those spans. Non-breaking spaces serve as separators for multiple tags.
7138 + Respect export option for tags (#3713). Tags are appended to
7139 headlines by default, but will be omitted when the `tags` export option
7141 + Use `tag-name` attribute instead of `data-tag-name`.
7142 + Use `org-language` attribute rather than `data-org-language`.
7143 + Modified state type to be an instance of `HasLogMessages`, so
7144 `registerHeader` can issue warnings.
7145 + End footnotes after two blank lines. Footnotes can not only be
7146 terminated by the start of a new footnote or a header, but also by two
7147 consecutive blank lines.
7148 + Update emphasis border chars (#3933). The org reader was updated to
7149 match current org-mode behavior: the set of characters which are
7150 acceptable to occur as the first or last character in an org emphasis
7151 have been changed and now allows all non-whitespace chars at the
7152 inner border of emphasized text (see `org-emphasis-regexp-components`).
7156 + Fixed small bug in list parsing (#3432). Previously the parser didn't
7157 handle properly this case:
7163 + Handle multiline cells in simple tables (#1166).
7164 + Parse list table directive (Keiichiro Shikano, #3432).
7165 + Make use of `anyLineNewline` (Alexander Krotov, #3686).
7166 + Use `anyLineNewline` in `rawListItem` (Alexander Krotov, #3702).
7167 + Reorganize block parsers for ~20% faster parsing.
7168 + Fixed `..include::` directive (#3880).
7169 + Handle blank lines correctly in line blocks (Alexander Krotov, #3881).
7170 Previously pandoc would sometimes combine two line blocks separated
7171 by blanks, and ignore trailing blank lines within the line block.
7172 + Fix indirect hyperlink targets (#512).
7176 + Allow attributes in reference links to start on next line (#3674).
7177 + Parse YAML metadata in a context that sees footnotes defined in
7178 the body of the document (#1279).
7179 + When splitting pipe table cells, skip tex math (#3481).
7180 You might have a `|` character inside math. (Or for that matter
7181 something that the parser might mistake for raw HTML.)
7182 + Treat span with class `smallcaps` as SmallCaps.
7183 This allows users to specify small caps in Markdown this way:
7184 `[my text]{.smallcaps}` (#1592).
7185 + Fixed internal header links (#2397).
7186 This patch also adds `shortcut_reference_links` to the list
7188 + Treat certain environments as inline
7189 when they occur without space surrounding them (#3309, #2171).
7190 E.g. equation, math. This avoids incorrect vertical space
7192 + Optimized `nonindentSpaces`. Makes the benchmark go from 40 to 36 ms.
7193 + Allow latex macro definitions indented 1-3 spaces.
7194 Previously they only worked if nonindented.
7195 + Improved parsing of indented raw HTML blocks (#1841).
7196 Previously we inadvertently interpreted indented HTML as
7197 code blocks. This was a regression. We now seek to determine the
7198 indentation level of the contents of an HTML block, and (optionally)
7199 skip that much indentation. As a side effect, indentation may be
7200 stripped off of raw HTML blocks, if `markdown_in_html_blocks` is
7201 used. This is better than having things interpreted as indented
7203 + Fixed smart quotes after emphasis (#2228). E.g. in `*foo*'s 'foo'`.
7204 + Warn for notes defined but not used (#1718).
7205 + Use `anyLineNewline` (Alexander Krotov).
7206 + Interpret YAML metadata as Inlines when possible (#3755). If
7207 the metadata field is all on one line, we try to interpret it as
7208 Inlines, and only try parsing as Blocks if that fails. If it
7209 extends over one line (including possibly the `|` or `>` character
7210 signaling an indented block), then we parse as Blocks. This was
7211 motivated by some German users finding that `date: '22. Juin 2017'`
7212 got parsed as an ordered list.
7213 + Fixed spurious parsing as citation as reference def (#3840).
7214 We now disallow reference keys starting with `@` if the
7215 `citations` extension is enabled.
7216 + Parse `-@roe` as suppress-author citation (pandoc-citeproc#237).
7217 Previously only `[-@roe]` (with brackets) was recognized as
7218 suppress-author, and `-@roe` was treated the same as `@roe`.
7219 + Fixed parsing of fenced code after list when there is no intervening
7221 + Allow raw latex commands starting with `\start` (#3558). Previously
7222 these weren't allowed because they were interpreted as starting
7223 ConTeXt environments, even without a corresponding `\stop`...
7224 + Added `inlines`, `inlines1`.
7225 + Require nonempty alt text for `implicit_figures` (#2844).
7226 A figure with an empty caption doesn't make sense.
7227 + Removed texmath macro material; now all this is handled
7228 in the LaTeX reader functions.
7229 + Fixed bug with indented code following raw LaTeX (#3947).
7233 + Rewrote LaTeX reader with proper tokenization (#1390,
7234 #2118, #3236, #3779, #934, #982). This rewrite is primarily
7235 motivated by the need to get macros working properly. A side benefit
7236 is that the reader is significantly faster. We now tokenize the
7237 input text, then parse the token stream. Macros modify the token
7238 stream, so they should now be effective in any context, including
7239 math. Thus, we no longer need the clunky macro processing
7240 capacities of texmath.
7241 + Parse `\,` to `\8198` (six-per-em space) (Henri Werth).
7242 + Allow `\newcommand\foo{blah}` without braces.
7243 + Support `\lstinputlisting` (#2116).
7244 + Issue warnings when skipping unknown latex commands (#3392).
7245 + Include contents of `\parbox`.
7246 + Allow `\hspace` and `\vspace` to count as raw block or inline.
7247 Previously we would refuse to parse anything as raw inline if
7248 it was in the `blockCommands` list. Now we allow exceptions
7249 if they're listed under ignoreInlines in inlineCommands.
7250 This should make it easier e.g. to include an `\hspace`
7251 between two side-by-side raw LaTeX tables.
7252 + Don't drop contents of `\hypertarget`.
7253 + Handle spaces before `\cite` arguments.
7254 + Allow newpage, clearpage, pagebreak in inline contexts as well as
7255 block contexts (#3494).
7256 + Treat `{{xxx}}` the same as `{xxx}` (#2115).
7257 + Use `pMacroDefinition` in macro (for more direct parsing).
7258 Note that this means that `macro` will now parse one
7259 macro at a time, rather than parsing a whole group together.
7260 + Fixed failures on `\ref{}`, `\label{}` with `+raw_tex`. Now these
7261 commands are parsed as raw if `+raw_tex`; otherwise, their argument
7262 is parsed as a bracketed string.
7263 + Don't crash on empty `enumerate` environment (#3707).
7264 + Handle escaped `&` inside table cell (#3708).
7265 + Handle block structure inside table cells (#3709). `minipage` is no
7267 + Handle some width specifiers on table columns (#3709). Currently
7268 we only handle the form `0.9\linewidth`. Anything else would have
7269 to be converted to a percentage, using some kind arbitrary assumptions
7271 + Make sure `\write18` is parsed as raw LaTeX. The change is in the
7272 LaTeX reader's treatment of raw commands, but it also affects the
7274 + Fixed regression with starred environment names (#3803).
7275 + Handle optional args in raw `\titleformat` (#3804).
7276 + Improved heuristic for raw block/inline. An unknown command at the
7277 beginning of the line that could be either block or inline is
7278 treated as block if we have a sequence of block commands followed by
7279 a newline or a `\startXXX` command (which might start a raw ConTeXt
7281 + Don't remove macro definitions from the output, even if
7282 `Ext_latex_macros` is set, so that macros will be applied.
7283 Since they're only applied to math in Markdown, removing the macros
7284 can have bad effects. Even for math macros, keeping them should be
7286 + Removed `macro`. It is no longer necessary, since the
7287 `rawLaTeXBlock` parser will parse macro definitions. This also avoids
7288 the need for a separate `latexMacro` parser in the Markdown reader.
7289 + Use `label` instead of `data-label` for label in caption (#3639).
7290 + Fixed space after `\figurename` etc.
7291 + Resolve references to section numbers.
7292 + Fix `\let\a=0` case, with single character token.
7293 + Allow `@` as a letter in control sequences. `@` is commonly used
7294 in macros using `\makeatletter`. Ideally we'd make the tokenizer
7295 sensitive to `\makeatletter` and `\makeatother`, but until then this
7296 seems a good change.
7297 + Track header numbers and correlate with labels.
7298 + Allow `]` inside group in option brackets (#3857).
7299 + lstinline with braces can be used (verb cannot be used with braces)
7300 (Marc Schreiber, #3535).
7301 + Fix keyval function: pandoc did not parse options in braces correctly
7302 (Marc Schreiber, #3642).
7303 + When parsing raw LaTeX commands, include trailing space (#1773).
7304 Otherwise things like `\noindent foo` break and turn into
7305 `\noindentfoo`. Affects `-f latex+raw_tex` and `-f markdown` (and other
7306 formats that allow `raw_tex`).
7307 + Don't treat "..." as Quoted (#3958). This caused quotes to be omitted in
7309 + Add tests for existing `\includegraphics` behaviour (Ben Firshman).
7310 + Allow space before `=` in bracketd options (Ben Firshman).
7311 + Be more forgiving in parsing command options. This was needed, for
7312 example, to make some minted options work.
7313 + Strip off quotes in `\include` filenames.
7315 * Added `Text.Pandoc.CSV`, simple (unexported) CSV parser.
7317 * `Text.Pandoc.PDF`:
7319 + Got `--resource-path` working with PDF output (#852).
7320 + Fetch images when generating PDF via context (#3380).
7321 To do this, we create the temp directory as a subdirectory
7322 of the working directory. Since context mk IV by default looks
7323 for images in the parent directory, this works.
7324 + Use `report` instead of `warn`, make it sensitive to verbosity settings.
7325 + Use `fillMediaBag` and `extractMedia` to extract media to temp dir.
7326 This reduces code duplication.
7327 + `html2pdf`: use stdin instead of intermediate HTML file
7328 + Removed useless `TEXINPUTS` stuff for `context2pdf`. mkiv context
7329 doesn't use `TEXINPUTS`.
7331 * `Text.Pandoc.Pretty`:
7333 + Simplified definition of `realLength`.
7334 + Don't error for blocks of size < 1. Instead, resize to 1 (see #1785).
7336 * `Text.Pandoc.MIME`:
7338 + Use `application/javascript` (not `application/x-javascript`).
7339 + Added `emf` to mimeTypes with type `application/x-msmetafile` (#1713).
7341 * `Text.Pandoc.ImageSize`:
7343 + Improve SVG image size code (Marc Schreiber, #3580).
7344 + Make `imageSize` recognize basic SVG dimensions (Mauro Bieg, #3462).
7346 * Use `Control.Monad.State.Strict` throughout. This gives 20-30% speedup
7347 and reduction of memory usage in most of the writers.
7349 * Use `foldrWithKey` instead of deprecated `foldWithKey`.
7351 * `Text.Pandoc.SelfContained`:
7353 + Fixed problem with embedded fonts (#3629).
7354 + Refactored getData from `getDataURI` in `SelfContained`.
7355 + Don't use data URIs for script or style (#3423). Instead, just use
7356 script or style tags with the content inside. The old method with
7357 data URIs prevents certain optimizations outside pandoc. Exception:
7358 data URIs are still used when a script contains `</script>` or a
7359 style contains `</`.
7360 + SelfContained: Handle URL inside material retrieved from a URL
7361 (#3629). This can happen e.g. with an @import of a google web font.
7362 (What is imported is some CSS which contains an url reference
7363 to the font itself.) Also, allow unescaped pipe (|) in URL.
7364 + Load resources from `data-src` (needed for lazy loading in
7365 reveal.js slide shows).
7366 + Handle `data-background-image` attribute on section (#3979).
7368 * `Text.Pandoc.Parsing`:
7370 + Added `indentWith` (Alexander Krotov, #3687).
7371 + Added `stateCitations` to `ParserState`.
7372 + Removed `stateChapters` from `ParserState`.
7373 + In `ParserState`, make `stateNotes'` a Map, add `stateNoteRefs`.
7374 + Added `gobbleSpaces` and `gobbleAtMostSpaces`.
7375 + Adjusted type of `insertIncludedFile` so it can be used with token
7377 + Replace old texmath macro stuff from Parsing. Use Macro from
7378 Text.Pandoc.Readers.LaTeX.Types instead.
7379 + Export `insertIncludedFile`.
7380 + Added `HasLogMessages`, `logMessage`, `reportLogMessages` (#3447).
7381 + Replace partial with total function (Albert Krewinkel).
7382 + Introduce `HasIncludeFiles` type class (Albert Krewinkel). The
7383 `insertIncludeFile` function is generalized to work with all parser
7384 states which are instances of that class.
7385 + Add `insertIncludedFilesF` which returns F blocks (Albert Krewinkel).
7386 The `insertIncludeFiles` function was generalized and renamed
7387 to `insertIncludedFiles'`; the specialized versions are based on that.
7388 + `many1Till`: Check for the end condition before parsing (Herwig
7389 Stuetz). By not checking for the end condition before the first
7390 parse, the parser was applied too often, consuming too much of the
7391 input. This only affects `many1Till p end` where `p` matches on a
7393 + Provide `parseFromString` (#3690). This is a version of
7394 `parseFromString` specialied to ParserState, which resets
7395 `stateLastStrPos` at the end. This is almost always what we want.
7396 This fixes a bug where `_hi_` wasn't treated as emphasis in the
7397 following, because pandoc got confused about the position of the
7398 last word: `- [o] _hi_`.
7399 + Added `takeP`, `takeWhileP` for efficient parsing of `[Char]`.
7400 + Fix `blanklines` documentation (Alexander Krotov, #3843).
7401 + Give less misleading line information with `parseWithString`.
7402 Previously positions would be reported past the end of the chunk.
7403 We now reset the source position within the chunk and report
7404 positions "in chunk."
7405 + Add `anyLineNewline` (Alexander Krotov).
7406 + Provide shared F monad functions for Markdown and Org readers
7407 (Albert Krewinkel). The `F` monads used for delayed evaluation
7408 of certain values in the Markdown and Org readers are based on a
7409 shared data type capturing the common pattern of both `F` types.
7410 + Add `returnF` (Alexander Krotov).
7411 + Avoid parsing `Notes:**` as a bare URI (#3570). This avoids parsing
7412 bare URIs that start with a scheme + colon + `*`, `_`, or `]`.
7413 + Added `readerAbbreviations` to `ParserState`. Markdown reader
7414 now consults this to determine what is an abbreviation.
7415 + Combine grid table parsers (Albert Krewinkel, #3638). The grid table
7416 parsers for markdown and rst was combined into one single
7417 parser `gridTable`, slightly changing parsing behavior of both
7418 parsers: (1) The markdown parser now compactifies block content
7419 cell-wise: pure text blocks in cells are now treated as paragraphs
7420 only if the cell contains multiple paragraphs, and as plain blocks
7421 otherwise. Before, this was true only for single-column tables. (2)
7422 The rst parser now accepts newlines and multiple blocks in header
7424 + Generalize tableWith, gridTableWith (Albert Krewinkel).
7425 The parsing functions `tableWith` and `gridTableWith` are generalized
7426 to work with more parsers. The parser state only has to be an
7427 instance of the `HasOptions` class instead of requiring a concrete
7428 type. Block parsers are required to return blocks wrapped into a
7429 monad, as this makes it possible to use parsers returning results
7430 wrapped in `Future`s.
7432 * `Text.Pandoc.Shared`:
7434 + Simplify `toRomanNumeral` using guards (Alexander Krotov, #3445)
7435 + `stringify`: handle Quoted better (#3958). Previously we were losing
7436 the quotation marks in Quoted elements.
7438 * `Text.Pandoc.Writers.Shared`:
7440 + Export `metaToJSON'`, `addVariablesToJSON` (#3439).
7441 This allows us to add the variables AFTER using the metadata
7442 to generate a YAML header (in the Markdown writer).
7443 + Added `unsmartify` (previously in RST writer).
7444 Undo literal double curly quotes. Previously we left these.
7445 + Generalize type of `metaToJSON` so it can take a Text. Previously a
7446 String was needed as argument; now any ToJSON instance will do.
7447 + Added `gridTable` (previously in Markdown writer).
7448 + `gridTable`: Refactored to use widths in chars.
7449 + `gridTable`: remove unnecessary extra space in cells.
7450 + Fixed `addVariablesToJSON`. It was previously not allowing multiple
7451 values to become lists.
7452 + Pipe tables: impose minimum cell size (see #3526).
7455### Default template changes
7457 * HTML templates (including EPUB and HTML slide show templates):
7459 + Make default.html5 polyglot markup conformant (John Luke Bentley,
7460 #3473). Polyglot markup is HTML5 that is also valid XHTML. See
7461 <https://www.w3.org/TR/html-polyglot>. With this change, pandoc's
7462 html5 writer creates HTML that is both valid HTML5 and valid XHTML.
7463 + Regularized CSS in html/epub/html slide templates (#3485).
7464 All templates now include `code{white-space: pre-wrap}`
7465 and CSS for `q` if `--html-q-tags` is used. Previously some templates
7466 had `pre` and others `pre-wrap`; the `q` styles were only sometimes
7468 + CSS for `.smallcaps`, (Mauro Bieg, #1592)
7469 + `default.revealjs`: make `history` default to true.
7470 + `default.revealjs`: use lazy loading (#2283).
7471 + `default.revealjs`: add `mathjax` variable and some conditional code
7472 to use the MathJaX plugin.
7473 + `default.slidy` uses `https` instead of `http` (ickc, #3848).
7474 + `default.dzslides`: Load Google Font using HTTPS by default
7477 * DocBook5 template: Use `lang` and `subtitle` variables (Jens Getreu,
7480 * LaTeX/Beamer template:
7482 + Combine LaTeX/Beamer templates (Andrew Dunning, #3878).
7483 `default.beamer` has been removed; beamer now uses the
7484 `default.latex` template. Beamer-specific parts are conditional
7485 on the `beamer` variable set by the writer. Note that
7486 `pandoc -D beamer` will return this (combined) template.
7487 + Use `xcolor` for `colorlinks` option (Andrew Dunning, #3877).
7488 Beamer loads `xcolor` rather than `color`, and thus the
7489 `dvipsnames` option doesn't take effect. This also provides a wider
7490 range of colour selections with the `svgnames` option.
7491 + Use starred versions of `xcolor` names (Andrew Dunning).
7492 Prevents changes to documents defined using the `dvipsnames` list (e.g.
7493 `Blue` gives a different result with svgnames enabled).
7494 + Load `polyglossia` after header-includes (#3898). It needs to be
7495 loaded as late as possible.
7496 + Use `unicode-math` (Vaclav Haisman). Use `mathspec` with only
7498 + Don't load `fontspec` before `unicode-math` (over there).
7499 The `unicode-math` package loads `fontspec` so explict loading of
7500 `fontspec` before `unicode-math` is not necessary.
7501 + Use `unicode-math` by default in default.latex template. mathspec will
7502 be used in xelatex if the `mathspec` variable is set; otherwise
7503 unicode-math will be used (Václav Haisman).
7504 + Use `dvipsnames` options when `colorlinks` specified (otherwise
7505 we get an error for `maroon`) (Thomas Hodgson).
7506 + Added beamer `titlegraphic` and `logo` variables (Thomas Hodgson).
7507 + Fix typo in fix for notes in tables (#2378, zeeMonkeez).
7508 + Fix `hyperref` options clash (Andrew Dunning, #3847) Avoids an options
7509 clash when loading a package (e.g. `tufte-latex`) that uses
7510 `hyperref` settings different from those in the template.
7511 + Add `natbiboptions` variable (#3768).
7512 + Fix links inside captions in LaTeX output with links-as-notes
7513 (Václav Haisman, #3651). Declare our redefined `\href` robust.
7514 + Load `parskip` before `hyperref` (Václav Haisman, #3654).
7515 + Allow setting Japanese fonts when using LuaLaTeX (Václav Haisman,
7516 #3873). by using the `luatexja-fontspec` and `luatexja-preset`
7517 packages. Use existing `CJKmainfont` and `CJKoptions` template
7518 variables. Add `luatexjafontspecoptions` for `luatexja-fontspec`
7519 and `luatexjapresetoptions` for `luatexja-preset`.
7520 + Added `aspectratio` variable to beamer template (Václav Haisman,
7522 + Modified template.latex to fix XeLaTex being used with tables
7523 (lwolfsonkin, #3661). Reordered `lang` variable handling to
7524 immediately before `bidi`.
7526 * ConTeXt template: Improved font handling: `simplefonts` is now
7527 obsolete in ConTeXt (Pablo Rodríguez).
7530### Documentation improvements
7534 + Add URL for Prince HTML > PDF engine (Ian, #3919).
7535 + Document that content above slide-level will be omitted in
7536 slide shows. See #3460, #2265.
7537 + Explain `--webtex` SVG url (Mauro Bieg, #3471)
7538 + Small clarification in YAML metadata section.
7539 + Document that html4 is technically XHTML 1.0 transitional.
7540 + Remove refs to highlighting-kate (#3672).
7541 + Document ibooks specific epub metadata.
7542 + Clarify that mathml is used for ODT math.
7543 + Mention limitations of Literate Haskell Support (#3410,
7545 + Add documentation of limitations of grid tables (Stephen
7547 + Clarify that meta-json contains transformed values (Jakob Voß,
7548 #3491) Make clear that template variable `meta-json` does not
7549 contain plain text values or JSON output format but field values
7550 transformed to the selected output format.
7554 + Clarify that templates are dual-licensed.
7555 + Clarify that pandoc-types is BSD3 licensed.
7556 + List new files not written by jgm (Albert Krewinkel).
7557 + Update dates in copyright notices (Albert Krewinkel). This follows
7558 the suggestions given by the FSF for GPL licensed software.
7559 <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
7563 + Improved instructions for tests with patterns.
7564 + Put RPM-based distros on separate point (Mauro Bieg, #3449)
7568 + Fixed typos (Wandmalfarbe, #3479).
7569 + Add "ask on pandoc-discuss" (Mauro Bieg).
7571 * Add lua filter documentation in `doc/lua-filters.md`. Note that the
7572 end of this document is autogenerated from `data/pandoc.lua`
7573 using `make doc/lua-filters.md`, which uses `tools/ldoc.ltp`
7576 * Add `doc/filters.md`. This is the old scripting tutorial from
7579 * Add `doc/using-the-pandoc-api.md` (#3289). This gives an introduction
7580 to using pandoc as a Haskell library.
7583### Build infrastructure improvements
7585 * Removed `data/templates` submodule. Templates are now a subtree
7586 in `data/templates`. This removes the need to do `git submodule
7589 * Renamed `tests` -> `test`.
7591 * Remove `https` flag. Always build with HTTPS support.
7593 * Use `file-embed` instead of `hsb2hs` to embed data files when
7594 `embed_data_files` flag is set. `file-embed` gives us better dependency
7595 tracking: if a data file changes, ghc/stack/cabal know to recompile
7596 the Data module. This also removes `hsb2hs` as a build dependency.
7598 * Add `custom-setup` stanza to pandoc, lowercase field names.
7600 * Add `static` Cabal flag.
7602 * Name change OSX -> MacOS. Add a -MacOS suffix to mac package rather
7603 than -OSX. Changed local names from osx to macos.
7605 * make_macos_package.sh - Use strip to reduce executable size.
7607 * Revised binary linux package. Now a completely static executable
7608 is created, using Docker and alpine. We create both a deb and a
7609 tarball. The old `deb` directory has been replaced with a `linux`
7610 directory. Running `make` in the `linux` directory should
7611 perform the build, putting the binary packages in `artifacts/`.
7613 * `linux/control.in`: add `Replaces:`, so existing pandoc-citeproc and
7614 pandoc-data packages will be uninstalled; this package provides
7615 both (#3822). Add latex packages as 'suggested', update
7618 * Remove cpphs build requirement -- it is no longer needed.
7620 * Replaced `{deb,macos,windows}/stack.yaml` with `stack.pkg.yaml`.
7622 * Name change OSX -> macOS (ickc, #3869).
7624 * Fix casing of Linux, UNIX, and Windows (ickc).
7626 * `.travis.yml`: create a source dist and do cabal build and test there.
7627 That way we catch errors due to files missing from the data
7628 section of pandoc.cabal.
7632 + Split `make haddock` from `make full`.
7633 + Add BRANCH variable for winpkg.
7634 + Add `lint` target.
7635 + Improve `make full`. Disable optimizations.
7636 Build everything, inc. trypandoc and benchmarks. Use parallel build.
7637 + Allow `make test` to take `TESTARGS`.
7639 * Added new command tests (`Tests.Command`), using small text files
7640 in `test/command/`. Any files added in this directory will be treated
7641 as shell tests (see smart.md for an example). This makes it very easy
7642 to add regression tests etc.
7644 * Test fixes so we can find data files. In old tests & command tests,
7645 we now set the environment variable `pandoc_datadir`. In lua tests,
7646 we set the datadir explicitly.
7648 * Refactored `compareOutput` in docx writer test.
7650 * Consolidated some common functions in `Tests.Helper`.
7652 * Small change to unbalanced bracket test to speed up test suite.
7654 * Speed up Native writer quickcheck tests.
7656 * Use tasty for tests rather than test-framework.
7658 * Add simple Emacs mode to help with Pandoc templates editing.
7659 (Václav Haisman, #3889). `tools/pandoc-template-mode.el`
7662## pandoc 1.19.2.4 (2017-09-10)
7664 * Add dependencies on texmath and skylighting to the executable.
7665 This is needed for dependency version numbers to be available,
7668## pandoc 1.19.2.3 (2017-09-09)
7670 * Add CPP to Setup.hs so it works with Cabal >= 2 and < 2.
7672## pandoc 1.19.2.2 (2017-09-08)
7674 * Fix build with GHC 8.2.1 (#3876, Peter Simons). Setup.hs does not
7675 compile with Cabal 2.x, so we require an earlier version via
7676 setup-depends. The following packages need newer versions with
7677 GHC 8.2.1 and had their constraints relaxed accordingly:
7678 executable-path, process, syb, and time.
7680## pandoc 1.19.2.1 (2017-01-31)
7682 * Require skylighting >= 0.1.1.4.
7683 * Adjust test output for skylighting version.
7684 * Relax upper bounds on blaze-html and blaze-markup.
7686## pandoc 1.19.2 (2017-01-29)
7688 * Use skylighting library instead of highlighting-kate for syntax
7689 highlighting. Skylighting is faster and more accurate (#3363).
7690 Later we'll be able to add features like warning messages, dynamic
7691 loading of xml syntax definitions, and dynamic loading of themes.
7693 * Added a new highlight style, `breezeDark`.
7695 * Text.Pandoc.Highlighting: Update list of `listings` languages (#3374).
7696 This allows more languages to be used when using the `--listings`
7699 * OpenDocument writer:
7701 + Small refactoring. Removed separate 'parent' parameter in paraStyle.
7702 + Don't profilerate text styles unnecessarily (#3371).
7703 This change makes the writer create only as many temporary
7704 text styles as are absolutely necessary. It also consolidates
7705 adjacent nodes with the same style.
7707 * Org reader (Albert Krewinkel):
7709 + Allow short hand for single-line raw blocks (Albert Krewinkel,
7710 #3366). Single-line raw blocks can be given via `#+FORMAT: raw line`,
7711 where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
7712 + Accept org-ref citations followed by commas (Albert Krewinkel).
7713 Bugfix for an issue which, whenever the citation was immediately
7714 followed by a comma, prevented correct parsing of org-ref citations.
7715 + Ensure emphasis markup can be nested. Nested emphasis markup (e.g.
7716 `/*strong and emphasized*/`) was interpreted incorrectly in that the
7717 inner markup was not recognized.
7718 + Remove pipe char irking the haddock coverage tool (Albert Krewinkel).
7720 * Docx reader: Empty header should be list of lists (Jesse Rosenthal).
7721 In the past, the docx reader wrote an empty header as an empty list. It
7722 should have the same width as a row (and be filled with empty cells).
7726 + Improved handling of display math (#3362). Sometimes display math is
7727 indented with more than one colon. Previously we handled these cases
7728 badly, generating definition lists and missing the math.
7729 + Fix quotation mark parsing (#3336, tgkokk). Change MediaWiki reader's
7730 behavior when the smart option is parsed to match other readers'
7735 + Fixed `-f markdown_github-hard_line_breaks+escaped_line_breaks`
7736 (#3341). Previously this did not properly enable escaped line breaks.
7737 + Disallow space between inline code and attributes (#3326, #3323,
7740 * DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330, Mauro Bieg).
7742 * Added some test cases for ODT reader (#3306, #3308, Hubert Plociniczak).
7744 * LaTeX writer: allow tables with empty cells to count as "plain."
7745 This addresses a problem of too-wide tables when empty cells
7746 are used. Thanks to Joost Kremers for reporting the issue.
7748 * Org writer: prefix footnote numbers with `fn:` (Albert Krewinkel).
7749 Unprefixed numbers where used by older org-mode versions, but are no
7752 * HTML writer: don't process pars with empty RawInline, (#1040, #3327,
7755 * Markdown writer: Fix display math with `--webtex` (#3298).
7757 * Fix sample.lua so it properly handles raw blocks/inlines (#3358,
7762 + default.latex: Moved geometry after hyperref (Václav Haisman).
7763 Otherwise PDF sizes can be wrong in some circumstances.
7764 + Copied a few changes from default.latex to default.beamer
7766 + default.latex, default.beamer: Changed position of `\VerbatimNotes`
7767 and `fancyvrb`. This fixes hyperlinks on footnotes in documents
7768 that contain verbatim in notes (#3361). (Note: the beamer template
7769 was updated to match the LaTeX template, but at this point verbatim
7770 in notes seems not to work in beamer.)
7771 + default.latex: Allow passing `microtypeoptions` to microtype
7773 + default.latex: Add hyphen option to url package.
7774 + default.docbook5: Fix namespace declarations (Mauro Bieg).
7776 * Moved `make_osx_package.sh` to `osx/` directory.
7778 * Travis continuous integration:
7780 + Fix false positives with dist build.
7781 + Speed improvements (Kolen Cheung, #3304, #3357).
7785 + Clarify that blank space is needed around footnotes (#3352).
7786 + Fixed typo (#3351, Alexey Rogechev).
7787 + Note that `--wrap=auto` does not work in HTML output.
7788 + Default `--columns` width is 72, not 80.
7789 + Fixed broken links (#3316, Kolen Cheung).
7790 + Document usage of `@*` in nocite section (#3333, John Muccigrosso).
7794 + Indent code so it's properly formatted (#3335, Bheesham Persaud).
7795 + Added instructions for extracting binary from OSX, Windows packages.
7797 * CONTRIBUTING.md: Describe labels currently used in issue tracker
7798 (Albert Krewinkel). The labels have changed over time, the list of
7799 labels is updated to reflect the current set of labels used in the
7802 * Rearrange and extend badges in README (Albert Krewinkel, #3354)
7804 * Bumped version bounds for dependencies.
7807## pandoc 1.19.1 (2016-12-10)
7809 * Set `PANDOC_VERSION` environment variable for filters (#2640).
7810 This allows filters to check the pandoc version that produced
7811 the JSON they are receiving.
7813 * Docx reader: Ensure one-row tables don't have header (#3285,
7814 Jesse Rosenthal). Tables in MS Word are set by default to have
7815 special first-row formatting, which pandoc uses to determine whether
7816 or not they have a header. This means that one-row tables will, by
7817 default, have only a header -- which we imagine is not what people
7818 want. This change ensures that a one-row table is not understood to
7819 be a header only. Note that this means that it is impossible to
7820 produce a header-only table from docx, even though it is legal
7821 pandoc. But we believe that in nearly all cases, it will be an
7822 accidental (and unwelcome) result
7826 + Fixed some bad regressions in HTML table parser (#3280).
7827 This regression leads to the introduction of empty rows
7828 in some circumstances.
7829 + Understand `style=width:` as well as `width` in `col` (#3286).
7833 + Print warnings when keys, substitition, notes not found.
7834 Previously the parsers failed and we got raw text. Now we get a
7835 link with an empty URL, or empty inlines in the case of a note or
7838 + Fix hyperlink aliases (#3283).
7840 * Man writer: Ensure that periods are escaped at beginning of line
7843 * LaTeX writer: Fix unnumbered headers when used with `--top-level`
7844 (#3272, Albert Krewinkel). Fix interaction of top-level
7845 divisions `part` or `chapter` with unnumbered headers when
7846 emitting LaTeX. Headers are ensured to be written using
7847 stared commands (like `\subsection*{}`).
7849 * LaTeX template: use comma not semicolon to separate keywords for
7850 `pdfkeywords`. Thanks to Wandmalfarbe.
7852 * Markdown writer: Fixed incorrect word wrapping (#3277).
7853 Previously pandoc would sometimes wrap lines too early due to
7856 * Text.Pandoc.Pretty: Added `afterBreak` [API change]. This makes it
7857 possible to insert escape codes for content that needs escaping at the
7858 beginning of a line.
7860 * Removed old MathMLInHTML.js from 2004, which should no longer
7861 be needed for MathML with modern browsers.
7863 * Fixed tests with dynamic linking (#2709).
7865 * Makefile: Use stack instead of cabal for targets. This is just
7866 a convenience for developers.
7868 * Fixed bash completion of filenames with space (#2749).
7870 * MANUAL: improved documentation on how to create a custom
7873 * Fix minor spelling typos in the manual (#3273, Anthony Geoghegan)
7875## pandoc 1.19 (2016-12-01)
7877 * Changed resolution of filter paths.
7879 + We now first treat the argument of `--filter` as a full (absolute
7880 or relative) path, looking for a program there. If it's found, we
7882 + If not, and if it is a simple program name or a relative path, we
7883 try resolving it relative to `$DATADIR/filters`.
7884 + If this fails, then we treat it as a program name and look in the
7886 + Removed a hardcoded '/' that may have caused problems with
7889 Previously if you did `--filter foo` and you had `foo` in your path and
7890 also an executable `foo` in your working directory, the one in the path
7891 would be used. Now the one in the working directory is used.
7893 In addition, when you do `--filter foo/bar.hs`, pandoc will now find a
7894 filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a
7895 `foo/bar.hs` relative to the working directory.
7897 * Allow `file://` URIs as arguments (#3196). Also improved default reader
7898 format detection. Previously with a URI ending in .md or .markdown,
7899 pandoc would assume HTML input. Now it treats these as markdown.
7901 * Allow to overwrite top-level division type heuristics (#3258,
7902 Albert Krewinkel). Pandoc uses heuristics to determine the most
7903 reasonable top-level division type when emitting LaTeX or
7904 Docbook markup. It is now possible to overwrite this implicitly set
7905 top-level division via the `top-level-division` command line parameter.
7907 * Text.Pandoc.Options \[API changes\]:
7909 + Removed `writerStandalone` field in `WriterOptions`, made
7910 `writerTemplate` a `Maybe` value. Previously setting
7911 `writerStandalone = True` did nothing unless a template was provided
7912 in writerTemplate. Now a fragment will be generated if
7913 `writerTemplate` is `Nothing`; otherwise, the specified template
7914 will be used and standalone output generated.
7915 + `Division` has been renamed `TopLevelDivision` (#3197). The
7916 `Section`, `Chapter`, and `Part` constructors were renamed to
7917 `TopLevelSection`, `TopLevelChapter`, and
7918 `TopLevelPart`, respectively. An additional `TopLevelDefault`
7919 constructor was added, which is now also the new default value of
7920 the `writerTopLevelDivision` field in `WriterOptions`.
7922 * Improved error if they give wrong arg to `--top-level-division`.
7924 * Use new module from texmath to lookup MS font codepoints in Docx reader.
7925 Removed unexported module Text.Pandoc.Readers.Docx.Fonts. Its code now
7926 lives in texmath (0.9).
7928 * DocBook reader: Fixed xref lookup (#3243). It previously only worked
7929 when the qnames lacked the docbook namespace URI.
7933 + Improved table parsing (#3027). We now check explicitly for non-1
7934 rowspan or colspan attributes, and fail when we encounter them.
7935 Previously we checked that each row had the same number of cells,
7936 but that could be true even with rowspans/colspans. And there are
7937 cases where it isn't true in tables that we can handle fine -- e.g.
7938 when a tr element is empty. So now we just pad rows with empty cells
7940 + Treat `<math>` as MathML by default unless something else is
7941 explicitly specified in xmlns. Provided it parses as MathML,
7942 of course. Also fixed default which should be to inline math if no
7943 display attribute is used.
7944 + Only treat "a" element as link if it has href (#3226). Otherwise
7947 * Docx reader (Jesse Rosenthal):
7949 + Add a placeholder value for CHART. We wrap `[CHART]` in a
7950 `<span class="chart">`. Note that it maps to inlines because, in
7951 docx, anything in a drawing tag can be part of a larger paragraph.
7952 + Be more specific in parsing images We not only want `w:drawing`,
7953 because that could also include charts. Now we specify
7954 `w:drawing/pic:pic`. This shouldn't change behavior at all, but it's
7955 a first step toward allowing other sorts of drawing data as well.
7956 + Abstract out function to avoid code repetition.
7957 + Update tests for img title and alt (#3204).
7958 + Handle Alt text and titles in images. We use the "description" field
7959 as alt text and the "title" field as title. These can be accessed
7960 through the "Format Picture" dialog in Word.
7961 + Docx reader utils: handle empty namespace in `elemName`. Previously,
7962 if given an empty namespace `(elemName ns "" "foo")` `elemName`
7963 would output a QName with a `Just ""` namespace. This is never what
7964 we want. Now we output a `Nothing`. If someone *does* want a
7965 `Just ""` in the namespace, they can enter the QName
7968 * ODT reader/writer:
7970 + Inline code when text has a special style (Hubert Plociniczak). When
7971 a piece of text has a text `Source_Text` then we assume that this is
7972 a piece of the document that represents a code that needs to
7973 be inlined. Adapted the writer to also reflect that change.
7974 Previously it was just writing a 'preformatted' text using a
7975 non-distinguishable font style. Code blocks are still not recognized
7976 by the ODT reader. That's a separate issue.
7977 + Infer table's caption from the paragraph (#3224,
7978 Hubert Plociniczak). ODT's reader always put empty captions for the
7979 parsed tables. This commit
7981 1. checks paragraphs that follow the table definition
7982 2. treats specially a paragraph with a style named 'Table'
7983 3. does some postprocessing of the paragraphs that combines tables
7984 followed immediately by captions
7986 The ODT writer used the `TableCaption` style for the caption
7987 paragraph. This commit follows the OpenOffice approach which allows
7988 for appending captions to table but uses a built-in style named
7989 `Table` instead of `TableCaption`. Users of a custom `reference.odt`
7990 should change the style's name from `TableCaption` to `Table`.
7992 * ODT reader: Infer tables' header props from rows (#3199,
7993 Hubert Plociniczak). ODT reader simply provided an empty header list
7994 which meant that the contents of the whole table, even if not empty, was
7995 simply ignored. While we still do not infer headers we at least have to
7996 provide default properties of columns.
8000 + Allow reference link labels starting with `@...` if `citations`
8001 extension disabled (#3209). Example: in
8005 `link text` isn't hyperlinked because `[@a]` is parsed as
8006 a citation. Previously this happened whether or not the `citations`
8007 extension was enabled. Now it happens only if the `citations`
8008 extension is enabled.
8009 + Allow alignments to be specified in Markdown grid tables. For
8012 +-------+---------------+--------------------+
8013 | Right | Left | Centered |
8014 +=========:+:=================+:=============:+
8015 | Bananas | $1.34 | built-in wrapper |
8016 +-------+---------------+--------------------+
8018 + Allow Small Caps elements to be created using bracketed spans (as
8019 they already can be using HTML-syntax spans) (#3191, Kolen Cheung).
8023 + Don't treat `\vspace` and `\hspace` as block commands (#3256).
8024 Fixed an error which came up, for example, with `\vspace` inside
8025 a caption. (Captions expect inlines.)
8026 + Improved table handling. We can now parse all of the tables emitted
8027 by pandoc in our tests. The only thing we don't get yet are
8028 alignments and column widths in more complex tables. See #2669.
8029 + Limited support for minipage.
8030 + Allow for `[]`s inside LaTeX optional args. Fixes cases like:
8031 + Handle BVerbatim from fancyvrb (#3203).
8032 + Handle hungarumlaut (#3201).
8033 + Allow beamer-style `<...>` options in raw LaTeX (also in Markdown)
8034 (#3184). This allows use of things like `\only<2,3>{my content}` in
8035 Markdown that is going to be converted to beamer.
8037 * Use pre-wrap for code in dzslides template (Nicolas Porcel). Otherwise
8038 overly long code will appear on every slide.
8040 * Org reader (Albert Krewinkel):
8042 + Respect column width settings (#3246). Table column properties can
8043 optionally specify a column's width with which it is displayed in
8044 the buffer. Some exporters, notably the ODT exporter in org-mode
8045 v9.0, use these values to calculate relative column widths. The org
8046 reader now implements the same behavior. Note that the org-mode
8047 LaTeX and HTML exporters in Emacs don't support this feature yet,
8048 which should be kept in mind by users who use the column
8050 + Allow HTML attribs on non-figure images (#3222). Images which are
8051 the only element in a paragraph can still be given HTML attributes,
8052 even if the image does not have a caption and is hence not a figure.
8053 The following will add set the `width` attribute of the image to
8056 +ATTR\_HTML: :width 50%
8057 =======================
8059 \[\[file:image.jpg\]\]
8061 + Support `ATTR_HTML` for special blocks (#3182). Special
8062 blocks (i.e. blocks with unrecognized names) can be prefixed with an
8063 `ATTR_HTML` block attribute. The attributes defined in that
8064 meta-directive are added to the `Div` which is used to represent the
8066 + Support the `todo` export option. The `todo` export option allows to
8067 toggle the inclusion of TODO keywords in the output. Setting this to
8068 `nil` causes TODO keywords to be dropped from headlines. The default
8069 is to include the keywords.
8070 + Add support for todo-markers. Headlines can have optional
8071 todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`,
8072 or `#+TYP_TODO` meta directive. Multiple such directives can be
8073 given, each adding a new set of recognized todo-markers. If no
8074 custom todo-markers are defined, the default `TODO` and `DONE`
8075 markers are used. Todo-markers are conceptually separate from
8076 headline text and are hence excluded when autogenerating
8077 headline IDs. The markers are rendered as spans and labelled with
8078 two classes: One class is the markers name, the other signals the
8079 todo-state of the marker (either `todo` or `done`).
8083 + Use `\autocites*` when "suppress-author" citation used.
8084 + Ensure that simple tables have simple cells (#2666). If cells
8085 contain more than a single Plain or Para, then we need to set
8086 nonzero widths and put contents into minipages.
8087 + Remove invalid inlines in sections (#3218, Hubert Plociniczak).
8091 + Fix calculation of column widths for aligned multiline tables
8092 (#1911, Björn Peemöller). This also fixes excessive CPU and memory
8093 usage for tables when `--columns` is set in such a way that cells
8094 must be very tiny. Now cells are guaranteed to be big enough so that
8095 single words don't need to line break, even if this pushes the line
8096 length above the column width.
8097 + Use bracketed form for native spans when `bracketed_spans`
8099 + Fixed inconsistent spacing issue (#3232). Previously a tight bullet
8100 sublist got rendered with a blank line after, while a tight ordered
8101 sublist did not. Now we don't get the blank line in either case.
8102 + Fix escaping of spaces in super/subscript (#3225). Previously two
8103 backslashes were inserted, which gave a literal backslash.
8104 + Adjust widths in Markdown grid tables so that they match
8109 + Give full detail when there are errors converting tex math.
8110 + Handle title text in images (Jesse Rosenthal). We already handled
8111 alt text. This just puts the image "title" into the docx
8113 + Fixed XML markup for empty cells (#3238). Previously the Compact
8114 style wasn't being applied properly to empty cells.
8118 + Updated `renderHtml` import from blaze-html.
8120 * Text.Pandoc.Pretty:
8122 + Fixed some bugs that caused blank lines in tables (#3251). The bugs
8123 caused spurious blank lines in grid tables when we had things like
8124 `blankline $$ blankline`.
8125 + Add exported function `minOffet` \[API change\] (Björn Peemöller).
8126 + Added error message for illegal call to `block` (Björn Peemöller).
8128 * Text.Pandoc.Shared:
8130 + Put `warn` in MonadIO.
8131 + `fetchItem`: Better handling of protocol-relative URL (#2635). If
8132 URL starts with `//` and there is no "base URL" (as there would be
8133 if a URL were used on the command line), then default to http:.
8135 * Export Text.Pandoc.getDefaultExtensions \[API change\] (#3178).
8137 * In --version, trap error in `getAppUserDataDirectory` (#3241). This
8138 fixes a crash with `pandoc --version` on unusual systems with no real
8139 user (e.g. SQL Server 2016).
8141 * Added weigh-pandoc for memory usage diagnostics (#3169).
8143 * Use correct mime types for woff and woff2 (#3228).
8145 * Remove make\_travis\_yml.hs (#3235, Kolen Cheung).
8147 * changelog: Moved an item that was misplaced in the 1.17.2 section to the
8148 1.18 section where it belongs.
8150 * CONTRIBUTING.md: minor change in wording and punctuation (#3252,
8153 * Further revisions to manual for `--version` changes (#3244).
8157## pandoc 1.18 (2016-10-26)
8159 * Added `--list-input-formats`, `--list-output-formats`,
8160 `--list-extensions`, `--list-highlight-languages`, and
8161 `--list-highlight-styles` (#3173). Removed list of highlighting
8162 languages from `--version` output. Removed list of input and output
8163 formats from default `--help` output.
8165 * Added `--reference-location=block|section|document` option
8166 (Jesse Rosenthal). This determines whether Markdown link references
8167 and footnotes are placed at the end of the document, the end of the
8168 section, or the end of the top-level block.
8170 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
8171 This determines what a level-1 header corresponds to in LaTeX,
8172 ConTeXt, DocBook, and TEI output. The default is `section`.
8173 The `--chapters` option has been deprecated in favor of
8174 `--top-level-division=chapter`.
8176 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
8177 is now used in parsing RST and Markdown line blocks, DocBook
8178 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
8179 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
8180 are handled specially in the following ouput formats: AsciiDoc
8181 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
8182 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
8183 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
8184 other output formats, a paragraph with hard linebreaks is emitted.
8186 * Allow binary formats to be written to stdout (but not to tty) (#2677).
8187 Only works on posix, since we use the unix library to check whether
8188 output is to tty. On Windows, pandoc works as before and always requires
8189 an output file parameter for binary formats.
8191 * Changed JSON output format (Jesse Rosenthal). Previously we used
8192 generically generated JSON, but this was subject to change depending
8193 on the version of aeson pandoc was compiled with. To ensure stability,
8194 we switched to using manually written ToJSON and FromJSON
8195 instances, and encoding the API version. **Note:** pandoc filter
8196 libraries will need to be revised to handle the format change.
8197 Here is a summary of the essential changes:
8199 + The toplevel JSON format is now `{"pandoc-api-version" :
8200 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
8201 instead of `[{"unMeta": META}, [BLOCKS]]`.
8202 Decoding fails if the major and minor version numbers don't
8204 + Leaf nodes no longer have an empty array for their "c" value.
8205 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
8206 rather than `{"t":"Space","c":[]}` as before.
8208 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
8209 module to pandoc-types (Jesse Rosenthal). This makes it easier
8210 to use QuickCheck with pandoc types outside of pandoc itself.
8212 * Add `bracketed_spans` Markdown extension, enabled by default
8213 in pandoc `markdown`. This allows you to create a native span
8214 using this syntax: `[Here is my span]{#id .class key="val"}`.
8216 * Added `angle_brackets_escapable` Markdown extension (#2846).
8217 This is needed because github flavored Markdown has a slightly
8218 different set of escapable symbols than original Markdown;
8219 it includes angle brackets.
8221 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
8223 * Print highlighting-kate version in `--version`.
8225 * `Text.Pandoc.Options`:
8227 + `Extension` has new constructors `Ext_brackted_spans` and
8228 `Ext_angle_brackets_escapable` [API change].
8229 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
8230 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
8233 * `--filter`: we now check `$DATADIR/filters` for filters before
8234 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
8235 Voß for the idea). Filters placed in this directory need not
8236 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
8237 or `.rb`, pandoc will run the right interpreter.
8239 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
8240 default (Kolen Cheung).
8242 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
8244 * Execute .js filters with node (Jakob Voß).
8248 + Support `bc..` extended code blocks (#3037). Also, remove trailing
8249 newline in code blocks (consistently with Markdown reader).
8250 + Improve table parsing. We now handle cell and row attributes, mostly
8251 by skipping them. However, alignments are now handled properly.
8252 Since in pandoc alignment is per-column, not per-cell, we
8253 try to devine column alignments from cell alignments.
8254 Table captions are also now parsed, and textile indicators
8255 for thead and tfoot no longer cause parse failure. (However,
8256 a row designated as tfoot will just be a regular row in pandoc.)
8257 + Improve definition list parsing. We now allow multiple terms
8258 (which we concatenate with linebreaks). An exponential parsing
8259 bug (#3020) is also fixed.
8260 + Disallow empty URL in explicit link (#3036).
8264 + Use Div instead of BlockQuote for admonitions (#3031).
8265 The Div has class `admonition` and (if relevant) one of the
8266 following: `attention`, `caution`, `danger`, `error`, `hint`,
8267 `important`, `note`, `tip`, `warning`. **Note:** This will change
8268 the rendering of some RST documents! The word ("Warning", "Attention",
8269 etc.) is no longer added; that must be done with CSS or a filter.
8270 + A Div is now used for `sidebar` as well.
8271 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
8272 space before a footnote marker. We discard those spaces so that footnotes
8273 will be adjacent to the text that comes before it. This is in line with
8274 what rst2latex does.
8275 + Allow empty lines when parsing line blocks (Albert Krewinkel).
8279 + Allow empty lines when parsing line blocks (Albert Krewinkel).
8280 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
8284 + More robust parsing of unknown environments (#3026).
8285 We no longer fail on things like `^` inside options for tikz.
8286 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
8287 Some custom environments give these a meaning, so we should try not to
8288 fall over when we encounter them.
8289 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
8293 + Fix for unquoted attribute values in mediawiki tables (#3053).
8294 Previously an unquoted attribute value in a table row
8295 could cause parsing problems.
8296 + Improved treatment of verbatim constructions (#3055).
8297 Previously these yielded strings of alternating Code and Space
8298 elements; we now incorporate the spaces into the Code. Emphasis
8299 etc. is still possible inside these.
8300 + Properly interpret XML tags in pre environments (#3042). They are meant
8301 to be interpreted as literal text.
8303 * EPUB reader: don't add root path to data: URIs (#3150).
8304 Thanks to @lep for the bug report and patch.
8306 * Org reader (Albert Krewinkel):
8308 + Preserve indentation of verse lines (#3064). Leading spaces in verse
8309 lines are converted to non-breaking spaces, so indentation is preserved.
8310 + Ensure image sources are proper links. Image sources as those in plain
8311 images, image links, or figures, must be proper URIs or relative file
8312 paths to be recognized as images. This restriction is now enforced
8313 for all image sources. This also fixes the reader's usage of uncleaned
8314 image sources, leading to `file:` prefixes not being deleted from
8315 figure images. Thanks to @bsag for noticing this bug.
8316 + Trim verse lines properly (Albert Krewinkel).
8317 + Extract meta parsing code to module. Parsing of meta-data is well
8318 separable from other block parsing tasks. Moving into new module to
8319 get small files and clearly arranged code.
8320 + Read markup only for special meta keys. Most meta-keys should be read
8321 as normal string values, only a few are interpreted as marked-up text.
8322 + Allow multiple, comma-separated authors. Multiple authors can be
8323 specified in the `#+AUTHOR` meta line if they are given as a
8324 comma-separated list.
8325 + Give precedence to later meta lines. The last meta-line of any given
8326 type is the significant line. Previously the value of the first line
8327 was kept, even if more lines of the same type were encounterd.
8328 + Read LaTeX_header as header-includes. LaTeX-specific header commands
8329 can be defined in `#+LaTeX_header` lines. They are parsed as
8330 format-specific inlines to ensure that they will only show up in LaTeX
8332 + Set documentclass meta from LaTeX_class.
8333 + Set classoption meta from LaTeX_class_options.
8334 + Read HTML_head as header-includes. HTML-specific head content can be
8335 defined in `#+HTML_head` lines. They are parsed as format-specific
8336 inlines to ensure that they will only show up in HTML output.
8337 + Respect `author` export option. The `author` option controls whether
8338 the author should be included in the final markup. Setting
8339 `#+OPTIONS: author:nil` will drop the author from the final meta-data
8341 + Respect `email` export option. The `email` option controls whether the
8342 email meta-field should be included in the final markup. Setting
8343 `#+OPTIONS: email:nil` will drop the email field from the final
8345 + Respect `creator` export option. The `creator` option controls whether
8346 the creator meta-field should be included in the final markup. Setting
8347 `#+OPTIONS: creator:nil` will drop the creator field from the final
8348 meta-data output. Org-mode recognizes the special value `comment` for
8349 this field, causing the creator to be included in a comment. This is
8350 difficult to translate to Pandoc internals and is hence interpreted the
8351 same as other truish values (i.e. the meta field is kept if it's
8353 + Respect unnumbered header property (#3095). Sections the `unnumbered`
8354 property should, as the name implies, be excluded from the automatic
8355 numbering of section provided by some output formats. The Pandoc
8356 convention for this is to add an "unnumbered" class to the header. The
8357 reader treats properties as key-value pairs per default, so a special
8358 case is added to translate the above property to a class instead.
8359 + Allow figure with empty caption (Albert Krewinkel, #3161).
8360 A `#+CAPTION` attribute before an image is enough to turn an image into
8361 a figure. This wasn't the case because the `parseFromString` function,
8362 which processes the caption value, would fail on empty values. Adding
8363 a newline character to the caption value fixes this.
8367 + Use XML convenience functions (Jesse Rosenthal).
8368 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
8369 the code a lot cleaner than the original XML.Light functions, but they
8370 had been used inconsistently. This puts them in wherever applicable.
8371 + Handle anchor spans with content in headers. Previously, we would only
8372 be able to figure out internal links to a header in a docx if the
8373 anchor span was empty. We change that to read the inlines out of the
8374 first anchor span in a header.
8375 + Let headers use exisiting id. Previously we always generated an id for
8376 headers (since they wouldn't bring one from Docx). Now we let it use an
8377 existing one if possible. This should allow us to recurs through anchor
8379 + Use all anchor spans for header ids. Previously we only used the first
8380 anchor span to affect header ids. This allows us to use all the anchor
8381 spans in a header, whether they're nested or not (#3088).
8382 + Test for nested anchor spans in header. This ensures that anchor spans
8383 in header with content (or with other anchor spans inside) will resolve
8384 to links to a header id properly.
8386 * ODT reader (Hubert Plociniczak)
8388 + Include list's starting value. Previously the starting value of
8389 the lists' items has been hardcoded to 1. In reality ODT's list
8390 style definition can provide a new starting value in one of its
8392 + Infer caption from the text following the image.
8393 Frame can contain other frames with the text boxes.
8394 + Add `fig:` to title for Image with a caption (as expected
8395 by pandoc's writers).
8396 + Basic support for images in ODT documents.
8397 + Don't duplicate text for anchors (#3143). When creating an anchor
8398 element we were adding its representation as well as the original
8399 content, leading to text duplication.
8403 + Include an anchor element when a div or span has an id (#3102).
8404 Note that DocBook does not have a class attribute, but at least this
8405 provides an anchor for internal links.
8409 + Don't use * for unnumbered paragraph, subparagraph. The starred
8410 variants don't exist. This helps with part of #3058...it gets rid of
8411 the spurious `*`s. But we still have numbers on the 4th and 5th level
8413 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
8414 Otherwise they can cause unintended ligatures like `` ?` ``.
8415 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
8416 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
8417 This allows figure placement defaults to be changed by the user
8420 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
8421 TEI doesn't have `<book>` elements but only generic `<divN>` division
8422 elements. Checking the template for a trailing `</book>` is nonsensical.
8424 * MediaWiki writer: transform filename with underscores in images (#3052).
8425 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
8426 for internal links, but it also needs to happen for images.
8428 * ICML writer: replace partial function (!!) in table handling (#3175,
8431 * Man writer: allow section numbers that are not a single digit (#3089).
8433 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
8434 (#3068). In AsciiDoc, you must use a special form of emphasis
8435 (double `__`) for intraword emphasis. Pandoc was previously using
8436 this more than necessary.
8438 * EPUB writer: use stringify instead of plain writer for metadata
8439 (#3066). This means that underscores won't be used for emphasis,
8440 or CAPS for bold. The metadata fields will just have unadorned
8445 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
8446 with a `custom-style` key in the attributes will apply the corresponding
8447 key to the contained blocks or inlines.
8448 + Add ReaderT env to the docx writer (Jesse Rosenthal).
8449 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
8450 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
8451 on the command line. For finer-grained control, you can set
8452 the `dir` attribute in Div or Span elements.
8454 * Org writer (Albert Krewinkel):
8456 + Remove blank line after figure caption. Org-mode only treats an image
8457 as a figure if it is directly preceded by a caption.
8458 + Ensure blank line after figure. An Org-mode figure should be surrounded
8459 by blank lines. The figure would be recognized regardless, but images
8460 in the following line would unintentionally be treated as figures as
8462 + Ensure link targets are paths or URLs. Org-mode treats links as
8463 document internal searches unless the link target looks like a URL or
8464 file path, either relative or absolute. This change ensures that this
8466 + Translate language identifiers. Pandoc and Org-mode use different
8467 programming language identifiers. An additional translation between
8468 those identifiers is added to avoid unexpected behavior. This fixes a
8469 problem where language specific source code would sometimes be output
8471 + Drop space before footnote markers (Albert Krewinkel, #3162).
8472 The writer no longer adds an extra space before footnote markers.
8476 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
8477 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
8479 + Check for the `raw_html` extension before emitting a raw HTML block.
8480 + Abstract out note/ref function (Jesse Rosenthal).
8481 + Add ReaderT monad for environment variables (Jesse Rosenthal).
8483 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
8484 subtitle, author, date (#3119). Note that, as a result of this change,
8485 authors may need to update CSS.
8487 * revealjs template: Added `notes-server` option
8488 (jgm/pandoc-templates#212, Yoan Blanc).
8492 + Restore whitespace between paragraphs. This was
8493 a regression in the last release (jgm/pandoc-templates#207).
8494 + Added `themeoptions` variable (Carsten Gips).
8495 + Added `beamerarticle` variable. This causes the `beamerarticle`
8496 package to be loaded in beamer, to produce an article from beamer
8497 slides. (Carsten Gips)
8498 + Added support for `fontfamilies` structured variable
8500 + Added hypersetup options (Jake Zimmerman).
8504 + Added dummy definition for `\institute`.
8505 This isn't a standard command, and we want to avoid a crash when
8506 `institute` is used with the default template.
8507 + Define default figure placement (Václav Haisman), since pandoc
8508 no longer includes `[htbp]` for figures. Users with custom templates
8509 will want to add this. See #3103.
8510 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
8513 * Moved template compiling/rendering code to a separate library.
8514 `doctemplates`. This allows the pandoc templating system to be
8517 * Text.Pandoc.Error: Fix out of index error in `handleError`
8518 (Matthew Pickering). The fix is to not try to show the exact line when
8519 it would cause an out-of-bounds error as a result of included files.
8521 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
8523 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
8524 addresses. Technically `**@user` is a valid email address, but if we
8525 allow things like this, we get bad results in markdown flavors
8526 that autolink raw email addresses (see #2940). So we exclude a few
8527 valid email addresses in order to avoid these more common bad cases.
8529 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
8530 emit the alt text, emphasized. This accords with what the ODT writer
8531 currently does. The user will still get a warning about a nonexistent
8534 * Fix example in API documentation (#3176, Thomas Weißschuh).
8536 * Tell where to get tarball in INSTALL (#3062).
8538 * Rename README to MANUAL.txt and add GitHub-friendly README.md
8539 (Albert Krewinkel, Kolen Cheung).
8541 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
8545 + Put note on structured vars in separate paragraph (#2148, Albert
8546 Krewinkel). Make it clearer that structured author variables require a
8548 + Note that `--katex` works best with `html5` (#3077).
8549 + Fix the LaTeX and EPUB links in manual (Morton Fox).
8550 + Document `biblio-title` variable.
8552 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
8554 * Update KaTeX to v0.6.0 (Kolen Cheung).
8556 * Allow latest dependencies.
8558 * Use texmath 0.8.6.6 (#3040).
8560 * Allow http-client 0.4.30, which is the version in stackage lts.
8561 Previously we required 0.5.
8562 Remove CPP conditionals for earlier versions.
8564 * Remove support for GHC < 7.8 (Jesse Rosenthal).
8566 + Remove Compat.Monoid.
8567 + Remove an inline monad compatibility macro.
8568 + Remove Text.Pandoc.Compat.Except.
8569 + Remove directory compat.
8570 + Change constraint on mtl.
8571 + Remove unnecessary CPP condition in UTF8.
8572 + Bump base lower bound to 4.7.
8573 + Remove 7.6 build from .travis.yaml.
8574 + Bump supported ghc version in CONTRIBUTING.md.
8575 + Add note about GHC version support to INSTALL.
8576 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
8577 + Remove TagSoup compat.
8578 + Add EOL note to time compat module. Because time 1.4 is a boot library
8579 for GHC 7.8, we will support the compatibility module as long as we
8580 support 7.8. But we should be clear about when we will no longer need
8582 + Remove blaze-html CPP conditional.
8583 + Remove unnecessary CPP in custom Prelude.
8585## pandoc 1.17.2 (2016-07-17)
8587 * Added Zim Wiki writer, template and tests. `zimwiki` is now
8588 a valid output format. (Alex Ivkin)
8590 * Changed email-obfuscation default to no obfuscation (#2988).
8591 + `writerEmailObfuscation` in `defaultWriterOptions` is now
8593 + the default for the command-line `--email-obfuscation` option is
8596 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
8600 + Support arbitrary raw inlines (Albert Krewinkel).
8601 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
8602 parlance) to be included as `@@format:raw foreign format text@@`.
8603 + Improve Div handling (Albert Krewinkel). Div blocks handling is
8604 changed to make the output look more like idiomatic org mode:
8605 - Div-wrapped content is output as-is if the div's attribute is the
8607 - Div containers with an id but neither classes nor key-value pairs
8608 are unwrapped and the id is added as an anchor.
8609 - Divs with classes associated with greater block elements are
8610 wrapped in a `#+BEGIN`...`#+END` block.
8611 - The old behavior for Divs with more complex attributes is kept.
8613 * HTML writer: Better support for raw LaTeX environments (#2758).
8614 Previously we just passed all raw TeX through when MathJax
8615 was used for HTML math. This passed through too much.
8616 With this patch, only raw LaTeX environments that MathJax
8617 can handle get passed through.
8618 This patch also causes raw LaTeX environments to be treated
8619 as math, when possible, with MathML and WebTeX output.
8621 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
8622 (#2993). Markdown line breaks involve a newline, and simple and pipe
8623 tables can't contain one.
8625 * Make --webtex work with the Markdown writer (#1177).
8626 This is a convenient option for people using
8627 websites whose Markdown flavors don't provide for math.
8631 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
8632 We treat display math like block quotes, and apply FirstParagraph style
8633 to paragraphs that follow them. These can be styled as the user
8634 wishes. (But, when the user is using indentation, this allows for
8635 paragraphs to continue after display math without indentation.)
8636 + Use actual creation time as doc prop (Jesse Rosenthal).
8637 Previously, we had used the user-supplied date, if available, for Word's
8638 document creation metadata. This could lead to weird results, as in
8639 cases where the user post-dates a document (so the modification might be
8640 prior to the creation). Here we use the actual computer time to set the
8645 + Don't URI-escape image source (#2825). Usually this is a local file,
8646 and replacing spaces with `%20` ruins things.
8647 + Allow 'standout' as a beamer frame option (#3007).
8648 `## Slide title {.standout}`.
8650 * RST reader: Fixed links with no explicit link text. The link
8651 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
8652 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
8653 Closes Debian #828167 -- reported by Christian Heller.
8657 + Fixed attributes (#2984). Attributes can't be followed by
8658 a space. So, `_(class)emph_` but `_(noclass) emph_`.
8659 + Fixed exponential parsing bug (#3020).
8660 + Fix overly aggressive interpretation as images (#2998).
8661 Spaces are not allowed in the image URL in textile.
8665 + Fix `\cite` so it is a NormalCitation not AuthorInText.
8666 + Strip off double quotes around image source if present (#2825).
8667 Avoids interpreting these as part of the literal filename.
8671 + Add semicolon to list of special chars (Albert Krewinkel)
8672 Semicolons are used as special characters in citations syntax. This
8673 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
8674 suffix]`. Previously, parsing would have failed unless there was a space
8675 or other special character as the last <prefix> character.
8676 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
8677 A specification for an official Org-mode citation syntax was drafted by
8678 Richard Lawrence and enhanced with the help of others on the orgmode
8679 mailing list. Basic support for this citation style is added to the
8681 + Support arbitrary raw inlines (Albert Krewinkel).
8682 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
8683 parlance) to be included as `@@format:raw foreign format text@@`.
8684 + Remove partial functions (Albert Krewinkel, #2991).
8685 Partial functions like `head` lead to avoidable errors and should be
8686 avoided. They are replaced with total functions.
8687 + Support figure labels (Albert Krewinkel, #2496, #2999).
8688 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
8689 respective image. This allows e.g. the LaTeX to add proper `\label`
8691 + Improve tag and properties type safety (Albert Krewinkel).
8692 Specific newtype definitions are used to replace stringly typing of tags
8693 and properties. Type safety is increased while readability is improved.
8694 + Parse as headlines, convert to blocks (Albert Krewinkel).
8695 Emacs org-mode is based on outline-mode, which treats documents as trees
8696 with headlines are nodes. The reader is refactored to parse into a
8697 similar tree structure. This simplifies transformations acting on
8698 document (sub-)trees.
8699 * Refactor comment tree handling (Albert Krewinkel).
8700 Comment trees were handled after parsing, as pattern matching on lists
8701 is easier than matching on sequences. The new method of reading
8702 documents as trees allows for more elegant subtree removal.
8703 * Support archived trees export options (Albert Krewinkel).
8704 Handling of archived trees can be modified using the `arch` option.
8705 Archived trees are either dropped, exported completely, or collapsed to
8706 include just the header when the `arch` option is nil, non-nil, or
8707 `headline`, respectively.
8708 * Put export setting parser into module (Albert Krewinkel).
8709 Export option parsing is distinct enough from general block parsing to
8710 justify putting it into a separate module.
8711 * Support headline levels export setting (Albert Krewinkel).
8712 The depths of headlines can be modified using the `H` option. Deeper
8713 headlines will be converted to lists.
8714 * Replace ugly code with view pattern (Albert Krewinkel).
8715 Some less-than-smart code required a pragma switching of overlapping
8716 pattern warnings in order to compile seamlessly. Using view patterns
8717 makes the code easier to read and also doesn't require overlapping
8718 pattern checks to be disabled.
8719 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
8720 Org rules for allowed characters before or after markup chars were not
8721 checked for verbatim text. This resultet in wrong parsing outcomes of
8722 if the verbatim text contained e.g. space enclosed markup characters as
8723 part of the text (`=is_substr = True=`). Forcing the parser to update
8724 the positions of allowed/forbidden markup border characters fixes this.
8726 * LaTeX template: fix for obscure hyperref/xelatex issue.
8727 Here's a minimal case:
8729 \documentclass[]{article}
8730 \usepackage{hyperref}
8735 Without this change, this fails on the second invocation of xelatex.
8736 This affects inputs this like `# %á` with pdf output via xelatex.
8738 * trypandoc: call results 'html' instead of 'result'.
8739 This is for better compatibility with babelmark2.
8741 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
8742 MultiMarkdown was only mentioned as a supported Markdown dialect but not
8743 as a possible input or output format. A brief mention is added
8744 everywhere the other supported markdown dialects are mentioned.
8746 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
8747 Raw HTML is kept when the output format is Emacs Org mode.
8749 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
8751 * Text.Pandoc.Shared:
8753 + Introduce blocksToInlines function (Jesse Rosenthal).
8754 This is a lossy function for converting `[Block] -> [Inline]`. Its main
8755 use, at the moment, is for docx comments, which can contain arbitrary
8756 blocks (except for footnotes), but which will be converted to spans.
8757 This is, at the moment, pretty useless for everything but the basic
8758 `Para` and `Plain` comments. It can be improved, but the docx reader
8759 should probably emit a warning if the comment contains more than this.
8760 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
8761 + Add further formats for `normalizeDate` (Jesse Rosenthal).
8762 We want to avoid illegal dates -- in particular years with greater than
8763 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
8764 `%Y%m`, and finally `%Y`.
8765 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
8766 We only allow years between 1601 and 9999, inclusive. The ISO 8601
8767 actually says that years are supposed to start with 1583, but MS Word
8768 only allows 1601-9999. This should stop corrupted word files if the date
8769 is out of that range, or is parsed incorrectly.
8770 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
8771 Previously we parsed a list of dates, took the first one, and then
8772 tested its year range. That meant that if the first one failed, we
8773 returned nothing, regardless of what the others did. Now we test for
8774 sanity before running `msum` over the list of Maybe values. Anything
8775 failing the test will be Nothing, so will not be a candidate.
8779 + Add simple comment functionality. (Jesse Rosenthal).
8780 This adds simple track-changes comment parsing to the docx reader. It is
8781 turned on with `--track-changes=all`. All comments are converted to
8782 inlines, which can list some information. In the future a warning will be
8783 added for comments with formatting that seems like it will be excessively
8784 denatured. Note that comments can extend across blocks. For that reason
8785 there are two spans: `comment-start` and `comment-end`. `comment-start`
8786 will contain the comment. `comment-end` will always be empty. The two
8787 will be associated by a numeric id.
8788 + Enable warnings in top-level reader (Jesse Rosenthal).
8789 Previously we had only allowed for warnings in the parser. Now we allow
8790 for them in the `Docx.hs` as well. The warnings are simply concatenated.
8791 + Add warning for advanced comment formatting. (Jesse Rosenthal).
8792 We can't guarantee we'll convert every comment correctly, though we'll
8793 do the best we can. This warns if the comment includes something other
8795 + Add tests for warnings. (Jesse Rosenthal).
8796 + Add tests for comments (Jesse Rosenthal).
8797 We test for comments, using all track-changes options. Note that we
8798 should only output comments if `--track-changes=all`. We also test for
8799 emitting warnings if there is complicated formatting.
8801 * README: update to include track-changes comments. (Jesse Rosenthal)
8803 * Improved Windows installer - don't ignore properties set on command-line.
8804 See #2708. Needs testing to see if this resolves the issue.
8807 * Process markdown extensions on command line in L->R order (#2995).
8808 Previously they were processed, very unintuitively, in R->L
8809 order, so that `markdown-tex_math_dollars+tex_math_dollars`
8810 had `tex_math_dollars` disabled.
8812 * Added `secnumdepth` variable to LaTeX template (#2920).
8814 * Include table of contents in README.html in Windows package.
8816 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
8817 In Writers.Shared, we strip leading and trailing spaces for display
8818 math. Since SoftBreak's are treated as spaces, we should strip those
8821 * beamer, latex templates: pass biblatexoptions directly in package load.
8822 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
8824 * CPP workaround for deprecation of `parseUrl` in http-client.
8826 * Removed some redundant class constraints.
8828 * make_oxs_package.sh - use OSX env variable.
8830 * Added `winpkg` target to Makefile. This downloads the windows package
8831 from appveyor and signs it using the key.
8833 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
8834 Raw TeX is kept verbatim when the output format is Emacs Org mode.
8836 * Support math with haddock-library >= 1.4.
8838 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
8839 wouldn't accept the package.
8841 * Update library dependency versions.
8843## pandoc 1.17.1 (2016-06-04)
8845 * New output format: `docbook5` (Ivo Clarysse).
8847 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
8852 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
8853 This allows header attributes to be added to org documents in the form
8854 of `:PROPERTIES:` drawers. All available attributes are stored as
8855 key/value pairs. This reflects the way the org reader handles
8856 `:PROPERTIES:` blocks.
8857 + Add drawer capability (Carlos Sosa). For the implementation of the
8858 Drawer element in the Org Writer, we make use of a generic Block
8859 container with attributes. The presence of a `drawer` class defines
8860 that the `Div` constructor is a drawer. The first class defines the
8861 drawer name to use. The key-value list in the attributes defines
8862 the keys to add inside the Drawer. Lastly, the list of Block elements
8863 contains miscellaneous blocks elements to add inside of the Drawer.
8864 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
8865 reserved for internal use by Org-mode and should not be used.
8866 The `CUSTOM_ID` property is to be used instead, it is converted to the
8867 `ID` property for certain export format.
8871 + Ignore `--incremental` unless output format is beamer (#2843).
8872 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
8873 Allow for optional argument in square brackets.
8874 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
8875 This allows one to access the hyphenation patterns in CTAN's
8877 + Add missing languages from hyph-utf8 (Andrew Dunning).
8878 + Improve use of `\strut` with `\minipage` inside tables
8879 (Jose Luis Duran). This improves spacing in multiline
8881 + Use `{}` around options containing special chars (#2892).
8882 + Avoid lazy `foldl`.
8883 + Don't escape underscore in labels (#2921). Previously they were
8885 + brazilian -> brazil for polyglossia (#2953).
8887 * HTML writer: Ensure mathjax link is added when math appears in footnote
8888 (#2881). Previously if a document only had math in a footnote, the
8889 MathJax link would not be added.
8891 * EPUB writer: set `navpage` variable on nav page.
8892 This allows templates to treat it differently.
8896 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
8897 + Properly handle `ulink`/`link` (Ivo Clarysse).
8901 + Unescape URIs in spine (#2924).
8902 + EPUB reader: normalise link id (Mauro Bieg).
8906 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
8907 `moveTo` and `moveFrom` are track-changes tags that are used when a
8908 block of text is moved in the document. We now recognize these tags and
8909 treat them the same as `insert` and `delete`, respectively. So,
8910 `--track-changes=accept` will show the moved version, while
8911 `--track-changes=reject` will show the original version.
8912 + Tests for track-changes moving (Jesse Rosenthal).
8914 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
8915 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
8916 would error out if zip-archive failed. We change the archive extraction
8917 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
8919 * Markdown, HTML readers: be more forgiving about unescaped `&` in
8920 HTML (#2410). We are now more forgiving about parsing invalid HTML with
8921 unescaped `&` as raw HTML. (Previously any unescaped `&`
8922 would cause pandoc not to recognize the string as raw HTML.)
8926 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
8927 + Added `-s` to markdown-reader-more test.
8929 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
8930 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
8932 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
8935 * RST reader: Support `:class:` option for code block in RST reader
8938 * Org reader (all Albert Krewinkel, except where noted otherwise):
8940 + Stop padding short table rows.
8941 Emacs Org-mode doesn't add any padding to table rows. The first
8942 row (header or first body row) is used to determine the column count,
8943 no other magic is performed.
8944 + Refactor rows-to-table conversion. This refactors
8945 the codes conversing a list table lines to an org table ADT.
8946 The old code was simplified and is now slightly less ugly.
8947 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
8948 This fixes Org mode parsing of some corner cases regarding empty cells
8949 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
8950 two empty cells, but would be parsed as a single cell containing a pipe
8951 character. Empty rows where parsed as alignment rows and dropped from
8953 + Fix spacing after LaTeX-style symbols.
8954 The org-reader was droping space after unescaped LaTeX-style symbol
8955 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
8956 instead. This seems to be because the LaTeX-reader treats the
8957 command-terminating space as part of the command. Dropping the trailing
8958 space from the symbol-command fixes this issue.
8959 + Print empty table rows. Empty table rows should not
8960 be dropped from the output, so row-height is always set to be at least 1.
8961 + Move parser state into separate module.
8962 The org reader code has become large and confusing. Extracting smaller
8963 parts into submodules should help to clean things up.
8964 + Add support for sub/superscript export options.
8965 Org-mode allows to specify export settings via `#+OPTIONS` lines.
8966 Disabling simple sub- and superscripts is one of these export options,
8967 this options is now supported.
8968 + Support special strings export option Parsing of special strings
8969 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
8971 + Support emphasized text export option. Parsing of emphasized text can
8972 be toggled using the `*` option. This influences parsing of text marked
8973 as emphasized, strong, strikeout, and underline. Parsing of inline math,
8974 code, and verbatim text is not affected by this option.
8975 + Support smart quotes export option. Reading of smart quotes can be
8976 toggled using the `'` option.
8977 + Parse but ignore export options. All known export options are parsed
8979 + Refactor block attribute handling. A parser state attribute was used
8980 to keep track of block attributes defined in meta-lines. Global state
8981 is undesirable, so block attributes are no longer saved as part of the
8982 parser state. Old functions and the respective part of the parser state
8984 + Use custom `anyLine`. Additional state changes need to be made after
8985 a newline is parsed, otherwise markup may not be recognized correctly.
8986 This fixes a bug where markup after certain block-types would not be
8988 + Add support for `ATTR_HTML` attributes (#1906).
8989 Arbitrary key-value pairs can be added to some block types using a
8990 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
8991 when exporting to HTML, but since we cannot make this distinction here,
8992 the attributes are always added. The functionality is now supported
8994 + Add `:PROPERTIES:` drawer support (#1877).
8995 Headers can have optional `:PROPERTIES:` drawers associated with them.
8996 These drawers contain key/value pairs like the header's `id`. The
8997 reader adds all listed pairs to the header's attributes; `id` and
8998 `class` attributes are handled specially to match the way `Attr` are
8999 defined. This also changes behavior of how drawers of unknown type
9000 are handled. Instead of including all unknown drawers, those are not
9001 read/exported, thereby matching current Emacs behavior.
9002 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
9003 + Respect drawer export setting. The `d` export option can be used
9004 to control which drawers are exported and which are discarded.
9005 Basic support for this option is added here.
9006 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
9007 Also fix up tab handling for leading whitespace in code blocks.
9008 + Support new syntax for export blocks. Org-mode version 9
9009 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
9010 where `<FORMAT>` is the format of the block's content, the new
9011 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
9013 + Refactor `BEGIN...END` block parsing.
9014 + Fix handling of whitespace in blocks, allowing content to be indented
9015 less then the block header.
9016 + Support org-ref style citations. The *org-ref* package is an
9017 org-mode extension commonly used to manage citations in org
9018 documents. Basic support for the `cite:citeKey` and
9019 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
9020 + Split code into separate modules, making for cleaner code and
9023 * Added `docbook5` template.
9025 * `--mathjax` improvements:
9027 + Use new CommonHTML output for MathJax (updated default MathJax URL,
9029 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
9030 This is designed for cases where the input is always TeX and maximal
9031 conformity with TeX is desired. It seems to be smaller and load faster
9032 than what we used before. See #2858.
9033 + Load the full MathJax config to maximize loading speed (KolenCheung).
9035 * Bumped upper version bounds to allow use of latest packages
9036 and compilation with ghc 8.
9038 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
9039 #2310, #2310, #2824). This fixes behavior of roots, e.g.
9040 `\sqrt[3]{x}`, and issues with sub/superscript positioning
9041 and matrix column alignment in docx.
9045 + Clarified documentation of `implicit_header_references` (#2904).
9046 + Improved documentation of `--columns` option.
9048 * Added appveyor setup, with artefacts (Jan Schulz).
9050 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
9052 * LaTeX template: support for custom font families (vladipus).
9053 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
9054 can find some other usages. Example usage in YAML metadata:
9057 - name: \cyrillicfont
9058 font: Liberation Serif
9059 - name: \cyrillicfonttt
9060 options: Scale=MatchLowercase
9063 * Create unsigned msi as build artifact in appveyor build.
9065 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
9069## pandoc 1.17.0.3 (2016-03-24)
9071 * LaTeX writer: Fixed position of label in figures (#2813).
9072 Previously the label wasn't in the right place, and `\ref`
9073 wouldn't work properly.
9074 * Added .tei test files to pandoc.cabal so they'll be included
9076 * Updated copyright dates.
9078## pandoc 1.17.0.2 (2016-03-23)
9080 * Fixed serious regression in `htmlInBalanced`, which caused
9081 newlines to be omitted in some raw HTML blocks in Markdown
9084## pandoc 1.17.0.1 (2016-03-21)
9086 * File scope is no longer used when there are no input files (i.e.,
9087 when input comes from stdin). Previously file scope was triggered
9088 when the `json` reader was specified and input came from `stdin`,
9089 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
9090 thanks to Fedor Sheremetyev for calling the bug to our attention.)
9091 * Improved documentation of templates (#2797).
9093## pandoc 1.17 (2016-03-20)
9095 * Added `--file-scope` option (Jesse Rosenthal).
9096 By default pandoc operates on multiple files by first concatenating
9097 them (around extra line breaks) and then processing the joined file. So
9098 it only parses a multi-file document at the document scope. This has the
9099 benefit that footnotes and links can be in different files, but for
9100 some purposes it is useful to parse the individual files first
9101 and then combine their outputs (e.g. when the files use footnotes
9102 or links with the same labels). The `--file-scope` option causes
9103 pandoc to parse the files first, and then combine the parsed output,
9104 instead of combining before parsing. `--file-scope` is selected
9105 automatically for binary input files (which cannot be concatenated)
9106 and for pandoc json.
9108 * Add TEI Writer (Chris Forster) and `tei` output format.
9110 * Added a general `ByteStringReader` with warnings, used by the docx
9111 reader (API change, Jesse Rosenthal).
9113 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
9115 * Changed type of `Shared.uniqueIdent` argument from
9116 `[String]` to `Set String`. This avoids performance problems in documents
9117 with many identically named headers (API change, #2671).
9119 * Removed `tex_math_single_backslash` from `markdown_github` options
9122 * Make language extensions as well as full language names
9123 trigger syntax highlighting. For example, `py` will now work as
9124 well as `python` (jgm/highlighting-kate#83).
9126 * Added `institute` variable to latex, beamer templates (Fraser
9127 Tweedale, Josef Svenningsson).
9129 * Docx reader (Jesse Rosenthal):
9131 + Handle alternate content. Some word functions (especially graphics)
9132 give various choices for content so there can be backwards compatibility.
9133 + Don't turn numbered headers into lists.
9134 + Docx Reader: Add state to the parser, for warnings
9135 + Update feature checklist in source code.
9136 + Get rid of `Modifiable` typeclass.
9137 + Add tests for adjacent hyperlinks.
9138 + Add a "Link" modifier to `Reducible`. We want to make sure that
9139 links have their spaces removed, and are appropriately smushed
9144 + Fixed behavior of base tag (#2777).
9145 If the base path does not end with slash, the last component
9146 will be replaced. E.g. base = `http://example.com/foo`
9147 combines with `bar.html` to give `http://example.com/bar.html`.
9148 If the href begins with a slash, the whole path of the base
9149 is replaced. E.g. base = `http://example.com/foo/` combines
9150 with `/bar.html` to give `http://example.com/bar.html`.
9151 + Rewrote `htmlInBalanced`. This version avoids an exponential
9152 performance problem with `<script>` tags, and it should be faster
9154 + Properly handle an empty cell in a simple table (#2718).
9155 + Handle multiple `<meta>` tags with same name. Put them in a list
9156 in the metadata so they are all preserved, rather than (as before)
9157 throwing out all but one..
9161 + Improved pipe table parsing (#2765).
9162 + Allow `+` separators in pipe table cells. We already allowed
9163 them in the header, but not in the body rows, for some reason.
9164 This gives compatibility with org-mode tables.
9165 + Don't cross line boundary parsing pipe table row.
9166 Previously an Emph element could be parsed across the newline
9167 at the end of the pipe table row.
9168 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
9169 performance (#2730).
9170 + Fixed bug with smart quotes around tex math.
9174 + Handle interior `$` characters in math (#2743). For example,
9176 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
9177 This gives better results when people write e.g. `\TeX{}` in Markdown.
9178 + Properly handle LaTeX "math" environment as inline math (#2171).
9180 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
9183 * Org reader (Albert Krewinkel):
9185 + Prefix even empty figure names with "fig:" (#2643). The
9186 convention used by pandoc for figures is to mark them by prefixing
9187 the name with `fig:`. The org reader failed to do this if a figure
9189 + Refactor link-target processing (#2684).
9191 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
9192 Thanks to @c-foster.
9194 * HTML writer: Don't include alignment attribute for default table columns.
9195 Previously these were given "left" alignment. Better to leave off
9196 alignment attributes altogether (#2694).
9198 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
9199 better compatibility with other Markdown flavors (Henrik Tramberend).
9203 + Use image identifier to create a label and hypertarget for
9204 figures (Mauro Bieg).
9205 + Avoid double toprule in headerless table with caption (#2742).
9206 + Clean up options parser (Jesse Rosenthal).
9207 + Treat `memoir` template with `article` option as article, instead
9208 of treating all `memoir` templates as books.
9209 + Allow more flexible table alignment (Henrik Tramberend, #2665).
9210 New default is not to include `[c]` option (which is the default
9211 anyway if no positioning is specified). Now LaTeX emplates can
9212 control the overall table alignment in a document by setting the
9213 longtable length variables `LTleft` and `LTright`. For example,
9214 `\setlength\LTleft\parindent\setlength\LTright\fill`
9215 will create left-aligned tables that respect paragraph indentation.
9217 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
9219 * Org writer - pass through RawInline with format "org".
9221 * DokuWiki writer: use `$$` for display math.
9223 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
9225 * Make protocol-relative URIs work again (#2737).
9227 * make_osx_package.sh: Use env variable for developer id certs.
9229 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
9232 * Allow `zip-archive` 0.3.
9234 * Allow `aeson` 0.11.
9236## pandoc 1.16.0.2 (2016-01-12)
9238 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
9240 * Fixed regression in latex smart quote parsing (#2645).
9241 In cases where a match was not found for a quote, everything
9242 from the open quote to the end of the paragraph was being dropped.
9244## pandoc 1.16.0.1 (2016-01-10)
9246 * Fixed regression with `--latex-engine` (#2618). In 1.16
9247 `--latex-engine` raises an error if a full path is given.
9249 * Org reader: Fix function dropping subtrees tagged `:noexport`
9250 (Albert Krewinkel, #2628):
9252 * Markdown reader: renormalize table column widths if they exceed 100%
9255 * Textile reader: don't allow block HTML tags in inline contexts.
9256 The reader previously did allow this, following redcloth,
9257 which happily parses
9259 Html blocks can be <div>inlined</div> as well.
9263 <p>Html blocks can be <div>inlined</div> as well.</p>
9265 This is invalid HTML. The above sample now produces;
9267 <p>Html blocks can be</p>
9273 * Improved default template lookup for custom lua scripts (#2625).
9274 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
9275 pandoc would look for the template in
9276 `~/.pandoc/templates/default./path/to/lua/script.lua`.
9277 With this change it will look in the more reasonable
9278 `~/.pandoc/templates/default.script.lua`. This makes it possible to
9279 store default templates for custom writers.
9281 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
9284 * LaTeX writer: restore old treatment of Span (#2624). A Span is
9285 now rendered with surrounding `{}`, as it was before 1.16.
9287 * Entity handling fixes: improved handling of entities like
9288 `⟨` that require a trailing semicolon. Allow uppercase
9289 `x` in numerical hexidecimal character references, working
9290 around a tagsoup bug.
9292 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
9293 memory use on compile. With aeson 0.10 we were getting an out of
9294 memory error on a 2GB Ubuntu 64-bit VM.
9296 * Improved deb package creation script. Made `DPKGVER` work.
9297 Renamed `COMMIT` to `TREE`. You should now be able to do
9298 `TREE=1.16.0.1 DPKGVER=2 make deb`.
9301## pandoc 1.16 (2016-01-02)
9303 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
9305 + Added syntax for link and image attributes to pandoc's Markdown.
9306 + Updated readers and writers to use link and image attributes
9308 + Support image attributes in Docx, Textile, RST readers.
9310 * Renamed link attribute extensions. The old `link_attributes` is
9311 now `mmd_link_attributes`, and `link_attributes` now enables the
9312 new pandoc-style link and image attributes (API change).
9313 Note: this change could break some existing workflows.
9315 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
9316 Added threefold wrapping option.
9318 + Command line option: deprecated `--no-wrap`, added
9319 `--wrap=[auto|none|preserve]`
9320 + Added `WrapOption`, exported from `Text.Pandoc.Options`
9321 + Changed type of `writerWrapText` in `WriterOptions` from
9322 `Bool` to `WrapOption`.
9323 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
9324 + Supported `SoftBreak` in readers and writers.
9326 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
9327 change, Mauro Bieg).
9329 * Added `--dpi` command-line option (Mauro Bieg).
9331 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
9332 This change makes `--no-tex-ligatures` affect the LaTeX reader
9333 as well as the LaTeX and ConTeXt writers. If it is used,
9334 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
9335 literally, rather than parsing ligatures for quotation marks
9336 and dashes. And the LaTeX writer will print unicode quotation
9337 mark and dash characters literally, rather than converting
9338 them to the standard ASCII ligatures. Note that `--smart` has
9339 no effect on the LaTeX reader. `--smart` is still the default
9340 for all input formats when LaTeX or ConTeXt is the output format,
9341 *unless* `--no-tex-ligatures` is used.
9343 Some examples to illustrate the logic:
9346 % echo "'hi'" | pandoc -t latex
9348 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
9350 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
9352 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
9354 % echo "'hi'" | pandoc -f latex
9358 * Removed deprecated options `--offline` and `--html5`.
9360 * Fixed language code for Czech (`cs` not `cz`) (#2597).
9362 * Implemented `east_asian_line_breaks` extension (#2586).
9363 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
9364 to `Extension` (API change). This extension is like
9365 `ignore_line_breaks`, but smarter -- it only ignores line breaks
9366 between two East Asian wide characters. This makes it better suited
9367 for writing with a mix of East Asian and non-East Asian scripts.
9369 * Added support for PDF creation via `wkhtmltopdf`.
9370 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
9371 if you have math.) Margins can be set using the variables
9372 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
9373 Other styling can be done through CSS.
9375 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
9376 We were capturing final colons as in `[@foo: bar]`; the citation id
9377 was being parsed as `@foo:`.
9381 + Fixed image syntax for local files (#2589).
9382 + Changed type of `writeICML` (Mauro Bieg).
9383 API change: It is now `WriterOptions -> Pandoc -> IO String`.
9384 Also handle new image attributes.
9385 + Intersperse line breaks instead of appending them to
9386 every `ParagraphStyleRange` (Mauro Bieg, #2501).
9387 + Add `Cite` style to citations (Mauro Bieg).
9388 + Added figure handling (#2590, Mauro Bieg).
9389 + Better handling of math. Instead of just printing the raw tex,
9390 we now try to fake it with unicode characters.
9392 * HTML writer: Include `example` class for example lists (#2524).
9394 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
9396 + Support for percentage widths/heights
9397 + Use `Attr` instead of title to get dimensions from ODT walker
9398 to `writeOpenDocument`.
9402 + Support anchors in spans and divs with id elements
9403 (jgm/pandoc-citeproc#143).
9404 + Fixed code blocks (#1861).
9406 * Haddock writer: omit formatting inside links, which isn't supported
9409 * MediaWiki writer: Fixed spacing issues in table cells.
9411 + Start cell on new line unless it's a single Para or Plain
9413 + For single Para or Plain, insert a space after the `|` to
9414 avoid problems when the text begins with a character like
9417 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
9421 + Add support for GAP highlighting using listings (Raniere Silva).
9422 + Consider `header-includes` content as well as templates
9423 when determining whether to use csquotes (Andreas Lööw).
9424 + Create defaults for geometry using `margin-left` etc.
9425 If `geometry` has no value, but `margin-left`, `margin-right`,
9426 `margin-top`, and/or `-margin-bottom` are given, a default value
9427 for `geometry` is created from these. Note that these variables
9428 already affect PDF production via HTML5 with `wkhtmltopdf`.
9430 * ConTeXt writer: set default layout based on `margin-left`, etc.
9431 This sets up `\setuplayout` based on the variables `margin-left`,
9432 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
9435 * Docx writer: better handling of PDF images. Previously we tried
9436 to get the image size from the image even if an explicit size was
9437 specified. Since we still can't get image size for PDFs, this made
9438 it impossible to use PDF images in docx. Now we don't try to get
9439 the image size when a size is already explicitly specified.
9441 * Markdown writer: use raw HTML for link/image attributes when
9442 the `link_attributes` extension is unset and `raw_html` is set (#2554).
9444 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
9448 + Improved smart quote parsing (#2555). This fixes redering of
9450 + Use curly quotes for unmatched ` (#2555).
9451 + Allow blank space between braced arguments of commands (#2592).
9455 + Improved pipe table relative widths. Previously pipe table
9456 columns got relative widths (based on the header underscore lines)
9457 when the source of one of the rows was greater in width than the
9458 column width. This gave bad results in some cases where much of
9459 the width of the row was due to nonprinting material (e.g. link
9460 URLs). Now pandoc only looks at printable width (the width of a
9461 plain string version of the source), which should give better results.
9462 Thanks to John Muccigrosso for bringing up the issue.
9463 + Fixed parsing bug with macros. Previously macro definitions in
9464 indented code blocks were being parsed as macro definitions, not code.
9466 * Textile reader: skip over attribute in image source (#2515).
9467 We don't have a place yet for styles or sizes on images, but
9468 we can skip the attributes rather than incorrectly taking them
9469 to be part of the filename.
9471 * Docx reader: Handle dummy list items (Jesse Rosenthal).
9472 These come up when people create a list item and then delete the
9473 bullet. It doesn't refer to any real list item, and we used to ignore
9476 * CommonMark reader/writer rewritten to use latest `cmark`.
9478 * Fixed Emoji character definitions (#2523). There were many bugs in the
9481 * `Text.Pandoc.CSS`:
9483 + Added `pickStylesToKVs` function to extract multiple properties at
9484 once (API change, Mauro Bieg).
9485 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
9487 * `trypandoc`: sort drop-down lists.
9491 + Made `\euro` conditional on presence of character.
9492 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
9493 + Moved `header-includes` before setting of title (Thomas Hodgson),
9494 to match the LaTeX template (jgm/pandoc-templates#168).
9495 + Added `section-titles` variable (defaults to true)
9496 to enable/suppress section title pages in beamer
9497 slide shows (Thomas Hodgson).
9498 + Moved beamer themes after fonts, so that themes can
9499 change fonts. (Previously the fonts set were being
9500 clobbered by lmodern.sty.) (Thomas Hodgson).
9502 * Beamer/LaTeX template changes (Thomas Hodgson):
9503 + Added `thanks` variable
9504 + Use `parskip.sty` when `indent` isn't set (fall back to using
9505 `setlength` as before if `parskip.sty` isn't available).
9506 + Use `biblio-style` with biblatex.
9507 + Added `biblatexoptions` variable.
9509 * LaTeX template changes:
9511 + Added `paper` after `$papersize$` variable in latex template.
9512 Thus you can say `papersize: a4` and the latex will contain
9513 `a4paper`. This change may break some existing workflows; if
9514 you currently specify `a4paper`, you'll get `a4paperpaper` which
9515 is meaningless. However, the change seems worth it, as it will
9516 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
9517 and html->pdf via wkhtmltopdf.
9518 + Only pass options to color package if `colorlinks` is set
9520 + Make definition of `\euro` conditional in xelatex/lualatex,
9521 as it is already for pdflatex (Andrew Dunning).
9522 + Removed setting of `subject` in PDF metadata.
9523 This used to be set to the subtitle, but really the subtitle
9524 need not give the subject. Also, `subtitle` can contain formatting,
9525 so we'd need, at least, a plain text version for this.
9526 + Moved `header-includes` before setting of `\title`, `\author`,
9527 etc. This allows these macros to be redefined.
9528 + Use `\subtitle` command for `subtitle`, instead of tacking it
9529 on to the title as before. We give a no-op fallback definition if it
9530 is not defined. This change should produce much better results
9531 in classes that support `\subtitle`. With the default article
9532 class, which does not define `\subtitle`, subtitles will no
9533 longer be printed unless the user defines `\subtitle` and
9534 redefines `\maketitle`.
9535 + Moved redefinitions of `\paragraph` and `\subparagraph` to
9536 before header-includes.
9540 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
9541 needed for things to work on ConTeXt stable from TeXLive 2015.
9542 + Revert use of `\setuphead` in title block (Andrew Dunning,
9545 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
9547 * Fixed man template so disabling hyphenation actually works.
9548 The command needs to come after .TH.
9550 * Added 'navigation' variable to beamer template (#2543).
9551 Valid values are `empty` (the default), `horizontal`, `vertical`,
9552 and `frame`. Note that this changes the default behavior from
9553 `horizontal` to `empty`. Closes #2543.
9555 * Added `toc` to HTML slide format templates (Andrew Dunning),
9556 so that `--toc` creates a contents slide.
9558 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
9560 * Allow pipe tables with no body rows (#2556).
9561 Previously this raised a runtime error.
9563 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
9564 as URL. The Haskell URI parsing routines will accept "C:" as a
9565 scheme, so we rule that out manually. This helps with
9566 `--self-contained` and absolute Windows paths.
9568 * Define a `meta-json` variable for all writers (#2019). This contains
9569 a JSON version of all the metadata, in the format selected for the
9570 writer. So, for example, to get just the YAML metadata, you can run
9571 pandoc with the following custom template: `$meta-json$`. The intent
9572 is to make it easier for static site generators and other tools to get
9575 * Document limitations of --self-contained (#2553).
9577 * Improved Citations section of README (#2551). Added information
9578 about `link-citations` and a link to the pandoc-citeproc man page.
9580 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
9583 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
9585 * Improved implicit pandoc-citeproc inclusion.
9586 The filter pandoc-citeproc is automatically used when
9587 `--bibliography` is specified on the command line, unless
9588 `--natbib` or `--biblatex` is used. However, previously this
9589 only worked if `--bibliography` was spelled out in full, and not
9590 if `--biblio` was used.
9592 * reveal.js: Interpret pauses correctly for all headers (#2530).
9593 Previously, when using headers below the slide level, pauses are left
9594 uninterpreted into pauses. In my opinion, unexpected behavior but
9595 intentional looking at the code.
9597 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
9599 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
9602 * ImageSize: Added functions for converting between image dimensions
9605 * Use lts-3.18 in stack.yaml. This avoids Windows build
9606 issues with the HTTP library.
9608 * Bump version bounds for dependencies.
9610## pandoc 1.15.2.1 (2015-11-16)
9612 * Added two missing test files, and `stack.yaml`, to
9613 `extra-source-files` so they're included in the source tarball.
9615 * reveal.js template: Fixed parallaxBackground options.
9616 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
9617 need integer values, not strings. (Vaughn Iverson)
9619## pandoc 1.15.2 (2015-11-15)
9621 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
9622 ConTeXt rather than LaTeX (#2463).
9624 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
9626 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
9627 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
9630 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
9631 parsing (#2469). Tightened up the inline HTML parser so it disallows
9634 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
9638 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
9639 Paragraphs can be followed by lists, even if there is no blank line
9640 between the two blocks. However, this should only be true if the
9641 paragraph is not within a list, were the preceding block should be
9642 parsed as a plain instead of paragraph (to allow for compact lists).
9643 Thanks to @rgaiacs for bringing this up.
9644 + Allow toggling header args (Albert Krewinkel, #2269).
9645 Org-mode allows to skip the argument of a code block header argument if
9646 it's toggling a value. Argument-less headers are now recognized,
9647 avoiding weird parsing errors.
9648 + Fix markup parsing in headers (Albert Krewinkel, #2504).
9649 Markup as the very first item in a header wasn't recognized. This was
9650 caused by an incorrect parser state: positions at which inline markup
9651 can start need to be marked explicitly by changing the parser state.
9652 This wasn't done for headers. The proper function to update the state
9653 is now called at the beginning of the header parser, fixing this issue.
9654 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
9655 Smart quotes, ellipses, and dashes should behave like normal quotes,
9656 single dashes, and dots with respect to text markup parsing.
9657 + Require whitespace around definition list markers (#2518).
9658 This rule was not checked before, resulting in bugs with footnotes
9659 and some link types.
9663 + Pipe tables with long lines now get relative cell widths (#2471).
9664 If a pipe table contains a line longer than the column width (as set by
9665 `--columns` or 80 by default), relative widths are computed based on the
9666 widths of the separator lines relative to the column width. This should
9667 solve persistent problems with long pipe tables in LaTeX/PDF output, and
9668 give more flexibility for determining relative column widths in other
9669 formats, too. For narrower pipe tables, column widths of 0 are used,
9670 telling pandoc not to specify widths explicitly in output formats that
9672 + Improved parser for `mmd_title_block`. We now allow blank metadata
9673 fields. These were explicitly disallowed before.
9674 + Citation keys can now contain `://`, so URLs and DOIs can be used
9675 as citation keys (jgm/pandoc-citeproc#166).
9677 * Beamer template: fix incompatibility of section slides with natbib.
9678 Natbib (and presumably biblatex) bibliography commands create
9679 their own section. Since these are in frame environments,
9680 we have an incompatibility with the `\AtBeginSection` macro
9681 which creates a special frame when a new section occurs.
9682 (We can't have a frame inside another frame.) This change disables
9683 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
9684 bringing the problem to my attention. This supersedes #145. See
9687 * Textile reader: don't do smart punctuation unless explicitly asked
9688 (#2480). Note that although smart punctuation is part of the textile
9689 spec, it's not always wanted when converting from textile
9690 to, say, Markdown. So it seems better to make this an option.
9692 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
9693 The `comment` environment is handled in a similar way to the
9694 `verbatim` environment, except that its content is discarded.
9696 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
9697 Jesse Rosenthal). This fixes a problem with links in notes.
9699 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
9700 (mb21). For LaTeX, also collect `lang` and `dir` attributes on spans and
9701 divs to set the `lang`, `otherlangs` and `dir` variables if they aren’t set
9706 + Use proper command for `\textarabic` (mb21).
9707 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
9708 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
9709 to link to Div or Span elements. We now don't bother defining `\label`
9710 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
9711 + Avoid footnotes in list of figures (#1506).
9712 + Properly handle footnotes in captions (#1506).
9713 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
9714 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
9715 `toccolor` is set (#2508).
9717 * Textile writer: support start number in ordered lists (#2465).
9719 * OpenDocument writer: Allow customization of opendocument
9720 automatic styles. Automatic styles can now be inserted in the
9721 template, which now provides the enclosing `<office:automatic-styles>`
9724 * Docx writer: insert space between footnote reference and note (#2527).
9725 This matches Word's default behavior.
9727 * EPUB writer: don't download linked media when `data-external` attribute
9728 set (#2473). By default pandoc downloads all linked media and includes it
9729 in the EPUB container. This can be disabled by setting `data-external` on
9730 the tags linking to media that should not be downloaded. Example:
9732 <audio controls="1">
9733 <source src="http://www.sixbarsjail.it/tmp/bach_toccata.mp3"
9734 type="audio/mpeg"></source>
9737 * HTML writer: use width on whole table if col widths sum to < 100%.
9738 Otherwise some browsers display the table with the columns
9739 separated far apart.
9741 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
9742 `abstract` (Andrew Dunning).
9744 * HTML-based templates (Andrew Dunning):
9746 + Use en dash instead of hyphen between title prefix and title.
9747 + Add `keywords` to metadata.
9748 + Add `lang`, `dir`, `quotes` where missing.
9749 + Always make author and date display conditional.
9750 + Updated dzslides template from source.
9752 * Man template: make "generated by" comment conditional.
9754 * LaTeX, Beamer templates:
9756 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
9757 filled by commands that make babel understand the polyglossia-style
9758 language directives (mb21, #137).
9759 + Improved formatting of conditionals; `$for$` is always provided to allow
9760 multiple options (Andrew Dunning, #141).
9761 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
9762 to improve support for LuaTeX (Andrew Dunning, #135).
9763 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
9764 - use same options for all LaTeX engines;
9765 - add `subtitle` and `keywords` to PDF metadata;
9766 - do not override `hyperref` link coloring without user input, effectively making
9767 the `hidelinks` option the default (removed as a separate variable);
9768 - link colors can be enabled (using a slightly darker version of the old
9769 defaults) using a new `colorlinks` variable, automatically used by
9770 the LaTeX writer when custom colors are specified;
9771 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
9772 `colorlinks`, and is only applied if `colorlinks` is disabled.
9774 * ConTeXt template (Andrew Dunning):
9776 + New variables for controlling styles: `linkstyle`, `linkcolor`,
9777 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
9778 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
9779 `monofont`, `mathfont`, `fontsize`.
9780 + Default template no longer supports MkII.
9781 + Improve writing of title block (suppressing numbering of first page).
9782 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
9783 + Support `subtitle`, `abstract`.
9784 + Support list of figures (`lof`), list of tables (`lot`).
9785 + Disable link styling by default.
9786 + Define styles for all section types.
9788 + Improved formatting of conditionals.
9790 * Beamer template: added code to prevent slide breaks inside paragraphs
9791 (#2422, thanks to Nick Bart). This will matter, in practice, only when
9792 `allowframebreaks` is used. It is especially helpful for bibliography
9795 * OpenDocument template: Add `<office:automatic-styles>` tag around
9796 automatic styles. The writer now longer provides this (see #2520).
9798 * Restored Text.Pandoc.Compat.Monoid.
9800 * Do not export (<>) from custom Prelude. The Prelude now matches
9801 base 4.8 Prelude's API.
9803 * Don't use custom prelude with ghc 7.10. Use the custom prelude
9804 only for earlier versions. This change makes `stack ghci` and
9805 `cabal repl` work (#2503), at least with ghc 7.10.
9807 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
9808 This prevents problems building haddocks with "C" locale.
9810 * Change default for old-locale flag to False.
9812 * Use stack in deb, osx, and Windows package generators.
9814 * Added Vagrantfile for building deb in vm.
9815 This should help in automating binary package creation. 'make package'
9816 will make the package. 'make package COMMIT=blah' will make the package
9821 + Consistent capitalization for pandoc and Markdown.
9822 + Fixed `auto_identifiers` examples (Benoit Schweblin).
9823 + Improved documentation of template variables (Andrew Dunning).
9825## pandoc 1.15.1 (2015-10-15)
9827 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
9828 and reexported from `Text.Pandoc` (Alex Vong). This allows
9829 writers to access it. (Alex Vong) (API change)
9831 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
9832 `subscripts` (#2401).
9834 * Added `odt` as input format (MarLinn). Added new module
9835 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
9836 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
9837 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
9838 Partly implemented features: Citations, Tables.
9842 + Add basic tests for each header style (Ophir Lifshitz).
9843 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
9844 + Skip spaces in headers (Ophir Lifshitz).
9845 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
9846 `# Header {id="myid" class="foo bar"}`
9847 is now equivalent to `# Header {#myid .foo .bar}`.
9848 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
9849 (Kristof Bastiaensen)
9850 + Pipe tables: allow indented columns. Previously the left-hand column
9851 could not start with 4 or more spaces indent. This was inconvenient
9852 for right-aligned left columns. Note that the first (header column)
9853 must still have 3 or fewer spaces indentation, or the table will be
9854 treated as an indented code block.
9855 + Fix regression: allow HTML comments containing `--`.
9856 Technically this isn't allowed in an HTML comment, but
9857 we've always allowed it, and so do most other implementations.
9858 It is handy if e.g. you want to put command line arguments
9863 + Don't eat excess whitespace after macros with only optional
9865 + Support longtable (#2411).
9866 + Implement `\Cite` (#2335).
9867 + Support abstract environment. The abstract populates an
9868 `abstract` metadata field.
9869 + Properly handle booktabs lines. Lines aren't part of the
9870 pandoc table model, so we just ignore them (#2307).
9874 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
9875 + Updated for new automatic header attributes.
9876 + Add auto identifiers if not present on headers. This makes
9877 TOC linking work properly.
9878 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
9879 + Test `<ol>` type, class, and inline list-style(-type) CSS
9881 + Better handling of "section" elements (#2438). Previously
9882 `<section>` tags were just parsed as raw HTML blocks. With
9883 this change, section elements are parsed as Div elements with
9884 the class "section".
9886 * MediaWiki reader: handle unquoted table attributes (#2355).
9890 + Added proper support for DocBook `xref` elements (Frerich Raabe).
9891 Added `dbContent` field to reader state, so we can lookup
9893 + Handle `informalexample` (#2319).
9897 + Create special punctuation test (Ophir Lifshitz).
9898 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
9899 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
9900 in `headers.docx` with pandoc's current `styles.xml`, which
9901 contains styles for Heading 1 through 6. Added Heading 4
9902 through 7 to the test document. Note that Heading 7 is not
9903 parsed as a Heading because there is no Heading 7 style.
9905 * RST reader: better handling of indirect roles.
9906 Previously the parser failed on this kind of case
9908 .. role:: indirect(code)
9910 .. role:: py(indirect)
9915 Now it correctly recognizes `:py:` as a code role.
9919 + Add auto identifiers if not present on headers
9920 (#2354, Juliusz Gonera).
9921 + Allow verse blocks to contain empty lines (#2402,
9924 * EPUB reader: stop mangling external URLs (#2284).
9928 + Don't insert `\ ` when complex expression in matched pairs.
9929 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
9930 + Ensure that `\ ` is inserted when needed before Cite and Span
9931 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
9932 + Normalize headers only in "standalone" mode (#2394).
9934 * Haddock writer: escape `*` and `^` (G. Bataille).
9938 + In TOC, add links to headers (#829).
9939 + Use unicode super/subscripts for digits in plain output
9940 (when the `superscripts` and `subscripts` extensions are
9945 + Moved invalid character stripping to `formattedString`.
9946 This avoids an inefficient generic traversal (#2356).
9947 + Use user data directory for `reference.docx` archive.
9948 This allows the test suite to work without installing pandoc first.
9949 It also brings the docx writer in line with the odt writer.
9950 + Tests: docx writer tests now use `../data` for data directory.
9951 This allows tests to be run without installing first.
9952 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
9956 + Fixed detection of 'chapters' from template.
9957 If a documentclass isn't specified in metadata, but the
9958 template has a hardwired bookish documentclass, act as if
9959 `--chapters` was used. This was the default in earlier
9960 versions, but it has been broken for a little while.
9961 + Correctly recognize book documentclass in metadata (#2395).
9962 + Set language-related variables automatically, depending
9963 on the value of the `lang` field, which is now always
9964 assumed to be in BCP47 format (mb21, #1614, #2437).
9965 + Add `\protect` to `\hyperdef` in inline context. This way we
9966 don't get an error when this is used as a moveable argument (#2136).
9967 + Support all frame attributes in Beamer.
9968 + Percent-encode more special characters in URLs (#1640, #2377).
9969 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
9973 + Update KaTeX JS and CSS versions (Emily Eisenberg).
9974 + For dzslides, add `role="note"` for speaker notes (#1693).
9975 + Percent-encode more special characters in URLs (#1640, #2377).
9976 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
9977 + Render Div with class `section` as `<section>` in HTML5.
9981 + In TOC, replace literal `<br/>` with space (#2105).
9982 + With `--webtex`, include image file rather than `data:` URI (#2363).
9984 * Native writer: format Div properly, with blocks separated.
9986 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
9991 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
9992 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
9996 + Beamer: Add `innertheme`, `outertheme` variables
9997 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
9998 Integrate recent font and language updates from LaTeX template;
9999 allow use of `mainfont` variable for changing the slide text
10000 in XeTeX and LuaTeX (Andrew Dunning, #131).
10001 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
10002 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
10003 (Andrew Dunning, #122). Support handling of bidirectional
10004 text (mb21, #120). Improve reliability of superscripts/subscripts
10005 under XeTeX and prevent letters and numbers from appearing on a
10006 different baseline by removing use of the `realscripts` package
10007 (via `xltxtra`). To restore use of OpenType characters for these
10008 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
10009 `header-includes` (Andrew Dunning, #130). Remove redundant
10010 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
10011 `indent`, `subparagraph` variables (Andrew Dunning).
10012 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
10013 #113). Prevent package clash with `tufte-latex` and other classes that
10014 include `hyperref` or `color` (Xavier Olive, #115).
10015 + ConTeXt: Support handling of bidirectional text (mb21, #120).
10016 + LaTeX and ConTeXt: Use more specific language variables.
10017 Instead of directly using `lang`, we now use `babel-lang` and
10018 `polyglossia-lang` and `context-lang`. These variables are set by
10019 the writers to the necessary values, based on the `lang` variable
10020 (which now always takes a value in BCP47 format). (mb21, #114, #129).
10021 + HTML: Support handling of bidirectional text (mb21, #120).
10022 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
10023 Add dir attribute in html5 (Andrew Dunning).
10024 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
10025 Add `width`, `height` variables (Anrew Dunning). Update template
10026 from 3.1 source (Andrew Dunning). All configuration options are now
10027 available as variables, but are only be included if set (reveal.js
10028 uses defaults otherwise).
10029 + man: Added comment stating that the page is autogenerated by pandoc,
10030 giving version. Added `adjusting` and `hyphenate` variables
10033 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
10035 * MediaBag: ensure that `/` is always used as path separator.
10037 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
10039 * Added `--bash-completion` option. This generates a bash completion
10040 script. To use: `eval "$(pandoc --bash-completion)"`.
10042 * Text.Pandoc.Error: Define Typeable and Exception instances
10043 for PandocError (#2386).
10045 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
10046 This makes keys with extra space at the beginning and end
10053 will now be a link to bar (it wasn't before).
10055 * Text.Pandoc: disable `auto_identifiers` for epub.
10056 The epub writer inserts its own auto identifiers;
10057 this is more complex due to splitting into "chapter" files.
10059 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
10060 It now reexports Data.Time.
10062 * Use custom Prelude to avoid compiler warnings.
10064 + The (non-exported) prelude is in prelude/Prelude.hs.
10065 + It exports Monoid and Applicative, like base 4.8 prelude,
10066 but works with older base versions.
10067 + It exports (<>) for mappend.
10068 + It hides 'catch' on older base versions.
10070 * Added a `stack.ymal` and stack install instructions to INSTALL.
10072 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
10074 * Added note to CONTRIBUTING.md about ghc versions and travis.
10076 * Clarify docs on block quotes. The space after `>` is optional (#2346).
10078 * Removed obsolete reference to default.csl (#2372).
10080 * List all styles in manual for `--reference-docx` (Chris Black)
10082 * Don't capitalize header links in man page.
10084 * Added section on repl to CONTRIBUTING.md.
10086 * README: Added space after backslash in image example (#2329).
10088 * Document details of citation locator terms (Nick Bart).
10090 * Fixed some internal links in README (#2309).
10092 * Improve CSL documentation, variables documentations,
10093 links, and cross-references in README. (Andrew Dunning)
10095 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
10097 * Use `newManager` instead of `withManager` in recent `http-client`.
10098 This avoids a deprecation warning.
10100 * Allow building with latest versions of http-types,
10101 HUnit, criterion, syb, aeson.
10103 * Updated benchmark program for new criterion API.
10105 * Setup.hs: rewrite so as not to use process, directory, filepath.
10106 Using anything outside base is dangerous, since older
10107 versions of ghc may link against two different versions.
10109 * Added appveyor (Windows continuous integration) builds.
10111 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
10112 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
10113 `make .travis.yml` regenerates it based on the tested-with
10114 field of the cabal file.
10116## pandoc 1.15.0.6 (2015-07-15)
10118 * `--self-contained`: Fixed overaggressive CSS minimization
10119 (#2301, 2286). Previously `--self-contained` wiped out all
10120 spaces in CSS, including semantically significant spaces.
10121 This was a regression from 1.14.x.
10123 * Markdown reader: don't allow bare URI links or autolinks in link
10124 label (#2300). Added test cases.
10126 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
10127 Previously we disallowed `-` at the end of an autolink,
10128 and disallowed the combination `=-`. This commit liberalizes the
10129 rules for allowing punctuation in a bare URI, and adds test cases.
10130 One potential drawback is that you can no longer put a bare
10131 URI in em dashes like this:
10132 `this uri---http://example.com---is an example.`
10133 But in this respect we now match github's treatment of bare URIs.
10135 * HTML writer: support speaker notes in dzslides.
10136 With this change `<div class="notes">` and also `<div class="notes"
10137 role="note">` will be output if `-t dzslides` is used. So we can
10138 have speaker notes in dzslides too. Thanks to maybegeek.
10140 * Updated dzslides template.
10142 * Improved documentation of options to print system default files (#2298).
10143 `--print-default-data-file` and `--print-default-template`.
10145 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
10146 (Tiziano Müller). MathJax seems currently to be the only maintained
10147 math rendering extension for DokuWiki.
10149 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
10150 div as top-level header (#2294). This fixes a bug with `--section-divs`,
10151 where the final references section added by pandoc-citeproc, enclosed in
10152 its own div, got nested in the div for the section previous to it.
10154 * Allow vector 0.11.
10156 * Require cmark > 0.4.
10158## pandoc 1.15.0.5 (2015-07-10)
10160 * HTML writer: Fixed email javascript obfuscation with `mailto:`
10161 URLs (#2280). This fixes a potential security issue. Because
10162 single quotes weren't being escaped in the link portion, a
10163 specially crafted email address could allow javascript code injection.
10165 * RST reader: allow inline formatting in definition list field
10166 names (Lars-Dominik Braun).
10168 * PDF: Make sure `--latex-engine-opt` goes before the filename
10169 on the command line. LaTeX needs the argument to come after
10170 the options (#1779).
10172 * CommonMark writer: fixed tags used for super/subscript.
10174 * ConTeXt template: activate hanging indent for definition lists
10177 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
10178 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
10179 to include `hsb2hs` in Build-Tools in cabal.
10181 * Improved Windows installer (thanks to nkalvi).
10183 + When per-machine installation is chosen, the system path
10184 is updated instead of the user's.
10185 + An appropriate default is used for per-machine installation
10187 + Admin privileges are no longer required for a per-user install
10189 * Travis: unpack sdist for build to catch packaging bugs.
10191 * Improved documentation on where user templates go (#2272).
10193## pandoc 1.15.0.4 (2015-07-03)
10195 * Added pandoc.1 man page to the repository. It is no longer
10196 built as part of the cabal build process. (This proved too
10197 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
10198 when `README` is changed.
10200 * Copying of the man page now respects `--destdir` (#2262).
10202 * Improved error messages for filters. User is now informed if
10203 the filter requires an interpreter that isn't found in the path,
10204 or if the filter returns an error status.
10206## pandoc 1.15.0.3 (2015-07-02)
10208 * Ensure target directory is created when installing man page.
10210## pandoc 1.15.0.2 (2015-07-02)
10212 * Added files needed for building man page to Extra-Source-Files.
10214## pandoc 1.15.0.1 (2015-07-01)
10216 * Man page is now built and installed as part of the cabal build
10217 process. Removed Makefile target for man page.
10219## pandoc 1.15 (2015-07-01)
10221 * Man page changes:
10223 + Removed `--man1`, `--man5` options (breaking change).
10224 + Removed `Text.Pandoc.ManPages` module (breaking API change).
10225 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
10226 create the man page from README using a custom template and filters.
10227 + Added `man/` directory with template and filters needed to build
10229 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
10230 Now there is just pandoc.1, which has all the content from README.
10231 This change was needed because of the extensive cross-references
10232 between parts of the README.
10233 + Removed old `data/pandoc.1.template` and
10234 `data/pandoc_markdown.5.template`.
10236 * OpenDocument writer: Do not add a carriage return after a hard
10237 line break (Michael Chladek).
10241 + use `\goto` for internal links.
10242 + Added a `%` at end for `\reference` to avoid spurious space.
10244 * Ignore sandbox on 'make quick'
10246## pandoc 1.14.1 (2015-06-30)
10248 * Added `--man1` and `--man5` options to pandoc, allowing
10249 pandoc to generate its own man pages. Man pages are no longer
10250 automatically generated in the build process (the process for
10251 this was too complex and prone to failure, #2190). The
10252 `make-pandoc-man-pages` executable has been removed. The
10253 `man/` directory has been removed, and man page templates
10254 have been moved to `data/`. NOTE TO PACKAGERS: You will no
10255 longer find pandoc's man pages in `man/`, but you can
10256 generate them using `pandoc --man1 > pandoc.1` and `pandoc
10257 --man5 > pandoc_markdown.5`.
10259 * Added new unexported module: `Text.Pandoc.ManPages`.
10261 * `README` now acts like a data file (even though it isn't in
10262 `data/`). So, for example, `pandoc --print-default-data-file README`
10263 will produce the README.) This change was required for the `--man1`
10264 and `--man5` options, since the man pages are produced from the
10265 README, but it may be useful for other purposes as well.
10267 * Allow `reference.docx` and `reference.odt` to be used with
10268 `--print-default-data-file` and to shadow defaults if placed in
10269 the user data directory. Note that as of 1.14, we no longer
10270 include these files as data files; instead, we include their
10271 components. This change causes pandoc to behave as if it has
10272 these data files; they are constructed on demand when needed
10273 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
10275 * Fixed regression in CSS parsing with `--self-contained` (#2224).
10276 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
10277 silently drops big sections of CSS. This commit replaces the
10278 use of css-text with a small but principled CSS preprocessor,
10279 which removes whitespace and comments and replaces `url()` with
10280 base 64 data when possible.
10282 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
10283 This will allow math to work when pages are being viewed locally.
10285 * `Text.Pandoc.Options`: Export `plainExtensions`.
10286 These are the extensions used in `plain` output.
10288 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
10289 math mode; treat them as regular inline text. Normally these will
10290 cause an error in LaTeX, but there are contexts (e.g. `alltt`
10291 environments) where they are allowed.
10293 * HTML reader: allow `<body>` to close `<head>`.
10295 * DocBook reader: support `mediaobject`s and `figures` (#2184, mb21).
10297 * RST reader: Fix reference names with special characters
10298 (Lars-Dominik Braun).
10300 * Textile writer: escape `+` and `-` as entities (#2225).
10302 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
10304 * Plain writer: don't use symbols for super/subscript (#2237).
10305 Simplified code by using `plainExtensions`.
10307 * InDesign writer: Properly escape URLs containing more than one
10308 colon character (gohai).
10310 * Docx writer: Make sure we use dist version of `reference.docx`
10311 (and not the user's version) for certain settings. Taking some
10312 settings values from a user-supplied reference.docx can lead to
10313 corruption. This fixes a regression from the last release (#2249).
10315 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
10316 `getDefaultReferenceODT` (API change). These functions have been
10317 removed from the Docx and ODT writers.
10319 * LaTeX template (Xavier Olive):
10320 + Added `CJKmainfont` and `CJKoptions` variables.
10321 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
10323 * Epub templates: use `author.role`, not `author.type`.
10325 * Bump cmark version to >= 0.3.4.
10327 * Improved Windows installer (#2205, thanks to nkalvi).
10328 Users can now select a per-user or systemwide install, and can set
10329 the installation path. At the end of installation, the install location
10330 is given. The install location is also now given in the list of
10331 installed programs in Control Panel. Cleaner WiX syntax is used for
10334 * Added `download_stats` target to Makefile.
10336## pandoc 1.14.0.4 (2015-06-02)
10338 * Added missing commonmark template.
10340 * Improved try pandoc (moved button, show raw command).
10342## pandoc 1.14.0.3 (2015-06-01)
10344 * Allow compilation with syb 0.5.*.
10346 * Custom writer: fixed some compiler warnings for ghc < 7.10.
10348## pandoc 1.14.0.2 (2015-05-31)
10350 * Allow building with hslua 0.4.
10352## pandoc 1.14.0.1 (2015-05-28)
10354 * Fixed problem with building of `reference.docx` and `reference.odt`
10355 when the `embed_data_files` flag is used. Instead of having a phase
10356 of the build where `reference.docx` and `reference.odt` are created
10357 from their constituent data files, we now construct these archives
10358 from their constituents when a `docx` or `odt` is built. The
10359 constituent files have been moved from `extra-source-files` to
10360 `data-files`, and `reference.docx` and `reference.odt` have been
10361 removed. Users can create their own `reference.docx` or
10362 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
10363 `make-reference-files.hs` has been removed, simplifying the build
10366 * Don't include generated man pages in extra-source-files (#2189).
10368 * Bumped upper bound for aeson.
10370 * ConTeXt writer: create internal link anchors for Div elements with
10371 identifiers. (This is needed for linked citations to work.)
10373## pandoc 1.14 (2015-05-27)
10377 * Added `commonmark` as input and output format.
10379 * Added `--verbose` flag for debugging output in PDF production (#1840,
10382 * Allow wildcards in `--epub-embed-font` arguments (#1939).
10384 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
10386 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
10387 This is enabled by default for those markdown flavors that
10388 support reading shortcut reference links, namely: `markdown`,
10389 `markdown_strict`, `markdown_github`, `markdown_php`.
10390 If the extension is enabled, the reader parses shortcut reference
10391 links like `[foo]`, and the writer creates such links unless doing
10392 so would cause problems. Users of markdown flavors that support
10393 shortcut reference links should not notice a difference in reading
10394 markdown, but the markdown pandoc produces may differ.
10395 If shortcut links are not desired, the extension can be disabled
10398### Behavior changes
10400 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
10401 A "dirty" TOC is created at the beginning of document.
10402 It can be regenerated after the document has been opened.
10404 * An implicit `--filter pandoc-citeproc` is now triggered only when the
10405 `--bibliography` option is used, and not when the `bibliography`
10406 field in metadata is specified (#1849).
10410 + Reference links with `implicit_header_references` are no longer
10411 case-sensitive (#1606).
10412 + Definition lists no longer require indentation for first line (#2087).
10413 Previously the body of the definition (after the `:` or `~` marker)
10414 needed to be in column 4. This commit relaxes that requirement,
10415 to better match the behavior of PHP Markdown Extra. So, now
10416 this is a valid definition list:
10420 + Resolve a potentially ambiguity with table captions:
10430 Is "bar" a definition, or the caption for the table? We'll count
10431 it as a caption for the table.
10432 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
10433 Markdown Extra. Note: If you have been using headerless pipe tables,
10434 this change may cause existing tables to break.
10435 + Allow pipe tables with header but no body (#2017).
10436 + Allow a digit as first character of a citation key (Matthias Troffaes).
10437 See https://github.com/jgm/pandoc-citeproc/issues/97
10441 + Don't limit includes to `.tex` extension (#1882).
10442 If the extension is not `.tex`, it must be given explicitly in
10443 the `\input` or `\include`.
10447 + Allow numbering in the style file. This allows inherited styles
10448 with numbering (lists) (Jesse Rosenthal).
10452 + Support smart punctuation (Craig Bosma).
10453 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
10454 `:noexport:` tag set are not exported. This mirrors org-mode.
10455 + Put header tags into empty spans (Albert Krewinkel, #2160).
10456 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
10457 Instead of being interpreted as part of the headline, the tags are now
10458 put into the attributes of empty spans. Spans without textual content
10459 won't be visible by default, but they are detectable by filters. They
10460 can also be styled using CSS when written as HTML.
10461 + Generalize code block result parsing (Albert Krewinkel).
10462 Previously, only code blocks were recognized as result blocks;
10463 now, any kind of block can be the result.
10465 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
10466 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
10470 + Add "inline" or "display" class to math spans (#1914).
10471 This allows inline and display math to be styled differently.
10472 + Include raw latex blocks if `--mathjax` specified (#1938).
10473 + Require highlighting-kate >= 0.5.14 (#1903).
10474 This ensures that all code blocks will be wrapped in a `div`
10475 with class `sourceCode`. Also, the default highlighting CSS
10476 now adds `div.sourceCode { x-overflow: auto; }`, which means
10477 that code blocks (even with line numbers) will acquire a scroll
10478 bar on screens too small to display them (e.g. mobile phones).
10479 See also jgm/highlighting-kate#65.
10483 + Use a declaration for tight lists (Jose Luis Duran, Joseph
10484 Harriott). Previously, pandoc hard-coded some commands to make
10485 tight lists in LaTeX. Now we use a custom command instead,
10486 allowing the styling to be changed in a macro in the header.
10487 (Note: existing templates may need to be modified to include
10488 the definition of this macro. See the current template.)
10489 + Beamer output: if the header introducing a slide has the
10490 class `fragile`, add the `[fragile]` option to the slide (#2119).
10492 * MediaWiki writer:
10494 + Use `File:` instead of the deprecated `Image:` for images and
10495 other media files (Greg Rundlett).
10499 + Render a `Div (id,_,_) [Para _]` element as a `para` element
10500 with an `id` attribute. This makes links to citations work in
10501 DocBook with pandoc-citeproc.
10505 + Normalize headings to sequential levels (Nikolay Yakimov).
10506 This is pretty much required by docutils.
10507 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
10508 + Better handling of raw latex inline (#1961). We use
10509 `` :raw-latex:`...` `` and add a definition for this role to
10514 + Remove `linear=no` from cover `itemref` (#1609).
10515 + Don't use `sup` element for epub footnotes (#1995).
10516 Instead, just use an a element with class `footnoteRef`.
10517 This allows more styling options, and provides better results
10518 in some readers (e.g. iBooks, where anything inside the a
10519 tag breaks popup footnotes).
10520 + Take TOC title from `toc-title` metadata field.
10524 + Implemented `FirstParagraph` style (Jesse Rosenthal).
10525 Following the ODT writer, we add the `FirstParagraph` style to the
10526 first text paragraph following an image, blockquote, table, heading,
10527 or beginning of document. This allows it to be styled differently.
10528 The default is for it to be the same as `Normal`.
10529 + Added `BodyText` style (Jesse Rosenthal).
10530 We apply a `BodyText` style to all unstyled paragraphs. This is,
10531 essentially, the same as `Normal`, except that since not everything
10532 inherits from `BodyText` (the metadata won't, for example, or
10533 the headers or footnote numbers), we can change the text in the body
10534 without having to make exceptions for everything. If we do want to
10535 change *everything*, we can still do it through `Normal`.
10536 + Altered `Blockquote` style slightly (Jesse Rosenthal).
10537 Since `BlockQuote` derives from `BodyText`, we just want to specify
10538 by default that it won't indent, regardless of what `BodyText` does.
10539 Note that this will not produce any visible difference in the default
10541 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
10542 + Added a style to figure images (Nikolay Yakimov).
10543 Figures with empty captions use style `Figure`.
10544 Figures with nonempty captions use style `Figure with Caption`, which
10545 is based on `Figure`, and additionally has `keepNext` set.
10549 + Added figure captions (Nikolay Yakimov). The following styles are
10551 `Figure` -- for figure with empty caption),
10552 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
10553 `FigureCaption` (based on `Caption`) -- for figure captions.
10554 Also, `TableCaption` (based on `Caption`) is used for table captions.
10558 * New `Text.Pandoc.Error` module with `PandocError` type
10559 (Matthew Pickering).
10561 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
10562 (Matthew Pickering). This allows better handling of errors.
10564 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
10566 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
10568 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
10569 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
10570 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
10573 * New `Ext_shortcut_reference_links` constructor for `Extension`
10574 (Konstantin Zudov).
10580 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
10581 + Check for tex macros after indented code (#1973).
10582 + Rewrote `charsInBalancedBrackets` for efficiency.
10583 + Make sure a closing `</div>` doesn't get included in a
10584 definition list item (#2127).
10585 + Don't parse bracketed text as citation if it might be a link,
10586 image, or footnote (Nikolay Yakimov).
10587 + Require space after key in mmd title block (#2026, Nikolay
10588 Yakimov). Require space after key-value delimiter colon in mmd title
10590 + Require nonempty value in mmd title block (Nikolay Yakimov).
10591 + Disable all metadata block extensions when parsing
10592 metadata field values (#2026, Nikolay Yakimov). Otherwise we
10593 could get a mmd title block inside YAML metadata, for example.
10597 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
10598 + Handle tables with `<th>` in body rows (#1859, mb21).
10599 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
10600 to see if the input starts with `<!--`. If not, it's bogus comment
10601 mode and we fail `htmlTag`.
10602 + Handle `base` tag; if it has an `href` value, this is added to
10603 all relative URLs in links and images.
10607 + Look inside "info" elements for section titles (#1931).
10611 + Parse images in deprecated vml format (Jesse Rosenthal).
10612 + Allow sub/superscript verbatims (Jesse Rosenthal).
10613 Verbatim usually shuts off all other run styles, but we don't want it
10614 to shut off sub/superscript.
10618 + Handle `tabular*` environment (#1850).
10619 Note that the table width is not actually parsed or taken into
10620 account, but pandoc no longer chokes on it.
10621 + Ignore options in `\lstinline` rather than raising error (#1997).
10622 + Add some test cases for simple tables (Mathias Schenner).
10623 + Handle valign argument in tables (Mathias Schenner) (currently
10624 we just ignore this).
10625 + Allow non-empty colsep in tables (Mathias Schenner).
10626 The `tabular` environment allows non-empty column separators
10627 with the "@{...}" syntax. Previously, pandoc would fail to
10628 parse tables if a non-empty colsep was present. With this
10629 commit, these separators are still ignored, but the table gets
10630 parsed. A test case is included.
10631 + Recognize `\newpage` as a block command.
10632 + Allow block content in `\title{}` (#2001).
10633 + Check for block-level newcommand aliases in blockCommand (Nikolay
10635 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
10636 + Properly gobble spaces after `\\` (#2007).
10640 + Handle newlines in table cells, and empty cells (#1919).
10644 + Allow image links with non-image targets (Hans-Peter Deifel).
10645 This matches behavior of Org-Mode for links like
10646 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
10650 + Don't print empty id attributes (thanks to Steve Horne).
10654 + Fixed list-style-type for numbered example lists.
10655 Should be "decimal," not "example" (#1902).
10656 + Do not omit missing `alt` attribute on `img` tag (#1131,
10658 + Allow multiple colgroups in table (#2122).
10659 + In revealjs, ensure that lists in speaker notes don't add "fragment"
10660 classes, which can cause additional keypresses to be needed to
10661 advance a slide (#1394).
10665 + Don't escape `$` in URL (#1913).
10666 + Don't use listings in headers (Matthew Pickering, #1963).
10667 + Recognize book documentclass if set in metadata (#1971).
10668 This sets `--chapters` implicitly if the documentclass in metadata
10669 is a book documentclass. Previously this was done only if a book
10670 documentclass was set in a variable.
10671 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
10672 + Make `mainlang` work when `lang` is in metadata (#2174).
10676 + Fix wrapping by using breakable spaces (Tim Lin).
10680 + Fixed toc depth in RST writer. Previously the depth was being
10681 rendered as a floating point number with a decimal point.
10685 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
10686 compatibility with original Markdown. We now escape `<` and `>`
10687 with entities. Also, we now backslash-escape square brackets.
10688 + Avoid introducing spurious list items through wrapping (#1946).
10689 + Don't emit span tags if plain or raw HTML disabled.
10691 * MediaWiki writer:
10693 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
10697 + Insert some needed blank lines (#1860).
10698 + Avoid wrapping after list marker (#1858).
10702 + Properly handle internal links to IDs in spans, divs (#1884).
10703 + Use plain writer for metadata dc: fields (#2121).
10704 This gives better results when we have, e.g. multiple paragraphs.
10705 Note that tags aren't allowed in these fields.
10706 + Properly handle image links without an extension (#1855).
10707 + Improved chapter splitting and internal link rewriting (#1887,
10708 #2162, #2163). This will ensure that internal links work and
10709 that the references section produced by pandoc-citeproc is
10710 in its own chapter.
10711 + Fixed handling of svg images (#2183).
10715 + Better handling of raw blocks and inlines (#1951).
10716 Previously these were always escaped and printed verbatim.
10717 Now they are ignored unless the format is `icml`, in which
10718 case they are passed through unescaped.
10719 + Fixed image URIs in ICML output (gohai).
10723 + Raise error if loadstring returns an error status.
10724 + Raise `PandocLuaException` instead of using 'error'.
10725 Eventually we'll change the return type so that no exception
10726 is involved, but at least this can be trapped.
10727 + Use UTF-8 aware bytestring conversion.
10728 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
10729 Also factored out ByteString, since it's only used as an intermediate
10734 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
10735 + Filter out illegal XML characters (#1992, Matthew Pickering).
10736 + Added `noProof` to docx syntax highlighting `SourceCode` style.
10737 + Added footnotes id -1 and 0 (Jesse Rosenthal).
10738 Word uses, by default, footnotes with id -1 and 0 for separators. If a
10739 user modifies `reference.docx`, they will end up with a `settings.xml`
10740 file that references these footnotes, but no such footnotes in the
10741 document. This will produce a corruption error. Here we add these to the
10742 document and `settings.xml` file, so future modifications won't break
10744 + Handle lists correctly inside table cells (Jesse Rosenthal).
10745 Previously we didn't transform lists inside table cells.
10746 + Set firstRow information in tables (Nikolay Yakimov).
10747 + Don't replace `SourceCode` style in `reference.docx` if it is defined
10748 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
10749 any `SourceCode` and `*Tok` styles in `reference.docx`.
10750 + Attempt to match international style names (#1607, Nikolay Yakimov).
10751 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
10752 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
10753 `Definition`, `First Paragraph`.
10754 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
10755 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
10756 `Footnote Ref -> Footnote Reference`.
10757 + Added `Caption` style (Nikolay Yakimov).
10758 + Changed these styles' inheritance (Nikolay Yakimov):
10759 `Image Caption <- Caption`, `Table Caption <- Caption`.
10760 + Remove `SourceCode` style from `reference.docx` (#1872).
10761 This is added automatically by the docx writer.
10762 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
10764 * `Text.Pandoc.PDF`
10766 + Don't suggest "Try xelatex" if xelatex already in use (mb21, #1832).
10767 + More comprehensible errors on image conversion (#2067).
10768 EPS can't be supported without shelling out to something like
10769 ImageMagick, but at least we can avoid mysterious error messages.
10771 * `Text.Pandoc.Shared`:
10773 + Make safeRead safe (#1801, Matthew Pickering).
10774 + Addded `mapLeft`, `hush` (Matthew Pickering).
10776 * `Text.Pandoc.Pretty`:
10778 + Remove partial function (Matthew Pickering).
10780 * `Text.Pandoc.SelfContained`:
10782 + Add `;charset=utf-8` to script mime type if missing (#1842).
10783 + Improved building of data URIs (#1940). Now base64 is used except
10784 for `text/*` mime types.
10785 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
10786 + Properly handle data URIs in css urls (#2129).
10787 Use a proper CSS parser (adds dependency on `text-css`).
10789 * `Text.Pandoc.UTF8`:
10791 + Better handling of bare CRs in input files (#2132).
10792 Previously we just stripped them out; now we convert
10793 other line ending styles to LF line endings.
10795 * `Text.Pandoc.ImageSize`:
10797 + Fixed some exif header parsing bugs (#1834).
10798 + Make imageSize return an Either, not a Maybe (#1834).
10799 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
10800 parse failure (rather than `error`).
10801 + Improved warnings when image size can't be determined.
10802 + Removed error landmines (Matthew Pickering).
10804 * Added woff2 to MIME types (Alfred Wechselberger).
10806 * pandoc: When a binary input format is used, warn that file
10807 arguments past the first one are being ignored (Matthew Pickering).
10809### Template changes
10813 + Degrade gracefully if `\paragraph` not defined.
10814 + Include `grffile` together with `graphicx` (#2074).
10815 This properly handles filenames containing spaces and dots.
10816 + Redefine `\paragraph`, `\subparagraph`... to behave more
10817 like section headers (#1658).
10818 + Import hyperref before polyglossia to avoid an error with xelatex,
10819 "please load package hyperref before bidi package" (Nick Bart).
10820 + Added `toccolor` variable to control link color in toc (Kaixhin).
10822 * LaTeX, Beamer templates:
10824 + Provide `\tightlist`, which is now used by the LaTeX writer.
10825 + Use polyglossia in beamer (#85).
10826 + Use `bibliography` instead of `biblio-files`
10827 (#1661). Also use `\addbibresource` instead of `\bibliography` for
10829 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
10830 variable that is derived from a comma-separated list in `lang`;
10831 the last language is `mainlang` and the others are `otherlang`.
10835 + Use `div`, not `p`, for "rights" on title page.
10836 + Added header-includes, include-before, include-after (#1987).
10838 * OpenDocument template:
10840 + Use `text:p` instead of `text:h` for title.
10841 Using `text:h` causes problems with numbering. Closes #2059.
10842 Thansk to @nkalvi for diagnosing this.
10844 * reveal.js template:
10846 + Link to non-minified css, js. The minified versions no longer
10847 ship with the library.
10848 + Correctly include style CSS (#1949).
10849 + New configurable options options: `center`, `maxScale`, `slideNuber`
10850 (Dmitry Smirnov, pandoc-templates#89).
10851 + Moved custom CSS after theme. This allows custom CSS to modify
10852 themes, instead of being replaced by them.
10853 + Allow `center` to be set to false.
10855### Under the hood improvements
10857 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
10858 Yakimov). Instead the repository now includes the component text files,
10859 and the zipped binaries are built from these using a helper
10860 program, `make-reference-files`. This should make maintenance of
10861 these components easier going forward.
10863 * `Text.Pandoc.Parsing`:
10865 + Added new `<+?>` combinator (Nikolay Yakimov).
10866 + Added `stateHeaderKeys` to `ParserState`.
10868 * `make_deb.sh` fixes:
10870 + Detect architecture.
10871 + Add Installed-Size to debian package control file (#1900).
10872 + Use `fakeroot` to get permissions right.
10873 + Use `mkdir` and `cp` instead of `install`.
10874 + Set permissions of directories to 755.
10875 + Install in `/usr` rather than `/usr/local`.
10876 + Compress man pages.
10877 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
10879 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
10880 to assist with transition to `time` 1.5.
10882 * Updated CONTRIBUTING.md with information about issue tags (Matthew
10885 * Updated travis installs to the new sudo-less syntax (Tim Lin).
10887 * Updated dependency version bounds.
10889 * EPUB tests: don't use `joinPath`, which varies across platforms.
10890 Instead, use a forward-slash to join paths, regardless of the
10891 platform. This matches the way `MediaBag` now works.
10893 * Clarify JSON input and output in usage message (Caleb McDaniel).
10895 * Improved INSTALL instructions.
10897 * Always build man pages. Removed make-pandoc-man-pages flag.
10899 * Makefile: removed man target, now that we generate man pages by default.
10903 + Fixed typos (J. Lewis Muir).
10904 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
10905 + Added note on in-field markup in biblio databases (Nick Bart).
10906 + Fixed misleading example of raw HTML block.
10907 + Various minor formatting and consistency fixes for the program
10908 options (Andreas Lööw).
10909 + Made definition lists for options all "loose" for consistency.
10910 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
10911 `--bib2json` and `--bib2yaml` options (Nick Bart).
10912 + Removed obsolete reference to `mods2yaml` (Nick Bart).
10913 + Added section on syntax highlighting.
10914 + Documented `toccolor` variable.
10916## pandoc 1.13.2.1 (2015-04-15)
10918 * Updated to build with ghc 7.10.1.
10920 * Bumped package upper bounds for filepath, blaze-html, blaze-markup.
10922## pandoc 1.13.2 (2014-12-20)
10924 * TWiki Reader: add new new twiki reader (API chaneg, Alexander Sulfrian).
10928 + Better handling of paragraph in div (#1591).
10929 Previously text that ended a div would be parsed as Plain
10930 unless there was a blank line before the closing div tag.
10931 + Don't treat a citation as a reference link label (#1763).
10932 + Fix autolinks with following punctuation (#1811).
10933 The price of this is that autolinked bare URIs can no longer
10934 contain `>` characters, but this is not a big issue.
10935 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
10936 + Allow `startnum` to work without `fancy_lists`. Formerly
10937 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
10939 * RST reader (all Daniel Bergey):
10941 + Parse quoted literal blocks (#65). RST quoted literal blocks are
10942 the same as indented literal blocks (which pandoc already supports)
10943 except that the quote character is preserved in each line.
10944 + Parse RST class directives. The class directive accepts one or more
10945 class names, and creates a Div value with those classes. If the
10946 directive has an indented body, the body is parsed as the children of
10947 the Div. If not, the first block following the directive is made a
10948 child of the Div. This differs from the behavior of rst2xml, which
10949 does not create a Div element. Instead, the specified classes are
10950 applied to each child of the directive. However, most Pandoc Block
10951 constructors to not take an Attr argument, so we can't duplicate this
10953 + Warn about skipped directives.
10954 + Literal role now produces Code. Code role should have "code" class.
10955 + Improved support for custom roles
10957 - Added `sourceCode` to classes for `:code:` role, and anything
10958 inheriting from it.
10959 - Add the name of the custom role to classes if the Inline
10960 constructor supports Attr.
10961 - If the custom role directive does not specify a parent role,
10962 inherit from the `:span:` role.
10964 This differs somewhat from the `rst2xml.py` behavior. If a custom
10965 role inherits from another custom role, Pandoc will attach both
10966 roles' names as classes. `rst2xml.py` will only use the class of
10967 the directly invoked role (though in the case of inheriting from a
10968 `:code:` role with a `:language:` defined, it will also provide the
10969 inherited language as a class).
10970 + Warn about ignored fields in role directives.
10974 + Parse label after caption into a span instead of
10975 inserting an additional paragraph of bracketed text (#1747).
10976 + Parse math environments as inline when possible (#1821).
10977 + Better handling of `\noindent` and `\greektext` (#1783).
10978 + Handle `\texorpdfstring` more gracefully.
10979 + Handle `\cref` and `\sep` (Wikiwide).
10980 + Support `\smartcite` and `\Smartcite` from biblatex.
10984 + Retain display type of MathML output (#1719, Matthew Pickering).
10985 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
10986 + Make `embed` tag either block or inline (#1756).
10990 + Handle `keycombo`, `keycap` (#1815).
10991 + Get string content in inner tags for literal elements (#1816).
10992 + Handle `menuchoice` elements better, with a `>` between (#1817).
10993 + Include `id` on section headers (#1818).
10994 + Document/test "type" as implemented (Brian O'Sullivan).
10995 + Add support for calloutlist and callout (Brian O'Sullivan).
10996 We treat a calloutlist as a bulleted list. This works well in practice.
10997 + Add support for `classname` (Bryan O'Sullivan).
11001 + Fix window path for image lookup (Jesse Rosenthal).
11002 Don't use os-sensitive "combine", since we always want the paths in our
11003 zip-archive to use forward-slashes.
11004 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
11005 When users number their headers, Word understands that as a single item
11006 enumerated list. We make the assumption that such a list is, in fact,
11008 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
11009 There could be new top-level headers after making lists, so we have to
11010 rewrite links after that.
11011 + Use polyglot header list (Jesse Rosenthal).
11012 We're just keeping a list of header formats that different languages
11013 use as their default styles. At the moment, we have English, German,
11014 Danish, and French. We can continue to add to this.
11015 This is simpler than parsing the styles file, and perhaps less
11016 error-prone, since there seems to be some variations, even within a
11017 language, of how a style file will define headers.
11018 + Remove header class properly in other langs (Jesse Rosenthal).
11019 When we encounter one of the polyglot header styles, we want to remove
11020 that from the par styles after we convert to a header. To do that, we
11021 have to keep track of the style name, and remove it appropriately.
11022 + Account for external link URLs with anchors. Previously, if a URL
11023 had an anchor, the reader would incorrectly identify it as an
11024 internal link and return only the anchor as URL. (Caleb McDaniel)
11025 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
11029 + Added state changing blanklines (Jesse Rosenthal).
11030 This allows us to emphasize at the beginning of a new paragraph (or, in
11031 general, after blank lines).
11032 + Fixed bug with bulleted lists:
11038 was being parsed as a list, even though an unindented `*`
11039 should make a heading. See
11040 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
11041 + Org reader: absolute, relative paths in link (#1741, Albert
11042 Krewinkel). The org reader was too restrictive when parsing links;
11043 some relative links and links to files given as absolute paths
11044 were not recognized correctly.
11045 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
11046 This is important for use in gitit, which uses empty links
11048 + Respect indent when parsing Org bullet lists (#1650, Timothy
11049 Humphries). Fixes issue with top-level bullet list parsing.
11050 + Fix indent issue for definition lists (Timothy Humphries,
11051 see #1650, #1698, #1680).
11052 + Parse multi-inline terms correctly in definition list (#1649,
11053 Matthew Pickering).
11054 + Fix rules for emphasis recognition (Albert Krewinkel).
11055 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
11056 strings. This is wrong, as `,` and `'` are forbidden border chars and
11057 may not occur on the inner border of emphasized text.
11058 + Drop COMMENT document trees (Albert Krewinkel).
11059 Document trees under a header starting with the word `COMMENT` are
11060 comment trees and should not be exported. Those trees are dropped
11062 + Properly handle links to `file:target` (Albert Krewinkel).
11063 Org links like `[[file:target][title]]` were not handled correctly,
11064 parsing the link target verbatim. The org reader is changed such that
11065 the leading `file:` is dropped from the link target (see #756, #1812).
11066 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
11067 Org supports special symbols which can be included using LaTeX syntax,
11068 but are actually MathML entities. Examples for this are
11069 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
11070 or `\copy` (the copyright sign ©)
11074 + URI handling improvements. Now we outsource most of the work to
11075 `fetchItem'`. Also, do not include queries in file extensions (#1671).
11079 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
11080 + Handle consecutive linebreaks (#1733).
11081 + Protect graphics in headers (Jesse Rosenthal).
11082 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
11083 + Put `~` before header in list item text (Jesse Rosenthal).
11084 Because of the built-in line skip, LaTeX can't handle a section header
11085 as the first element in a list item.
11086 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
11087 + Better handling of display math in simple tables (#1754).
11088 We convert display math to inline math in simple tables,
11089 since LaTeX can't deal with display math in simple tables.
11090 + Escape spaces in code (#1694, Bjorn Buckwalter).
11092 * MediaWiki writer:
11094 + Fixed links with URL = text. Previously these were rendered as bare
11095 words, even if the URL was not an absolute URL (#1825).
11099 + Don't force all citations into footnotes.
11103 + Add blankline at end of output (#1732, Matthew Pickering).
11107 + Ensure blank line after figure.
11108 + Avoid exces whitespace after last list item (#1777).
11109 + Wrap line blocks with spaces before continuations (#1656).
11110 + Fixed double-rendering of footnotes in RST tables (#1769).
11114 + Better handling of block quotes. This change ensures that
11115 multiple paragraph blockquotes are rendered using native `>`
11116 rather than as HTML (#1738).
11117 + Fix external images (#1739). Preface relative links with ":",
11118 absolute URIs without. (Timothy Humphries)
11122 + Use protocol-relative URL for mathjax.
11123 + Put newline btw img and caption paragraph.
11124 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
11125 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
11126 This adds `KaTeX` to `HTMLMathMethod` (API change).
11127 + Don't double render when `email-obfuscation=none` (#1625, Matthew
11129 + Make header attributes work outside top level (#1711).
11130 Previously they only appeared on top level header elements.
11131 Now they work e.g. in blockquotes.
11135 + Correctly handle images without extensions (#1729).
11136 + Strip querystring in ODT write (#1682, Todd Sifleet).
11140 + Add newline to output.
11144 + Don't add `sourceURL` to absolute URIs (#1669).
11145 + Don't use unsupported `opf:title-type` for epub2.
11146 + Include "landmarks" section in nav document for epub3 (#1757).
11147 + Removed playOrder from navpoint elements in ncx file (#1760).
11148 These aren't required, and they make manual modification of epubs
11150 + Extract title even from structured title.
11151 + Don't include nav node in spine unless `--toc` was requested.
11152 Previously we included it in the spine with `linear="no"`, leading
11153 to odd results in some readers (#1593).
11154 + Fixed absolute URI detection (#1672).
11155 + Correctly resolve relative URIs (#1671).
11156 + Use regular page template for `nav.xhtml`, including doctype (#1759).
11160 + Put docx table captions above tables (#1641, Nikolay Yakimov).
11161 + Get the page width from the reference docx file, and use
11162 it to scale images that are too large to fit (Grégory Bataille).
11163 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
11164 are inferred based on `<w:name val="heading #">` fallback, if there
11165 are no en-US "Heading#" styles
11166 + Look in user data dir for archive `reference.docx`.
11167 + Renumber header and footer relationships to avoid collisions (Jesse
11168 Rosenthal). We previously took the old relationship names of the
11169 headers and footer in secptr. That led to collisions. We now make
11170 a map of availabl names in the relationships file, and then rename
11175 + Add function toLabel (Mark Szepieniec).
11176 This function can be used to sanitize reference labels so that
11177 they do not contain any of the illegal characters \#[]",{}%()|= .
11178 Currently only Links have their labels sanitized, because they
11179 are the only Elements that use passed labels.
11181 * `Text.Pandoc.Shared`:
11183 + Moved import of `toChunks` outside of CPP conditional (#1590).
11184 + Fix `inDirectory` to reset to the original directory in case
11185 an exception occurs (Freiric Barral).
11189 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
11190 Thanks to bluebirch.
11191 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
11193 + LaTeX template: Add shorthands=off to babel options (#1648).
11194 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
11195 This aids styling, making it possible for example to set 0 margins
11196 on the title page (#1758).
11197 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
11198 Previously we just expected 'title', 'subtitle', 'author', 'date'.
11199 Now we still support those, but also support the format recommended
11200 for epub metadata in the pandoc README:
11207 text: An investigation of metadata
11215 text: doi:10.234234.234/33
11216 publisher: My Press
11217 rights: (c) 2007 John Smith, CC BY-NC
11220 * `Text.Pandoc.Templates.getDefaultTemplate`:
11221 don't fail when called with "fb2" (#1660).
11223 * `Text.Pandoc.Parsing`:
11225 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
11226 For example: `$x = \text{the $n$th root of $y$}` (#1677).
11227 + Change `parseFromString` to fail if not all input is consumed.
11228 (Matthew Pickering)
11229 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
11230 used by more readers (API change, Daniel Bergey).
11232 * `Text.Pandoc.Pretty`:
11234 + Improve performance of `realLength` (Matthew Pickering).
11235 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
11236 were getting at the end of markdown fragments (as well as rst, org,
11239 * `Text.Pandoc.MIME`:
11241 + Add mime type for WebVTT (Jason Ronallo).
11242 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
11243 This is needed for epub3 validation.
11245 * `Text.Pandoc.MediaBag`:
11247 + Fix Windows specific path problems (#1597).
11249 * `Text.Pandoc.Shared`:
11251 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
11253 * Link the test suite using `-threaded`.
11254 This allows the test suite to be run using `+RTS -N`.
11256 * Added `network` dependency under `network-uri` flag in test section.
11258 * Give better error messages when someone tries to convert from
11259 pdf, doc, odt (#1683).
11261 * Added `track` to list of tags treated by `--self-contained` (#1664).
11264## pandoc 1.13.1 (2014-08-30)
11266 * Fixed `--self-contained` with Windows paths (#1558).
11267 Previously `C:\foo.js` was being wrongly interpreted as a URI.
11269 * HTML reader: improved handling of tags that can be block or inline.
11270 Previously a section like this would be enclosed in a paragraph,
11271 with RawInline for the video tags (since video is a tag that can
11272 be either block or inline):
11274 <video controls="controls">
11275 <source src="../videos/test.mp4" type="video/mp4" />
11276 <source src="../videos/test.webm" type="video/webm" />
11278 The videos can not be played back on your system.<br/>
11279 Try viewing on Youtube (requires Internet connection):
11280 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
11285 This change will cause the video and source tags to be parsed
11286 as RawBlock instead, giving better output.
11287 The general change is this: when we're parsing a "plain" sequence
11288 of inlines, we don't parse anything that COULD be a block-level tag.
11292 + Be sensitive to user styles. Note that "Hyperlink" is
11293 "blacklisted," as we don't want the default underline styling to be
11294 inherited by all links by default (Jesse Rosenthal).
11295 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
11296 This makes to docx reader's native output fit with the way the markdown
11297 reader understands its markdown output.
11301 + Header is now parsed only if standalone flag is set (Matthew Pickering).
11302 + The header is now parsed as meta information. The first line is the
11303 `title`, the second is the `author` and third line is the `date`
11304 (Matthew Pickering).
11305 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
11306 + Fixed crash when reading from stdin.
11308 * Textile writer: Extended the range of cases where native textile
11309 tables will be used (as opposed to raw HTML): we now handle any
11310 alignment type, but only for simple tables with no captions.
11312 * EPUB writer: Don't use page-progression-direction in EPUB2, which
11313 doesn't support it. Also, if page-progression-direction not specified
11314 in metadata, don't include the attribute even in EPUB3; not including it
11315 is the same as including it with the value "default", as we did before.
11318 * Org writer: Accept example lines with indentation at the beginning
11323 + Refactor to use Reader monad (Matthew Pickering).
11324 + Avoid using raw HTML in table cells; instead, use `\\`
11325 instead of newlines (Jesse Rosenthal).
11326 + Properly handle HTML table cell alignments, and use spacing
11327 to make the tables look prettier (#1566).
11331 + Bibliography entries get `Bibliography` style (#1559).
11332 + Implement change tracking (Jesse Rosenthal).
11336 + Fixed a bug that caused a table caption to repeat across all pages
11338 + Improved vertical spacing in tables and made it customizable using
11339 standard lengths set by booktab. See
11340 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
11342 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
11343 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
11344 + Made horizontal rules more flexible (Jose Luis Duran).
11346 * Text.Pandoc.MIME:
11348 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
11349 Code cleanups (Artyom Kazak).
11353 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
11356 * Improved OSX build procedure.
11358 * Added `network-uri` flag, to deal with split of `network-uri` from
11361 * Fix build dependencies for the `trypandoc` flag, so that they are
11362 ignored if `trypandoc` flag is set to False (Gabor Pali).
11364 * Updated README to remove outdated claim that `--self-contained`
11365 looks in the user data directory for missing files.
11367## pandoc 1.13.0.1 (2014-08-17)
11371 + Fixed regression which bungled list numbering (#1544), causing
11372 all lists to appear as basic ordered lists.
11373 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
11374 Added a property to all table rows where the sum of column widths
11375 is specified in pct (fraction of 5000). This helps persuade Word
11376 to lay out the table with the widths we specify.
11378 * Fixed a bug in Windows 8 which caused pandoc not to find the
11379 `pandoc-citeproc` filter (#1542).
11381 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
11382 Most significantly, the reader now uses Builder, leading to some
11383 performance improvements.
11385 * HTML reader: Parse appropriately styled span as SmallCaps.
11387 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
11388 `superscript`, and `subscript` extensions, respectively, are
11389 deactivated (#1127).
11391 * Added `trypandoc` flag to build CGI executable used in the online
11394 * Makefile: Added 'quick', 'osxpkg' targets.
11396 * Updated README in templates to indicate templates license.
11397 The templates are dual-licensed, BSD3 and GPL2+.
11399## pandoc 1.13 (15 August 2014)
11403 * Added `docx` as an input format (Jesse Rosenthal). The docx
11404 reader includes conversion of native Word equations to pandoc
11405 LaTeX `Math` elements. Metadata is taken from paragraphs at the
11406 beginning of the document with styles `Author`, `Title`, `Subtitle`,
11407 `Date`, and `Abstract`.
11409 * Added `epub` as an input format (Matthew Pickering). The epub
11410 reader includes conversion of MathML to pandoc LaTeX `Math`
11413 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
11414 Txt2tags is a lightweight markup format described at
11415 <http://txt2tags.org/>.
11417 * Added `dokuwiki` as an output format (Clare Macrae).
11419 * Added `haddock` as an output format.
11421 * Added `--extract-media` option to extract media contained in a zip
11422 container (docx or epub) while adjusting image paths to point to the
11425 * Added a new markdown extension, `compact_definition_lists`, that
11426 restores the syntax for definition lists of pandoc 1.12.x, allowing
11427 tight definition lists with no blank space between items, and
11428 disallowing lazy wrapping. (See below under behavior changes.)
11430 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
11432 * Added extensions `native_spans` and `native_divs` to activate
11433 parsing of material in HTML span or div tags as Pandoc Span
11434 inlines or Div blocks.
11436 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
11437 Textile, and MediaWiki readers. This is an option intended
11438 for debugging parsing problems; ordinary users should not need
11441### Behavior changes
11443 * Changed behavior of the `markdown_attribute` extension, to bring
11444 it in line with PHP markdown extra and multimarkdown. Setting
11445 `markdown="1"` on an outer tag affects all contained tags,
11446 recursively, until it is reversed with `markdown="0"` (#1378).
11448 * Revised markdown definition list syntax (#1429). Both the reader
11449 and writer are affected. This change brings pandoc's definition list
11450 syntax into alignment with that used in PHP markdown extra and
11451 multimarkdown (with the exception that pandoc is more flexible about
11452 the definition markers, allowing tildes as well as colons). Lazily
11453 wrapped definitions are now allowed. Blank space is required
11454 between list items. The space before a definition is used to determine
11455 whether it is a paragraph or a "plain" element. **WARNING: This change
11456 may break existing documents!** Either check your documents for
11457 definition lists without blank space between items, or use
11458 `markdown+compact_definition_lists` for the old behavior.
11460 * `.numberLines` now works in fenced code blocks even if no language
11461 is given (#1287, jgm/highlighting-kate#40).
11463 * Improvements to `--filter`:
11465 + Don't search PATH for a filter with an explicit path.
11466 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
11467 the system path, even if there was a `caps.py` in the working directory.
11468 + Respect shebang if filter is executable (#1389).
11469 + Don't print misleading error message.
11470 Previously pandoc would say that a filter was not found,
11471 even in a case where the filter had a syntax error.
11475 + Parse `div` and `span` elements even without `--parse-raw`,
11476 provided `native_divs` and `native_spans` extensions are set.
11477 Motivation: these now generate native pandoc Div and Span
11478 elements, not raw HTML.
11479 + Parse EPUB-specific elements if the `epub_html_exts`
11480 extension is enabled. These include `switch`, `footnote`,
11481 `rearnote`, `noteref`.
11485 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
11486 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
11487 `\cite{Coffee}`), can be used without any further escaping (Albert
11490 * Textile reader and writer:
11492 + The `raw_tex` extension is no longer set by default. You can
11493 enable it with `textile+raw_tex`.
11497 + Support `equation`, `informalequation`, `inlineequation` elements with
11498 `mml:math` content. This is converted into LaTeX and put into a Pandoc
11501 * Revised `plain` output, largely following the style of Project
11504 + Emphasis is rendered with `_underscores_`, strong emphasis
11506 + Headings are rendered differently, with space to set them off,
11507 not with setext style underlines. Level 1 headers are ALL CAPS.
11508 + Math is rendered using unicode when possible, but without the
11509 distracting emphasis markers around variables.
11510 + Footnotes use a regular `[n]` style.
11514 + Horizontal rules are now a line across the whole page.
11515 + Prettier pipe tables. Columns are now aligned (#1323).
11516 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
11517 no longer emits any raw HTML, including span and div tags
11518 generated by Span and Div elements.
11519 + Use span with style for `SmallCaps` (#1360).
11523 + Autolinks now have class `uri`, and email autolinks have class
11524 `email`, so they can be styled.
11528 + Document formatting is carried over from `reference.docx`.
11529 This includes margins, page size, page orientation, header,
11530 and footer, including images in headers and footers.
11531 + Include abstract (if present) with `Abstract` style (#1451).
11532 + Include subtitle (if present) with `Subtitle` style, rather
11533 than tacking it on to the title (#1451).
11537 + Write empty span elements with an id attribute as org anchors.
11538 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
11542 + Put table captions above tables, to match the conventional
11543 standard. (Previously they appeared below tables.)
11544 + Use `\(..\)` instead of `$..$` for inline math (#1464).
11545 + Use `\nolinkurl` in email autolinks. This allows them to be styled
11546 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
11547 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
11548 curly quotes in the PDF output (#1364).
11549 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
11550 do not appear before the overlays in which their markers appear
11552 + Don't produce a `\label{..}` for a Div or Span element. Do produce
11553 a `\hyperdef{..}` (#1519).
11557 + If the metadata includes `page-progression-direction` (which can be
11558 `ltr` or `rtl`, the `page-progression-direction` attribute will
11559 be set in the EPUB spine (#1455).
11561 * Custom lua writers:
11563 + Custom writers now work with `--template`.
11564 + Removed HTML header scaffolding from `sample.lua`.
11565 + Made citation information available in lua writers.
11567 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
11568 adjacent `RawBlock`s when possible.
11572 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
11574 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
11577 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
11580 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
11583 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
11585 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
11586 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
11587 readers return a pair of a `Pandoc` document and a `MediaBag` with
11588 the media resources they contain. This can be extracted using
11589 `--extract-media`. Writers that incorporate media (PDF, Docx,
11590 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
11591 for resources in the `MediaBag` generated by the reader, in addition to
11592 the file system or web.
11594 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
11595 Renamed `readTeXMath'` to `texMathToInlines`.
11597 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
11598 `readers` now associates names of readers with `Reader`
11599 structures. This allows inclusion of readers, like the docx
11600 reader, that take binary rather than textual input.
11602 * `Text.Pandoc.Shared`:
11604 + Added `capitalize` (Artyom Kazak), and replaced uses of
11605 `map toUpper` (which give bad results for many languages).
11606 + Added `collapseFilePath`, which removes intermediate `.` and
11607 `..` from a path (Matthew Pickering).
11608 + Added `fetchItem'`, which works like `fetchItem` but searches
11609 a `MediaBag` before looking on the net or file system.
11610 + Added `withTempDir`.
11611 + Added `removeFormatting`.
11612 + Added `extractSpaces` (from HTML reader) and generalized its type
11613 so that it can be used by the docx reader (Matthew Pickering).
11615 + Added `normalizeInlines`, `normalizeBlocks`.
11616 + `normalize` is now `Pandoc -> Pandoc` instead of
11617 `Data a :: a -> a`. Some users may need to change their uses of
11618 `normalize` to the newly exported `normalizeInlines` or
11621 * `Text.Pandoc.Options`:
11623 + Added `writerMediaBag` to `WriterOptions`.
11624 + Removed deprecated and no longer used `readerStrict` in
11625 `ReaderOptions`. This is handled by `readerExtensions` now.
11626 + Added `Ext_compact_definition_lists`.
11627 + Added `Ext_epub_html_exts`.
11628 + Added `Ext_native_divs` and `Ext_native_spans`.
11629 This allows users to turn off the default pandoc behavior of
11630 parsing contents of div and span tags in markdown and HTML
11631 as native pandoc Div blocks and Span inlines.
11633 * `Text.Pandoc.Parsing`:
11635 + Generalized `readWith` to `readWithM` (Matthew Pickering).
11636 + Export `runParserT` and `Stream` (Matthew Pickering).
11637 + Added `HasQuoteContext` type class (Matthew Pickering).
11638 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
11639 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
11640 `applyMacros` (Matthew Pickering).
11641 + Added custom `token` (Matthew Pickering).
11642 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
11643 track of the ending tag we're waiting for when we're parsing inside
11645 + Added `stateMarkdownAttribute` to `ParserState`. This is used
11646 to keep track of whether the markdown attribute has been set in
11648 + Generalized type of `registerHeader`, using new type classes
11649 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
11650 Pickering). These allow certain common functions to be reused
11651 even in parsers that use custom state (instead of `ParserState`),
11652 such as the MediaWiki reader.
11653 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
11654 and generalized their types (Matthew Pickering).
11656 * `Text.Pandoc.Pretty`:
11659 + Added `blanklines`, which guarantees a certain number of blank lines
11666 + Fixed parsing of indented code in list items. Indented code
11667 at the beginning of a list item must be indented eight spaces
11668 from the margin (or edge of the container), or four spaces
11669 from the list marker, whichever is greater.
11670 + Fixed small bug in HTML parsing with `markdown_attribute`, which
11671 caused incorrect tag nesting for input like
11672 `<aside markdown="1">*hi*</aside>`.
11673 + Fixed regression with intraword underscores (#1121).
11674 + Improved parsing of inline links containing quote characters (#1534).
11675 + Slight rewrite of `enclosure`/`emphOrStrong` code.
11676 + Revamped raw HTML block parsing in markdown (#1330).
11677 We no longer include trailing spaces and newlines in the
11678 raw blocks. We look for closing tags for elements (but without
11679 backtracking). Each block-level tag is its own `RawBlock`;
11680 we no longer try to consolidate them (though `--normalize` will do so).
11681 + Combine consecutive latex environments. This helps when you have
11682 two minipages which can't have blank lines between them (#690, #1196).
11683 + Support smallcaps through span.
11684 `<span style="font-variant:small-caps;">foo</span>` will be
11685 parsed as a `SmallCaps` inline, and will work in all output
11686 formats that support small caps (#1360).
11687 + Prevent spurious line breaks after list items (#1137). When the
11688 `hard_line_breaks` option was specified, pandoc would formerly
11689 produce a spurious line break after a tight list item.
11690 + Fixed table parsing bug (#1333).
11691 + Handle `c++` and `objective-c` as language identifiers in
11692 github-style fenced blocks (#1318).
11693 + Inline math must have nonspace before final `$` (#1313).
11697 + Handle comments at the end of tables. This resolves the issue
11698 illustrated in <http://stackoverflow.com/questions/24009489>.
11699 + Correctly handle table rows with too few cells. LaTeX seems to
11700 treat them as if they have empty cells at the end (#241).
11701 + Handle leading/trailing spaces in `\emph` better.
11702 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
11703 so that we don't get things like `* hi *` in markdown output.
11704 Also applies to `textbf` and some other constructions (#1146).
11705 + Don't assume preamble doesn't contain environments (#1338).
11706 + Allow (and discard) optional argument for `\caption` (James Aspnes).
11710 + Fixed major parsing problem with HTML tables. Table cells were
11711 being combined into one cell (#1341).
11712 + Fixed performance issue with malformed HTML tables.
11713 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
11714 + Allow space between `<col>` and `</col>`.
11715 + Added `audio` and `source` in `eitherBlockOrInline`.
11716 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
11717 `blockTags` to `eitherBlockOrInline`.
11718 + `map` and `object` were mistakenly in both lists; they have been removed
11720 + Ignore `DOCTYPE` and `xml` declarations.
11722 * MediaWiki reader:
11724 + Don't parse backslash escapes inside `<source>` (#1445).
11725 + Tightened up template parsing.
11726 The opening `{{` must be followed by an alphanumeric or `:`.
11727 This prevents the exponential slowdown in #1033.
11728 + Support "Bild" for images.
11732 + Better handle elements inside code environments. Pandoc's document
11733 model does not allow structure inside code blocks, but at least this way
11734 we preserve the text (#1449).
11735 + Support `<?asciidoc-br?>` (#1236).
11739 + Fixed list parsing. Lists can now start without an intervening
11740 blank line (#1513).
11741 + HTML block-level tags that do not start a line are parsed as
11742 inline HTML and do not interrupt paragraphs (as in RedCloth).
11746 + Make tildes create inline code (#1345). Also relabeled `code` and
11747 `verbatim` parsers to accord with the org-mode manual.
11748 + Respect `:exports` header argument in code blocks (Craig Bosma).
11749 + Fixed tight lists with sublists (#1437).
11753 + Avoid excess whitespace in `nav.xhtml`. This should improve
11754 TOC view in iBooks (#1392).
11755 + Fixed regression on cover image.
11756 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
11757 because the metadata id was not correct. Now we derive the id from the
11758 actual cover image filename, which we preserve rather than using
11760 + Keep newlines between block elements. This allows
11761 easier diff-ability (#1424).
11762 + Use `stringify` instead of custom `plainify`.
11763 + Use `renderTags'` for all tag rendering. This properly handles tags
11764 that should be self-closing. Previously `<hr/>` would appear in EPUB
11765 output as `<hr></hr>` (#1420).
11766 + Better handle HTML media tags.
11767 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
11768 can have only one dc:date, so only the first one is used.
11772 + Correctly handle figures in notes. Notes can't contain figures in
11773 LaTeX, so we fake it to avoid an error (#1053).
11774 + Fixed strikeout + highlighted code (#1294).
11775 Previously strikeout highlighted code caused an error.
11779 + Improved detection of autolinks with URLs containing escapes.
11783 + Improved image embedding: `fetchItem'` is now used to get the
11784 images, and calculated image sizes are indicated in the RTF.
11785 + Avoid extra paragraph tags in metadata (#1421).
11789 + Deactivate "incremental" inside slide speaker notes (#1394).
11790 + Don't include empty items in the table of contents for
11791 slide shows. (These would result from creating a slide
11792 using a horizontal rule.)
11794 * MediaWiki writer:
11796 + Minor renaming of `st` prefixed names.
11800 + Double up emphasis and strong emphasis markers in intraword
11801 contexts, as required by asciidoc (#1441).
11805 + Avoid wrapping that might start a list, blockquote, or header (#1013).
11806 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
11807 + Don't use braced attributes for fenced code (#1416).
11808 If `Ext_fenced_code_attributes` is not set, the first class
11809 attribute will be printed after the opening fence as a bare word.
11810 + Separate adjacent lists of the same kind with an HTML comment (#1458).
11814 + Fixed treatment of data uris for images (#1062).
11818 + Use Compact style for empty table cells (#1353).
11819 Otherwise we get overly tall lines when there are empty
11820 table cells and the other cells are compact.
11821 + Create overrides per-image for `media/` in reference docx.
11822 This should be somewhat more robust and cover more types of images.
11823 + Improved `entryFromArchive` to avoid an unneeded parse.
11824 + Section numbering carries over from reference.docx (#1305).
11825 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
11826 we assign numbers based on the list marker styles.
11828 * `Text.Pandoc.Options`:
11830 + Removed `Ext_fenced_code_attributes` from `markdown_github`
11833 * `Text.Pandoc.ImageSize`:
11835 + Use default instead of failing if image size not found
11836 in exif header (#1358).
11837 + ignore unknown exif header tag rather than crashing.
11838 Some images seem to have tag type of 256, which was causing
11841 * `Text.Pandoc.Shared`:
11843 + `fetchItem`: unescape URI encoding before reading local file (#1427).
11844 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
11845 doing mime lookup, to improve mime type guessing.
11846 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
11847 other things are treated as relative URIs if `sourceURL` is `Just _`,
11848 otherwise as file paths on the local file system.
11849 + `fetchItem` now properly handles links without a protocol (#1477).
11850 + `fetchItem` now escapes characters not allowed in URIs before trying
11852 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
11854 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
11855 needed to resolve relative URLs when we fetch resources (#750).
11857 * `Text.Pandoc.Parsing`
11859 + Simplified `dash` and `ellipsis` (#1419).
11860 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
11861 + Generalized functions to use `ParsecT` (Matthew Pickering).
11862 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
11865### Template changes
11867 * Added haddock template.
11868 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
11869 be "advisory" in HTML5, but kindlegen seems to require them.
11870 * EPUB3: Put title page in section with `epub:type="titlepage"`.
11871 * LaTeX: Made `\subtitle` work properly (#1327).
11872 * LaTeX/Beamer: remove conditional around date (#1321).
11873 * LaTeX: Added `lot` and `lof` variables, which can be set to
11874 get `\listoftables` and `\listoffigures` (#1407). Note that
11875 these variables can be set at the command line with `-Vlot -Vlof`
11876 or in YAML metadata.
11878### Under the hood improvements
11880 * Rewrote normalize for efficiency (#1385).
11882 * Rewrote Haddock reader to use `haddock-library` (#1346).
11884 + This brings pandoc's rendering of haddock markup in line
11885 with the new haddock.
11886 + Fixed line breaks in `@` code blocks.
11887 + alex and happy are no longer build-depends.
11889 * Added `Text.Pandoc.Compat.Directory` to allow building against
11890 different versions of the `directory` library.
11892 + Added `Text.Pandoc.Compat.Except` to allow building against
11893 different verions of `mtl`.
11895 * Code cleanup in some writers, using Reader monad to avoid
11896 passing options parameter around (Matej Kollar).
11898 * Improved readability in `pandoc.hs`.
11900 * Miscellaneous code cleanups (Artyom Kazak).
11902 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
11905 * Changed `http-conduit` flag to `https`. Depend on `http-client`
11906 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
11907 depends on `conduit` via `yaml`.)
11909 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
11910 This change to highlighting-kate means that PHP fragments no longer need
11911 to start with `<?php`. It also fixes a serious bug causing failures with
11914 * Require latest `texmath`. This fixes `\tilde{E}` and allows
11915 `\left` to be used with `]`, `)` etc. (#1319), among many other
11918 * Require latest `zip-archive`. This has fixes for unicode path names.
11920 * Added tests for plain writer.
11922 * `Text.Pandoc.Templates`:
11924 + Fail informatively on template syntax errors.
11925 With the move from parsec to attoparsec, we lost good error
11926 reporting. In fact, since we weren't testing for end of input,
11927 malformed templates would fail silently. Here we revert back to
11928 Parsec for better error messages.
11929 + Use `ordNub` (#1022).
11933 + Made benchmarks compile again (Artyom Kazak).
11934 + Fixed so that the failure of one benchmark does not prevent others
11935 from running (Artyom Kazak).
11936 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
11937 + Changed benchmark to use only the test suite, so that benchmarks
11940 * Windows build script:
11942 + Add `-windows` to file name.
11943 + Use one install command for pandoc, pandoc-citeproc.
11944 + Force install of pandoc-citeproc.
11946 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
11947 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
11948 will extract it into a folder named `SOMETHING.pkg`, which it
11949 will interpret as a defective package (#1308).
11953 + Made headers for all extensions so they have IDs and can be
11954 linked to (Beni Cherniavsky-Paskin).
11955 + Fixed typos (Phillip Alday).
11956 + Fixed documentation of attributes (#1315).
11957 + Clarified documentation on small caps (#1360).
11958 + Better documentation for `fenced_code_attributes` extension
11960 + Documented fact that you can put YAML metadata in a separate file
11964## pandoc 1.12.4.2 (2014-05-14)
11966 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
11968 * Shared: `addMetaValue` now behaves slightly differently:
11969 if both the new and old values are lists, it concatenates their
11970 contents to form a new list.
11974 + Set `bibliography` in metadata from `\bibliography` or
11975 `\addbibresource` command.
11976 + Don't error on `%foo` with no trailing newline.
11980 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
11981 + Fix parsing of blank lines within blocks (Albert Krewinkel).
11982 + Support pandoc citation extension (Albert Krewinkel). This can
11983 be turned off by specifying `org-citation` as the input format.
11987 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
11988 other readers (Albert Krewinkel).
11990 * `Text.Pandoc.Parsing`:
11992 + Added `citeKey` (see above).
11993 + Added `HasLastStrPosition` type class and `updateLastStrPos`
11994 and `notAfterString` functions.
11996 * Updated copyright notices (Albert Krewinkel).
11998 * Added default.icml to data files so it installs with the package.
12002 + The binary is now built with options to ensure that it can be
12003 used with OSX 10.6+.
12004 + Moved OSX package materials to osx directory.
12005 + Added OSX package uninstall script, included in the zip container
12006 (thanks to Daniel T. Staal).
12008## pandoc 1.12.4 (2014-05-07)
12010 * Made it possible to run filters that aren't executable
12011 (#1096). Pandoc first tries to find the executable (searching
12012 the path if path isn't given). If it fails, but the file
12013 exists and has a `.py`, `.pl`, `.rb`, `.hs`, or `.php`
12014 extension, pandoc runs the filter using the appropriate
12015 interpreter. This should make it easier to use filters on
12016 Windows, and make it more convenient for everyone.
12018 * Added Emacs org-mode reader (Albert Krewinkel).
12020 * Added InDesign ICML Writer (mb21).
12022 * MediaWiki reader:
12024 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
12025 + Fixed bug in certain nested lists (#1213). If a level 2 list was
12026 followed by a level 1 list, the first item of the level 1 list
12028 + Handle table rows containing just an HTML comment (#1230).
12032 + Give better location information on errors, pointing to line
12033 numbers within included files (#1274).
12034 + LaTeX reader: Better handling of `table` environment (#1204).
12035 Positioning options no longer rendered verbatim.
12036 + Better handling of figure and table with caption (#1204).
12037 + Handle `@{}` and `p{length}` in tabular. The length is not actually
12038 recorded, but at least we get a table (#1180).
12039 + Properly handle `\nocite`. It now adds a `nocite` metadata
12040 field. Citations there will appear in the bibliography but not
12041 in the text (unless you explicitly put a `$nocite$` variable
12046 + Ensure that whole numbers in YAML metadata are rendered without
12047 decimal points. (This became necessary with changes to aeson
12048 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
12049 + Fixed regression on line breaks in strict mode (#1203).
12050 + Small efficiency improvements.
12051 + Improved parsing of nested `div`s. Formerly a closing `div` tag
12052 would be missed if it came right after other block-level tags.
12053 + Avoid backtracking when closing `</div>` not found.
12054 + Fixed bug in reference link parsing in `markdown_mmd`.
12055 + Fixed a bug in list parsing (#1154). When reading a raw list
12056 item, we now strip off up to 4 spaces.
12057 + Fixed parsing of empty reference link definitions (#1186).
12058 + Made one-column pipe tables work (#1218).
12062 + Better support for attributes. Instead of being ignored, attributes
12063 are now parsed and included in Span inlines. The output will be a bit
12064 different from stock textile: e.g. for `*(foo)hi*`, we'll get
12065 `<em><span class="foo">hi</span></em>` instead of
12066 `<em class="foo">hi</em>`. But at least the data is not lost.
12067 + Improved treatment of HTML spans (%) (#1115).
12068 + Improved link parsing. In particular we now pick up on attributes.
12069 Since pandoc links can't have attributes, we enclose the whole link in
12070 a span if there are attributes (#1008).
12071 + Implemented correct parsing rules for inline markup (#1175, Matthew
12073 + Use Builder (Matthew Pickering).
12077 + Better treatment of `formalpara`. We now emit the title (if present)
12078 as a separate paragraph with boldface text (#1215).
12079 + Set metadata `author` not `authors`.
12080 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
12081 Matthew Pickering).
12082 + Converted current meta information parsing in DocBook to a more
12083 extensible version which is aware of the more recent meta
12084 representation (Matthew Pickering).
12088 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
12090 + Treat processing instructions & declarations as block. Previously
12091 these were treated as inline, and included in paragraph tags in HTML
12092 or DocBook output, which is generally not what is wanted (#1233).
12093 + Updated `closes` with rules from HTML5 spec.
12094 + Use Builder (Matthew Pickering, #1162).
12098 + Remove duplicate `http` in PEP links (Albert Krewinkel).
12099 + Make rst figures true figures (#1168, CasperVector)
12100 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
12101 rST parser now supports: all built-in rST roles, new role definition,
12102 role inheritance, though with some limitations.
12103 + Use `author` rather than `authors` in metadata.
12104 + Better handling of directives. We now correctly handle field
12105 lists that are indented more than three spaces. We treat an
12106 `aafig` directive as a code block with attributes, so it can be
12107 processed in a filter (#1212).
12111 + Mark span contents with label if span has an ID (Albert Krewinkel).
12112 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
12113 + Handle line breaks in simple table cells (#1217).
12114 + Workaround for level 4-5 headers in quotes. These previously produced
12115 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
12116 This adds an `mbox{}` in these contexts to work around the problem.
12117 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
12118 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
12119 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
12120 ligature with LuaLaTeX but `\/` does.
12121 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
12123 * ConTeXt writer: Improved autolinks (#1270).
12127 + Improve handling of hard line breaks in Docbook writer
12128 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
12129 just for the newline character.
12130 + Don't let line breaks inside footnotes influence the enclosing
12131 paragraph (Neil Mayhew).
12132 + Distinguish tight and loose lists in DocBook output, using
12133 `spacing="compact"` (Neil Mayhew, #1250).
12135 * Docx writer: When needed files are not present in the user's
12136 `reference.docx`, fall back on the versions in the `reference.docx`
12137 in pandoc's data files. This fixes a bug that occurs when a
12138 `reference.docx` saved by LibreOffice is used. (#1185)
12142 + Include extension in epub ids. This fixes a problem with duplicate
12143 extensions for fonts and images with the same base name but different
12144 extensions (#1254).
12145 + Handle files linked in raw `img` tags (#1170).
12146 + Handle media in `audio` source tags (#1170).
12147 Note that we now use a `media` directory rather than `images`.
12148 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
12149 will both be incorporated into `content.opf` and the epub container.
12153 + Add colgroup around col tags (#877). Also affects EPUB writer.
12154 + Fixed bug with unnumbered section headings. Unnumbered section
12155 headings (with class `unnumbered`) were getting numbers.
12156 + Improved detection of image links. Previously image links with
12157 queries were not recognized, causing `<embed>` to be used instead
12160 * Man writer: Ensure that terms in definition lists aren't line wrapped
12165 + Use proper escapes to avoid unwanted lists (#980). Previously we used
12166 0-width spaces, an ugly hack.
12167 + Use longer backtick fences if needed (#1206). If the content contains a
12168 backtick fence and there are attributes, make sure longer fences are
12169 used to delimit the code. Note: This works well in pandoc, but github
12170 markdown is more limited, and will interpret the first string of three
12171 or more backticks as ending the code block.
12173 * RST writer: Avoid stack overflow with certain tables (#1197).
12175 * RTF writer: Fixed table cells containing paragraphs.
12179 + Correctly handle UTF-8 in custom lua scripts (#1189).
12180 + Fix bugs with lua scripts with mixed-case filenames and
12181 paths containing `+` or `-` (#1267). Note that `getWriter`
12182 in `Text.Pandoc` no longer returns a custom writer on input
12185 * AsciiDoc writer: Handle multiblock and empty table cells
12186 (#1245, #1246). Added tests.
12188 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
12190 * `Text.Pandoc.Shared`:
12192 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
12193 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
12194 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
12196 + `openURL`: set proxy with value of http_proxy env variable (#1211).
12197 Note: proxies with non-root paths are not supported, due to
12198 limitations in `http-conduit`.
12200 * `Text.Pandoc.PDF`:
12202 + Ensure that temp directories deleted on Windows (#1192). The PDF is
12203 now read as a strict bytestring, ensuring that process ownership will
12204 be terminated, so the temp directory can be deleted.
12205 + Use `/` as path separators in a few places, even on Windows.
12206 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
12207 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
12208 + Changes to error reporting, to handle non-UTF8 error output.
12210 * `Text.Pandoc.Templates`:
12212 + Removed unneeded datatype context (Merijn Verstraaten).
12214 + YAML objects resolve to "true" in conditionals (#1133).
12215 Note: If `address` is a YAML object and you just have `$address$`
12216 in your template, the word `true` will appear, which may be
12217 unexpected. (Previously nothing would appear.)
12219 * `Text.Pandoc.SelfContained`: Handle `poster` attribute in `video`
12222 * `Text.Pandoc.Parsing`:
12224 + Made `F` an instance of Applicative (#1138).
12225 + Added `stateCaption`.
12226 + Added `HasMacros`, simplified other typeclasses.
12227 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
12228 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
12229 + Changed the smart punctuation parser to return `Inlines`
12230 rather than `Inline` (Matthew Pickering).
12231 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
12232 from typeclasses of monads to typeclasses of states. This simplifies
12233 the instance definitions and provides more flexibility. Generalized
12234 type of `getOption` and added a default definition. Removed
12235 `askReaderOption`. Added `extractReaderOption`. Added
12236 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
12237 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
12238 `modifyHeaderMap`. Added `extractIdentifierList` and
12239 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
12240 for `getIdentifierList`, `putIdentifierList`, and
12241 `modifyIdentifierList`. The ultimate goal here is to allow different
12242 parsers to use their own, tailored parser states (instead of
12243 `ParserState`) while still using shared functions.
12245 * Template changes:
12247 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
12248 + LaTeX template: Add `linestretch` and `fontfamily` variables.
12249 + LaTeX template: Conditionalize author and date commands.
12250 + Beamer template: Consistent styles for figure and table captions
12252 + LaTeX and beamer template: Adjust widths correctly for oversized
12253 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
12254 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
12255 `upquote` only after `fontenc` (Yihui Xie).
12256 + Beamer template: Added caption package (#1200).
12257 + Beamer template: changes for better unicode handling (KarolS).
12258 + DocBook template: use `authorgroup` if there are authors.
12259 + revealjs template: Move `include-after` to end (certainlyakey).
12260 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
12262 * Bumped version bounds of dependencies.
12264 * Added a `--trace` command line option, for debugging backtracking
12265 bugs. So far this only works with the markdown reader.
12267 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
12269 * Updated travis script to test with multiple GHC versions.
12271 * Force failure of a Travis build if GHC produces warnings (Albert
12274 * Add `.editorconfig` (Albert Krewinkel).
12275 See <http://editorconfig.org/> for details.
12277 * Give more useful error message if '-t pdf' is specified (#1155).
12279 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
12281 * Allow `html4` as a synonym of `html` as a reader (it already works
12286 + Added an explanation of how to use YAML metadata to
12287 force items to appear in the bibliography without citations in
12288 the text (like LaTeX `\nocite`).
12289 + Added note to `--bibtex/--natbib`: not for use in making PDF
12290 (#1194, thanks to nahoj).
12291 + Added explanatory notes about `--natbib` and `--biblatex`.
12292 + Added specification of legal syntax for citation keys.
12293 + Fixed variable defaults documentation (Albert Krewinkel).
12295 * Removed copyright statements for files that have been removed
12296 (Albert Krewinkel).
12298 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
12299 They aren't needed at runtime. We keep README and COPYRIGHT in data
12300 to ensure that they'll be available on all systems on which pandoc
12303 * Use cabal sandboxes in Windows build script.
12305## pandoc 1.12.3.3 (2014-02-03)
12307 * To changes to source; recompiled tarball with latest alex and
12308 happy, so they will work with GHC 7.8.
12310## pandoc 1.12.3.2 (2014-02-03)
12312 * Bumped version bounds for blaze-html, blaze-markup.
12314 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
12317 * Fixed mediawiki ordered list parsing (#1122).
12319 * HTML reader: Fixed bug reading inline math with `$$` (#225).
12321 * Added support for LaTeX style literate Haskell code blocks in rST
12322 (Merijn Verstraaten).
12324## pandoc 1.12.3.1 (2014-01-14)
12326 * Relaxed version constraint on binary, allowing the use of binary 0.5.
12329## pandoc 1.12.3 (2014-01-10)
12331 * The `--bibliography` option now sets the `biblio-files` variable.
12332 So, if you're using `--natbib` or `--biblatex`, you can just use
12333 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
12335 * Don't run pandoc-citeproc filter if `--bibliography` is
12336 used together with `--natbib` or `--biblatex` (Florian Eitel).
12338 * Template changes:
12340 + Updated beamer template to include booktabs.
12341 + Added `abstract` variable to LaTeX template.
12342 + Put `header-includes` after `title` in LaTeX template (#908).
12343 + Allow use of `\includegraphics[size]` in beamer.
12344 This just required porting a macro definition from the default
12345 LaTeX template to the default beamer template.
12347 * `reference.docx`: Include `FootnoteText` style.
12348 Otherwise Word ignores the style, even when specified in the `pPr`.
12351 * `reference.odt`: Tidied `styles.xml`.
12353 * Relaxed version bounds for dependencies.
12355 * Added `withSocketsDo` around http conduit code in `openURL`,
12356 so it works on Windows (#1080).
12358 * Added `Cite` function to `sample.lua`.
12362 + Fixed regression in title blocks (#1089).
12363 If author field was empty, date was being ignored.
12364 + Allow backslash-newline hard line breaks in grid and
12365 multiline table cells.
12366 + Citation keys may now start with underscores, and may contain
12367 underscores adjacent to internal punctuation.
12371 + Add support for `Verb` macro (jrnold) (#1090).
12372 + Support babel-style quoting: `` "`..."' ``.
12374 * Properly handle script blocks in strict mode. (That is,
12375 `markdown-markdown_in_html_blocks`.) Previously a spurious
12376 `<p>` tag was being added (#1093).
12378 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
12383 + Factored out function for table cell creation.
12384 + Better treatment of footnotes in tables.
12385 Notes now appear in the regular sequence, rather than in the
12386 table cell. (This was a regression in 1.10.)
12388 * HTML reader: Parse name/content pairs from meta tags as metadata.
12391 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
12393 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
12395 * ODT writer: Use mathml for proper rendering of formulas.
12396 Note: LibreOffice's support for this seems a bit buggy. But
12397 it should be better than what we had before.
12399 * RST writer: Ensure no blank line after def in definition list (#992).
12401 * Markdown writer: Don't use tilde code blocks with braced attributes in
12402 `markdown_github` output. A consequence of this change is that the
12403 backtick form will be preferred in general if both are enabled. That
12404 is good, as it is much more widespread than the tilde form. (#1084)
12406 * Docx writer: Fixed problem with some modified reference docx files.
12407 Include `word/_rels/settings.xml.rels` if it exists, as well as other
12408 `rels` files besides the ones pandoc generates explicitly.
12412 + With `--toc`, headers no longer link to themselves (#1081).
12413 + Omit footnotes from TOC entries. Otherwise we get doubled
12414 footnotes when headers have notes!
12418 + Avoid duplicate notes when headings contain notes.
12419 This arose because the headings are copied into the metadata
12420 "title" field, and the note gets rendered twice. We strip the
12421 note now before putting the heading in "title".
12422 + Strip out footnotes from toc entries.
12423 + Fixed bug with `--epub-stylesheet`. Now the contents of
12424 `writerEpubStylesheet` (set by `--epub-stylesheet`)
12425 should again work, and take precedence over a stylesheet specified
12428 * `Text.Pandoc.Pretty`: Added `nestle`. API change.
12430 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
12432 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
12435 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
12436 we could only get size information for JFIF format, which led
12437 to squished images in Word documents. Closes #976.
12439 * Removed old `MarkdownTest_1.0.3` directory (#1104).
12442## pandoc 1.12.2.1 (2013-12-08)
12444 * Markdown reader: Fixed regression in list parser, involving
12445 continuation lines containing raw HTML (or even verbatim raw HTML).
12447## pandoc 1.12.2 (2013-12-07)
12449 * Metadata may now be included in YAML blocks in a markdown document.
12457 text: An investigation of metadata
12465 text: doi:10.234234.234/33
12466 publisher: My Press
12467 rights: (c) 2007 John Smith, CC BY-NC
12468 cover-image: img/mypic.jpg
12469 stylesheet: style.css
12472 Metadata may still be provided using `--epub-metadata`; it will
12473 be merged with the metadata in YAML blocks.
12477 + `meta` tags are now used instead of `opf` attributes for EPUB3.
12478 + Insert "svg" property as needed in opf (EPUB 3).
12479 + Simplify `imageTypeOf` using `getMimeType`.
12480 + Add properties attribute to `cover-image` item for EPUB 3.
12481 + Don't include node for `cover.xhtml` if no cover!
12482 + Ensure that same identifier is used throughout (#1044).
12483 If an identifier is given in metadata, we use that; otherwise
12484 we generate a random uuid.
12485 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
12486 Fixes an issue with Calibre putting the cover at the end of the book
12487 if the spine has `linear="no"`. Apparently this is best practice
12488 for other converters as well:
12489 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
12490 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
12491 + Allow partial dates: `YYYY`, `YYYY-MM`.
12493 * Markdown writer: Fix rendering of tight sublists (#1050).
12494 Previously a spurious blank line was included after a tight sublist.
12496 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
12497 This is reported to be necessary to avoid an error from recent
12498 versions of Libre Office when files contain more than one image
12499 Thanks to wmanley for reporting and diagnosing the problem.
12501 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
12502 Instead, let this be set in the template, using `\setupfloat`.
12503 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
12505 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
12507 * Fixed bug with markdown intraword emphasis. Closes #1066.
12509 * Docbook writer: Hierarchicalize block content in metadata.
12510 Previously headers just disappeared from block-level metadata
12511 when it was used in templates. Now we apply the 'hierarchicalize'
12512 transformation. Note that a block headed by a level-2 header will
12513 turn into a `<sect1>` element.
12515 * OpenDocument writer: Skip raw HTML (#1035).
12516 Previously it was erroneously included as verbatim text.
12518 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
12519 This allows better control of formatting, since the `<a>`
12520 tags have a distinguishing class (#1049).
12524 + Use mime type info returned by fetchItem.
12525 + Fixed core metadata (#1046).
12526 Don't create empty date nodes if no date given.
12527 Don't create multiple `dc:creator` nodes; instead separate by
12529 + Fix URL for core-properties in `_rels/.rels` (#1046).
12531 * Plain writer: don't print `<span>` tags.
12535 + Fix definition lists with internal links in terms (#1032).
12536 This fix puts braces around a term that contains an internal
12537 link, to avoid problems with square brackets.
12538 + Properly escape pdftitle, pdfauthor (#1059).
12539 + Use booktabs package for tables (thanks to Jose Luis Duran).
12541 * Updated beamer template. Now references should work properly
12542 (in a slide) when `--biblatex` or `--natbib` is used.
12546 + Parse contents of curly quotes or matched `"` as quotes.
12547 + Support `\textnormal` as span with class `nodecor`.
12548 This is needed for pandoc-citeproc.
12549 + Improved citation parsing. This fixes a run-time error that occurred
12550 with `\citet{}` (empty list of keys). It also ensures that empty keys
12551 don't get produced.
12553 * MediaWiki reader: Add automatic header identifiers.
12557 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
12559 + Recognize `svg` tags as block level content (thanks to MinRK).
12560 + Parse LaTeX math if appropriate options are set.
12564 + Yaml block must start immediately after `---`. If there's a blank
12565 line after `---`, we interpreted it as a horizontal rule.
12566 + Correctly handle empty bullet list items.
12567 + Stop parsing "list lines" when we hit a block tag.
12568 This fixes exponential slowdown in certain input, e.g.
12569 a series of lists followed by `</div>`.
12571 * Slides: Preserve `<div class="references">` in references slide.
12573 * `Text.Pandoc.Writer.Shared`:
12575 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
12576 attributes, leading to invalid HTML.
12577 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
12578 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
12579 encoded bytestring was returned. We now decode it so it's a proper
12582 * DocBook reader: Handle numerical attributes starting with decimal.
12583 Also use `safeRead` instead of `read`.
12585 * `Text.Pandoc.Parsing`:
12587 + Generalized type of `registerHeader`, using new type classes
12588 `HasReadeOptions`, `HasIdentifierList`, `HasHeaderMap`.
12589 These allow certain common functions to be reused
12590 even in parsers that use custom state (instead of `ParserState`),
12591 such as the MediaWiki reader.
12592 + Moved inlineMath, displayMath from Markdown reader to Parsing.
12593 Generalize their types and export them from Parsing. (API change.)
12595 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
12596 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
12597 in all the writers. Require `texmath >= 0.6.5.2`.
12599 * `Text.Pandoc.MIME`:
12601 + Add entry for `jfif`.
12602 + In looking up extensions, drop the encoding info.
12603 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
12605 * Templates: Changed how array variables are resolved. Previously if
12606 `foo` is an array (which might be because multiple values were set on
12607 the command line), `$foo$` would resolve to the concatenation of the
12608 elements of foo. This is rarely useful behavior. It has been changed
12609 so that the first value is rendered. Of course, you can still iterate
12610 over the values using `$for(foo)$`. This has the result that you can
12611 override earlier settings using `-V` by putting new values later on the
12612 command line, which is useful for many purposes.
12614 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
12616 * Allow "epub2" as synonym for "epub", "html4" for "html".
12618 * Don't look for slidy files in data files with `--self-contained`.
12620 * Allow `https:` command line arguments to be downloaded.
12622 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
12624## pandoc 1.12.1 (2013-10-20)
12626 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
12627 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
12628 "c": "foo"}`. This new format is easier to work with outside of Haskell.
12629 Incidentally, "t" stands for "tag", "c" for "contents".
12631 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
12632 when converting to markdown (#1027).
12636 + Ensure that preamble doesn't contribute to the text of
12638 + Fixed character escaping in `\url{}`. Previously `\~` wasn't handled
12639 properly, among others.
12640 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
12641 bibtex titles, since we need to know what was protected from
12642 titlecase conversions.
12646 + Specially escape non-ascii characters in labels.
12647 Otherwise we can get compile errors and other bugs when
12648 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
12649 + Add link anchors for code blocks with identifiers (#1025).
12651 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
12652 It allows fragments identifiers.
12656 + A Div element with class "notes" is treated as speaker
12657 notes. Currently beamer goes to `\note{}`, revealjs to
12658 `<aside class="notes">`, and the notes are simply suppressed in
12659 other formats (#925).
12660 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
12661 The old version caused a pause to be inserted before the first
12662 material on a slide. This has been fixed.
12663 + Removed data files for s5, slideous, slidy.
12664 Users of s5 and slideous will have to download the needed
12665 files, as has been documented for some time in the README.
12666 By default, slidy code will be sought on the web, as before.
12668 * HTML writer: Insert command to typeset mathjax only in slideous output
12671 * RST writer: Skip spaces after display math. Otherwise we get indentation
12672 problems, and part of the next paragraph may be rendered as part of the
12675 * OpenDocument writer: Fix formatting of strikeout code (#995),
12676 thanks to wilx. don't use `font-face-decls` variable.
12678 * Fixed test suite so it works with cabal sandboxes.
12680## pandoc 1.12.0.2 (2013-09-20)
12682 * Removed an unused dependency (`stringable`) from pandoc.cabal.
12683 This will help packagers, but users should not need to upgrade.
12685## pandoc 1.12.0.1 (2013-09-20)
12687 * Allow `--metadata` to be repeated for the same key to form a list.
12688 This also has the effect that `--bibliography` can be repeated,
12691 * Handle boolean values in `--metadata`. Note that anything not parseable
12692 as a YAML boolean or string is treated as a literal string.
12693 You can get a string value with "yes", or any of the strings interpretable
12694 as booleans, by quoting it:
12696 -M boolvalue=yes -M stringvalue='"yes"'
12698 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
12701 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
12702 in which docx files could not be read by some versions of Word
12703 and LibreOffice (#990).
12705 * Fixed a regression involving slide shows with bibliographies.
12706 The Div container around references messed up the procedure for carving
12707 a document into slides. So we now remove the surrounding Div in
12710 * More informative error message when a filter is not found in path.
12712 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
12713 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
12715 * Don't use unicode_collation in building OSX package:
12716 it adds something like 50MB of dependencies to the package.
12718 * Declare alex and happy as build-tools (#986).
12720## pandoc 1.12 (2013-09-15)
12724 * Much more flexible metadata, including arbitrary fields and structured
12725 values. Metadata can be specified flexibly in pandoc markdown using
12726 YAML metadata blocks, which may occur anywhere in the document:
12729 title: Here is my title.
12731 This is the abstract.
12735 and *inline markup*
12737 tags: [cat, dog, animal]
12740 Metadata fields automatically populate template variables.
12742 * Added `opml` (OPML) as input and output format. The `_note` attribute,
12743 used in OmniOutliner and supported by multimarkdown, is supported.
12744 We treat the contents as markdown blocks under a section header.
12746 * Added `haddock` (Haddock markup) as input format (David Lazar).
12748 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
12749 (Thanks to Jamie F. Olson for the initial patch.)
12750 Nested vertical stacks are used for hierarchical structure.
12751 Results for more than one level of nesting may be odd.
12753 * Custom writers can now be written in lua.
12755 pandoc -t data/sample.lua
12757 will load the script sample.lua and use it as a custom writer.
12758 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
12759 Note that pandoc embeds a lua interpreter, so lua need not be
12760 installed separately.
12762 * New `--filter/-F` option to make it easier to run "filters"
12763 (Pandoc AST transformations that operate on JSON serializations).
12764 Filters are always passed the name of the output format, so their
12765 behavior can be tailored to it. The repository
12766 <https://github.com/jgm/pandocfilters> contains
12767 a python module for writing pandoc filters in python, with
12768 a number of examples.
12770 * Added `--metadata/-M` option.
12771 This is like `--variable/-V`, but actually adds to metadata, not
12774 * Added `--print-default-data-file` option, which allows printing
12775 of any of pandoc's data files. (For example,
12776 `pandoc --print-default-data-file reference.odt` will print
12779 * Added syntax for "pauses" in slide shows:
12787 * New markdown extensions:
12789 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
12790 rather than being treated as hard line breaks or spaces. This is useful
12791 for some East Asian languages, where spaces aren't used between words,
12792 but text is separated into lines for readability.
12793 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
12794 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
12795 only. (Default for `markdown_github`.) (#807)
12796 + `lists_without_preceding_blankline`: Allow lists to start without
12797 preceding blank space. (Default for `markdown_github`.) (#972)
12799### Behavior changes
12801 * `--toc-level` no longer implies `--toc`.
12802 Reason: EPUB users who don't want a visible TOC may still want
12803 to set the TOC level for in the book navigation.
12805 * `--help` now prints in and out formats in alphabetical order, and
12806 says something about PDF output (#720).
12808 * `--self-contained` now returns less verbose output (telling you
12809 which URLs it is fetching, but not giving the full header). In
12810 addition, there are better error messages when fetching a URL fails.
12812 * Citation support is no longer baked in to core pandoc. Users who
12813 need citations will need to install and use a separate filter
12814 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
12815 `csl`, and `citation-abbreviations` from the metadata, though it
12816 may still be specified on the command line as before.
12818 * A `Cite` element is now created in parsing markdown whether or not
12819 there is a matching reference.
12821 * The `pandoc-citeproc` script will put the bibliography at the
12822 end of the document, as before. However, it will be put inside a `Div`
12823 element with class "references", allowing users some control
12824 over the styling of references. A final header, if any, will
12825 be included in the `Div`.
12827 * The markdown writer will not print a bibliography if the
12828 `citations` extension is enabled. (If the citations are formatted
12829 as markdown citations, it is redundant to have a bibliography,
12830 since one will be generated automatically.)
12832 * Previously we used to store the directory of the first input file,
12833 even if it was local, and used this as a base directory for finding
12834 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
12835 users. So we now look for images relative to the current
12836 working directory, even if the first file argument is in another
12837 directory. Note that this change may break some existing workflows.
12838 If you have been assuming that relative links will be interpreted
12839 relative to the directory of the first file argument, you'll need
12840 to make that the current directory before running pandoc. (#942)
12842 * Better error reporting in some readers, due to changes in `readWith`:
12843 the line in which the error occurred is printed, with a caret pointing
12846 * All slide formats now support incremental slide view for definition lists.
12848 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
12849 Parse `:<math>...</math>` as display math. These notations are used with
12850 the MathJax MediaWiki extension.
12852 * All writers: template variables are set automatically from metadata
12853 fields. However, variables specified on the command line with
12854 `--variable` will completely shadow metadata fields.
12856 * If `--variable` is used to set many variables with the same name,
12859 * Man writer: The `title`, `section`, `header`, and `footer` can now
12860 all be set individually in metadata. The `description` variable has been
12861 removed. Quotes have been added so that spaces are allowed in the
12862 title. If you have a title that begins
12864 COMMAND(1) footer here | header here
12866 pandoc will still parse it into a title, section, header, and
12867 footer. But you can also specify these elements explicitly (#885).
12871 + Added support for YAML metadata blocks, which can come anywhere
12872 in the document (not just at the beginning). A document can contain
12873 multiple YAML metadata blocks.
12874 + HTML span and div tags are parsed as pandoc Span and Div elements.
12878 + Allow simple tables to be printed as grid tables,
12879 if other table options are disabled. This means you can do
12880 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
12881 and all tables will render as grid tables.
12882 + Support YAML title block (render fields in alphabetical order
12883 to make output predictable).
12887 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
12888 structured metadata. (Note: existing code that pattern-matches
12889 on `Meta` will have to be revised.) Metadata can now contain
12890 indefinitely many fields, with content that can be a string,
12891 a Boolean, a list of `Inline` elements, a list of `Block`
12892 elements, or a map or list of these.
12894 * A new generic block container (`Div`) has been added to `Block`,
12895 and a generic inline container (`Span`) has been added to `Inline`.
12896 These can take attributes. They will render in HTML, Textile,
12897 MediaWiki, Org, RST and Markdown (with `markdown_in_html`
12898 extension) as HTML `<div>` and `<span>` elements; in other formats
12899 they will simply pass through their contents. But they can be
12900 targeted by scripts.
12902 * `Format` is now a newtype, not an alias for String.
12903 Equality comparisons are case-insensitive.
12905 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
12906 functions that are much faster than the SYB functions from
12907 `Text.Pandoc.Generic`. These functions are now used where possible
12908 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
12909 match the generic traversals `bottomUp` and `queryWith`.)
12911 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
12912 instances for the basic pandoc types. They use GHC generics and
12913 should be faster than the old JSON serialization using
12914 `Data.Aeson.Generic`.
12916 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
12917 This is a souped-up version of `readProcessWithErrorcode` that
12918 uses lazy bytestrings instead of strings and allows setting
12919 environment variables. (Used in `Text.Pandoc.PDF`.)
12921 * New module `Text.Pandoc.Readers.OPML`.
12923 * New module `Text.Pandoc.Writers.OPML`.
12925 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
12926 This is based on Haddock's own lexer/parser.
12928 * New module `Text.Pandoc.Writers.Custom`.
12930 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
12931 Either, for better error handling.
12933 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
12935 * Removed `stripTags` from `Text.Pandoc.XML`.
12937 * `Text.Pandoc.Templates`:
12939 + Simplified `Template` type to a newtype.
12941 + Changed type of `renderTemplate`: it now takes a JSON context
12942 and a compiled template.
12943 + Export `compileTemplate`.
12944 + Export `renderTemplate'` that takes a string instead of a compiled
12946 + Export `varListToJSON`.
12948 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
12952 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
12953 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
12954 `Text.Pandoc.JSON` should be used instead. (Compiling against
12955 pandoc-types instead of pandoc will also produce smaller executables.)
12956 * Removed the deprecated `jsonFilter` function.
12957 + Added `readJSON`, `writeJSON` to the API (#817).
12959 * `Text.Pandoc.Options`:
12961 + Added `Ext_lists_without_preceding_blankline`,
12962 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
12963 `Ext_yaml_metadataBlock` to `Extension`.
12964 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
12965 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
12966 first command-line argument is an absolute URL. (So, relative links
12967 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
12968 + All bibliography-related fields have been removed from
12969 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
12970 `readerReferences`, `readerCitationStyle`.
12972 * The `Text.Pandoc.Biblio` module has been removed. Users of the
12973 pandoc library who want citation support will need to use
12974 `Text.CSL.Pandoc` from `pandoc-citeproc`.
12978 * In markdown, don't autolink a bare URI that is followed by `</a>`
12981 * `Text.Pandoc.Shared`
12983 + `openURL` now follows redirects (#701), properly handles `data:`
12984 URIs, and prints diagnostic output to stderr rather than stdout.
12985 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
12986 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
12987 + Fixed `readDefaultDataFile` so it works on Windows.
12988 + Better error messages for `readDefaultDataFile`. Instead of
12989 listing the last path tried, which can confuse people who are
12990 using `--self-contained`, so now we just list the data file name.
12991 + URL-escape pipe characters. Even though these are legal, `Network.URI`
12992 doesn't regard them as legal in URLs. So we escape them first (#535).
12994 * Mathjax in HTML slide shows: include explicit "Typeset" call.
12995 This seems to be needed for some formats (e.g. slideous) and won't
12996 hurt in others (#966).
12998 * `Text.Pandoc.PDF`
13000 + On Windows, create temdir in working directory, since the system
13001 temp directory path may contain tildes, which can cause
13002 problems in LaTeX (#777).
13003 + Put temporary output directory in `TEXINPUTS` (see #917).
13004 + `makePDF` tries to download images that are not found locally,
13005 if the first argument is a URL (#917).
13006 + If compiling with `pdflatex` yields an encoding error, offer
13007 the suggestion to use `--latex-engine=xelatex`.
13009 * Produce automatic header identifiers in parsing textile, RST,
13010 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
13012 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
13013 before treating as a filename. This fixes `--self-contained` when used
13014 with CSS files that include web fonts using the method described here:
13015 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
13016 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
13018 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
13019 percent-encoding, or a `+` character, as final punctuation.
13021 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
13022 EPS images properly sized on conversion to Word.
13024 * Slidy: Use slidy.js rather than slidy.js.gz.
13025 Reason: some browsers have trouble with the gzipped js file,
13026 at least on the local file system (#795).
13030 + Properly handle blank line at beginning of input (#882).
13031 + Fixed bug in unmatched reference links. The input
13032 `[*infile*] [*outfile*]` was getting improperly parsed:
13033 "infile" was emphasized, but "*outfile*" was literal (#883).
13034 + Allow internal `+` in citation identifiers (#856).
13035 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
13036 + Do not generate blank title, author, or date metadata elements.
13037 Leave these out entirely if they aren't present.
13038 + Allow backtick code blocks not to be preceded by blank line (#975).
13042 + Correctly handle entities.
13043 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
13044 in code blocks, rather than printing them verbatim. Parse attributes
13045 on `<pre>` tag for code blocks.
13047 * HTML reader: Handle non-simple tables (#893). Column widths are read from
13048 `col` tags if present, otherwise divided equally.
13052 + Support alltt environment (#892).
13053 + Support `\textasciitilde`, `\textasciicircum` (#810).
13054 + Treat `\textsl` as emphasized text reader (#850).
13055 + Skip positional options after `\begin{figure}`.
13056 + Support `\v{}` for hacek (#926).
13057 + Don't add spurious ", " to citation suffixes.
13058 This is added when needed in pandoc-citeproc.
13059 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
13060 + Improved support for accented characters (thanks to Scott Morrison).
13061 + Parse label after section command and set id (#951).
13065 + Don't insert paragraphs where docutils doesn't.
13066 `rst2html` doesn't add `<p>` tags to list items (even when they are
13067 separated by blank lines) unless there are multiple paragraphs in the
13068 list. This commit changes the RST reader to conform more closely to
13069 what docutils does (#880).
13070 + Improved metadata. Treat initial field list as metadata when
13071 standalone specified. Previously ALL fields "title", "author",
13072 "date" in field lists were treated as metadata, even if not at
13073 the beginning. Use `subtitle` metadata field for subtitle.
13074 + Fixed 'authors' metadata parsing in reST. Semicolons separate
13079 + Allow space before table rows.
13080 + Fixed regression for `<ref>URL</ref>`.
13081 `<` is no longer allowed in URLs, according to the uri parser
13082 in `Text.Pandoc.Parsing`. Added a test case.
13083 + Correctly handle indented preformatted text without preceding
13084 or following blank line.
13085 + Fixed `|` links inside table cells. Improved attribute parsing.
13086 + Skip attributes on table rows. Previously we just crashed if
13087 rows had attributes, now we ignore them.
13088 + Ignore attributes on headers.
13089 + Allow `Image:` for images (#971).
13090 + Parse an image with caption in a paragraph by itself as a figure.
13094 + Don't use ligatures in escaping inline code.
13095 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
13096 wherein notes were numbered incorrectly in tables (#827).
13097 + Always create labels for sections. Previously the labels were only
13098 created when there were links to the section in the document (#871).
13099 + Stop escaping `|` in LaTeX math.
13100 This caused problems with array environments (#891).
13101 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
13102 `\` will cause major problems if unescaped.
13103 + Write id for code block to label attribute in LaTeX when listings
13104 is used (thanks to Florian Eitel).
13105 + Scale LaTeX tables so they don't exceed columnwidth.
13106 + Avoid problem with footnotes in unnumbered headers (#940).
13108 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
13109 to the slide if it is one of the header classes. It is recommended
13110 that your bibliography slide have this attribute:
13112 # References {.allowframebreaks}
13114 This causes multiple slides to be created if necessary, depending
13115 on the length of the bibliography.
13117 * ConTeXt writer: Properly handle tables without captions. The old output
13118 only worked in MkII. This should work in MkIV as well (#837).
13120 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
13124 + Fixed `--no-highlight` (Alexander Kondratskiy).
13125 + Don't convert to lowercase in email obfuscation (#839).
13126 + Ensure proper escaping in `<title>` and `<meta>` fields.
13130 + Support `--atx-headers` (Max Rydahl Andersen).
13131 + Don't print empty identifier blocks `([[]])` on headers (Max
13136 + Fixing wrong numbered-list indentation in open document format
13137 (Alexander Kondratskiy) (#369).
13138 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
13139 + Minor changes for ODF 1.2 conformance (#939). We leave the
13140 nonconforming `contextual-spacing` attribute, which is provided by
13141 LibreOffice itself and seems well supported.
13145 + Fixed rendering of display math in lists.
13146 In 1.11 and 1.11.1, display math in lists rendered as a new list
13147 item. Now it always appears centered, just as outside of lists,
13148 and in proper display math style, no matter how far indented the
13149 containing list item is (#784).
13150 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
13151 Previously we used `w:cr` (#873).
13152 + Use Compact style for Plain block elements, to
13153 differentiate between tight and loose lists (#775).
13154 + Ignore most components of `reference.docx`.
13155 We take the `word/styles.xml`, `docProps/app.xml`,
13156 `word/theme/theme1.xml`, and `word/fontTable.xml` from
13157 `reference.docx`, ignoring everything else. This should help
13158 with the corruption problems caused when different versions of
13159 Word resave the reference.docx and reorganize things.
13160 + Made `--no-highlight` work properly.
13164 + Don't add `dc:creator` tags if present in EPUB metadata.
13165 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
13166 + Don't put blank title page in reading sequence.
13167 Set `linear="no"` if no title block. Addresses #797.
13168 + Download webtex images and include as data URLs.
13169 This allows you to use `--webtex` in creating EPUBs.
13170 Math with `--webtex` is automatically made self-contained.
13171 + In `data/epub.css`, removed highlighting styles (which
13172 are no longer needed, since styles are added by the HTML
13173 writer according to `--highlighting-style`). Simplified
13175 + If resource not found, skip it, as in Docx writer (#916).
13179 + Properly handle characters above the 0000-FFFF range.
13180 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
13181 + Fixed regression with RTF table of contents.
13182 + Only autolink absolute URIs. This fixes a regression, #830.
13186 + Only autolink absolute URIs. This fixes a regression, #830.
13187 + Don't wrap attributes in fenced code blocks.
13188 + Write full metadata in MMD style title blocks.
13189 + Put multiple authors on separate lines in pandoc titleblock.
13190 Also, don't wrap long author entries, as new lines get treated
13193 * `Text.Pandoc.Templates`:
13195 + Fixed bug retrieving default template for markdown variants.
13196 + Templates can now contain "record lookups" in variables;
13197 for example, `author.institution` will retrieve the `institution`
13198 field of the `author` variable.
13199 + More consistent behavior of `$for$`. When `foo` is not a list,
13200 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
13201 So if `foo` resolves to "", no output should be produced.
13202 See pandoc-templates#39.
13204 * Citation processing improvements (now part of pandoc-citeproc):
13206 + Fixed `endWithPunct` The new version correctly sees a sentence
13207 ending in '.)' as ending with punctuation. This fixes a bug which
13208 led such sentences to receive an extra period at the end: '.).'.
13209 Thanks to Steve Petersen for reporting.
13210 + Don't interfere with Notes that aren't citation notes.
13211 This fixes a bug in which notes not generated from citations were
13212 being altered (e.g. first letter capitalized) (#898).
13213 + Only capitalize footnote citations when they have a prefix.
13214 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
13215 inserted before it before passing to citeproc-hs, so that bare numbers
13216 are treated as page numbers by default. A suffix not beginning with
13217 punctuation has a space added at the beginning (rather than a comma and
13218 space, as was done before for not-author-in-text citations).
13219 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
13220 properly, with '23' treated as a locator of type 'page'.
13221 + Many improvements to citation rendering, due to fixes in citeproc-hs
13222 (thanks to Andrea Rossato).
13223 + Warnings are issued for undefined citations, which are rendered
13225 + Fixed hanging behavior when locale files cannot be found.
13227### Template changes
13229 * DocBook: Use DocBook 4.5 doctype.
13231 * Org: '#+TITLE:' is inserted before the title.
13232 Previously the writer did this.
13234 * LaTeX: Changes to make mathfont work with xelatex.
13235 We need the mathspec library, not just fontspec, for this.
13236 We also need to set options for setmathfont (#734).
13238 * LaTeX: Use `tex-ansi` mapping for `monofont`.
13239 This ensures that straight quotes appear as straight, rather than
13240 being treated as curly. See #889.
13242 * Made `\includegraphics` more flexible in LaTeX template.
13243 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
13245 * LaTeX/Beamer: Added `classoption` variable.
13246 This is intended for class options like `oneside`; it may
13247 be repeated with different options. (Thanks to Oliver Matthews.)
13249 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
13251 * LaTeX: Added `biblio-style` variable (#920).
13253 * DZSlides: title attribute on title section.
13255 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
13257### Under-the-hood improvements
13259 * Markdown reader:Improved strong/emph parsing, using the strategy of
13260 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
13261 no backtracking, and no keeping track of nesting levels. It will give
13262 different results in some edge cases, but these should not affect normal
13265 * Added `Text.Pandoc.Compat.Monoid`.
13266 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
13267 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
13269 * Added `Text.Pandoc.Compat.TagSoupEntity`.
13270 This allows pandoc to compile with `tagsoup` 0.13.x.
13271 Thanks to Dirk Ullrich for the patch.
13273 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
13274 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
13275 handle simple math in bibliography fields.)
13277 * Added `Text.Pandoc.Writers.Shared` for shared functions used
13278 only in writers. `metaToJSON` is used in writers to create a
13279 JSON object for use in the templates from the pandoc metadata
13280 and variables. `getField`, `setField`, and `defField` are
13281 for working with JSON template contexts.
13283 * Added `Text.Pandoc.Asciify` utility module.
13284 This exports functions to create ASCII-only versions of identifiers.
13286 * `Text.Pandoc.Parsing`
13288 + Generalized state type on `readWith` (API change).
13289 + Specialize readWith to `String` input. (API change).
13290 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
13291 with `stateMeta` and `stateMeta'`.
13293 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
13294 bytestrings seemed to cause problems using pandoc on 64-bit Windows
13297 * Factored out `registerHeader` from markdown reader, added to
13298 `Text.Pandoc.Parsing`.
13300 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
13301 Reason: < 0.5 does not provide a monoid instance for Attribute,
13302 which is now needed by the HTML writer (#803).
13304 * Added `http-conduit` flag, which allows fetching https resources.
13305 It also brings in a large number of dependencies (`http-conduit`
13306 and its dependencies), which is why for now it is an optional flag
13309 * Added CONTRIBUTING.md.
13311 * Improved INSTALL instructions.
13313 * `make-windows-installer.bat`: Removed explicit paths for executables.
13315 * `aeson` is now used instead of `json` for JSON.
13317 * Set default stack size to 16M. This is needed for some large
13318 conversions, esp. if pandoc is compiled with 64-bit ghc.
13320 * Various small documentation improvements.
13321 Thanks to achalddave and drothlis for patches.
13323 * Removed comment that chokes recent versions of CPP (#933).
13325 * Removed support for GHC version < 7.2, since pandoc-types now
13326 requires at least GHC 7.2 for GHC generics.
13329## pandoc 1.11.1 (2013-03-17)
13333 + Fixed regression in which parentheses were lost in link URLs.
13334 Added tests. Closes #786.
13335 + Better handling of unmatched double quotes in `--smart` mode.
13336 These occur frequently in fiction, since it is customary not to
13337 close quotes in dialogue if the speaker does not change between
13338 paragraphs. The unmatched quotes now get turned into literal
13339 left double quotes. (No `Quoted` inline is generated, however.)
13340 Closes #99 (again).
13342 * HTML writer: Fixed numbering mismatch between TOC and sections.
13343 `--number-offset` now affects TOC numbering as well
13344 as section numbering, as it should have all along. Closes #789.
13346 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
13347 as markdown citations, even if `--bibliography` was specified, unless
13348 `citation` extension is disabled. Now, formatted citations are always
13349 printed if `--bibliography` was specified. If you want to reformat
13350 markdown keeping pandoc markdown citations intact, don't use
13351 `--bibliography`. Note that citations parsed from LaTeX documents will
13352 be rendered as pandoc markdown citations when `--bibliography` is not
13355 * ODT writer: Fixed regression leading to corrupt ODTs.
13356 This was due to a change in the `Show` instance for
13357 `Text.Pandoc.Pretty.Doc`. Closes #780.
13359 * Fixed spacing bugs involving code block attributes in
13360 RST reader and Markdown writer. Closes #763.
13362 * Windows package: Various improvements due to Fyodor Sheremetyev.
13364 + Automatically set installation path (Program Files or Local App Data).
13365 + Set system PATH environment variable when installing for all users.
13366 + Pandoc can installed for all users using the following command.
13367 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
13369 * Bumped QuickCheck version bound.
13371## pandoc 1.11 (2013-03-09)
13373 * Added `--number-offset` option. (See README for description.)
13375 * Added `--default-image-extension` option. (See README for description.)
13377 * `--number-sections` behavior change: headers with class `unnumbered`
13378 will not be numbered.
13380 * `--version` now reports the default data directory.
13382 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
13384 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
13386 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
13387 a field for `Attr` rather than just `String`. (API change.)
13389 * Added `markdown_github` as input format. This was an accidental
13392 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
13395 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
13399 + Fixed captions with longtable. Thanks to Joost Kremers.
13400 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
13404 + Load microtype after fonts. Microtype needs to know
13405 what fonts are being used. Thanks to dfc for the patch.
13406 + Set `secnumdepth` to 5 if `--number-sections` specified.
13407 This yields behavior equivalent to the other writers, numbering
13408 level 4 and 5 headers too. Closes #753.
13412 + Handle `<colgroup>` tag.
13413 + Preserve all header attributes.
13417 + Parse `\hrule` as `HorizontalRule`. Closes #746.
13418 + Parse starred variants of `\section` etc. as headers with
13419 attribute `unnumbered`.
13420 + Read optional attributes in `lstlisting` and `Verbatim` environments.
13421 We convert these to pandoc standard names, e.g. `numberLines`
13422 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
13423 + Handle language attribute for lstlistings.
13424 + Better support for Verbatim and minted environments. Closes #763.
13428 + `-` in an attribute context = `.unnumbered`. The point of this
13429 is to provide a way to specify unnumbered headers in non-English
13431 + Fixed bug parsing key/value attributes. Parsing failed if you
13432 had an unquoted attribute immediately before the final '}'.
13433 + Make backslash escape work in attributes.
13434 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
13435 pandoc will parse a MMD title block if it sees one, even if
13436 `pandoc_title_blocks` is enabled.
13437 + Refactoring: `litChar` now includes entities, so we don't need
13438 to use `fromEntities` e.g. on titles.
13439 + Allow spaces around borders in pipe tables. Closes #772.
13440 + Allow all punctuation in angle-bracket autolinks. Previously
13441 things like `----` were disallowed, because the uri parser
13442 treated them as trailing punctuation. Closes #768.
13443 + Make `implicit_header_references` work properly when
13444 headers are given explicit identifiers.
13445 + Check for tables before line blocks. Otherwise some pipe
13446 tables get treated as line blocks.
13447 + Allow `&` in emails (for entities).
13448 + Properly handle entities in titles and links. A markdown link
13449 `<http://göogle.com>` should be a link to `http://göogle.com`.
13454 + Handle attributes on headers.
13458 + Add `fig:` as title for images with captions.
13459 This is needed for them to be rendered as figures. Closes #766.
13460 + Never emit an empty paragraph. See #761.
13461 + Handle `\caption` for images in figures. Closes #766.
13462 + Parse `\section*`, etc. as unnumbered sections.
13466 + Support header attributes. The attributes go on
13467 the enclosing `section` or `div` tag if `--section-divs` is specified.
13468 + Fixed a regression (only now noticed) in html+lhs output.
13469 Previously the bird tracks were being omitted.
13473 + Omit lists with no items to avoid LaTeX errors.
13474 + Support line numbering with `--listings`.
13475 If `numberLines` class is present, we add `numbers=left`;
13476 if `startFrom` is present, we add `firstnumber=`. (#763)
13480 + Removed `\placecontent`. This produced a duplicate toc,
13481 in conjunction with `\placelist`.
13482 + Use `\title`, `\subject` etc. for headers with
13483 `unnumbered` class.
13487 + Support header attributes.
13491 + Use grid tables when needed, and if enabled. Closes #740.
13492 + Render citations as pandoc-markdown citations.
13493 Previously citations were rendered as citeproc-formatted citations
13494 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
13495 unless the `citations` extension is disabled.
13496 If you still want formatted citations in your markdown output,
13497 use `pandoc -t markdown-citations`.
13501 + Support `:number-lines:` in code blocks.
13505 + Better treatment of display math. Display math inside a
13506 paragraph is now put in a separate paragraph, so it will render
13507 properly (centered and without extra blank lines around it).
13508 Partially addresses #742.
13509 + Content types and document rels xml files are now created from
13510 scratch, rather than being taken over from `reference.docx`.
13511 This fixes problems that arise when you edit the `reference.docx`
13513 + We also now encode mime types for each individual image rather
13514 than using defaults. This should allow us to handle a wider
13515 range of image types (including PDF). Closes #414.
13516 + Changed style names in `reference docx`.
13517 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
13518 The old names got changed by Word when the `reference.docx` was
13519 edited. Closes #414.
13523 + Fix section numbering. Previously the numbering restarted from 1
13524 in each chapter (with `--number-sections`), though the numbers in
13525 the table of contents were correct.
13526 + Headers with "unnumbered" attribute are not numbered. (Nor do they
13527 cause an increment in running numbering.) Section numbers now work
13528 properly, even when there is material before the first numbered section.
13529 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
13530 but `linear` is set to `no` unless the `--toc` option is specified.
13531 Include `<guide>` element in OPF. This should allow the TOC to
13532 be useable in Kindles when converted with kindlegen. Closes #773.
13534 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
13535 This dramatically reduces the speed penalty that comes from enabling the
13536 `autolink_bare_uris` extension. The penalty is still substantial (in one
13537 test, from 0.33s to 0.44s), but nowhere near what it used to be.
13538 The RST reader is also much faster now, as it autodetects URIs.
13540 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
13541 with class "unnumbered". Unnumbered sections get `[]` for their
13544 * `Text.Pandoc.Pretty`:
13546 + Fixed `chomp` so it works inside `Prefixed` elements.
13547 + Changed `Show` instance so it is better for debugging.
13549 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
13551 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
13553 * Windows installer improvements:
13555 + The installer is now signed with a certificate (thanks to
13556 Fyodor Sheremetyev).
13557 + WiX is used instead of InnoSetup. The installer is now a
13559 + The version number is now auto-detected, and need not be
13560 updated separately.
13562 * OSX installer improvements:
13564 + The package and pandoc executable are now signed with a
13565 certificate (thanks to Fyodor Sheremetyev).
13566 + RTF version of license is used.
13567 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
13570 * Converted COPYING to markdown.
13572 * pandoc.cabal: Require latest versions of highlighting-kate,
13573 texmath, citeproc-hs, zip-archive.
13575## pandoc 1.10.1 (2013-01-23)
13577 * Markdown reader: various optimizations, leading to a
13578 significant performance boost.
13580 * RST reader: Allow anonymous form of inline links:
13581 `` `hello <url>`__ `` Closes #724.
13583 * Mediawiki reader: Don't require newlines after tables.
13584 Thanks to jrunningen for the patch. Closes #733.
13586 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
13587 when output is LaTeX, and applied when it is another format.
13588 Partially addresses #730.
13590 * Markdown and RST readers: Added parser to `block` that skips blank
13591 lines. This fixes a subtle regression involving grid tables with
13592 empty cells. Also added test for grid table with empty cells.
13595 * RST writer: Use `.. code:: language` for code blocks with language.
13598 * DocBook writer: Fixed output for hard line breaks, adding a newline
13599 between `<literallayout>` tags.
13601 * Markdown writer: Use an autolink when link text matches url.
13602 Previously we also checked for a null title, but this
13603 test fails for links produced by citeproc-hs in bibliographies.
13604 So, if the link has a title, it will be lost on conversion
13605 to an autolink, but that seems okay.
13607 * Markdown writer: Set title, author, date variables as before.
13608 These are no longer used in the default template, since we use
13609 titleblock, but we set them anyway for those who use custom templates.
13611 * LaTeX writer: Avoid extra space at start/end of table cell.
13612 Thanks to Nick Bart for the suggestion of using @{}.
13614 * `Text.Pandoc.Parsing`:
13616 + More efficient version of `anyLine`.
13617 + Type of `macro` has changed; the parser now returns `Blocks`
13618 instead of `Block`.
13620 * Relaxed old-time version bound, allowing 1.0.*.
13622 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
13623 should create a symlink as described in the README.
13625## pandoc 1.10.0.5 (2013-01-23)
13627 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
13628 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
13629 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
13631 * Markdown reader: Fixed bug with headerless grid tables.
13632 The 1.10 code assumed that each table header cell contains exactly one
13633 block. That failed for headerless tables (0) and also for tables with
13634 multiple blocks in a header cell. The code is fixed and tests provided.
13635 Thanks to Andrew Lee for pointing out the bug.
13637 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
13639 + Tilde code fences can again take a bare language string
13640 (`~~~ haskell`), not just curly-bracketed attributes
13641 (`~~~ {.haskell}`).
13642 + Backtick code blocks can take the curly-bracketed attributes.
13643 + Backtick code blocks don't *require* a language.
13644 + Consolidated code for the two kinds of fenced code blocks.
13646 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
13648 * Markdown writer: Use proportional font for email autolinks with
13649 obfuscation. Closes #714.
13651 * Corrected name of `blank_before_blockquote` in README. Closes #718.
13653 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
13654 The bug prevented an autolink at the end of a string (e.g.
13655 at the end of a line block line) from counting as a link. Closes #711.
13657 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
13658 This should work on Windows, unlike the TH solution with
13661 * Eliminated use of TH in test suite.
13663 * Added `Text.Pandoc.Data` (non-exported) to hold the association
13664 list of embedded data files, if the `embed_data_files` flag is selected.
13665 This isolates the code that needs special treatment with file-embed or
13668 * Changes to `make-windows-installer.bat`.
13670 + Exit batch file if any of the cabal-dev installs fail.
13671 + There's no longer any need to reinstall `highlighting-kate`.
13672 + Don't start with a `cabal update`; leave that to the user.
13673 + Force reinstall of pandoc.
13675 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
13678## pandoc 1.10.0.4 (2013-01-20)
13680 * Fixed bug with escaped % in LaTeX reader. Closes #710.
13682## pandoc 1.10.0.3 (2013-01-20)
13684 * Added further missing fb2 tests to cabal file.
13686## pandoc 1.10.0.2 (2013-01-20)
13688 * Added fb2 tests to cabal file's extra-source-files.
13690## pandoc 1.10.0.1 (2013-01-20)
13692 * Bump version bounds on test-framework packages.
13694## pandoc 1.10 (2013-01-19)
13698 * New input formats: `mediawiki` (MediaWiki markup).
13700 * New output formats: `epub3` (EPUB v3 with MathML),
13701 `fb2` (FictionBook2 ebooks).
13703 * New `--toc-depth` option, specifying how many levels of
13704 headers to include in a table of contents.
13706 * New `--epub-chapter-level` option, specifying the header
13707 level at which to divide EPUBs into separate files.
13708 Note that this normally affects only performance, not the
13709 visual presentation of the EPUB in a reader.
13711 * Removed the `--strict` option. Instead of using `--strict`,
13712 one can now use the format name `markdown_strict` for either input
13713 or output. This gives more fine-grained control that `--strict`
13714 did, allowing one to convert from pandoc's markdown to strict
13715 markdown or vice versa.
13717 * It is now possible to enable or disable specific syntax
13718 extensions by appending them (with `+` or `-`) to the writer
13719 or reader name. For example,
13721 pandoc -f markdown-footnotes+hard_line_breaks
13723 disables footnotes and enables treating newlines as hard
13724 line breaks. The literate Haskell extensions are now implemented
13725 this way as well, using either `+lhs` or `+literate_haskell`.
13726 For a list of extension names, see the README under
13727 "Pandoc's Markdown."
13729 * The following aliases have been introduced for specific
13730 combinations of markdown extensions: `markdown_phpextra`,
13731 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
13732 work just like regular reader and writer names, and can be modified
13733 with extension modifiers as described above. (Note that conversion
13734 from one markdown dialect to another does not work perfectly,
13735 because there are differences in markdown parsers besides
13736 just the extensions, and because pandoc's internal document model is
13737 not rich enough to capture all of the extensions.)
13739 * New `--html-q-tags` option. The previous default was to use `<q>`
13740 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
13741 Moreover, they are not a robust way of typesetting quotes, since
13742 some user agents don't support them, and some CSS resets (e.g.
13743 bootstrap) prevent pandoc's quotes CSS from working properly.
13744 We now just insert literal quote characters by default in both
13745 `html` and `html5` output, but this option is provided for
13746 those who still want `<q>` tags.
13748 * The markdown reader now prints warnings (to stderr) about
13749 duplicate link and note references. Closes #375.
13751 * Markdown syntax extensions:
13753 + Added pipe tables. Thanks to François Gannaz for the initial patch.
13754 These conform to PHP Markdown Extra's pipe table syntax. A subset
13755 of org-mode table syntax is also supported, which means that you can
13756 use org-mode's nice table editor to create tables.
13758 + Added support for RST-style line blocks. These are
13759 useful for verse and addresses.
13761 + Attributes can now be specified for headers, using the same
13762 syntax as in code blocks. (However, currently only the
13763 identifier has any effect in most writers.) For example,
13767 See [the header above](#foo).
13769 + Pandoc will now act as if link references have been defined
13770 for all headers without explicit identifiers.
13771 So, you can do this:
13775 Link to [My header].
13776 Another link to [it][My header].
13782 + Command macros now work everywhere, including non-math.
13783 Environment macros still not supported.
13784 + `\input` now works, as well as `\include`. TEXINPUTS is used.
13785 Pandoc looks recursively into included files for more included files.
13787### Behavior changes
13789 * The Markdown reader no longer puts the text of autolinks in a
13790 `Code` inline. This means that autolinks will no longer appear
13791 in a monospace font.
13793 * The character `/` can now appear in markdown citation keys.
13795 * HTML blocks in strict_markdown are no longer required to begin
13796 at the left margin. Technically this is required, according to
13797 the markdown syntax document, but `Markdown.pl` and other markdown
13798 processors are more liberal.
13800 * The `-V` option has been changed so that if there are duplicate
13801 variables, those specified later on the command line take precedence.
13803 * Tight lists now work in LaTeX and ConTeXt output.
13805 * The LaTeX writer no longer relien on the `enumerate` package.
13806 Instead, it uses standard LaTeX commands to change the list numbering
13809 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
13810 tables to be split over page boundaries.
13812 * The RST writer now uses a line block to render paragraphs containing
13813 linebreaks (which previously weren't supported at all).
13815 * The markdown writer now applies the `--id-prefix` to footnote IDs.
13818 * The plain writer no longer uses backslash-escaped line breaks
13819 (which are not very "plain").
13821 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
13822 Read bytestring and use `Text`'s decodeUtf8 instead of using
13823 `System.IO.hGetContents`. This way you get a message saying
13824 "invalid UTF-8 stream" instead of "invalid byte sequence."
13825 You are also told which byte caused the problem.
13827 * Docx, ODT, and EPUB writers now download images specified by a URL
13828 instead of skipping them or raising an error.
13832 + The default CSS now left-aligns headers by default, instead of
13833 centering. This is more consistent with the rest of the writers.
13834 + A proper multi-level table of contents is now used in `toc.ncx`.
13835 There is no longer a subsidiary table of contents at the beginning
13837 + Code highlighting now works by default.
13838 + Section divs are used by default for better semantic markup.
13839 + The title is used instead of "Title Page" in the table of contents.
13840 Otherwise we have a hard-coded English string, which looks
13841 strange in ebooks written in other languages. Closes #572.
13845 + Put mathjax in span with class "math". Closes #562.
13846 + Put citations in a span with class "citation." In HTML5, also include
13847 a `data-cite` attribute with a space-separated list of citation
13850 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
13851 This treats both `\r\n` and `\n` as `\n` on input, no matter
13852 what platform we're running on.
13854 * Citation processing is now done in the Markdown and LaTeX
13855 readers, not in `pandoc.hs`. This makes it easier for library users
13858### Template changes
13860 * HTML: Added css to template to preserve spaces in `<code>` tags.
13861 Thanks to Dirk Laurie.
13863 * Beamer: Remove English-centric strings in section pages.
13864 Section pages used to have "Section" and a number as well as the
13865 section title. Now they just have the title. Similarly for part
13866 and subsection. Closes #566.
13868 * LaTeX, ConTeXt: Added papersize variable.
13870 * LaTeX, Beamer templates: Use longtable instead of ctable.
13872 * LaTeX, Beamer templates: Don't require 'float' package for tables.
13873 We don't actually seem to use the '[H]' option.
13875 * Markdown, plain: Fixed titleblock so it is just a single string.
13876 Previously separate title, author, and date variables were used,
13877 but this didn't allow different kinds of title blocks.
13881 + Rationalized templates. Previously there were three different
13882 templates involved in epub production. There is now just one
13883 template, `default.epub` or `default.epub3`. It can now be
13884 overridden using `--template`, just like other templates.
13885 The titlepage is now folded into the default template.
13886 A `titlepage` variable selects it.
13887 + UTF-8, lang tag, meta tags, title element.
13889 * Added scale-to-width feature to beamer template
13893 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
13894 Previously header identifiers were autogenerated by the writers.
13895 Now they are added in the readers (either automatically or explicitly).
13897 * `Text.Pandoc.Builder`:
13899 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
13900 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
13901 custom Monoid instances for `Many Inline` and `Many Block. This
13902 allows `Many` to be made an instance of `Foldable` and `Traversable`.
13903 + The old `Listable` class has been removed.
13904 + The module now exports `isNull`, `toList`, `fromList`.
13905 + The old `Read` and `Show` instances have been removed; derived
13906 instances are now used.
13907 + Added `headerWith`.
13909 * The readers now take a `ReaderOptions` rather than a `ParserState`
13910 as a parameter. Indeed, not all parsers use the `ParserState` type;
13911 some have a custom state. The motivation for this change was to separate
13912 user-specifiable options from the accounting functions of parser state.
13914 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
13915 formerly in `Text.Pandoc.Shared`, and its associated
13916 data types. It also includes a new type `ReaderOptions`, which
13917 contains many options formerly in `ParserState`, and its associated
13920 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
13921 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
13922 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
13923 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
13924 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
13925 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
13926 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
13927 + `ParserState.stateIndentedCodeClasses` ->
13928 `ReaderOptions.readerIndentedCodeClasses`.
13929 + Added `ReaderOptions.readerCitationStyle`.
13931 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
13932 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
13933 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
13934 been renamed `writerEpubMetadata` for consistency.
13936 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
13937 longer stylesheet, fonts, reference files as separate parameters.
13939 * Removed `writerLiterateHaskell` from `WriterOptions`, and
13940 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
13941 by an extension (`Ext_literate_haskell`).
13943 * Removed deprecated `writerXeTeX`.
13945 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
13946 Strict is now handled through extensions.
13948 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
13949 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
13950 and `multimarkdownExtensions`, as well as the `Extensions` type.
13952 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
13955 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
13956 (thanks to Sergey Astanin).
13960 + Added `getReader`, `getWriter` to `Text.Pandoc`.
13961 + `writers` is now an association list `(String, Writer)`.
13962 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
13963 an `IOByteStringWriter`. ALL writers are now in the 'writers'
13964 list, including the binary writers and FB2 writer. This allows
13965 code in `pandoc.hs` to be simplified.
13966 + Changed type of `readers`, so all readers are in IO.
13967 Users who want pure readers can still get them form the reader
13968 modules; this just affects the function `getReader` that looks up
13969 a reader based on the format name. The point of this change is to
13970 make it possible to print warnings from the parser.
13972 * `Text.Pandoc.Parsing`:
13974 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
13975 No other module directly imports Parsec. This will make it easier
13976 to change the parsing backend in the future, if we want to.
13977 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
13978 + Export the type synonym `Parser`.
13979 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
13980 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
13981 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
13982 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
13983 + `ParserState` is no longer an instance of `Show`.
13984 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
13985 + Generalized type of `withQuoteContext`.
13986 + Added `guardEnabled`, `guardDisabled`, `getOption`.
13987 + Removed `failIfStrict`.
13988 + `lookupKeySrc` and `fromKey` are no longer exported.
13990 * `Data.Default` instances are now provided for `ReaderOptions`,
13991 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
13992 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
13993 of `defaultWriterOptions` (which is still defined). Closes #546.
13995 * `Text.Pandoc.Shared`:
13997 + Added `safeRead`.
13998 + Renamed `removedLeadingTrailingSpace` to `trim`,
13999 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
14000 + Count `\r` as space in `trim` functions.
14001 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
14003 + Removed `failUnlessLHS`.
14004 + Export `compactify'`, formerly in Markdown reader.
14005 + Export `isTightList`.
14006 + Do not export `findDataFile`.
14007 + `readDataFile` now returns a strict ByteString.
14008 + Export `readDataFileUTF8` which returns a String, like the
14009 old `readDataFile`.
14010 + Export `fetchItem` and `openURL`.
14012 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
14013 Removed `readImageSize`.
14015 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
14016 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
14019 * `Text.Pandoc.UTF8` is now an exposed module.
14021 * `Text.Pandoc.Biblio`:
14023 + csl parameter now a `String` rather than a `FilePath`.
14024 + Changed type of `processBiblio`. It is no longer in the IO monad.
14025 It now takes a `Maybe Style` argument rather than parameters for CSL
14026 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
14027 the style file and add abbreviations.)
14029 * Markdown reader now exports `readMarkdownWithWarnings`.
14031 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
14036 * Make `--ascii` work properly with `--self-contained`. Closes #568.
14040 + Fixed link parser to avoid exponential slowdowns. Closes #620.
14041 Previously the parser would hang on input like this:
14043 [[[[[[[[[[[[[[[[[[hi
14045 We fixed this by making the link parser parser characters
14046 between balanced brackets (skipping brackets in inline code spans),
14047 then parsing the result as an inline list. One change is that
14049 [hi *there]* bud](/url)
14051 is now no longer parsed as a link. But in this respect pandoc behaved
14052 differently from most other implementations anyway, so that seems okay.
14054 + Look for raw html/latex blocks before tables.
14055 Otherwise the following gets parsed as a table:
14066 + Added support for `:target:` on `.. image::` blocks
14068 + Field list fixes:
14070 - Fixed field lists items with body beginning after a new line
14072 - Allow any char but ':' in names of field lists in RST reader
14074 - Don't allow line breaks in field names.
14075 - Require whitespace after field list field names.
14076 - Don't create empty definition list for metadata field lists.
14077 Previously a field list consisting only of metadata fields (author,
14078 title, date) would be parsed as an empty DefinitionList, which is
14079 not legal in LaTeX and not needed in any format.
14081 + Don't recognize inline-markup starts inside words.
14082 For example, `2*2 = 4*1` should not contain an emphasized
14083 section. Added test case for "Literal symbols". Closes #569.
14084 + Allow dashes as separator in simple tables. Closes #555.
14085 + Added support for `container`, `compound`, `epigraph`,
14086 `rubric`, `highlights`, `pull-quote`.
14087 + Added support for `.. code::`.
14088 + Made directive labels case-insensitive.
14089 + Removed requirement that directives begin at left margin.
14090 This was (correctly) not in earlier releases; docutils doesn't
14091 make the requirement.
14092 + Added support for `replace::` and `unicode::` substitutions.
14093 + Ignore unknown interpreted roles.
14094 + Renamed image parser to `subst`, since it now handles all
14095 substitution references.
14099 + Allow newlines before pipes in table. Closes #654.
14100 + Fixed bug with list items containing line breaks.
14101 Now pandoc correctly handles hard line breaks inside list items.
14102 Previously they broke list parsing.
14103 + Implemented comment blocks.
14104 + Fixed bug affected words ending in hyphen.
14105 + Properly handle links with surrounding brackets.
14106 Square brackets need to be used when the link isn't surrounded by
14107 spaces or punctuation, or when the URL ending may be ambiguous.
14109 + Removed nullBlock. Better to know about parsing problems than
14110 to skip stuff when we get stuck.
14111 + Allow ID attributes on headers.
14112 + Textile reader: Avoid parsing dashes as strikeout.
14113 Previously the input
14120 would be parsed with strikeouts rather than dashes. This fixes
14121 the problem by requiring that a strikeout delimiting - not be
14122 followed by a -. Closes #631.
14123 + Expanded list of `stringBreakers`.
14124 This fixes a bug on input like "(_hello_)" which should
14125 be a parenthesized emphasized "hello".
14126 The new list is taken from the PHP source of textile 2.4.
14127 + Fixed autolinks. Previously the textile reader and writer
14128 incorrectly implented RST-style autolinks for URLs and email
14129 addresses. This has been fixed. Now an autolink is done this way:
14130 `"$":http://myurl.com`.
14131 + Fixed footnotes bug in textile. This affected notes occurring
14132 before punctuation, e.g. `foo[1].`. Closes #518.
14136 + Better handling of citation commands.
14137 + Better handling of `\noindent`.
14138 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
14140 + Made `rawLaTeXInline` try to parse block commands as well. This
14141 is usually what we want, given how `rawLaTeXInline` is used in
14142 the markdown and textile readers. If a block-level LaTeX command
14143 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
14144 we can treat it as raw inline LaTeX.
14145 + Handle `\slash` command. Closes #605.
14146 + Basic `\enquote` support.
14147 + Fixed parsing of paragraphs beginning with a group. Closes #606.
14148 + Use curly quotes for bare straight quotes.
14149 + Support obeylines environment. Closes #604.
14150 + Guard against "begin", "end" in inlineCommand and
14152 + Better error messages for environments. Now it should tell you that
14153 it was looking for \end{env}, instead of giving "unknown parse error."
14157 + Added HTML 5 tags to list of block-level tags.
14158 + HTML reader: Fixed bug in `htmlBalanced`, which
14159 caused hangs in parsing certain markdown input using
14161 + Parse `<q>` as `Quoted DoubleQuote`.
14162 + Handle nested `<q>` tags properly.
14163 + Modified `htmlTag` for fewer false positives.
14164 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
14165 This makes it more useful in the wikimedia and markdown parsers.
14167 * DocBook reader: Support title in "figure" element. Closes #650.
14169 * MediaWiki writer:
14171 + Remove newline after `<br/>` in translation of `LineBreak`
14172 There's no particular need for a newline (other than making the
14173 generated MediaWiki source look nice to a human), and in fact
14174 sometimes it is incorrect: in particular, inside an enumeration, list
14175 items cannot have embedded newline characters. (Brent Yorgey)
14176 + Use `<code>` not `<tt>` for Code.
14178 * Man writer: Escape `-` as `\-`.
14179 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
14180 signs. That is preferable for use with command-line options. See
14181 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
14182 to Andrea Bolognani for bringing the issue to our attention.
14186 + Improved line block output. Use nonbreaking spaces for
14187 initial indent (otherwise lost in HTML and LaTeX).
14188 Allow multiple paragraphs in a single line block.
14189 Allow soft breaks w continuations in line blocks.
14190 + Properly handle images with no alt text. Closes #678.
14191 + Fixed bug with links with duplicate text. We now (a) use anonymous
14192 links for links with inline URLs, and (b) use an inline link instead
14193 of a reference link if the reference link would require a label that
14194 has already been used for a different link. Closes #511.
14195 + Fixed hyperlinked images. Closes #611. Use `:target:`
14196 field when you have a simple linked image.
14197 + Don't add `:align: center` to figures.
14199 * Texinfo writer: Fixed internal cross-references.
14200 Now we insert anchors after each header, and use `@ref` instead of `@uref`
14201 for links. Commas are now escaped as `@comma{}` only when needed;
14202 previously all commas were escaped. (This change is needed, in part,
14203 because `@ref` commands must be followed by a real comma or period.) Also
14204 insert a blank line in from of `@verbatim` environments.
14208 + Made --id-prefix work in DocBook as well as HTML.
14210 + Don't include empty captions in figures. Closes #581.
14214 + Use `\hspace*` for nonbreaking space after line break,
14215 since `~` spaces after a line break are just ignored.
14217 + Don't escape `_` in URLs or hyperref identifiers.
14218 + Properly escape strings inside `\url{}`. Closes #576.
14219 + Use `[fragile]` only for slides containing code rendered
14220 using listings. Closes #649.
14221 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
14222 highlighting-kate's macros, which redefine `|` as a short verbatim
14223 delimiter. Thanks to Björn Peemöller for raising this issue.
14224 + Use minipage rather than parbox for block containers in tables.
14225 This allows verbatim code to be included in grid tables.
14227 + Prevent paragraphs containing only linebreaks or spaces.
14231 + Included `highlighting-css` for code spans, too.
14232 Previously it was only included if used in a code block. Closes #653.
14233 + Improved line breaks with `<dd>` tags. We now put a newline between
14234 `</dd>` and `<dd>` when there are multiple definitions.
14235 + Changed mathjax cdn url so it doesn't use https. (This caused
14236 problems when used with `--self-contained`.) See #609.
14240 + `--number-sections` now works properly.
14241 + Don't strip meta and link elements in epub metadata.
14242 Patch from aberrancy. Closes #589.
14243 + Fixed a couple validation bugs.
14244 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
14245 of chapters in some readers, which apparently sort ch2 after ch10.
14248 * ODT writer: properly set title property (Arlo O'Keeffe).
14252 + Fixed bug with nested lists. Previously a list like
14259 would come out with a bullet instead of "2."
14260 Thanks to Russell Allen for reporting the bug.
14261 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
14262 This seems to fix a problem viewing pandoc-generated
14263 docx files in LibreOffice.
14264 + Use integer ids for bookmarks. Closes #626.
14265 + Added nsid to abstractNum elements. This helps when merging
14266 word documents with numbered or bulleted lists. Closes #627.
14267 + Use separate footnotes.xml for notes.
14268 This seems to help LibreOffice convert the file, even though
14269 it was valid docx before. Closes #637.
14270 + Use rIdNN identifiers for r:embed in images.
14271 + Avoid reading image files again when we've already processed them.
14272 + Fixed typo in `referenc.docx` that prevented image captions from
14273 working. Thanks to Huashan Chen.
14275 * `Text.Pandoc.Parsing`:
14277 + Fixed bug in `withRaw`, which didn't correctly handle the case
14278 where nothing is parsed.
14279 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
14280 though it still doesn't implement quoted strings in email addresses.
14281 + Revised URI parser. It now allows many more schemes, allows
14282 uppercase URIs, and better handles trailing punctuation and
14283 trailing slashes in bare URIs. Added many tests.
14284 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
14285 etc. parse properly. Formerly we had some English-centric heuristics,
14286 but they are no longer needed. Closes #698.
14288 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
14289 This fixes bug with Chinese commas in markdown and reST tables, and
14290 a bug that caused combining characters to be dropped.
14292 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
14294 * `Text.Pandoc.Biblio`:
14296 + Run `mvPunc` and `deNote` on metadata too.
14297 This fixed a bug with notes on titles using footnote styles.
14298 + Fixed bug in fetching CSL files from CSL data directory.
14300 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
14301 is provided. It should be the URL up to the path.
14303 * Fixed/simplified diff output for tests.
14304 Biblio: Make sure mvPunc and deNote run on metadata too.
14305 This fixed a bug with notes on titles using footnote styles.
14307### Under the hood improvements
14309 * We no longer depend on `utf8-string`. Instead we use functions
14310 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
14312 * Use `safeRead` instead of using `reads` directly (various modules).
14314 * "Implicit figures" (images alone in a paragraph) are now handled
14315 differently. The markdown reader gives their titles the prefix `fig:`; the
14316 writers look for this before treating the image as a figure. Though this
14317 is a bit of a hack, it has two advantages: (i) implicit figures can be
14318 limited to the markdown reader, and (ii) they can be deactivated by turning
14319 off the `implicit_figures` extension.
14321 * `catch` from `Control.Exception` is now used instead of the
14322 old Preface `catch`.
14324 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
14325 and `oneOfStrings` (which is now non-backtracking).
14327 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
14328 Now citeproc-hs is fixed upstream, so this is no longer needed.
14331 * Textile reader: Improved speed of `hyphenedWords`.
14332 This speeds up the textile reader by about a factor of 4.
14334 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
14335 better performance, and automatic normalization.
14337 * Major rewrite of markdown reader:
14339 + Use `Text.Pandoc.Builder` instead of lists. This also
14340 means that everything is normalized automatically.
14341 + Move to a one-pass parsing strategy, returning values in the reader
14342 monad, which are then run (at the end of parsing) against the final
14345 * In HTML writer, we now use `toHtml` instead of pre-escaping.
14346 We work around the problem that blaze-html unnecessarily escapes `'`
14347 by pre-escaping just the `'` characters, instead of the whole string.
14348 If blaze-html later stops escaping `'` characters, we can simplify
14349 `strToHtml` to `toHtml`. Closes #629.
14351 * Moved code for embedding images in RTFs from `pandoc.hs` to the
14352 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
14354 * Moved citation processing from `pandoc.hs` into the readers.
14355 This makes things more convenient for library users.
14357 * The man pages are now built by an executable `make-pandoc-man-pages`,
14358 which has its own stanza in the cabal file so that dependencies can be
14359 handled by Cabal. Special treatment in `Setup.hs` ensures that this
14360 executable never gets installed; it is only used to create the man pages.
14362 * The cabal file has been modified so that the pandoc library is used
14363 in building the pandoc executable. (This required moving `pandoc.hs`
14364 from `src` to `.`.) This cuts compile time in half.
14366 * The `executable` and `library` flags have been removed.
14368 * `-threaded` has been removed from ghc-options.
14370 * Version bounds of dependencies have been raised, and the
14371 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
14374 * We now require base >= 4.2.
14376 * Integrated the benchmark program into cabal. One can now do:
14378 cabal configure --enable-benchmarks && cabal build
14379 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
14381 The benchmark now uses README + testsuite, so benchmark results
14382 from older versions aren't comparable.
14384 * Integrated test suite with cabal.
14385 To run tests, configure with `--enable-tests`, then `cabal test`.
14386 You can specify particular tests using `--test-options='-t markdown'`.
14387 No output is shown unless tests fail. The Haskell test modules
14388 have been moved from `src/` to `tests/`.
14390 * Moved all data files and templates to the `data/` subdirectory.
14392 * Added an `embed_data_files` cabal flag. This causes all
14393 data files to be embedded in the binary, so that the binary
14394 is self-sufficient and can be relocated anywhere, copied on
14395 a USB key, etc. The Windows installer now uses this.
14396 (Since we no longer have the option to build the executable
14397 without the library, this is the only way to get a relocatable
14398 binary on Windows.)
14400 * Removed pcre3.dll from windows package.
14401 It isn't needed unless highlighting-kate is compiled with the
14402 `pcre-light` flag. By default, regex-prce-builtin is used.
14405## pandoc 1.9.4.5 (2012-10-21)
14407 * Raised version bounds on network, base64-bytestring, json,
14408 and template-haskell.
14410## pandoc 1.9.4.4 (2012-10-20)
14412 * Removed `tests` flag and made test suite into a proper cabal
14413 test suite, which can now be enabled using `--enable-tests`
14414 and run with `cabal test`.
14416 * Moved man page creation out of `Setup.hs` and into an
14417 executable built by Cabal, but never installed. This
14418 allows dependencies to be specified, and solves a problem
14419 with 1.9.4.3, which could only be installed if `data-default`
14420 had already been installed.
14422 * Updated `lhs-latex.tex` test for latest highlighting-kate
14423 representation of backticks.
14425## pandoc 1.9.4.3 (2012-10-20)
14427 * Removed `-threaded` from default compile flags.
14429 * Modified modules to compile with GHC 7.6 and latest version of time
14432## pandoc 1.9.4.2 (2012-06-29)
14434 * Don't encode/decode file paths if base >= 4.4.
14435 Prior to base 4.4, filepaths and command line arguments were treated
14436 as unencoded lists of bytes, not unicode strings, so we had to work
14437 around that by encoding and decoding them. This commit adds CPP
14438 checks for the base version that intelligibly enable encoding/decoding
14439 when needed. Fixes a bug with multilingual filenames when pandoc was
14440 compiled with ghc 7.4 (#540).
14442 * Don't generate an empty H1 after hrule slide breaks.
14443 We now use a slide-level header with contents `[Str "\0"]` to mark
14444 an hrule break. This avoids creation of an empty H1 in these
14445 contexts. Closes #484.
14447 * Docbook reader: Added support for "bold" emphasis. Thanks to mb21.
14449 * In make_osx_package.sh, ensure citeproc-hs is built with the
14450 embed_data_files flag.
14452 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
14454 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
14455 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
14457 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
14460 * Added webm to mime types. Closes #543.
14462 * Added some missing exports and tests to the cabal file
14463 (Alexander V Vershilov).
14465 * Compile with `-rtsopts` and `-threaded` by default.
14467## pandoc 1.9.4.1 (2012-06-08)
14469 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
14471 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
14472 variables. Make TOC links black.
14474 * LaTeX template improvements.
14476 + Don't print date unless one is given explicitly in the document.
14477 + Simplified templates.
14478 + Use fontenc [T1] by default, and lmodern.
14479 + Use microtype if available.
14483 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
14484 Motivation: `@item1 [50]` should be as close as possible to
14486 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
14487 beginning with a citation to be empty. Closes #531.
14489 * Fixed documentation on mixed lists. Closes #533.
14491## pandoc 1.9.4 (2012-06-03)
14493 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
14494 footnotes and captions. We now handle note citations by inserting
14495 footnotes during initial citation processing, and doing a separate
14496 pass later to remove notes inside notes.
14498 * Added 'zenburn' highlight style from highlighting-kate.
14500 * Added Slideous writer. Slideous is an HTML + javascript slide show
14501 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
14505 + Ensure we don't have extra blank lines at ends of cells.
14506 This can cause LaTeX errors, as they are interpreted as new paragraphs.
14507 + More consistent interblock spacing.
14508 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
14509 code in LaTeX. Closes #527.
14510 + Ensure that a Verbatim at the end of a footnote is followed by
14511 a newline. (Fixes a regression in the previous version.)
14512 + In default template, use black for internal links and TOC.
14513 Added commented-out code to use footnotes for links, as would
14514 be suitable in print output.
14516 * Beamer writer: When `--incremental` is used, lists inside
14517 a block quote should appear all at once. (This makes Beamer
14518 output consistent with the HTML slide show formats.)
14522 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
14523 to avoid gobbling spaces after the `%` sign.
14524 + Ensure space after `\stopformula`.
14528 + Use `:` form instead of `~` in definition lists, for better
14529 compatibility with other markdown implementations.
14530 + Don't wrap the term, because it breaks definition lists.
14531 + Use a nonzero space to prevent false recognition
14532 of list marker in ordered lists. Closes #516.
14534 * Org writer: Add space before language name. Closes #523.
14536 * Docx writer: Simplified bullet characters so they work properly
14537 with Word 2007. Closes #520.
14539 * LaTeX reader: Support `\centerline`.
14541 * RST reader: handle figures. Closes #522.
14543 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
14546## pandoc 1.9.3 (2012-05-12)
14548 * Added docbook reader (with contributions from Mauro Bieg).
14550 * Fixed bug in `fromEntities`. The previous version would turn
14551 `hi & low you know;` into `hi &`.
14555 + Don't skip nonbreaking spaces.
14556 Previously a paragraph containing just ` ` would be rendered
14557 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
14558 + Support `<col>` and `<caption>` in tables. Closes #486.
14562 + Don't recognize references inside delimited code blocks.
14563 + Allow list items to begin with lists.
14567 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
14568 + Control sequences can't be followed by a letter.
14569 This fixes a bug where `\begingroup` was parsed as `\begin`
14570 followed by `group`.
14571 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
14572 + Make `\label` and `\ref` sensitive to `--parse-raw`.
14573 If `--parse-raw` is selected, these will be parsed as raw latex
14574 inlines, rather than bracketed text.
14575 + Don't crash on unknown block commands (like `\vspace{10pt}`)
14576 inside `\author`; just skip them. Closes #505.
14580 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
14581 + Added support for LaTeX blocks and inlines (Paul Rivier).
14582 + Better conformance to RedCloth inline parsing (Paul Rivier).
14583 + Parse '+text+' as emphasized (should be underlined, but this
14584 is better than leaving literal plus characters in the output.
14586 * Docx writer: Fixed multi-paragraph list items. Previously they each
14587 got a list marker. Closes #457.
14591 + Added `--no-tex-ligatures` option to avoid replacing
14592 quotation marks and dashes with TeX ligatures.
14593 + Use `fixltx2e` package to provide `\textsubscript`.
14594 + Improve spacing around LaTeX block environments:
14595 quote, verbatim, itemize, description, enumerate.
14597 + Use blue instead of pink for URL links in latex/pdf output.
14599 * ConTeXt writer: Fixed escaping of `%`.
14600 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
14601 Inside URLs, `%` needs to be escaped as `\%`
14602 Thanks to jmarca and adityam for the fix. Closes #492.
14604 * Texinfo writer: Escape special characters in node titles.
14605 This fixes a problem pointed out by Joost Kremers. Pandoc used
14606 to escape an '@' in a chapter title, but not in the corresponding
14607 node title, leading to invalid texinfo.
14609 * Fixed document encoding in texinfo template.
14610 Resolves Debian Bug #667816.
14614 + Don't force delimited code blocks to be flush left.
14615 Fixes bug with delimited code blocks inside lists etc.
14616 + Escape `<` and `$`.
14618 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
14619 Previously we used `\href{\#ident}{text}`, which didn't work on
14620 all systems. Thanks to Dirk Laurie.
14622 * RST writer: Don't wrap link references. Closes #487.
14624 * Updated to use latest versions of blaze-html, mtl.
14627## pandoc 1.9.2 (2012-04-05)
14631 + Made `lstlisting` work as a proper verbatim environment.
14632 + Fixed bug parsing LaTeX tables with one column.
14636 + Use `{}` around `ctable` caption, so that formatting can be used.
14637 + Don't require eurosym package unless document has a €.
14639 * LaTeX template: Added variables for `geometry`, `romanfont`,
14640 `sansfont`, `mathfont`, `mainfont` so users can more easily
14645 + Run latex engine at least two times, to ensure
14646 that PDFs will have hyperlinked bookmarks.
14647 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
14649 * Texinfo writer: retain directories in image paths. (Peter Wang)
14651 * RST writer: Better handling of inline formatting, in accord
14652 with docutils' "inline markup recognition rules" (though we don't
14653 implement the unicode rules fully). Now `hi*there*hi` gets
14654 rendered properly as `hi\ *there*\ hi`, and unnecessary
14655 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
14659 + Parse `\ ` as null, not escaped space.
14660 + Allow `` :math:`...` `` even when not followed by blank
14661 or `\`. This does not implement the complex rule docutils follows,
14662 but it should be good enough for most purposes.
14663 + Add support for the rST default-role directive. (Greg Maslov)
14665 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
14668 * Markdown reader: Properly handle citations nested in other inline
14671 * Markdown writer: don't replace empty alt in image with "image".
14673 * DZSlides: Updated template.html and styles in default template.
14674 Removed bizarre CSS for `q` in dzslides template.
14676 * Avoid repeated `id` attribute in section and header in HTML slides.
14678 * README improvements: new instructions on internal links,
14679 removed misleading note on reST math.
14683 + Fixed Windows installer so that dzslides works.
14684 + Removed stripansi.sh.
14685 + Added .travis.yml for Travis continuous integration support..
14686 + Fixed upper bound for zlib (Sergei Trofimovich).
14687 + Fixed upper bound for test-framework.
14688 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
14691## pandoc 1.9.1.2 (2012-03-09)
14693 * Added `beamer+lhs` as output format.
14695 * Don't escape `<` in `<style>` tags with `--self-contained`.
14696 This fixes a bug which prevented highlighting from working
14697 when using `--self-contained`.
14699 * PDF: run latex engine three times if `--toc` specified.
14700 This fixes page numbers in the table of contents.
14702 * Docx writer: Added TableNormal style to tables.
14704 * LaTeX math environment fixes. `aligned` is now used instead of
14705 the nonexistent `aligned*`. `multline` instead of the nonexistent
14708 * LaTeX writer: Use `\textasciitilde` for literal `~`.
14710 * HTML writer: Don't escape contents of EQ tags with --gladtex.
14711 This fixes a regression from 1.8.
14713 * Use `<q>` tags for Quoted items for HTML5 output.
14714 The quote style can be changed by modifying the template
14715 or including a css file. A default quote style is included.
14717 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
14718 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
14720 * Updated LaTeX template for better language support.
14721 Use `polyglossia` instead of `babel` with xetex.
14722 Set `lang` as documentclass option.
14723 `\setmainlanguage` will use the last of a comma-separated
14724 list of languages. Thanks to François Gannaz.
14726 * Fixed default LaTeX template so `\euro` and `€` work. The
14727 `eurosym` package is needed if you are using pdflatex.
14729 * Fixed escaping of period in man writer (thanks to Michael Thompson).
14731 * Fixed list label positions in beamer.
14733 * Set `mainlang` variable in context writer.
14734 This parallels behavior of latex writer. `mainlang` is the last
14735 of a comma-separated list of languages in lang.
14737 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
14739 * Changed `-V` so that you can specify a key without a value.
14740 Such keys get the value `true`.
14742 * Fixed permissions on installed man pages - thanks Magnus Therning.
14744 * Windows installer: require XP or higher. The installer is
14745 now compiled on a Windows 7 machine, which fixes a problem
14746 using citation functions on Windows 7.
14748 * OSX package: Check for 64-bit Intel CPU before installing.
14751## pandoc 1.9.1.1 (2012-02-11)
14753 * Better handling of raw latex environments in markdown. Now
14759 turns into a raw latex block as expected.
14761 * Improvements to LaTeX reader:
14763 + Skip options after block commands.
14764 + Correctly handle `{\\}` in braced.
14765 + Added a needed 'try'.
14766 + Citations: add `, ` to suffix if it doesn't start with space or
14767 punctuation. Otherwise we get no space between the year and the
14768 suffix in author-date styles.
14770 * Added two needed data files for S5. This fixes a problem with
14771 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
14772 which was no longer being used.
14774 * Fixed some minor problems in `reference.docx`:
14775 name on "Date" style, `xCs` instead of `xIs`.
14777 * Fixed a problem creating docx files using a reference docx
14778 modified using Word. The problem seems to be that Word
14779 modifies `_rels/.rels`, changing the Type of the Relationship to
14780 `docProps/core.xml`. Pandoc now changes this back to the correct
14781 value if it has been altered, fixing the problem.
14783 * Fixed html5 template so it works properly with highlighting.
14785## pandoc 1.9.1 (2012-02-09)
14789 + Fixed regression in 1.9; properly handle escaped $ in latex math.
14790 + Put LaTeX verse environments in blockquotes.
14794 + Limit nesting of strong/emph. This avoids exponential lookahead
14795 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
14796 + Improved attributes syntax (in code blocks/spans): (1)
14797 Attributes can contain line breaks. (2) Values in key-value
14798 attributes can be surrounded by either double or single quotes, or
14799 left unquoted if they contain no spaces.
14801 * Headers no longer wrap in markdown or RST writers.
14803 * Added `stateMaxNestingLevel` to `ParserState`.
14804 We set this to 6, so you can still have `Emph` inside `Emph`,
14805 just not indefinitely.
14807 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
14809 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
14812 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
14814## pandoc 1.9.0.5 (2012-02-06)
14816 * Changed cabal file so that build-depends for the test program
14817 are not required unless the tests flag is used.
14819 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
14820 form ligatures (dashes) in code spans.
14822## pandoc 1.9.0.4 (2012-02-06)
14824 * Raised version bound on test-framework to avoid problems
14825 compiling tests on GHC 7.4.1.
14827 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
14828 so citations don't just disappear unless you process with
14829 citeproc. Ignore `\bibliographystyle`, `\nocite`.
14831 * Simplified tex2pdf; it will always run latex twice to
14832 resolve table of contents and hyperrefs.
14834## pandoc 1.9.0.3 (2012-02-06)
14836 * Require Cabal >= 1.10.
14838 * Tweaked cabal file to meet Cabal 1.10 requirements.
14840## pandoc 1.9.0.2 (2012-02-05)
14842 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
14845## pandoc 1.9 (2012-02-05)
14849 * Added a Microsoft Word `docx` writer. The writer includes support
14850 for highlighted code and for math (which is converted from TeX to OMML,
14851 Office's native math markup language, using texmath's new OMML module).
14852 A new option `--reference-docx` allows the user to customize the
14855 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
14857 * Better support for slide shows:
14859 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
14860 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
14862 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
14863 slide presentations.
14865 + New, flexible rules for dividing documents into sections and slides
14866 (see the "Structuring the slide show" in the User's Guide). These
14867 are backward-compatible with the old rules, but they allow slide
14868 shows to be organized into sections and subsections containing
14871 + A new `--slide-level` option allows users to override defaults
14872 and select a slide level below the first header level with content.
14874 * A new `--self-contained` option produces HTML output that does not
14875 depend on an internet connection or the presence of any external
14876 files. Linked images, CSS, and javascript is downloaded (or fetched
14877 locally) and encoded in `data:` URIs. This is useful for making portable
14878 `HTML slide shows. The --offline` option has been deprecated and is now
14879 `treated as a synonym or --self-contained`.
14881 * Support for PDF output:
14883 + Removed the old `markdown2pdf`.
14884 + `pandoc` can now create PDFs (assuming you have latex and a set of
14885 appropriate packages installed): just specify an output file with the
14887 + A new option `--latex-engine` allows you to specify `pdflatex`,
14888 `xelatex`, or `lualatex` as the processor.
14890 * Highlighting changes:
14892 + Syntax highlighting is now a standard feature; the `highlighting`
14893 flag is no longer needed when compiling.
14894 + A new `--no-highlight` option allows highlighting to be disabled.
14895 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
14896 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
14897 + A new `--highlight-style` option selects between various highlighting
14900 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
14902 * LaTeX `\include` and `\usepackage` commands are now processed,
14903 provided the files are in the working directory.
14905 * EPUB improvements:
14907 + Internal and external links now work in EPUB.
14908 + Raw HTML is allowed.
14909 + New `--epub-embed-font` option.
14910 + Customizable templates for EPUB pages offer more control over
14911 formatting: `epub-page.html`, `epub-coverimage.html`,
14912 `epub-titlepage.html`.
14914 * `--mathml` now works with DocBook.
14916 * Added support for math in RST reader and writer. Inline math uses the
14917 `` :math:`...` `` construct. Display math uses
14921 or if the math is multiline,
14927 These constructions are now supported now by `rst2latex.py`.
14929 * Github syntax for fenced code blocks is supported in pandoc's
14930 markdown. You can now write
14942 * Easier scripting: a new `toJsonFilter` function makes it easier to
14943 write Haskell scripts to manipulate the Pandoc AST.
14944 See [Scripting with pandoc](scripting.html#pandoc-1.9-changes).
14946### Behavior changes
14948 * Fixed parsing of consecutive lists in markdown.
14949 Pandoc previously behaved like Markdown.pl for consecutive
14950 lists of different styles. Thus, the following would be parsed
14951 as a single ordered list, rather than an ordered list followed
14952 by an unordered list:
14960 This change makes pandoc behave more sensibly, parsing this as
14961 two lists. Any change in list type (ordered/unordered) or in
14962 list number style will trigger a new list. Thus, the following
14963 will also be parsed as two lists:
14971 Since we regard this as a bug in Markdown.pl, and not something
14972 anyone would ever rely on, we do not preserve the old behavior
14973 even when `--strict` is selected.
14975 * Dashes work differently with `--smart`: `---` is always em-dash,
14976 and `--` is always en-dash. Pandoc no longer tries to guess when
14977 `-` should be en-dash. *Note:* This may change how existing documents
14978 look when processed with pandoc. A new option, `--old-dashes`,
14979 is provided for legacy documents.
14981 * The markdown writer now uses setext headers for levels 1-2.
14982 The old behavior (ATX headers for all levels) can be restored
14983 using the new `--atx-headers` option.
14985 * Links are now allowed in markdown image captions. They are also
14986 allowed in links, but will appear there as regular text. So,
14988 [link with [link](/url)](/url)
14992 <p><a href="/url">link with link</a></p>
14994 * Improved handling of citations using `citeproc-hs-0.3.4`.
14995 Added `--citation-abbreviations` option.
14997 * Citation keys can no longer end with a punctuation character.
14998 This means that `@item1.` will be parsed as a citation with key
14999 'item1', followed by a period, instead of a citation with key
15000 'item1.', as was the case previously.
15002 * In HTML output, citations are now put in a span with class `citation`.
15004 * The markdown reader now recognizes DocBook block and inline tags.
15005 It was always possible to include raw DocBook tags in a markdown
15006 document, but now pandoc will be able to distinguish block from
15007 inline tags and behave accordingly. Thus, for example,
15013 will not be wrapped in `<para>` tags.
15015 * The LaTeX parser has been completely rewritten; it is now much more
15016 accurate, robust, and extensible. However, there are two important
15017 changes in how it treats unknown LaTeX. (1) Previously, unknown
15018 environments became BlockQuote elements; now, they are treated
15019 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
15020 same as `xyz`. (2) Previously, arguments of unknown commands
15021 were passed through with their braces; now the braces are stripped
15024 * `--smart` is no longer selected automatically with `man` output.
15026 * The deprecated `--xetex` option has been removed.
15028 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
15029 instead. `html5` and `html5+lhs` are now separate output formats.
15031 * Single quotes are no longer escaped in HTML output. They do not
15032 need to be escaped outside of attributes.
15034 * Pandoc will no longer transform leading newlines in code
15035 blocks to `<br/>` tags.
15037 * The ODT writer now sizes images appropriately, using the image
15038 size and DPI information embedded in the image.
15040 * `--standalone` is once again implicitly for a non-text output format
15041 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
15042 and get a standalone ODT file.
15044 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
15047 * The HTML writer now uses `<del>` for strikeout.
15049 * In HTML output with `--section-divs`, the classes `section` and
15050 `level[1,2,..6]` are put on the `div` tags so they can be styled.
15051 In HTML 5 output with `--section-divs`, the classes
15052 `level[1,2,...6]` are put on `section` tags.
15054 * EPUB writer changes:
15056 + The `lang` variable now sets the language
15057 in the metadata (if it is not set, we default to the locale).
15058 + EPUB: UTF-8 is used rather than decimal entities.
15060 * Added `titleslide` class to title slide in S5 template.
15062 * In HTML, EPUB, and docx metadata, the date is normalized into
15063 YYYY-MM-DD format if possible. (This is required for validation.)
15065 * Attributes in highlighted code blocks are now preserved in HTML.
15066 The container element will have the classes, id, and key-value attributes
15067 you specified in the delimited code block. Previously these were stripped
15070 * The reference backlink in the HTML writer no longer has a special
15071 `footnoteBacklink` class.
15073 * The HTML template has been split into `html` and `html5` templates.
15075 * Author and date are treated more consistently in HTML templates.
15076 Authors are now `<h2>`, date `<h3>`.
15078 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
15080 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
15084 * Better support for combining characters and East Asian wide characters
15085 in markdown and reST.
15087 * Better handling of single quotes with `--smart`.
15088 Previously `D'oh l'*aide*` would be parsed with left and right single
15089 quotes instead of apostrophes. This kind of error is now fixed.
15091 * Highlighting: Use `reads` instead of `read` for better error handling.
15092 Fixes crash on `startNum="abc"`.
15094 * Added blank comment after directives in rst template.
15096 * Unescape entities in citation `refId`. The `refId`s coming
15097 from citeproc contain XML numeric entities, and these don't match with the
15098 citation keys parsed by pandoc. Solution is to unescape them.
15100 * HTML reader: Fixed bug parsing tables with both thead and tbody.
15104 + Better handling of escapes in link URLs and titles.
15105 + Fixed backslash escapes in reference links.
15106 + Fixed bug in table/hrule parsing, by checking that the top
15107 line of a table is not followed by a blank line. This bug caused
15108 slowdowns on some files with hrules and tables, as pandoc tried to
15109 interpret the hrules as the tops of multiline tables.
15110 + Fixed bug in code block attribute parser. Previously the ID attribute
15111 got lost if it didn't come first. Now attributes can come in any order.
15113 * RST reader: allow footnotes followed by newline without space characters.
15117 + Ignore empty groups {}, { }.
15118 + LaTeX reader: Handle `\@`.
15119 + LaTeX reader: Don't crash on commands like `\itemsep`.
15120 + LaTeX reader: Better handling of letter environments.
15122 * RST writer: Fixed bug involving empty table cells. isSimple was being
15123 calculated in a way that assumed there were no non-empty cells.
15127 + Made `--toc` work even without `--number-sections`.
15128 + Escape # in link URLs.
15129 + Use buffering for footnotes containing code blocks.
15130 + Changed 'descr' to 'description', fixed alignment.
15134 + Escape euro character.
15135 + Don't escape `~` inside `\href{...}`.
15136 + Escape `#` in href URLs.
15137 + Improved detection of book classes. We now check the
15138 `documentclass` variable, and if that is not set, we look through
15139 the template itself. Also, we have added the KOMA classes scrreprt
15140 and scrbook. You can now make a book using
15141 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
15142 + LHS files now set the "listings" variable, so that the definition
15143 of the `code` environment will be included in the template.
15144 + Links are colored blue by default (this can be changed by
15145 modifying `hyperref` settings in the template).
15146 + Added `lang` variable to LaTeX template.
15150 + Fixed bug in HTML template with html5 and mathml.
15151 + Don't use self-closing img, br, hr tags for HTML5.
15152 + Use `<section>` for footnotes if HTML5.
15153 + Update HTML templates to use Content-Style-Type meta tag.
15154 + Use separate variables for meta-date, meta-author.
15155 This makes footnotes work in author and date fields.
15156 + Use 'vertical-align:middle' in WebTeX math for better alignment.
15158 * S5/slidy writer: Make footnotes appear on separate slide at end.
15160 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
15161 META-INF/manifest.xml for ODT files will have everything it needs, so
15162 that ODT files modified by LibreOffice can be used as `--reference-odt`.
15164 * `Text.Pandoc.Templates`: Return empty string for json template.
15166 * `Text.Pandoc.Biblio`:
15168 + Expand citations recursively inside nested inlines.
15169 + Treat `\160` as space when parsing locator and suffix.
15170 This fixes a bug with "p. 33" when `--smart` is used. Previously
15171 the whole "p. 33" would be included in the suffix, with no locator.
15172 + Put whole author-in-text citation in a Cite. Previously just the
15173 date and other info went in the Cite.
15174 + Don't add comma+space to prefix if it ends in punctuation.
15176 * Updated chicago-author-date.csl. The old version did not work
15177 properly for edited volumes with no author.
15181 + Add date to EPUB titlepage and metadata.
15182 + Added TOC identifier in EPUB page template.
15183 + Don't generate superfluous file `cover-image.jpg`.
15185### Under the hood improvements
15187 * Modified `make_osx_package.sh` to use cabal-dev.
15188 Items are no longer installed as root.
15189 Man pages are zipped and given proper permissions.
15191 * Modified windows installer generater to use cabal-dev.
15193 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
15194 Setup.hs we now invoke 'runghc' in a way that points it to the correct
15195 package databases, instead of always falling back to the default user
15198 * Updated to work with GHC 7.4.1.
15200 * Removed dependency on old-time.
15202 * Removed dependency on dlist.
15204 * New slidy directory for "self-contained."
15206 * TeXMath writer: Use unicode thin spaces for thin spaces.
15208 * Markdown citations: don't strip off initial space in locator.
15212 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
15213 from the native `Inline` type in pandoc-types. Now we use `Str`
15214 elements with unicode.
15216 * Improvements to `Text.Pandoc.Builder`:
15218 + `Inlines` and `Blocks` are now newtypes (not synonyms for
15220 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
15221 and a new `Listable` class, which allows these to be manipulated
15222 to some extent like lists. Monoid append includes automatic
15224 + `+++` has been replaced by `<>` (mappend).
15226 * Use blaze-html instead of xhtml for HTML generation.
15227 This changes the type of `writeHtml`.
15229 * `Text.Pandoc.Shared`:
15231 + Added `warn` and `err`.
15232 + Removed `unescapeURI`, modified `escapeURI`.
15233 (See under [behavior changes], above.)
15235 * Changes in URI escaping: Previously the readers escaped URIs by
15236 converting unicode characters to octets and then percent encoding.
15237 Now unicode characters are left as they are, and `escapeURI` only
15238 percent-encodes space characters. This gives more readable
15239 URIs, and works well with modern user agents. URIs are no longer unescaped
15240 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
15242 * New module `Text.Pandoc.SelfContained`.
15244 * New module `Text.Pandoc.Docx`.
15246 * New module `Text.Pandoc.PDF`.
15248 * Added `writerBeamer` to `WriterOptions`.
15250 * Added `normalizeDate` to `Text.Pandoc.Shared`.
15252 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
15253 This is like `splitWithIndices`, but it is sensitive to distinctions
15254 between wide, combining, and regular characters.
15256 * `Text.Pandoc.Pretty`:
15258 + Added `chomp` combinator.
15259 + Added `beforeNonBreak` combinator. This allows you to include
15260 something conditionally on it being before a nonblank.
15261 Used for RST inline math.
15262 + Added `charWidth` function. All characters marked W or F in the unicode
15263 spec EastAsianWidth.txt get width 2.
15264 + Added `realLength`, based on `charWidth`. `realLength` is now
15265 used in calculating offsets.
15267 * New module `Text.Pandoc.Slides`, for common functions for breaking
15268 a document into slides.
15270 * Removed `Text.Pandoc.S5`, which is no longer needed.
15272 * Removed `Text.Pandoc.CharacterReferences`. Moved
15273 `characterReference` to `Text.Pandoc.Parsing`.
15274 `decodeCharacterReferences` is replaced by `fromEntities`
15275 in `Text.Pandoc.XML`.
15277 * Added `Text.Pandoc.ImageSize`. This is intened for use
15278 in `docx` and `odt` writers, so the size and dpi of images
15281 * Removed `writerAscii` in `WriterOptions`.
15283 * Added `writerHighlight` to `WriterOptions`.
15285 * Added `DZSlides` to `HTMLSlideVariant`.
15287 * `writeEPUB` has a new argument for font files to embed.
15289 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
15290 of whether we're parsing the position immediately after a regular
15291 (non-space, non-symbol) string, which is useful for distinguishing
15292 apostrophes from single quote starts.
15294 * `Text.Pandoc.Parsing`:
15296 + `escaped` now returns a `Char`.
15297 + Removed `charsInBalanced'`, added a character parser as
15298 a parameter of `charsInBalanced`. This is needed for
15299 proper handling of escapes, etc.
15302 * Added `toEntities` to `Text.Pandoc.XML`.
15304 * `Text.Pandoc.Readers.LaTeX`:
15306 + Export `handleIncludes`.
15307 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
15309 * Added `ToJsonFilter` class and `toJsonFilter` function to
15310 `Text.Pandoc`, deprecating the old `jsonFilter` function.
15312 * `Text.Pandoc.Highlighting`:
15314 + Removed `highlightHtml`, `defaultHighlightingCss`.
15315 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
15316 key functions from highlighting-kate.
15317 + Changed types of highlighting function. `highlight` returns a
15318 `Maybe`, not an `Either`.
15321## pandoc 1.8.2.1 (2011-08-01)
15323 * Adjusted Arbitrary instance to help avoid timeouts in tests.
15325 * Added `Tests.Writers.Markdown` to cabal file.
15327 * Relaxed version bounds on pandoc-types, test-framework.
15329## pandoc 1.8.2 (2011-07-30)
15331 * Added script to produce OS X package.
15333 * Made `templates` directory a git submodule. This should make it
15334 easier for people to revise their custom templates when the default
15337 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
15338 **Note:** If you have existing templates in `~/.pandoc/templates`, you
15339 must rename them to conform to the new scheme!
15341 * Default template improvements:
15343 + HTML: Display author and date after title.
15344 + HTML: Made table of contents more customizable. The container
15345 for the TOC is now in the template, so users can insert a header
15346 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
15347 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
15348 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
15349 hard-coding. If you want to put your slidy files in the slidy
15350 subdirectory, for example, you can do
15351 `pandoc -t slidy -V slidy-url=slidy -s`.
15352 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
15353 & writer). Closes #279.
15354 + LaTeX: Set `\emergencystretch` to prevent overfull lines.
15355 + LaTeX: Use different `hyperref` options for `xetex`, fixing
15356 problems with unicode bookmarks (thanks to CircleCode).
15357 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
15358 with `inputenc`. This covers fewer characters but is more
15359 robust with other packages, and `ucs` is unmaintained. Users
15360 who need better unicode support should use xelatex or lualatex.
15362 * If a template specified with `--template` is not found, look for it
15363 in `datadir`. Also, if no extension is provided, supply one based
15364 on the writer. So now you can put your `special.latex` template in
15365 `~/.pandoc/templates`, and use it from any directory via
15366 `pandoc -t latex --template special`.
15368 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
15370 * Fixed smart quotes bug, now handling `'...hi'` properly.
15374 + Partial support for labeled footnotes.
15375 + Improved accuracy of `simpleReferenceName` parser.
15379 + Substitute correct unicode characters for
15380 characters in the 128..159 range, which are often found even in
15381 HTML that purports to be UTF-8.
15383 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
15384 to the title, after a colon and linebreak). Closes #280.
15386 * Leaner `reference.odt`.
15388 * Added unexported module `Text.Pandoc.MIME` for use in
15391 * ODT writer: Construct `manifest.xml` based on archive contents.
15392 This fixes a bug in ODTs containing images. Recent versions of
15393 LibreOffice would reject these as corrupt, because `manifest.xml`
15394 did not contain a reference to the image files.
15398 + Make verbatim environments flush to avoid spurious
15399 blank lines. Closes #277.
15400 + Use `\texttt` and escapes insntead of `\verb!...!`, which
15401 is too fragile (doesn't work in command arguments).
15402 + Use `\enquote{}` for quotes if the template includes
15403 the `csquotes` package. This provides better support for
15404 local quoting styles. (Thanks to Andreas Wagner for the idea.)
15406 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
15407 margin, preventing spurious blank lines.
15411 + Use non-minimized version of `slidy.css` with `--offline`
15412 option, so users can more easily edit it.
15413 + Also fixed a bug in the CSS that prevented proper centering
15414 of title (now reported and fixed upstream).
15418 + Replaced `s5/default/slides.js.{comment,packed}` with
15419 new compressed `s5/default/slides.min.js`.
15420 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
15421 when `--offline` is specified. Using inline CSS didn't
15422 work with Chrome or Safari. This fixes offline
15423 S5 on those browsers.
15425 * HTML writer: Removed English title on footnote backlinks.
15426 This is incongrous in non-English documents.
15430 + Use CALS tables. (Some older docbook software does not work
15431 well with XHTML tables.) Closes #77.
15432 + Use `programlisting` tags (instead of `screen`) for code blocks.
15436 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
15437 of `-interaction=batchmode`, which essentially just ignored errors,
15438 leading to bad results. Better to know when something is wrong.
15439 + Fixed issues with non-UTF-8 output of `pdflatex`.
15440 + Better error reporting.
15442 * `--mathjax` now takes an optional URL argument. If it is not
15443 provided, pandoc links directly to the (secure) mathjax CDN,
15444 as now recommended (thanks to dsanson).
15446 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
15447 since the LaTeX writer now produces a file that can be processed by
15448 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
15450 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
15451 to be used to create the PDF.
15454## pandoc 1.8.1.2 (2011-07-16)
15456 * Added `--epub-cover-image` option.
15458 * Documented `--biblatex` and `--natbib` options.
15460 * Allow `--section-divs` with slidy output. Resolves Issue #296.
15462 * Disallow notes within notes in reST and markdown.
15463 These previously caused infinite looping and stack overflows.
15470 Note references are allowed in reST notes, so this isn't a full
15471 implementation of reST. That can come later. For now we need to
15472 prevent the stack overflows. Partially resolves Issue #297.
15474 * EPUB writer: Allow non-plain math methods.
15476 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
15477 `(@item1; @item2)` because the final paren was being parsed as part of
15480 * Changed URI parser so it doesn't include trailing punctuation.
15481 So, in RST, `http://google.com.` should be parsed as a link followed by a
15482 period. The parser is smart enough to recognize balanced parentheses, as
15483 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
15485 * Markdown+lhs reader: Require space after inverse bird tracks, so that
15486 HTML tags can be used freely at the left margin of a markdown+lhs document.
15487 Thanks to Conal Elliot for the suggestion.
15489 * Markdown reader: Fixed bug in footnote order (reported by CircleCode).
15492 + Fixed bug in in field lists with multi-line items at the
15494 + Added parentheses to RST `specialChars`, so
15495 `(http://google.com)` will be parsed as a link in parens.
15496 Resolves Issue #291.
15497 + Allow `|` followed by newline in RST line block.
15501 + Gobble option & space after linebreak `\\[10pt]`.
15504 + Make it possible to have colons after links. (qerub)
15505 + Make it possible to have colons after links. (Christoffer Sawicki)
15508 + Skip spaces after `<b>`, `<emph>`, etc.
15509 + Handle tbody, thead in simple tables. Closes #274.
15510 + Implicit `Para`s instead of `Plains` in some contexts.
15512 * OpenDocument writer: Use special `First paragraph` style for
15513 first paragraph after most non-paragraph blocks. This allows users to
15514 specify e.g. that only paragraphs after the first paragraph of a block are
15515 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
15517 * LaTeX writer: use `deVerb` on table and picture captions.
15518 Otherwise LaTeX complains about `\verb` inside command argument.
15519 Thanks to bbanier for reporting the bug.
15521 * Markdown writer: Insert HTML comment btw list and indented code block.
15522 This prevents the code block from being interpreted as part of the list.
15524 * EPUB writer: Add a meta element specify the cover.
15525 Some EPUB e-readers, such as the Nook, require a meta element inside the
15526 OPF metadata block to ensure the cover image is properly displayed.
15529 * HTML writer: Use embed tag for images with non-image extensions.
15530 (e.g. PDFs). Closes #264.
15532 * LaTeX writer: Improved tables.
15534 + More space between lines, top-align cells.
15535 + Use ctable package, which allows footnotes and
15536 provides additional options.
15537 + Made cell alignments work in multiline tables.
15538 + Closes #271, #272.
15540 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
15541 Also do this when copying image files into EPUBs and ODTs.
15544 * Changed to github issue tracker.
15546 * Added failing emph/strong markdown test case due to Perry Wagle.
15548 * Slidy improvements:
15549 + Updated to use Slidy2.
15550 + Fixed bug, unclosed div tag.
15551 + Added `duration` variable in template.
15552 Setting this activates the timer.
15553 + Use 'titlepage' instead of 'cover' for title div.
15556## pandoc 1.8.1.1 (2011-02-13)
15558 * `markdown2pdf`: Removed some debugging lines accidentally included
15559 in the 1.8.1 release. With those lines, the temp directory is created
15560 in the working directory, and it is not deleted. This fix restores
15561 the original behavior.
15563## pandoc 1.8.1 (2011-02-13)
15565 * Added `--ascii` option. Currently supported only in HTML writer,
15566 which it causes to use numerical entities instead of UTF-8.
15568 * EPUB writer: `--toc` now works to provide a table of contents
15569 at the beginning of each chapter.
15571 * LaTeX writer: Change figure defaults to `htbp`.
15572 This prevents "too many unprocessed floats." Resolves
15575 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
15578 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
15579 Tanimoto. Resolves Issue #286.
15581 * HTML writer: Put line breaks in section divs.
15583 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
15585## pandoc 1.8.0.3 (2011-02-05)
15587 * Fixed Source-repository stanza in cabal file.
15589## pandoc 1.8.0.2 (2011-02-05)
15593 + Stringify alt text instead of converting to HTML.
15594 + Break lines after block elements, not inside tags.
15595 HTML output now closely resembles that of tidy. Resolves Issue #134.
15597 * Markdown reader: Fixed bug in footnote block parser (pointed out
15598 by Jesse Rosenthal). The problem arose when the blank line
15599 at the end of a footnote block contained indenting spaces.
15601 * Shared: Improved 'normalize' function so it normalizes Spaces too.
15602 In normal form, Space elements only occur to separate two non-Space
15603 elements. So, we never have [Space], or [, ..., Space].
15607 + Improved Arbitrary instance.
15608 + Added timeout for test instances.
15612 + Added section on four-space rule for lists. Resolves Issue #283.
15613 + Clarified optional arguments on math options.
15615 * markdown2pdf: Fixed bug with output file extensions.
15616 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
15617 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
15619## pandoc 1.8.0.1 (2011-01-31)
15621 * Revised Interact.hs so that it works with the CPP macros
15622 in the UTF8 module.
15624 * Revised Setup.hs so that we don't call MakeManPage.hs unless
15625 the man pages are out of date.
15627## pandoc 1.8 (2011-01-30)
15631 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
15632 You can now write, for example,
15634 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
15636 and, when you process your document using `pandoc`, specifying
15637 a citation style using `--csl` and a bibliography using `--bibliography`,
15638 the citation will be replaced by an appropriately formatted
15639 citation, and a list of works cited will be added to the end
15642 This means that you can switch effortlessly between different citation
15643 and bibliography styles, including footnote, numerical, and author-date
15644 formats. The bibliography can be in any of the following formats: MODS,
15645 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
15646 See the README for further details.
15648 Citations are supported in the markdown reader, using a special
15649 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
15650 (Thanks to Nathan Gass for the natbib and biblatex support.)
15652 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
15653 the `textile` reader, an almost complete implementation of the textile
15654 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
15655 Resolves Issue #51.
15657 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
15659 * New `json` reader and writer, for reading and writing a JSON
15660 representation of the native Pandoc AST. These are much faster
15661 than the `native` reader and writer, and should be used for
15662 serializing Pandoc to text. To convert between the JSON representation
15663 and native Pandoc, use `encodeJSON` and `decodeJSON` from
15664 `Text.JSON.Generic`.
15666 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
15667 to write scripts that transform a JSON-encoded pandoc document.
15670 -- removelinks.hs - removes links from document
15672 main = interact $ jsonFilter $ bottomUp removeLink
15673 where removeLink (Link xs _) = Emph xs
15676 To use this to remove links while translating markdown to LaTeX:
15678 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
15680 * Attributes are now allowed in inline `Code` elements, for example:
15682 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
15684 The attribute syntax is the same as for delimited code blocks.
15685 `Code` inline has an extra argument place for attributes, just like
15686 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
15687 is compiled with highlighting support. Resolves Issue #119.
15689 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
15690 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
15691 scripts to transform Pandoc documents. Scripts can now change
15692 how each element is rendered in each output format.
15694 * You can now define LaTeX macros in markdown documents, and pandoc
15695 will apply them to TeX math. For example,
15697 \newcommand{\plus}[2]{#1 + #2}
15700 yields `3+4`. Since the macros are applied in the reader, they
15701 will work in every output format, not just LaTeX.
15703 * LaTeX macros can also be used in LaTeX documents (both in math
15704 and in non-math contexts).
15706 * A new `--mathjax` option has been added for displaying
15707 math in HTML using MathJax. Resolves issue #259.
15709 * Footnotes are now supported in the RST reader. (Note, however,
15710 that unlike docutils, pandoc ignores the numeral or symbol used in
15711 the note; footnotes are put in an auto-numbered ordered list.)
15712 Resolves Issue #258.
15714 * A new `--normalize` option causes pandoc to normalize the AST
15715 before writing the document. This means that, for example,
15716 `*hi**there*` will be rendered as `<em>hithere</em>`
15717 instead of `<em>hi</em><em>there</em>`. This is not the default,
15718 because there is a significant performance penalty.
15720 * A new `--chapters` command-line option causes headers
15721 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
15722 Resolves Issue #265.
15724 * In DocBook output, `<chapter>` is now used for top-level
15725 headers if the template contains `<book>`. Resolves Issue #265.
15727 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
15728 the LaTeX writer to use the listings package for code blocks.
15729 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
15730 Millon for the markdown2pdf patch.)
15732 * `markdown2pdf` now supports `--data-dir`.
15734 * URLs in autolinks now have class "url" so they can be styled.
15736 * Improved prettyprinting in most formats. Lines will be wrapped
15737 more evenly and duplicate blank lines avoided.
15739 * New `--columns` command-line option sets the column width for
15740 line wrapping and relative width calculations for tables.
15742 * Made `--smart` work in HTML, RST, and Textile readers, as well
15745 * Added `--html5` option for HTML5 output.
15747 * Added support for listings package in LaTeX reader
15748 (Puneeth Chaganti).
15750 * Added support for simple tables in the LaTeX reader.
15752 * Added support for simple tables in the HTML reader.
15754 * Significant performance improvements in many readers and writers.
15756### API and program changes
15758 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
15759 auxiliary package, `pandoc-types`. This will make it possible for other
15760 programs to supply output in Pandoc format, without depending on the whole
15763 * Added `Attr` field to `Code`.
15765 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
15766 `RawBlock` and `RawInline`.
15768 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
15769 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
15770 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
15772 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
15774 * `Text.Pandoc` now exports association lists `readers` and `writers`.
15776 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
15777 `readNative` can now read full pandoc documents, block lists, blocks,
15778 inline lists, or inlines. It will interpret `Str "hi"`
15779 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
15780 This should make testing easier.
15782 * Removed deprecated `-C/--custom-header` option.
15783 Use `--template` instead.
15785 * `--biblio-file` has been replaced by `--bibliography`.
15786 `--biblio-format` has been removed; pandoc now guesses the format
15787 from the file extension (see README).
15789 * pandoc will treat an argument as a URI only if it has an
15790 `http(s)` scheme. Previously pandoc would treat some
15791 Windows pathnames beginning with `C:/` as URIs.
15793 * The `--sanitize-html` option and the `stateSanitize` field in
15794 `ParserState` have been removed. Sanitization is better done in the
15795 resulting HTML using `xss-sanitize`, which is based on pandoc's
15796 sanitization, but improved.
15798 * pandoc now adds a newline to the end of its output in fragment
15799 mode (= not `--standalone`).
15801 * Added support for `lang` in `html` tag in the HTML template,
15802 so you can do `pandoc -s -V lang=es`, for example.
15804 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
15805 a boolean argument that selects between "inline" and
15808 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
15809 Images are embedded in RTF output when possible (png, jpeg).
15810 Resolves Issue #275.
15812 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
15813 `pretty` package. Changed all writers that used
15814 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
15816 * Rewrote `writeNative` using the new prettyprinting module. It is
15817 now much faster. The output has been made more consistent and compressed.
15818 `writeNative` is also now sensitive to writerStandalone`, and will simply
15819 `print a block list if writerStandalone` is False.
15821 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
15822 blocks and concatenate them, so a separate module is no longer needed.
15824 * `Text.Pandoc.Shared`:
15826 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
15828 + Added `normalize`.
15829 + Removed unneeded prettyprinting functions:
15830 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
15831 `BlockWrapper`, `wrappedBlocksToDoc`.
15832 + Made `splitBy` take a test instead of an element.
15833 + Added `findDataFile`, refactored `readDataFile`.
15834 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
15835 + Fixed `inlineListToIdentifier` to treat `\160` as ' '.
15837 * `Text.Pandoc.Readers.HTML`:
15839 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
15840 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
15841 `htmlBlockElement`, `htmlComment`
15842 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
15845 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
15846 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
15849 * Ellipses are no longer allowed to contain spaces.
15850 Previously we allowed '. . .', ' . . . ', etc. This caused
15851 too many complications, and removed author's flexibility in
15852 combining ellipses with spaces and periods.
15854 * Allow linebreaks in URLs (treat as spaces). Also, a string of
15855 consecutive spaces or tabs is now parsed as a single space. If you have
15856 multiple spaces in your URL, use `%20%20`.
15858 * `Text.Pandoc.Parsing`:
15860 + Removed `refsMatch`.
15861 + Hid `Key` constructor.
15862 + Removed custom `Ord` and `Eq` instances for `Key`.
15863 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
15864 + Generalized type on `readWith`.
15866 * Small change in calculation of relative widths of table columns.
15867 If the size of the header > the specified column width, use
15868 the header size as 100% for purposes of calculating
15869 relative widths of columns.
15871 * Markdown writer now uses some pandoc-specific features when `--strict`
15872 is not specified: `\` newline is used for a hard linebreak instead of
15873 two spaces then a newline. And delimited code blocks are used when
15874 there are attributes.
15876 * HTML writer: improved gladTeX output by setting ENV appropriately
15877 for display or inline math (Jonathan Daugherty).
15879 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
15883 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
15884 + `\index{}` commands are skipped.
15886 * Added `fontsize` variable to default LaTeX template.
15887 This makes it easy to set the font size using `markdown2pdf`:
15888 `markdown2pdf -V fontsize=12pt input.txt`.
15890 * Fixed problem with strikeout in LaTeX headers when using
15891 hyperref, by adding a command to the default LaTeX template
15892 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
15895 * The `COLUMNS` environment variable no longer has any effect.
15897### Under-the-hood improvements
15899 * Pandoc now compiles with GHC 7. (This alone leads to a
15900 significant performance improvement, 15-20%.)
15902 * Completely rewrote HTML reader using tagsoup as a lexer. The
15903 new reader is faster and more accurate. Unlike the
15904 old reader, it does not get bogged down on some input
15905 (Issues #277, 255). And it handles namespaces in tags
15908 * Replaced `escapeStringAsXML` with a faster version.
15910 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
15911 for a significant performance boost.
15913 * Improved performance of all readers by rewriting parsers.
15915 * Simplified Text.Pandoc.CharacterReferences by using
15916 entity lookup functions from TagSoup.
15918 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
15919 from `System.IO` if base >= 4.2. This gives support for
15920 windows line endings on windows.
15922 * Remove duplications in documentation by generating the
15923 pandoc man page from README, using `MakeManPage.hs`.
15925 * README now includes a full description of markdown syntax,
15926 including non-pandoc-specific parts. A new `pandoc_markdown`
15927 man page is extracted from this, so you can look up markdown
15928 syntax by doing `man pandoc_markdown`.
15930 * Completely revised test framework (with help from Nathan Gass).
15931 The new test framework is built when the `tests` Cabal flag is set. It
15932 includes the old integration tests, but also some new unit and quickcheck
15933 tests. Test output has been much improved, and you can now specify a glob
15934 pattern after `cabal test` to indicate which tests should be run;
15935 for example `cabal test citations` will run all the citation tests.
15937 * Added a shell script, `stripansi.sh`, for filtering ANSI control
15938 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
15940 * Added `Interact.hs` to make it easier to use ghci while developing.
15941 `Interact.hs` loads `ghci` from the `src` directory, specifying
15942 all the options needed to load pandoc modules (including
15943 specific package dependencies, which it gets by parsing
15944 dist/setup-config).
15946 * Added `Benchmark.hs`, testing all readers + writers using criterion.
15948 * Added `stats.sh`, to make it easier to collect and archive
15949 benchmark and lines-of-code stats.
15951 * Added upper bounds to all cabal dependencies.
15953 * Include man pages in extra-source-files. This allows users to
15954 install pandoc from the tarball without needing to build the man
15959 * Filenames are encoded as UTF8. Resolves Issue #252.
15961 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
15962 were just parsed literally, leading to problems in some output formats.
15963 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
15964 Resolves Issue #270.
15966 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
15967 Spaces at end of line were not being stripped properly,
15968 resulting in unintended LineBreaks.
15972 + Allow HTML comments as inline elements in markdown.
15973 So, `aaa <!-- comment --> bbb` can be a single paragraph.
15974 + Fixed superscripts with links: `^[link](/foo)^` gets
15975 recognized as a superscripted link, not an inline note followed by
15977 + Fixed regression, making markdown reference keys case-insensitive again.
15978 Resolves Issue #272.
15979 + Properly handle abbreviations (like `Mr.`) at the end of a line.
15980 + Better handling of intraword underscores, avoiding exponential
15981 slowdowns in some cases. Resolves Issue #182.
15982 + Fixed bug in alignments in tables with blank rows in the header.
15986 + Field lists now allow spaces in field names, and
15987 block content in field values. (Thanks to Lachlan Musicman
15988 for pointing out the bug.)
15989 + Definition list items are now always `Para` instead of
15990 `Plain`, matching behavior of `rst2xml.py`.
15991 + In image blocks, the description is parsed properly and
15992 used for the alt attribute, not also the title.
15993 + Skip blank lines at beginning of file. Resolves
15998 + Improved parsing of preamble.
15999 Previously you'd get unexpected behavior on a document that
16000 contained `\begin{document}` in, say, a verbatim block.
16001 + Allow spaces between `\begin` or `\end` and `{`.
16002 + Support `\L` and `\l`.
16003 + Skip comments inside paragraphs.
16007 + Escape strings in `\href{..}`.
16008 + In nonsimple tables, put cells in `\parbox`.
16010 * OpenDocument writer: don't print raw TeX.
16014 + Fixed bug in `Image`. URI was getting unescaped twice!
16015 + Avoid printing extra blank lines at the end if there are
16016 no notes or references.
16018 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
16019 This avoids unwanted interpretation as an optional argument.
16021 * ConTeXt writer: Fixed problem with inline code. Previously
16022 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
16023 If it contains neither, use `\type{}`; otherwise use `\mono{}`
16024 with an escaped version of the string.
16026 * `:` now allowed in HTML tags. Resolves Issue #274.
16030## pandoc 1.6 (2010-07-24)
16032+ New EPUB and HTML Slidy writers. (Issue #122)
16034 - [EPUB] is a standard ebook format, used in Apple's iBooks for
16035 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
16036 reader, and many other devices, and by online ebook readers like
16037 [bookworm]. (Amazon's Kindle uses a different format, MobiPocket,
16038 but EPUB books can easily be converted to Kindle format.) Now you
16039 can write your book in markdown and produce an ebook with a single
16040 command! I've put up a short [tutorial here].
16041 - [Slidy], like S5, is a system for producing HTML+javascript slide shows.
16043+ All input is assumed to be UTF-8, no matter what the locale and ghc
16044 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
16045 Also, a BOM, if present, is stripped from the input.
16047+ Markdown now supports grid tables, whose cells can contain
16048 arbitrary block elements. (Issue #43)
16050+ Sequentially numbered example lists in markdown with `@` marker.
16052+ Markdown table captions can begin with a bare colon and no longer need
16053 to include the English word "table." Also, a caption can now occur
16054 either before or after the table. (Issue #227)
16056+ New command-line options:
16058 - `--epub-stylesheet` allows you to specify a CSS file that will
16059 be used to style your ebook.
16060 - `--epub-metadata` allows you to specify metadata for the ebook.
16061 - `--offline` causes the generated HTML slideshow to include all
16062 needed scripts and stylesheets.
16063 - `--webtex` causes TeX math to be converted to images using the
16064 Google Charts API (unless a different URL is specified).
16065 - `--section-divs` causes div tags to be added around each section
16066 in an HTML document. (Issue #230, 239)
16068+ Default behavior of S5 writer in standalone mode has changed:
16069 previously, it would include all needed scripts and stylesheets
16070 in the generated HTML; now, only links are included unless
16071 the `--offline` option is used.
16073+ Default behavior of HTML writer has changed. Between 1.2 and 1.5,
16074 pandoc would enclose sections in div tags with identifiers on the
16075 div tags, so that the sections can be manipulated in javascript.
16076 This caused undesirable interactions with raw HTML div tags. So,
16077 starting with 1.6, the default is to put the identifiers directly
16078 on the header tags, and not to include the divs. The `--section-divs`
16079 option selects the 1.2-1.5 behavior.
16083 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
16084 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
16085 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
16086 `writerIncludeAfter`.
16087 - Added `headerShift` to `Text.Pandoc.Shared`.
16088 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
16089 to a new module, `Text.Pandoc.Parsing`.
16090 - Added `stateHasChapters` to `ParserState`.
16091 - Added `HTMLSlideVariant`.
16092 - Made `KeyTable` a map instead of an association list.
16093 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`, `docDate`).
16094 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord` instances.
16095 - Reference keys now have a type of their own (`Key`), with its
16096 own `Ord` instance for case-insensitive comparison.
16097 - Added `Text.Pandoc.Writers.EPUB`.
16098 - Added `Text.Pandoc.UUID`.
16099 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
16100 Removed `saveOpenDocumentAsODT`, added `writeODT`.
16101 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
16102 Removed `prettyPandoc`.
16103 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
16104 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
16105 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
16106 To write S5, you now use `writeHtml` with `writerSlideVariant`
16107 set to `S5Slides` or `SlidySlides`.
16109+ Template changes. If you use custom templates, please update them,
16110 particularly if you use syntax highlighting with pandoc. The old HTML
16111 templates hardcoded highlighting CSS that will no longer work with
16112 the most recent version of highlighting-kate.
16114 - HTML template: avoid empty meta tag if no date.
16115 - HTML template: Use default highlighting CSS from highlighting-kate
16116 instead of hard-coding the CSS into the template.
16117 - HTML template: insert-before text goes before the title, and
16118 immediately after the `<body>` tag, as documented. (Issue #241)
16119 - Added slidy and s5 templates.
16120 - Added amssymb to preamble of latex template. (github Issue 1)
16122+ Removed excess newlines at the end of output. Note: because output
16123 will not contain an extra newline, you may need to make adjustments
16124 if you are inserting pandoc's output into a template.
16126+ In S5 and slidy, horizontal rules now cause a new slide, so you
16127 are no longer limited to one slide per section.
16129+ Improved handling of code in man writer. Inline code is now monospace,
16130 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
16132+ HTML reader parses `<tt>` as Code. (Issue #247)
16134+ html+lhs output now contains bird tracks, even when compiled without
16135 highlighting support. (Issue #242)
16137+ Colons are now no longer allowed in autogenerated XML/HTML identifiers,
16138 since they have a special meaning in XML.
16140+ Code improvements in ODT writer. Remote images are now replaced with
16141 their alt text rather than a broken link.
16143+ LaTeX reader improvements:
16145 - Made latex `\section`, `\chapter` parsers more forgiving of whitespace.
16146 - Parse `\chapter{}` in latex.
16147 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
16148 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
16149 for use in markdown reader.
16150 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
16151 in markdown document.
16153+ LaTeX writer: images are automatically shrunk if they would extend
16154 beyond the page margin.
16156+ Plain, markdown, RST writers now use unicode for smart punctuation.
16158+ Man writer converts math to unicode when possible, as in other writers.
16160+ `markdown2pdf` can now recognize citeproc options.
16162+ Command-line arguments are converted to UTF-8. (Issue #234)
16164+ `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
16165 This allows it to handle a wider range of formulas. Also, if a formula
16166 cannot be converted, it is left in raw TeX; formulas are no longer
16167 partially converted.
16169+ Unicode curly quotes are left alone when parsing smart quotes. (Issue #143)
16171+ Cabal file changes:
16173 - Removed parsec < 3 restriction.
16174 - Added 'threaded' flag for architectures where GHC lacks a threaded
16176 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
16177 - Require highlighting-kate 0.2.7.
16179+ Use explicit imports from `Data.Generics`. Otherwise we have a
16180 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
16182+ New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
16184[EPUB]: http://en.wikipedia.org/wiki/EPUB
16185[Slidy]: http://www.w3.org/Talks/Tools/Slidy
16186[bookworm]: http://bookworm.oreilly.com/
16187[tutorial here]: http://johnmacfarlane.net/pandoc/epub.html
16189## pandoc 1.5.1.1 (2010-03-29)
16191+ Fixed header identifiers (uniqueIdent in Shared) so they
16192 work as advertized in README and are guaranteed to be
16193 valid XHTML names. Thanks to Xyne for reporting the bug.
16195## pandoc 1.5.1 (2010-03-23)
16197+ Fixed treatment of unicode characters in URIs.
16198+ Revised Setup.hs so it works with debian's build process.
16199+ Fixed bug in OpenDocument writer that led to invalid
16200 XML for some input.
16202## pandoc 1.5.0.1 (2010-03-21)
16204+ HTML writer: Fixed error in math writer (with MathML option)
16205 that caused an infinite loop for unparsable MathML.
16207## pandoc 1.5 (2010-03-20)
16209+ Moved repository to [github](http://github.com/jgm/pandoc).
16210+ New `--mathml` option, for display of TeX math as MathML.
16211+ New `--data-dir` option, allowing users to specify a data
16212 directory other than `~/.pandoc`. Files placed in this directory
16213 will be used instead of system defaults.
16214+ New `--base-header-level` option. For example, `--base-header-level=2`
16215 changes level 1 headers to level 2, level 2 to level 3, etc.
16216+ New 'plain' output format: plain text without pictures, hyperlinks,
16217 inline formatting, or anything else that looks even vaguely
16219+ Titles and authors in title blocks can now span multiple lines,
16220 as long as the continuation lines begin with a space character.
16221+ When given an absolute URI as a parameter, pandoc will fetch
16222 the content via HTTP.
16223+ The HTML reader has been made much more forgiving. It no
16224 longer requires well-formed xhtml as input.
16225+ `html2markdown` has been removed; it is no longer necessary, given
16226 the last two changes. `pandoc` can be used by itself to convert
16227 web pages to markdown or other formats.
16228+ `hsmarkdown` has also been removed. Use `pandoc --strict` instead.
16229 Or symlink pandoc's executable to `hsmarkdown`; `pandoc` will then
16230 behave like `hsmarkdown` used to.
16231+ An image in a paragraph by itself is now rendered as a figure
16232 in most writers, with the alt text as the caption.
16233+ Incomplete support for reST tables (simple and grid). Thanks to
16234 Eric Kow. Colspans and rowspans not yet supported.
16235+ In mediawiki, links with relative URLs are now formatted as wikilinks.
16236 Also, headers have been promoted: `= head =` is now level 1 instead of
16238+ The markdown reader now handles "inverse bird tracks" when parsing
16239 literate haskell. These are used for haskell example code that
16240 is not part of the literate program.
16241+ The `-B` and `-A` options now imply `-s` and no longer work in
16243+ Headerless tables are now printed properly in all writers.
16244 In addition, tbody, thead, and cols are used in HTML and Docbook
16246+ Improved build system; removed obsolete Makefile.
16247+ In LaTeX writer, `\chapter` is now used instead of `\section`.
16248 when the documentclass is book, report, or memoir.
16249+ Many small bug fixes. See [changelog] for details.
16251## pandoc 1.4 (2010-01-02)
16253+ New template system replaces old headers, giving users much
16254 more control over pandoc's output in `--standalone` mode.
16255 Added `--template` and `--variable` options. The `--print-default-header`
16256 option is now `--print-default-template`. See README under
16257 "Templates" for details.
16258+ The old `--custom-header` option should still work, but it has
16260+ New `--reference-odt` option allows users to customize styles
16262+ Users may now put custom templates, s5 styles, and a reference
16263 ODT in the `~/.pandoc` directory, where they will override system
16264 defaults. See README for details.
16265+ Unicode is now used whenever possible in HTML and XML output. Entities
16266 are used only where necessary (`>`, `<`, `"`, `&`).
16267+ Authors and dates may now include formatting and notes.
16268+ Added `--xetex` option for `pandoc` and `markdown2pdf`.
16269+ Windows installer now includes highlighting support and
16270 `markdown2pdf` and `hsmarkdown` wrappers.
16271+ Pandoc no longer requires Template Haskell, which should make
16273+ Pandoc can now be built on GHC 6.12, as well as earlier versions.
16274+ See README for other small improvements and bug fixes.
16276## pandoc 1.3 (2009-12-10)
16278+ Added `--id-prefix` option to help prevent duplicate
16279 identifiers when you're generating HTML fragments.
16280+ Added `--indented-code-classes` option, which specifies
16281 default highlighting syntax for indented code blocks.
16282+ `--number-sections` now affects HTML output.
16283+ Improved syntax for markdown definition lists.
16284+ Better looking simple tables.
16285+ Markdown tables without headers are now possible.
16286+ New hard line break syntax: backslash followed by newline.
16287+ Improved performance of markdown reader by ~10% by eliminating the
16288 need for a separate parsing pass for notes.
16289+ Improved syntax highlighting for literate Haskell.
16290+ Support for "..code-block" directive in RST reader.
16291+ Windows binary now includes highlighting support.
16292+ Many bug fixes and small improvements. See [changelog]
16295## pandoc 1.2.1 (2009-07-18)
16297+ Improved the efficiency of the markdown reader's
16298 abbreviation parsing (should give a big performance
16299 boost with `--smart`).
16300+ HTML writer now wraps sections in divs with unique
16301 identifiers, for easier manipulation.
16302+ Improved LaTeX reader's coverage of math modes.
16303+ Added a portable Haskell version of markdown2pdf (thanks
16304 to Paolo Tanimoto).
16305+ Made `--strict` compatible with `--standalone` and `--toc.`
16306+ Many other small improvements and bug fixes.
16307 See [changelog] for details.
16309## pandoc 1.2 (2009-03-01)
16311+ Added support for literate Haskell. lhs support is triggered by
16312 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
16313 Haskell LaTeX. '.lhs' files are treated by default as literate
16315+ Added `--email-obfuscation` option.
16316+ Brought citeproc support up to date for citeproc-hs-0.2.
16317+ Many bugs fixed. See [changelog] for details.
16319## pandoc 1.1 (2008-11-06)
16321+ New `--jsmath` option supporting use of pandoc with [jsMath].
16322+ Classes on HTML table output for better CSS styling.
16323+ Windows installer no longer requires admin privileges.
16324+ Many bugs fixed. See [changelog] for details.
16326## pandoc 1.0 (2008-09-13)
16328+ New writers for MediaWiki, GNU Texinfo (thanks to Peter Wang),
16329 OpenDocument XML (thanks to Andrea Rossato), and ODT (OpenOffice
16331+ New [delimited code blocks](README.html#delimited-code-blocks),
16332 with optional syntax highlighting.
16333+ Reorganized build system: pandoc can now be built using standard
16334 Cabal tools. It can be compiled on Windows without Cygwin.
16335 The tests can also be run without perl or unix tools.
16336+ LaTeXMathML replaces ASCIIMathML for rendering math in HTML.
16337+ Support for "displayed" math.
16338+ Common abbreviations are now handled more intelligently, with
16339 a non-breaking space (and not a sentence-ending space) after
16341+ Code is -Wall clean.
16342+ Many bug fixes and small improvements. See [changelog] for
16345## pandoc 0.46 (2008-01-08)
16347+ Added a `--sanitize-html` option (and a corresponding parameter
16348 in `ParserState` for those using the pandoc libraries in programs).
16349 This option causes pandoc to sanitize HTML (in HTML or Markdown
16350 input) using a whitelist method. Possibly harmful HTML elements
16351 are replaced with HTML comments. This should be useful in the
16352 context of web applications, where pandoc may be used to convert
16353 user input into HTML.
16354+ Made -H, -A, and -B options cumulative: if they are specified
16355 multiple times, multiple files will be included.
16356+ Many bug fixes and small improvements. See [changelog] for full
16359## pandoc 0.45 (2007-12-09)
16361+ Many bug fixes and structural improvements. See [changelog] for
16363+ Improved treatment of math. Math is now rendered using unicode
16364 by default in HTML, RTF, and DocBook output. For more accurate
16365 display of math in HTML, `--gladtex`, `--mimetex`, and `--asciimathml`
16366 options are provided. See the [User's Guide](README.html#math) for
16368+ Removed support for box-style block quotes in markdown.
16369+ More idiomatic ConTeXt output.
16370+ Text wrapping in ConTeXt and LaTeX output.
16371+ Pandoc now correctly handles all standard line endings
16373+ New `--no-wrap` option that disables line wrapping and minimizes
16374 whitespace in HTML output.
16375+ Build process is now compatible with both GHC 6.8 and GHC 6.6.
16376 GHC and GHC_PKG environment variables may be used to specify
16377 which version of the compiler to use, when multiple versions are
16380## pandoc 0.44 (2007-09-03)
16382 [ John MacFarlane ]
16384 * Fixed bug in HTML writer: when --toc was used, anchors were put around
16385 headers, which is invalid XHTML (block content within inline element).
16386 Now the anchors are put inside the header tags. Resolves Issue #23.
16388 * Added xmlns attribute to html element in html writer tests.
16389 This attribute is added by more recent versions of the
16390 xhtml library (>= 3000), and is required for valid XHTML.
16394 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
16395 command instead of 'runhaskell', which, on some platforms (such as s390,
16396 alpha, m68k), throws the following error:
16398 runhaskell Setup.hs configure --prefix=/usr
16399 ghc-6.6.1: not built for interactive use
16401 This causes a serious FTBFS bug. Closes: #440668.
16403## pandoc 0.43 (2007-09-02)
16405 [ John MacFarlane ]
16407 * The focus of this release is performance. The markdown parser
16408 is about five times faster than in 0.42, based on benchmarks
16409 with the TextMate manual.
16411 * Main.hs: Replaced CRFilter and tabFilter with single function
16412 tabFilter, which operates on the whole string rather than breaking
16413 it into lines, and handles dos-style line-endings as well as tabs.
16415 * Added separate LaTeX reader and native reader tests; removed
16418 * Text.Pandoc.Shared:
16420 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
16421 + General code cleanup (to elimante warnings when compiling with -Wall.)
16422 + Added 'wrapped' function, which helps wrap text into paragraphs,
16423 using the prettyprinting library.
16424 + Rewrote charsInBalanced and charsInBalanced'.
16425 - Documented restriction: open and close must be distinct characters.
16426 - Rearranged options for greater efficiency.
16427 - Bug fix: Changed inner call to charsInBalanced inside
16428 charsInBalanced' to charsInBalanced'.
16429 + anyLine now requires that the line end with a newline (not eof).
16430 This is a harmless assumption, since we always add newlines to the
16431 end of a block before parsing with anyLine, and it yields a 10% speed
16433 + Removed unnecessary 'try' in anyLine.
16434 + Removed unneeded 'try' from romanNumeral parser.
16435 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
16436 + Removed unneeded 'try' in parseFromString.
16437 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
16439 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
16440 'try' is not automatically applied to the 'end' parser. Added
16441 'try' in calls to 'enclosed' where needed. Slight speed increase.
16445 + Replaced individual wrapping routines in RST, Man, and Markdown
16446 writers with 'wrapped' from Text.Pandoc.Shared.
16447 + Rewrote LaTeX writer to use the prettyprinting library,
16448 so we get word wrapping, etc.
16449 + Modified latex writer tests for new latex writer using prettyprinter.
16450 + Fixed bug in LaTeX writer: autolinks would not cause
16451 `\usepackage{url}` to be put in the document header. Also, changes
16452 to state in enumerated list items would be overwritten.
16453 + In Markdown writer, escape paragraphs that begin with ordered list
16454 markers, so they don't get interpreted as ordered lists.
16456 * Text.Pandoc.Reades.LaTeX:
16458 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
16459 numeral after "enum" in "setcounter" would consist entirely of
16460 "i"s. 'enumiv' is legitimate.
16461 + LaTeX command and environment names can't contain numbers.
16462 + Rearranged order of parsers in inline for slight speed improvement.
16463 + Added '`' to special characters and 'unescapedChar'.
16465 * Text.Pandoc.Readers.RST:
16467 + Removed unneeded try's in RST reader; also minor code cleanup.
16469 + Rearranged parsers in inline (doubled speed).
16471 * Text.Pandoc.Readers.Markdown:
16473 + Skip notes parsing if running in strict mode. (This yields a nice
16474 speed improvement in strict mode.)
16475 + Simplify autolink parsing code, using Network.URI to test for
16476 URIs. Added dependency on network library to debian/control and
16478 + More perspicuous definition of nonindentSpaces.
16479 + Removed unneeded 'try' in 'rawLine'.
16480 + Combined linebreak and whitespace into a new whitespace parser, to
16481 avoid unnecessary reparsing of space characters.
16482 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
16483 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
16484 + Use lookAhead in parsers for setext headers and definition lists
16485 to see if the next line begins appropriately; if not, don't waste
16486 any more time parsing.
16487 + Don't require blank lines after code block. (It's sufficient to
16488 end code block with a nonindented line.)
16489 + Changed definition of 'emph': italics with '_' must not
16490 be followed by an alphanumeric character. This is to help
16491 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
16492 `[LC<em>TYPE]:my</em>type`.
16493 + Improved Markdown.pl-compatibility in referenceLink: the two parts
16494 of a reference-style link may be separated by one space, but not
16495 more... [a] [link], [not] [a link].
16496 + Fixed markdown inline code parsing so it better accords with
16497 Markdown.pl: the marker for the end of the code section is a clump
16498 of the same number of `'s with which the section began, followed
16499 by a non-` character. So, for example,
16500 ` h ``` i ` -> `<code>h ``` i</code>`.
16501 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
16502 rules are slightly different.
16503 + Rewrote 'para' for greater efficiency.
16504 + Rewrote link parsers for greater efficiency.
16505 + Removed redundant 'referenceLink' in definition of inline (it's
16506 already in 'link').
16507 + Refactored escapeChar so it doesn't need 'try'.
16508 + Refactored hrule for performance in Markdown reader.
16509 + More intelligent rearranging of 'inline' so that most frequently
16510 used parsers are tried first.
16511 + Removed tabchar parser, as whitespace handles tabs anyway.
16513 * Text.Pandoc.CharacterReferences:
16516 + Removed unnecessary 'try's for a speed improvement.
16517 + Removed unnecessary '&' and ';' from the entity table.
16521 + Makefile: Get VERSION from cabal file, not Main.hs.
16522 + Modified MacPorts Portfile:
16523 - Depend on haddock
16524 - Build and install libraries and library documentation in
16525 addition to pandoc executable
16526 - Added template item for md5 sum in Portfile.in.
16527 - Incorporated changes from MacPorts repository (r28278).
16528 + FreeBSD port: Don't try to generate distinfo in Makefile.
16529 It can be made using 'make makesum' in FreeBSD.
16530 + Make both freebsd and macports targets depend on tarball.
16532 * Website and documentation:
16534 + Updated INSTALL instructions.
16535 + Added pandocwiki demo to website.
16536 + Removed local references to Portfile, since pandoc is now in the
16537 MacPorts repository.
16539## pandoc 0.42 (2007-08-26)
16541 [ John MacFarlane ]
16543 * Main.hs: Use utf8 conversion on the extra files loaded with
16544 the -H, -C, -B, and -A options. This fixes problems with unicode
16545 characters in these files.
16547 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
16548 Text.Pandoc.Readers.HTML and without it we get a linking error when
16553 + Added new rule for enhanced markdown ordered lists: if the list
16554 marker is a capital letter followed by a period (including a
16555 single-letter capital roman numeral), then it must be followed by
16556 at least two spaces. The point of this is to avoid accidentally
16557 treating people's initials as list markers: a paragraph might begin,
16558 "B. Russell was an English philosopher," and this shouldn't be
16559 treated as a list. Documented change in README.
16560 + Blocks that start with "p. " and a digit are no longer treated
16561 as ordered lists (it's a page number).
16562 + Added a needed 'try' to listItem.
16563 + Removed check for a following setext header in endline.
16564 A full test is too inefficient (doubles benchmark time), and the
16565 substitute we had before is not 100% accurate.
16566 + Don't use Code elements for autolinks if --strict specified.
16568 * LaTeX writer: When a footnote ends with a Verbatim environment, the
16569 close } of the footnote cannot occur on the same line or an error occurs.
16570 Fixed this by adding a newline before the closing } of every footnote.
16573 + Removed incorrect "{}" around style information in HTML tables.
16574 Column widths now work properly in HTML.
16575 + If --strict option is specified (and --toc is not), don't include
16576 identifiers in headers, for better Markdown compatibility.
16580 + Separated $(web_dest) and website targets.
16581 + In website, index.txt is now constructed from template index.txt.in.
16582 + Added freebsd target to Markefile. This creates the freebsd Makefile
16583 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
16584 from the repository.
16585 + Added macport target to Makefile. Portfile is built from template
16587 + Removed OSX package targets. (Too many difficulties involving
16588 dependencies on dynamic libraries.)
16589 + More complete INSTALL instructions for all architectures.
16592 + Added a programming demo, pandocwiki.
16596 * Do not forget to close pandoc's ITP. Closes: #391666
16598## pandoc 0.41 (2007-08-19)
16600 [ John MacFarlane ]
16602 * Fixed bugs in HTML reader:
16603 + Skip material at end *only if* `</html>` is present (previously,
16604 only part of the document would be parsed if an error was
16605 found; now a proper error message is given).
16606 + Added new constant eitherBlockOrInline with elements that may
16607 count either as block-level or as inline. Modified isInline and
16608 isBlock to take this into account.
16609 + Modified rawHtmlBlock to accept any tag (even an inline tag):
16610 this is innocuous, because rawHtmlBlock is tried only if a regular
16611 inline element can't be parsed.
16612 + Added a necessary 'try' in definition of 'para'.
16614 * Fixed bug in markdown ordered list parsing. The problem was that
16615 anyOrderedListStart did not check for a space following the
16616 ordered list marker. So in 'A.B. 2007' the parser would be
16617 expecting a list item, but would not find one, causing an error.
16618 Fixed a similar bug in the RST reader. Resolves Issue #22.
16620 * Refactored RST and Markdown readers using parseFromString.
16622 * LaTeX reader will now skip anything after \end{document}.
16624 * Fixed blockquote output in markdown writer: previously, block
16625 quotes in indented contexts would be indented only in the first
16628 * Added note to INSTALL about variations in versions of the xhtml
16629 library that can lead to failed tests (thanks to Leif LeBaron).
16631## pandoc 0.4 (2007-01-16)
16633 [ John MacFarlane ]
16635 * Added two new output formats: groff man pages and ConTeXt. By
16636 default, output files with extensions ".ctx" and ".context" are
16637 assumed to be ConTeXt, and output files with single-digit extensions
16638 are assumed to be man pages.
16640 * Enhanced ordered lists (documented in README, under Lists):
16641 + The OrderedList block element now stores information about
16642 list number style, list number delimiter, and starting number.
16643 + The readers parse this information when possible.
16644 + The writers use this information to style ordered lists.
16645 + The enhancement can be disabled using the --strict option.
16647 * Added support for tables (with a new Table block element). Two kinds
16648 of tables are supported: a simple table with one-line rows, and a
16649 more complex variety with multiline rows. All output formats are
16650 supported, but only markdown tables are parsed at the moment. The
16651 syntax is documented in README.
16653 * Added support for definition lists (with a new DefinitionList block
16654 element). All output and input formats are supported. The syntax is
16655 documented in README.
16657 * Added support for superscripts and subscripts (with new Superscript
16658 and Subscript inline elements). All input and output
16659 formats. The syntax is documented in README.
16661 * Added support for strikeout (with a new Strikeout inline element).
16662 All input and output formats are supported. Thanks to Bradley Kuhn,
16663 who contributed a patch. The syntax is documented in README. Resolves
16666 * Added a --toc|--table-of-contents option. This causes an automatically
16667 generated table of contents (or an instruction that creates one) to
16668 be inserted at the beginning of the document. Not supported in S5,
16669 DocBook, or man page writers.
16671 * Modified the -m|--asciimathml option:
16673 + If an optional URL argument is provided, a link is inserted
16674 instead of the contents of the ASCIIMathML.js script.
16675 + Nothing is inserted unless the document actually contains
16678 * Removed Blank block element as unnecessary.
16680 * Removed Key and Note blocks from the Pandoc data structure. All
16681 links are now stored as explicit links, and note contents are
16682 stored with the (inline) notes.
16684 + All link Targets are now explicit (URL, title) pairs; there
16685 is no longer a 'Ref' target.
16686 + Markdown and RST parsers now need to extract data from key and
16687 note blocks and insert them into the relevant inline elements.
16688 Other parsers have been simplified, since there is no longer any need
16689 to construct separate key and note blocks.
16690 + Markdown, RST, and HTML writers need to construct lists of
16691 notes; Markdown and RST writers need to construct lists of link
16692 references (when the --reference-links option is specified); and
16693 the RST writer needs to construct a list of image substitution
16694 references. All writers have been rewritten to use the State monad
16695 when state is required.
16696 + Several functions (generateReference, keyTable,
16697 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
16698 used by them) have been removed from Text.Pandoc.Shared, since
16699 they are no longer needed. New functions and data structures
16700 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
16701 added. The functions inTags, selfClosingTag, inTagsSimple, and
16702 inTagsIndented have been moved to the DocBook writer, since that
16703 is now the only module that uses them. NoteTable is now exported
16704 in Text.Pandoc.Shared.
16705 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
16706 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
16707 + Added writerNotes and writerReferenceLinks to WriterOptions.
16709 * Added Text.Pandoc module that exports basic readers, writers,
16710 definitions, and utility functions. This should export everything
16711 needed for most uses of Pandoc libraries. The haddock documentation
16712 includes a short example program.
16714 * Text.Pandoc.ASCIIMathML is no longer an exported module.
16716 * Added Text.Pandoc.Blocks module to help in printing markdown
16717 and RST tables. This module provides functions for working with
16718 fixed-width blocks of text--e.g., placing them side by side, as
16721 * Refactored to avoid reliance on Haskell's Text.Regex library, which
16722 (a) is slow, and (b) does not properly handle unicode. This fixed
16723 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
16725 + Replaced 'gsub' with a general list function 'substitute'
16726 that does not rely on Text.Regex.
16727 + Rewrote extractTagType in HTML reader so that it doesn't use
16729 + In Markdown reader, replaced email regex test with a custom email
16730 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
16731 with a custom function isSelfClosingTag.
16732 + Modified Docbook writer so that it doesn't rely on Text.Regex for
16733 detecting 'mailto' links.
16734 + Removed escapePreservingRegex and reamped entity-handling
16735 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
16736 avoid reliance on Text.Regex (see below on character reference
16739 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
16741 * Changed handling of XML entities. Entities are now parsed (and unicode
16742 characters returned) in the Markdown and HTML readers, rather than being
16743 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
16744 instead of entities for characters above 128. This makes the HTML and
16745 DocBook output much more readable and more easily editable.
16747 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
16748 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
16749 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
16750 Moved both functions to Text.Pandoc.Writers.Docbook.
16751 + Added characterReference parser to Text.Pandoc.CharacterReferences.
16752 This parses a string and return a unicode character.
16753 + Rewrote decodeCharacterReferences to use the new parser instead of
16755 + Added new charRef parser for Markdown and HTML, which replaces the
16756 old 'entity' parser. Added '&' as a special character in Markdown reader.
16757 + Modified HTML and Markdown readers to call decodeEntities on all raw
16758 strings (e.g. authors, dates, link titles), to ensure that no
16759 unprocessed entities are included in the native representation of
16760 the document. (In the HTML reader, most of this work is done by a
16761 change in extractAttributeName.)
16762 + In XML and Markdown output, escape unicode nonbreaking space as ' ',
16763 since a unicode non-breaking space is impossible to distinguish visually
16764 from a regular space. (Resolves Issue #3.)
16765 + Removed encodeEntitiesNumerical.
16766 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
16767 slight performance boost over the old association list.
16768 + Removed unneeded decodeEntities from 'str' parser in HTML and
16771 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
16772 fromUTF8, for clarity.
16774 * Replaced old haskell98 module names replaced by hierarchical module
16775 names, e.g. List by Data.List. Removed haskell98 from dependencies
16776 in pandoc.cabal, and added mtl (needed for state monad). Substituted
16779 * Refactored and cleaned up character escaping in writers, using
16780 backslashEscapes and escapeStringUsing functions.
16782 * Instead of adding `\n\n` to the end of an input string in Main.hs,
16783 this is now done in the readers. This makes the libraries behave
16784 the way you'd expect from the pandoc program. Resolves Issue #10.
16786 * URLs and email addresses in autolinks are now typeset as Code.
16788 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
16789 doesn't display the whole output unless there's a line ending.
16791 * Major code cleanup in all modules, for greater consistency, concision,
16796 + Fixed several bugs (extractTagType, attribute parsing).
16797 + Remove Null blocks in lists of blocks when possible.
16798 + Allow HTML comments as raw HTML inline.
16802 + Ordered list items may no longer begin with uppercase letters, or
16803 letters greater than 'n'. (This prevents first initials and page
16804 reference, e.g. 'p. 400', from being parsed as beginning lists.)
16805 Also, numbers beginning list items may no longer end with ')',
16806 which is now allowed only after letters. Note: These changes
16807 may cause documents to be parsed differently. Users should take
16809 + Changed autoLink parsing to conform better to Markdown.pl's
16810 behavior. `<google.com>` is not treated as a link, but
16811 `<http://google.com>`, `<ftp://google.com>`, and
16812 `<mailto:google@google.com>` are.
16813 + Cleaned up handling of embedded quotes in link titles. Now these are
16814 stored as a '"' character, not as '"'.
16815 + Use lookAhead parser for the 'first pass' (looking for reference keys),
16816 instead of parsing normally, then using setInput to reset input. This
16817 yields a slight performance boost.
16818 + Fixed several bugs in smart quote recognition.
16819 + Fixed bug in indentSpaces (which didn't properly handle
16820 cases with mixed spaces and tabs).
16821 + Consolidated 'text', 'special', and 'inline' into 'inline'.
16822 + Fixed bug which allowed URL and title to be separated by multiple blank
16823 lines in links and reference keys. They can be on separate lines but
16824 can't have blank lines between them.
16825 + Correctly handle bracketed text inside inline footnotes and links,using
16826 new function inlinesInBalanced. Resolves Issue #14.
16827 + Fixed bug in footnotes: links in footnotes were not being
16828 processed. Solution: three-stage parse. First, get all the
16829 reference keys and add information to state. Next, get all the
16830 notes and add information to state. (Reference keys may be needed
16831 at this stage.) Finally, parse everything else.
16832 + Replaced named constants like 'emphStart' with literals.
16833 + Removed an extra occurrence of escapedChar in definition of inline.
16837 + Allow the URI in a RST hyperlink target to start on the line
16838 after the reference key.
16839 + Added 'try' in front of 'string', where needed, or used a different
16840 parser. This fixes a bug where ````` would not be correctly parsed as
16842 + Fixed slow performance in parsing inline literals in RST reader. The
16843 problem was that ``#`` was seen by 'inline' as a potential link or image.
16844 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
16846 + Use lookAhead instead of getInput/setInput in RST reader. Removed
16847 unneeded getState call, since lookAhead automatically saves and
16848 restores the parser state.
16849 + Allow hyperlink target URIs to be split over multiple lines, and
16850 to start on the line after the reference. Resolves Issue #7.
16851 + Fixed handling of autolinks.
16855 + Replaced `choice [(try (string ...), ...]` idiom with `oneOfStrings`,
16857 + Added clauses for tilde and caret. Tilde is `\ensuremath{\sim}`, and
16858 caret is `\^{}`, not `\^` as before.
16859 + Added parsing for `\url`.
16860 + Parse `\texttt{}` as code, provided there's nothing fancy inside.
16864 + Modified HTML writer to use the Text.XHtml library. This results
16865 in cleaner, faster code, and it makes it easier to use Pandoc in
16866 other projects, like wikis, which use Text.XHtml. Two functions are
16867 now provided, writeHtml and writeHtmlString: the former outputs an
16868 Html structure, the latter a rendered string. The S5 writer is also
16869 changed, in parallel ways (writeS5, writeS5String).
16870 + The Html header is now written programmatically, so it has been
16871 removed from the 'headers' directory. The S5 header is still
16872 needed, but the doctype and some of the meta declarations have
16873 been removed, since they are written programmatically. This change
16874 introduces a new dependency on the xhtml package.
16875 + Fixed two bugs in email obfuscation involving improper escaping
16876 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
16878 + Fixed another bug in email obfuscation: If the text to be obfuscated
16879 contains an entity, this needs to be decoded before obfuscation.
16880 Thanks to thsutton for the patch. Resolves Issue #15.
16881 + Changed the way the backlink is displayed in HTML footnotes.
16882 Instead of appearing on a line by itself, it now generally
16883 appears on the last line of the note. (Exception: when the
16884 note does not end with a Plain or Para block.) This saves space
16886 + Added automatic unique identifiers to headers:
16887 - The identifier is derived from the header via a scheme
16888 documented in README.
16889 - WriterState now includes a list of header identifiers and a table
16890 of contents in addition to notes.
16891 - The function uniqueIdentifiers creates a list of unique identifiers
16892 from a list of inline lists (e.g. headers).
16893 - This list is part of WriterState and gets consumed by blockToHtml
16894 each time a header is encountered.
16895 + Include CSS for .strikethrough class in header only if strikethrough
16896 text appears in the document.
16897 + If the 'strict' option is specified, elements that do not appear in
16898 standard markdown (like definition lists) are passed through as
16900 + Simplified treatment of autolinks, using pattern matching instead of
16905 + Links in markdown output are now printed as inline links by default,
16906 rather than reference links. A --reference-links option has been added
16907 that forces links to be printed as reference links. Resolves Issue #4.
16908 + Use autolinks when possible. Instead of `[site.com](site.com)`,
16913 + Rewrote to use the State monad. The preamble now includes only those
16914 packages that are actually required, given the document's content.
16915 Thus, for example, if strikeout is not used, ulem is not required.
16916 Modified LaTeXHeader accordingly.
16917 + Modified LaTeX writer to insert `\,` between consecutive quotes.
16918 + Removed unused function tableRowColumnWidths.
16919 + Simplified code for escaping special characters.
16920 + Leave extra blank line after `\maketitle`.
16921 + Include empty `\author{}` when no author specified to avoid LaTeX
16923 + Include fancyvrb code in header only if needed -- that is, only
16924 if there is actually code in a footnote.
16925 + Use `\url{}` for autolinks.
16926 + Include [mathletters] option in ucs package, so that basic unicode
16927 Greek letters will work correctly.
16929 * RST writer: Force blank line before lists, so that sublists will
16930 be handled correctly.
16932 * Docbook writer: Fixed a bug: email links with text, like
16933 [foo](me@bar.baz), were being incorrectly treated as autolinks.
16935 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
16936 Text.Pandoc.Shared.
16938 * Text.Pandoc.Shared:
16940 + Added defaultWriterOptions.
16941 + Added writerTableOfContents to WriterOptions.
16942 + Added writerIgnoreNotes option to WriterOptions. This is needed
16943 for processing header blocks for a table of contents, since notes on
16944 headers should not appear in the TOC.
16945 + Added prettyprinting for native Table format.
16946 + Removed some unneeded imports.
16947 + Moved escape and nullBlock parsers from
16948 Text.ParserCombinators.Pandoc, since the latter is for
16949 general-purpose parsers that don't depend on Text.Pandoc.Definition.
16950 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
16951 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
16952 writer, because HTML writer now uses these in constructing a table
16954 + Added clauses for new inline elements (Strikeout, Superscript,
16955 Subscript) to refsMatch.
16956 + Removed backslashEscape; added new functions escapeStringUsing and
16958 + Moved failIfStrict from markdown reader, since it is now used also
16959 by the HTML reader.
16960 + Added a 'try' to the definition of indentSpaces.
16961 + In definition of 'reference', added check to make sure it's not a note
16963 + Added functions: camelCaseToHyphenated, toRomanNumeral,
16964 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
16965 charsInBalanced', withHorizDisplacement, romanNumeral
16966 + Fixed a bug in the anyLine parser. Previously it would parse an empty
16967 string "", but it should fail on an empty string, or we get an error
16968 when it is used inside "many" combinators.
16969 + Removed followedBy' parser, replacing it with the lookAhead parser from
16971 + Added some needed 'try's before multicharacter parsers, especially in
16973 + Removed the 'try' from the 'end' parser in 'enclosed', so that
16974 'enclosed' behaves like 'option', 'manyTill', etc.
16975 + Added lineClump parser, which parses a raw line block up to and
16976 including any following blank lines.
16977 + Renamed parseFromStr to parseFromString.
16978 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
16979 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
16981 + Removed unneeded 'try' in blanklines.
16982 + Removed endsWith function and rewrote calling functions to use
16983 isSuffixOf instead.
16984 + Added >>~ combinator.
16985 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
16988 * Refactored runtests.pl; added separate tests for tables.
16992 + Added -asxhtml flag to tidy in html2markdown. This will
16993 perhaps help the parser, which expects closing tags.
16994 + Modified markdown2pdf to run pdflatex a second time if --toc or
16995 --table-of-contents was specified; otherwise the table of
16996 contents won't appear.
16997 + Modified markdown2pdf to print a helpful message if the 'ulem'
16998 LaTeX package is required and not found.
17000 * Changes to build process:
17002 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
17004 + Removed cabalize and Pandoc.cabal.in. The repository now contains
17005 pandoc.cabal itself.
17006 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
17007 likes the cabal file to have the same name as the tarball.
17008 + Expanded and revised the package description in pandoc.cabal.
17009 Revised the package synopsis.
17010 + The tarball built by 'make tarball' now contains files built from
17011 templates (including man pages and shell scripts), so pandoc can
17012 be built directly using Cabal tools, without preprocessing.
17013 + Executable binaries are now stripped before installing.
17014 + Man pages are now generated from markdown sources, using pandoc's
17016 + Use HTML version of README (instead of RTF) in Mac OS X installer.
17017 + Instead of testing for the existence of a pandoc symlink in build-exec,
17022 + Updated README and man pages with information on new features.
17023 + Updated INSTALL instructions with some useful clarifications and
17025 + Updated web content.
17027 * Added FreeBSD port.
17033 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
17034 libghc6-xhtml-dev. Removed libghc6-html-dev.
17035 + Suggest texlive-latex-recommended | tetex-extra instead of
17036 tetex-bin. This brings in fancyvrb and unicode support.
17039## pandoc 0.3 (2007-01-05)
17041 [ John MacFarlane ]
17043 * Changes in pandoc options:
17045 + Allow options to follow or precede arguments.
17046 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
17047 + Added '--strict' option.
17048 + Added '-o/--output' option.
17049 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
17050 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
17051 error conditions. This is helpful for writing wrappers.
17052 + Added copyright message to '-v' output, modeled after FSF messages.
17053 + Reformatted usage message so that it doesn't wrap illegibly.
17054 + Removed extra blanks after '-h' and '-D' output.
17056 * Added docbook writer.
17058 * Added implicit setting of default input and output format based
17059 on input and output filename extensions. These defaults are
17060 overridden if explicit input and output formats are specified using
17061 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
17064 * Allow ordered list items to begin with (single) letters, as well
17065 as numbers. The list item marker may now be terminated either by
17066 '.' or by ')'. This extension to standard markdown is documented
17069 * Revised footnote syntax. (See README for full details.) The
17070 '[^1]' format now standard in markdown extensions is supported,
17071 as are inline footnotes with this syntax: `^[My note.]`.
17072 The earlier footnote syntax `^(1)` is no longer supported.
17074 * Improved HTML representation of footnotes. All footnotes
17075 are now auto-numbered and appear in an ordered list at the
17076 end of the HTML document. Since the default appearance is now
17077 acceptable, the old footnote styles have been removed from the
17082 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
17083 These readers ran 'runParser' on processed chunks of text to handle
17084 embedded block lists in lists and quotation blocks. But then
17085 any changes made to the parser state in these chunks was lost,
17086 as the state is local to the parser. So, for example, footnotes
17087 didn't work in quotes or list items. The fix: instead of calling
17088 runParser on some raw text, use setInput to make it the input, then
17089 parse it, then use setInput to restore the input to what it was
17090 before. This is shorter and more elegant, and it fixes the problem.
17091 + Fixed bug in notFollowedBy' combinator (adding 'try' before
17092 'parser'). Adjusted code that uses this combinator accordingly.
17093 + Fixed bug in RTF writer that caused improper indentation on
17094 footnotes occurring in indented blocks like lists.
17095 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
17096 and date are parsed correctly. Everything else in the preamble
17098 + Modified escapedChar in LaTeX reader to allow a `\` at the end of a
17099 line to count as escaped whitespace.
17100 + Modified LaTeX reader to produce inline links rather than reference
17101 links. Otherwise, links in footnotes aren't handled properly.
17102 + Fixed handling of titles in links in Markdown reader, so that
17103 embedded quotation marks are now handled properly.
17104 + Fixed Markdown reader's handling of embedded brackets in links.
17105 + Fixed Markdown reader so that it only parses bracketed material
17106 as a reference link if there is actually a corresponding key.
17107 + Revised inline code parsing in Markdown reader to conform to
17108 markdown standard. Now any number of `s can begin inline code,
17109 which will end with the same number of `s. For example, to
17110 have two backticks as code, write ``` `` ```. Modified Markdown
17111 writer accordingly.
17112 + Fixed bug in text-wrapping routine in Markdown and RST writers.
17113 Now LineBreaks no longer cause wrapping problems.
17114 + Supported hexadecimal numerical entity references as well as
17116 + Fixed bug in Markdown reader's handling of underscores and other
17117 inline formatting markers inside reference labels: for example,
17118 in '[A_B]: /url/a_b', the material between underscores was being
17119 parsed as emphasized inlines.
17120 + Changed Markdown reader's handling of backslash escapes so that
17121 only non-alphanumeric characters can be escaped. Strict mode
17122 follows Markdown.pl in only allowing a select group of punctuation
17123 characters to be escaped.
17124 + Modified HTML reader to skip a newline following a `<br>` tag.
17125 Otherwise the newline will be treated as a space at the beginning
17128 * Made handling of code blocks more consistent. Previously, some
17129 readers allowed trailing newlines, while others stripped them.
17130 Now, all readers strip trailing newlines in code blocks. Writers
17131 insert a newline at the end of code blocks as needed.
17133 * Modified readers to make spacing at the end of output more consistent.
17135 * Minor improvements to LaTeX reader:
17137 + `\thanks` now treated like a footnote.
17138 + Simplified parsing of LaTeX command arguments and options.
17139 commandArgs now returns a list of arguments OR options (in
17140 whatever order they appear). The brackets are included, and
17141 a new stripFirstAndLast function is provided to strip them off
17142 when needed. This fixes a problem in dealing with \newcommand
17143 and \newenvironment.
17145 * Revised RTF writer:
17147 + Default font is now Helvetica.
17148 + An `\f0` is added to each `\pard`, so that font resizing works
17151 * Moved handling of "smart typography" from the writers to the Markdown
17152 and LaTeX readers. This allows great simplification of the writers
17153 and more accurate smart quotes, dashes, and ellipses. DocBook can
17154 now use `<quote>`. The '--smart' option now toggles an option in
17155 the parser state rather than a writer option. Several new kinds
17156 of inline elements have been added: Quoted, Ellipses, Apostrophe,
17159 * Changes in HTML writer:
17161 + Include title block in header even when title is null.
17162 + Made javascript obfuscation of emails even more obfuscatory,
17163 by combining it with entity obfuscation.
17165 * Changed default ASCIIMathML text color to black.
17169 + Added --strip-trailing-cr option to diff in runtests.pl, for
17170 compatibility with Windows.
17171 + Added regression tests with footnotes in quote blocks and lists.
17173 * Makefile changes:
17175 + osx-pkg target creates a Mac OS X package (directory). New osx
17176 directory contains files needed for construction of the package.
17177 + osx-dmg target creates a compressed disk image containing the package.
17178 + win-pkg target creates Windows binary package.
17179 + tarball target creates distribution source tarball.
17180 + website target generates pandoc's website automatically, including
17181 demos. New 'web' directory contains files needed for construction
17182 of the website (which will be created as the 'pandoc' subdirectory
17184 + Makefile checks to see if we're running Windows/Cygwin; if so,
17185 a '.exe' extension is added to each executable in EXECS.
17187 * Removed all wrappers except markdown2pdf and html2markdown.
17189 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
17190 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
17191 option and disables other options.
17193 * Added code to html2markdown that tries to determine the character
17194 encoding of an HTML file, by parsing the "Content-type" meta tag.
17196 + If the encoding can't be determined, then if the content is local,
17197 the local encoding is used; if it comes from a URL, UTF-8 is used
17199 + If input is from STDIN, don't try to determine character encoding.
17200 + Encoding can be specified explicitly using '-e' option.
17202 * Improved warning messages in wrappers:
17204 + Print warning if iconv not available
17205 + More user-friendly error messages in markdown2pdf, when
17210 + Renamed 'Text/Pandoc/HtmlEntities' module to
17211 'Text/Pandoc/Entities'. Also changed function names so as
17212 not to be HTML-specific.
17213 + Refactored SGML string escaping functions from HTML and Docbook
17214 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
17215 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
17217 + Removed splitBySpace and replaced it with a general, polymorphic
17219 + Refactored LaTeX reader for clarity (added isArg function).
17220 + Converted some CR's to LF's in src/ui/default/print.css.
17221 + Added license text to top of source files.
17222 + Added module data for haddock to source files.
17223 + Reformatted code for consistency.
17225 * Rewrote documentation and man pages. Split README into INSTALL
17228 * Split LICENSE into COPYING and COPYRIGHT.
17230 * Removed TODO, since we now maintain ToDo on the wiki.
17232 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
17237 * Revamped build process to conform to debian standards and created
17238 a proper debian package. Closes: #391666.
17240 * Modified build process to support GHC 6.6.
17242 + The package can still be compiled using GHC 6.4.2, though because
17243 of dependencies the "make deb" target works only with GHC 6.6+.
17244 + The script 'cabalize' is used to create an appropriate
17245 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
17248 * Refactored template processing (fillTemplates.pl).
17250 * Modified wrapper scripts to make them more robust and portable.
17251 To avoid code duplication and ensure consistency, wrappers are
17252 generated via a templating system from templates in src/wrappers.
17254 + Wrappers now accept multiple filenames, when appropriate.
17255 + Spaces and tabs allowed in filenames.
17256 + getopts shell builtin is used for portable option parsing.
17257 + Improved html2markdown's web grabber code, making it more robust,
17258 configurable and verbose. Added '-e', '-g' options.
17261## pandoc 0.2 (2006-08-14)
17263 * Fixed unicode/utf-8 translation
17265## pandoc 0.1 (2006-08-14)
17267 * Initial creation of debian package
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list