1# Revision history for pandoc
3## pandoc 2.9.2 (2020-02-15)
5 * Add `csv` as an input format (#6100). The CSV table is converted into a
6 pandoc simple table. A new module Text.Pandoc.Readers.CSV
7 exports `readCSV` [API change].
9 * Introduce new format variants for JATS writer (#6014, Albert Krewinkel):
11 - `jats_archiving` for the "Archiving and Interchange Tag Set",
12 - `jats_publishing` for the "Journal Publishing Tag Set", and
13 - `jats_articleauthoring` for the "Article Authoring Tag Set."
15 The `jats` output format is now an alias for `jats_archiving`.
16 The module Text.Pandoc.Writers.JATS now exports
17 `writeJatsArchiving`, `writeJatsPublishing`, and
18 `writeJatsArticleAuthoring`, as well as the legacy
19 `writeJATS` [API change].
21 * `--defaults`: Support `bibliography` and `csl` fields.
22 Move `addMeta` from Text.Pandoc.App.CommandLineOptions to
23 Text.Pandoc.App.Opt (internal change).
25 * Add timing info for filters in `--verbose` mode (#6112).
26 When verbose mode is specified (verbosity == INFO), print a
27 notice when running a filter and when a filter completes (including
32 + Allow `&` in LaTeX citation keys (#6110).
33 + Improve caption and label parsing.
34 + Don't emit empty Span elements for labels.
35 + Put tables with labels in a surrounding Div.
36 + Resolve `\ref` to table numbers (#6137).
37 + Skip comments in more places where this is needed (#6114).
38 + Allow beamer overlays for all commands in all raw tex (#6043).
39 This affects parsing of raw tex in LaTeX and in Markdown and
41 + Improve parsing of raw environments (#6034). If parsing fails
42 in a raw environment (e.g. due to special characters like unescaped
43 `_`), try again as a verbatim environment, which is less sensitive to
44 special characters. This allows us to capture special environments
45 that change catcodes as raw tex when `-f latex+raw_tex` is used.
49 + Add highlight directive (#6140, Lucas Escot).
53 + Prevent triple `[[[` which confuses MediaWiki (#6119).
57 + Don't parse `data-id` as `id` attribute. And similarly don't
58 parse any `data-X` as `X` when `X` is a valid HTML attribute.
62 + Simplify parsing of sub- and superscripts (#6127, Albert Krewinkel).
63 Speeds up parsing of single-word, markup-less sub- and superscripts.
67 + Group biblatex citations even with prefix and suffix (#5849, Ethan
68 Riley). Previously biblatex citations were only grouped if there
69 was no prefix. This patch allows them to be grouped in subgroups split
70 by prefixes and suffixes, which allows better citation sorting.
71 + Fix regression in handling of columns in beamer slides (#6033).
72 Columns in title slides were causing problems with
74 + Fix duplicate frame classes in LaTeX/Beamer output (#6107).
78 + Fix duplicate attributes on headings (#6062), regression from 2.7.x.
79 + Fix `--number-offset` with HTML TOC. Eventually it would be worth
80 adding a parameter to `makeSections` so this could be done at that
81 level; then it would also affect other writers that construct
83 + reveal.js: restore old behavior for 2D nesting (#6032).
84 The fix to #6030 actually changed behavior, so that the
85 2D nesting occurred at slide level N-1 and N, instead of
86 at the top-level section. This commit restores the v2.7.3 behavior.
87 If there are more than 2 levels, the top level is horizontal
88 and the rest are collapsed to vertical.
89 + reveal.js: ensure that pauses work even in title slides (#5819).
93 + Fix regression: spurious dots in markdown_mmd metadata output (#6133).
97 + Fix regression with Compact style on tight lists (#6072).
98 Starting in 2.8, the docx writer no longer distinguishes between tight
99 and loose lists, since the Compact style is omitted. This is a
100 side-effect of the fix to #5670, as explained in the changelog. This
101 patch fixes the problem by extending the exception currently offered to
102 Plain blocks inside tables to Plain blocks inside list items.
106 + Fix output of table headers (Albert Krewinkel, #6035).
108 * Add Text.Pandoc.Image with unexported svgToPng.
110 * Moved html5Attributes, html4Attributes, rdfaAttributes
111 from T.P.Writers.HTML (where they were unexported) to
112 T.P.XML (where they are now exported).
113 [API change: new exported functions]
114 This allows these sets to be used elsewhere, e.g.
117 * Text.Pandoc.Shared: Export a new function `findM` (#6125,
120 * Text.Pandoc.Logging: Add `RunningFilter`, `FilterCompleted`
121 constructors to LogMessage [API change].
123 * Text.Pandoc.CSV: fix bug in CSV parser; previously an extra blank record
124 would sometimes be inserted at the end.
126 * LaTeX template: add space option to xeCJK with PassOptionsToPackage
127 (#6002). Otherwise we can get a clash with documentclasses that
128 already load the package.
132 + Allow filtering of element lists (#6038, Albert Krewinkel). Lists of
133 Inline and Block elements can now be filtered via `Inlines` and
134 `Blocks` functions, respectively. This is helpful if a filter
135 conversion depends on the order of elements rather than a single
136 element. For example, the following filter can be used to remove all
137 spaces before a citation:
139 function isSpaceBeforeCite (spc, cite)
140 return spc and spc.t == 'Space'
141 and cite and cite.t == 'Cite'
144 function Inlines (inlines)
145 for i = #inlines-1,1,-1 do
146 if isSpaceBeforeCite(inlines[i], inlines[i+1]) then
153 + Add methods `insert`, `remove`, and `sort` to pandoc.List
154 (Albert Krewinkel). Example of use:
156 local numbers = pandoc.List {2, 3, 1}
157 numbers:sort() -- numbers is now {1, 2, 3}
158 + Make `pandoc.List` a callable constructor (Albert Krewinkel).
159 It is now possible to construct a new List via
160 `pandoc.List()` instead of `pandoc.List:new()`.
161 + Add tests for pandoc.List module (Albert Krewinkel).
163 * Text.Pandoc.App.CommandLineOptions: Change `setVariable` to use `Text`
164 instead of `String`. This avoids some unnecessary unpacking.
166 * Use versioned directory for windows release zipfile.
167 Also remove old `make-windows-installer.bat`, superseded by GitHub
168 actions workflow, and modify `pandoc.wxs` for new paths.
170 * Extensive code cleanup (#6141, #6128, #6129, #6130, #6123,
171 #6105, 6102, #6117, #6124, #6115, #6116, #6111, Joseph C. Sible).
173 * Fix hlint warnings (Albert Krewinkel).
175 * Use latest doclayout, doctemplates (#6031). The new version of
176 doclayout fixes a memory leak that affected `--include-in-header` with
177 large files (and possibly other cases involving extremely long lines).
179 * Use latest texmath.
181 * Use latest skylighting and fix test suite (#6086).
183 * sample.lua: Fix typo in descriptive comments (#6136, Caleb Maclennan).
184 Fix typo in error message (#6135).
186 * Add Docker and GH Actions instructions/links to INSTALL.md.
188 * Update filter documentation (#6065). Improve cabal v2 instructions.
189 Remove example using pandoc API directly (we have other
190 docs for that and it was outdated).
194 + Cross-link constructors and types (Albert Krewinkel).
195 Thanks to @bpj for the idea.
196 + Sort pandoc.List methods alphabetically (Albert Krewinkel).
197 + Unify, fix anchors and internal links (#6061, Albert Krewinkel).
198 Links and anchors now follow consistent conventions, like
199 lowercase-only anchor names. This breaks some links to specific
200 sections in the document, but will make it much easier to link
201 documentation in the future.
202 + Clarify filter function execution order (#6059, Albert Krewinkel).
204 * In docs, update URLs and use `https:` wherever possible (#6090,
207## pandoc 2.9.1.1 (2020-01-05)
211 + Fix parsing bug affected indented code after raw HTML (#6009, #5360).
215 + Fix regression in beamer slide structure with certain slide levels
217 + Allow framebreaks for beamer's TOC (Heiko Schlittermann, #6012)
218 + Properly handle unnumbered headings level 4+ (#6018).
219 Previously the `\paragraph` command was used instead of
220 `\paragraph*` for unnumbered level 4 headings.
224 + Fix revealjs slide structure regression with certain slide levels
226 + Add newlines to make slide show output more readable.
230 + Remove extra spaces from table cells (Albert Krewinkel, #6024).
232 * JATS template: Update JATS dtd (Arfon Smith, #6020). Use the archiving
233 and interchange DTD rather than the more restrictive journal publishing
234 DTD (which doesn't permit ext-link as a valid child).
236 * Text.Pandoc.PDF: Fix `runTeXProgram` so that the input source is always
237 overwritten (#6027). Previously it wasn't overridden if the file already
238 existed, which led to bad results on subsequent runs when
239 `pdf-engine-opt=-output-directory=` was used to specify an explicit temp
242 * Text.Pandoc.BCP47: Change `getLang` to handle block-level contents
243 (#6008). Some readers (e.g. RST) will populate the `lang` metadata field
244 with block-level content. `getLang` has been modified to handle this.
245 Previously in these cases the LaTeX writer would not properly set the
246 "main language" of the document.
248 * Fix `test/tables.org` (Albert Krewinkel).
250 * Use HTTPS in copyright message (Felix Yan, #6010)
253## pandoc 2.9.1 (2019-12-23)
255 * Add Jira reader (Albert Krewinkel, #5556).
257 * Jira writer: use jira-wiki-markup renderer (Albert Krewinkel,
258 #5926). The following improvements are included in this change:
260 + non-jira raw blocks are fully discarded instead of showing
262 + table cells can contain multiple blocks;
263 + unnecessary blank lines are removed from the output;
264 + markup chars within words are properly surrounded by
266 + preserving soft linebreaks via `--wrap=preserve` is
269 Note that backslashes are rendered as HTML entities, as there
270 appears no alternative to produce a plain backslash if it is
271 followed by markup. This may cause problems when used with
272 confluence, where rendering seems to fail in this case.
274 * Fix regression with `--number-sections`. Starting with 2.8,
275 `--number-sections` also had the effect of `--section-divs`,
276 even if `--section-divs` was not specified.
278 * Improved table of contents generation in markdown, RTF,
279 commonmark, better handling cases where section headings are
282 * Ensure that later default file values for `variable` replace
285 * HTML reader: Add `nav` to list of block-level tags.
287 * Org reader (Albert Krewinkel):
289 + Wrap named table in Div, using name as id (#5984).
290 Tables which are given a name via `#+NAME:` or `#+LABEL:`
291 are wrapped in an additional Div, with the name set as the
293 + Report parsing errors properly.
294 + Fix parsing problem for colons in headline (#5993).
296 * Text.Pandoc.PDF: Ensure UTF8 when printing source in
297 `--verbose` mode, avoiding an error on platforms that
298 default to something other than UTF-8 (#5997).
300 * Text.Pandoc.Templates: Strip directory before trying to find
301 partial in data files (#5987).
303 * Text.Pandoc.Shared: Improve `makeSections` so we don't get
304 doubled "number" attributes in EPUB output (or anywhere
307 * Added tests for `--toc` and `--section-divs`.
309 * Text.Pandoc.MIME: Added glsl MIME type for WebGL maps (#6000,
312 * MANUAL: A bit clearer explanation for `--base-header-level`.
313 We now say exactly how to translate between the deprecated
314 `--base-header-level` and `--shift-heading-level-by`.
318 + Remove spurious dot in title (#5996, Mauro Bieg).
319 + Replace metadata example with image centering (#6004,
320 Albert Krewinkel). Thanks to @efx for proposing this filter.
323## pandoc 2.9 (2019-12-11)
325 * Text.Pandoc.Templates [API change]
327 + Add Monad wrappers `WithDefaultPartials` and `WithPartials`.
328 Wrapping these around an instance of `PandocMonad` gives
329 us different instances of `TemplateMonad`, with different
330 search behavior in retrieving partials.
331 To compile a template and limit partial search to pandoc's
332 data files, use `runWithDefaultPartials (compileTemplate ...)`.
333 To compile a template and allow partials to be found locally
334 (either on the file system or via HTTP, in the event that
335 the main template has an absolute URL), ue
336 `runWithPartials (compileTemplate ...)`.
337 + Export `getTemplate`, which seeks a template locally,
338 or via HTTP if the template has an absolute URL, falling
339 back to the data files if not found.
340 + Export `compileDefaultTemplate` -- does `getDefaultTemplate`
341 and compiles the result, raising an error on failure.
343 * Text.Pandoc.Class [API change]
345 + Remove `TemplateMonad` instances for `PandocIO` and `PandocPure`.
346 These were too limiting and caused a bug whereby a local
347 partial could be used even when the default template was requested.
348 We now rely on instances provided in the Templates module.
350 * Text.Pandoc.App.OutputSettings: Simplify template retrieval code.
352 * ConTeXt template: Adjust to title formatting (#5949, Denis Maier).
353 Add `\setupinterlinespace` to `title`, `subtitle`, `date` and `author`
354 elements: otherwise longer titles that run over multiple lines will look
355 squashed as `\tfd` etc. won't adapt the line spacing to the font size.
357 * reveal.js template: Add title-slide-attributes variable (#5981,
360 * More informative JSON parse error (#5973).
362 * Use external emojis package (forked from pandoc). Removed emoji data
363 in Text.Pandoc.Emoji.
365 * Fix regression in `makeSections` (#5965).
366 Previously `hierarchicalize` (the ancestor of `makeSections`) would put
367 header attributes on the containing Div. In 2.8 this behavior changed,
368 which broke some tools depending on pandoc. Here we roll back this change,
369 so that attributes again migrate from the header to the containing Div when
370 `makeSections` is run. Note that attributes are retained on the header as
371 well (unlike before) -- with the exception of the `id` attribute, which of
372 course cannot be duplicated.
374 * Fix `--toc-depth` regression in 2.8 (#5967).
376 * Use doctemplates 0.8. Rename template 'filters' as 'pipes'
377 to avoid confusion with the other notion of filter used by pandoc.
379 * Fix README.md so that relative links from manual become absolute.
380 Previously they'd be broken links when viewed on GitHub or Hackage.
381 So we add the base URL for the pandoc manual.
383 * Document display math syntax in manual.
385## pandoc 2.8.1 (2019-12-05)
387 * Add `ascii_identifiers` as a supported extension for `markdown`.
388 This fixes a regression in 2.8.
390 * Fix regression with behavior of `--variable` (#5962).
391 Previously `-Vfoo=1 -Vfoo=2` would produce a list value for foo;
392 with 2.8 it produced just `2`. This commit restores the earlier
395 * Roll back part of of `--shift-heading-level-by` change (#5957).
396 With positive heading shifts, starting in 2.8 this option
397 caused metadata titles to be removed and changed to regular
398 headings. This behavior is incompatible with the old
399 behavior of `--base-header-level` and breaks old workflows,
400 so we have rolled back the change. Note that there is now an
401 asymmetry in positive and negative heading level shifts:
402 With positive shifts, the metadata title stays the same and
403 does not get changed to a heading in the body, while with
404 negative shifts, a heading can be converted into the
407 * Text.Pandoc.Shared: Fix `makeSections` so it doesn't turn
408 column Divs into sections.
410 * HTML writer: add task-list class to ul if all elements are
411 task list items. This will allow styling unordered task
412 lists in a way that omits the bullet.
414 * HTML-based templates: Add CSS to suppress bullet on unordered task lists.
416 * ConTeXt template: Fix `\startcslreferences` and use ConTeXt syntax
417 conventions (#5945, Denis Maier). The old version had a too large
418 a skip at the beginning of the reference list.
420 * LaTeX template: keep the `\author{}` command even if author is not
421 specified (#5961, Yihui Xie). Avoids a LaTeX warning.
423 * Generate Emoji module with TH.
425 + Add Text.Pandoc.Emoji.TH.
426 + Replace long literal list in Text.Pandoc.Emoji with one-liner
427 generating it from `emoji.json` using TH.
428 + Add Makefile target to download `emoji.json`.
429 + Remove `tools/emoji.hs`.
431 * Increase GC allocation space for compilation in cabal.project.
433 * Clean up manual on PDF generation backend options (#5940).
435 * Update release checklist to include code signing step and update
436 Windows release-candidate builds (#5950).
439## pandoc 2.8.0.1 (2019-11-26)
441 * List `pdf` in `--list-output-formats`.
442 * EPUB writer: Fix regression with `--css` (#5937). In 2.8 `--css`
443 would not have an effect on EPUB output.
444 * RST writer: Use grid tables for one-column tables, since
445 simple tables clash with heading syntax in this case (#5936).
446 * Add unexported module Text.Pandoc.Readers.Metadata (see #5914).
447 * Use doctemplates 0.7.2, which adds the `nowrap` filter to
449 * Update default man template using `nowrap` for .TH heading (#5929).
450 * HTML templates: Add support for `toc-title` variable (#5930,
452 * Remove `grffile` (LaTeX package) requirement in MANUAL.txt
453 (#5927, Ian Max Andolina).
454 * Use skylighting 0.8.3.
456## pandoc 2.8 (2019-11-22)
458 * Improvements in templates system (from doctemplates):
460 + Pandoc templates now support a number of new features that
461 have been added in doctemplates: notably, `elseif`, `it`,
462 partials, filters, and syntax to control nesting and reflowing of
463 text. These changes make pandoc more suitable out of the
464 box for generating plain-text documents from data in YAML
465 metadata. It can create enumerated lists and even tabular
467 + We now used templates parameterized on doclayout Doc types.
468 The main impact of this change is better reflowing of
469 content interpolated into templates. Previously,
470 interpolated variables were rendered independently and
471 intepolated as strings, which could lead to overly long
472 lines. Now the templates interpolated as Doc values which
473 may include breaking spaces, and reflowing occurs after
474 template interpolation rather than before.
475 + Remove code from the LaTeX, Docbook, and JATS writers that
476 looked in the template for strings to determine whether it
477 is a book or an article, or whether csquotes is used. This
478 was always kludgy and unreliable.
479 + Change template code to use new API for doctemplates.
481 * Add `--defaults`/`-d` option. This adds the ability to specify
482 a collection of default values for options in a YAML file. For
483 example, one might define a set of defaults for letters,
484 and then do `pandoc -d letter myletter.md -o myletter.pdf`.
485 See the documentation of this feature in MANUAL.txt.
487 * Raise error on unsupported extensions (#4338).
489 * The `--list-extensions[=FORMAT]` option now lists only
490 extensions that affect the given FORMAT.
492 * Add `-L` option as shortcut for `--lua-filter`.
494 * Add `--shift-heading-level-by` option and deprecate
495 `--base-heading-level` (#5615). The new option does
496 everything the old one does, but also allows negative shifts.
497 It also promotes the document metadata (if not null) to a
498 level-1 heading with a +1 shift, and demotes an initial
499 level-1 heading to document metadata with a -1 shift. This
500 supports converting documents that use an initial level-1
501 heading for the document title.
503 * Allow `--metadata-file` to be used repeatedly to include
504 multiple metadata files (Owen McGrath, #5702). Values in
505 files specified first will be overridden by those in later
508 * `--ascii` now uses numerical hex character references (#5718).
510 * Allow PDF output to stdout (#5751). PDF output now behaves like other
511 binary formats: it will not be output to the terminal, but can be
512 sent to stdout using either `-o -` or a pipe. The intermediate format
513 will be determined based on the setting of `--pdf-engine`.
515 * Make some writers sensitive to 'unlisted' class on headings (#1762).
516 If this is present on a heading with the 'unnumbered' class,
517 the heading won't appear in the TOC. This class has no
518 effect if 'unnumbered' is not also specified. This affects HTML-based
519 writers (including slide shows and EPUB), LateX (including beamer), RTF,
520 and PowerPoint. Other writers do not yet support `unlisted`.
522 * Fix `gfm_auto_identifiers` behavior with emojis (#5813). Note that
523 we also now use emoji names for emojis when `ascii_identifiers`
526 * When `--ipynb-output` is used with the default "best" format, strip
527 ANSI escape codes for non-ipynb output (#5633). These cause problems
528 in many formats, including LaTeX.
530 * Don't look for template files remotely for remote input (#5579).
531 Previously pandoc would look for the template at a remote URL when a
532 URL was used for the input file, instead of taking it from the
535 * Allow combining `-Vheader-includes` and `--include-in-header` (#5904).
536 Previously `header-includes` set as a variable would be
537 clobbered by material included using `--include-in-header`.
539 * Change merge behavior for metadata. Previously, if a document
540 contained two YAML metadata blocks that set the same field, the
541 conflict would be resolved in favor of the first. Now it is resolved
542 in favor of the second (due to a change in pandoc-types).
543 This makes the behavior more uniform with other things in pandoc
544 (such as reference links and `--metadata-file`).
546 * Don't add a newline to fragment output if there's already one.
548 * Change exit codes and document in MANUAL.txt:
550 + `PandocAppError` was 1, is now 4
551 + `PandocOptionError` was 2, is now 6
552 + `PandocMakePDFError` was 65, is now 66
554 * Switch to new pandoc-types and use Text instead of String [API change].
555 (Christian Despres, #5884).
559 + Better handling of `<q>` with cite attribute (#5798, Ole Martin Ruud).
560 If a `<q>` tag has a `cite` attribute, we interpret it as a Quoted
561 element with an inner Span.
562 + Add support for HTML `<samp>` element (#5792, Amogh Rathore).
563 The `<samp>` element is parsed as Code with class `sample`.
564 + Add support for HTML `<var>` element (#5799, Amogh Rathore).
565 The `<var>` element is parsed as Code with class `variable`.
566 + Add support for `<mark>` elements (Florian B, #5797). Parse
567 `<mark>` elements from HTML as Spans with class `mark`.
568 + Add support for `<kbd>` elements, parsing them as Span with class
569 `kbd` (Daniele D'Orazio, #5796).
570 + Add support for `<dfn>`, parsing this as a Span with class `dfn`
571 (#5882, Florian Beeres).
575 + Headers: don't parse content over newline boundary (#5714).
576 + Handle inline code more eagerly within lists (Brian Leung, #5627).
577 + Removed some needless lookaheads.
578 + Don't parse footnote body unless extension enabled.
579 + Fix small super/subscript issue (#5878). Superscripts and subscripts
580 cannot contain spaces, but newlines were previously allowed
581 (unintentionally). This led to bad interactions in some cases
582 with footnotes. With this change newlines are also not allowed inside
584 + Use `take1WhileP` for `str`, table row. This yields a small but
585 measurable performance improvement.
590 + Fix parsing of optional arguments that contain braced text (#5740).
591 + Don't try to parse includes if `raw_tex` is set (#5673).
592 When the `raw_tex` extension is set, we just carry through
593 `\usepackage`, `\input`, etc. verbatim as raw LaTeX.
594 + Properly handle optional arguments for macros (#5682).
595 + Fix `\\` in `\parbox` inside a table cell (#5711).
596 + Improve `withRaw` so it can handle cases where the token string is
597 modified by a parser (e.g. accent when it only takes part of a Word
598 token) (#5686). This fixes a bug that caused the ends of
599 certain documents to be dropped.
600 + Handle `\passthrough` macro used by latex writer (#5659).
601 + Support tex `\tt` command (#5654).
602 + Search for image with list of extensions like latex does, if an
603 extension is not provided (#4933).
604 + Handle `\looseness` command values better (#4439).
605 + Add `mbox` and `hbox` handling (Vasily Alferov, #5586).
606 When `+raw_tex` is enabled, these are passed through literally.
607 Otherwise, they are handled in a way that emulates LaTeX's behavior.
608 + Properly handle `\providecommand` and `\provideenvironment` (#5635).
609 They are now ignored if the corresponding command or environment
611 + Support epigraph command in LaTeX Reader (oquechy, #3523).
612 + Ensure that expanded macros in raw LaTeX end with a space
613 if the original did (#4442).
614 + Treat `ly` environment from lilypond as verbatim (Urs Liska, #5671).
615 + Add `tikzcd` to list of special environments (Eigil Rischel).
616 This allows it to be processed by filters, in the same way that
617 one can do for `tikzpicture`.
621 + Better support for `while`.
622 + More improvements in parsing conditionals.
623 + Fix problem parsing comments before macro.
624 + Improve handling of groups.
625 + Better parsing of groups (#5410). We now allow groups
626 where the closing `\\}` isn't at the beginning of a line.
630 + Keep `name` property in `imgAttr` (Brian Leung, #5619).
631 + Fixed parsing of indented blocks (#5753). We were requiring
632 consistent indentation, but this isn't required by RST.
633 + Use title, not admonition-title, for admonition title.
634 This puts RST reader into alignment with docbook reader.
635 + Don't strip final underscore from absolute URI (#5763).
636 + Avoid spurious warning when resolving links to internal anchors
637 ending with `_` (#5763).
641 + Accept `ATTR_LATEX` in block attributes (Albert Krewinkel, #5648).
642 Attributes for LaTeX output are accepted as valid block attributes;
643 however, their values are ignored.
644 + Modify handling of example blocks (Brian Leung, #5717).
645 + Allow the `-i` switch to ignore leading spaces (Brian Leung).
646 + Handle awkwardly-aligned code blocks within lists (Brian Leung).
647 Code blocks in Org lists must have their `#+BEGIN_` aligned in a
648 reasonable way, but their other components can be
649 positioned otherwise.
650 + Fix parsing of empty comment lines (#5856, Albert Krewinkel).
651 Comment lines in Org-mode can be completely empty.
653 * Muse reader (Alexander Krotov):
655 + Add RTL support (#5551).
656 + Do not allow closing asterisks to be followed by `*`.
657 + Do not split series of asterisks into symbols and emphasis (#5821).
658 + Do not terminate emphasis on `*` not followed by space.
662 + Parse markup inside monospace ('') (#5916, Alexander Krotov).
666 + Move style-parsing-specific code to a new unexported module,
667 Text.Pandoc.Readers.Docx.Parse.Styles (Nikolay Yakimov).
668 + Move StyleMap to docx writer (Nikolay Yakimov).
669 + Only use LTR when it is overriding BiDi setting (#5723, Jesse
670 Rosenthal). The left-to-right direction setting in docx is used
671 in the spec only for overriding an explicit right-to-left setting.
672 We only process it when it happens in a paragraph set with BiDi.
673 This is especially important for docs exported from Google Docs,
674 which explicitly (and unnecessarily) set `rtl=0` for every paragraph.
675 + Fix list number resumption for sublists (#4324).
676 The first list item of a sublist should not resume numbering
677 from the number of the last sublist item of the same level,
678 if that sublist was a sublist of a different list item.
682 + Richer parse for admonitions (Michael Peyton Jones, #1234).
683 Instead of parsing admonitions as blockquotes, we now parse
684 them as Divs with an appropriate class. We also handle titles
685 for admonitions as a nested Div with the "title" class.
686 + Fix nesting of chapters and sections (#5864, Florian Klink,
687 Félix Baylac-Jacqué).
688 + Fix bug with entities in mathphrase element (#5885).
692 + Skip optional `{{table}}` template (#5757).
696 + Fix dollar-math parsing to ensure that space is left between a
697 control sequence and a following letter (#5836).
698 + In `untokenize`, ensure space between control sequence
699 and following letter (#5836).
700 + Don't omit macro definitions defined in the preamble.
701 These were formerly omitted (though they still affected macro
702 resolution if `latex_macros` was set). Now they are included in
704 + Parse macro definitions as raw LaTeX when `latex_macros` is
705 disabled. (When `latex_macros` is enabled, we omit them, since
706 pandoc is applying the macros itself.)
707 + Fix a hang/memory leak in certain circumstances (#5845).
708 + Text.Pandoc.Readers.LaTeX.Parsing: add `[Tok]` parameter to
709 `rawLaTeXParser`. This allows us to repeat retokenizing
710 unnecessarily in e.g. `rawLaTeXBlock`.
711 + Add KOMA-Script metadata commands (#5910, Andrew Dunning).
712 Add all titling commands to existing definition for `\dedication`.
713 + Parse `\micro` siunitx unit command (#5921, Jose Luis Duran).
717 + Ensure proper nesting when we have long ordered list markers (#5705).
718 + Make `plain` output plainer (#5741). Previously we used the following
719 Project Gutenberg conventions for plain output: extra space before and
720 after level 1 and 2 headings, all-caps for strong emphasis,
721 underscores surrounding regular emphasis. Now these
722 conventions are used only when the `gutenberg` extension is
723 enabled. By default, Strong and Emph are rendered without
724 special formatting, and headings are rendered without
725 special formatting, and with only one blank line following.
726 To restore the former behavior, use `-t plain+gutenberg`.
727 + Prefer using raw_attribute when enabled (#4311).
728 The `raw_attribute` will be used to mark raw bits, even HTML
729 and LaTeX, and even when `raw_html` and `raw_tex` are
730 enabled, as they are by default. To get the old behavior,
731 disable `raw_attribute` in the writer.
732 + Prefer `pipe_tables` to raw HTML even when we must
733 lose width information (#2608, #4497).
734 + Improve escaping in list items (#5918).
738 + Don't include `+` in code blocks for regular asciidoc.
739 This is asciidoctor-specific.
740 + Handle admonitions (#5690).
744 + Add thin space when needed in LaTeX quote ligatures (#5684).
745 + Use `\hspace{0pt}` for 0-width space U+200B (#5756).
746 + Use `cslreferences` environment for csl bibliographies.
747 This allows bibliographies to receive special formatting.
748 The template now contains definition of this environment (enabled
749 only when CSL is used). It also defines a `\cslhangindent` length.
750 This is set to 2em by default when the bibliography style specifies
751 a hanging indent. To override the length, you can use e.g.
752 `\setlength{\cslhangindent}{7em}` in header-includes.
753 See jgm/pandoc-citeproc#410.
754 + Strip off `{}` around locator for biblatex/natbib output (#5722).
755 + Fix line breaks at start of paragraph (#3324).
756 Previously we just omitted these. Now we render them
757 using `\hfill\break` instead of `\\`. This is a revision
758 of a PR by @sabine (#5591) who should be credited with the idea.
759 + We no longer look in the template or header-includes to see if a
760 book or article documentclass is used, or to see whether the
761 `csquotes` package is used. To use `csquotes` for LaTeX, set
762 `csquotes` in your variables or metadata. To specify a book
763 style, use the `documentclass` variable or
764 `--top-level-division`.
765 + Fix horizontal rule (#5801). We change to use 0.5pt rather than
766 `\linethickness`, which apparently only ever worked "by accident"
767 and no longer works with recent updates to texlive.
771 + Add option to include source files in ConTeXt PDFs (Tristan
772 Stenner, #5578). The metadata field or variable
773 (`includesource`) can be set to attach the source documents
774 to the resulting PDF.
775 + Customizable type of PDF/A for the ConTeXt writer (Karl
776 Pettersson, #5608). The `pdfa` variable may now be set in metadata.
777 Also updated color profile settings in accordance with ConTeXt wiki,
778 and made ICC profile and output intent for PDF/A customizable
779 using `pdfaiccprofile` and `pdfaintent`.
780 + Unit tests: adjust code property to avoid an irrelevant
781 failure involving inline code with two consecutive newlines.
782 + Set `csl-hanging-indent` variable if needed.
783 + Use special environment for CSL references.
784 + Use braces, not start/stop, for inline language tags.
785 This prevents unwanted gobbling of spaces.
789 + Use numeric character references with `--ascii` (#5718).
790 Previously we used named character references with html5 output.
791 But these aren't valid XML, and we aim to produce html5 that is
792 also valid XHTML (polyglot markup). (This is also needed for epub3.)
793 + Ensure that line numbers in code blocks get id-prefix (#5650).
794 + Ensure TeX formulas are rendered correctly (Philip Pesca,
795 #5658). The web service passed in to `--webtex` may render
796 formulas using inline or display style by default.
797 Prefixing formulas with the appropriate command ensures
798 they are rendered correctly.
799 + Render inline formulas correctly with `--webtex` (Philip
800 Pesca, #5655). We add `\textstyle` to the beginning of the
801 formula to ensure it will be rendered in inline style.
802 + Pass through `aria-` attributes to HTML5 (#5642).
803 + Render a Quoted element with an inner Span with
804 `cite` attribute using a `<q>` tag (#5798, Ole Martin Ruud).
805 + Render a Span with class `mark` using the `<mark>` element
806 (Florian Beeres, #5797).
807 + Render Span with class `dfn` using `<dfn>` element
808 (Florian Beeres, #5882).
809 + Render Span with class `kbd` using `<kbd>` element (Daniele
811 + Render Code with class `variable` using `<var>` element
812 (Amogh Rathore, #5799).
813 + Render Code with class `sample` using `<samp>` element
814 (Amogh Rathore, #5799).
818 + Improve splitting into chapters (#5761), using `makeSection`.
819 + Avoid issuing warning multiple times when title not set (see #5760).
820 + Use svg tag wrapper for cover image (#5638). In addition, the
821 code generating the image has been moved to the template, to make it
822 more customizable. NOTE: Those who use custom EPUB
823 templates will need to adjust their templates, adding the
824 code to generate the cover image. (Previously this was just
825 inserted into 'body'.)
826 + Improve toChapters, making it work better if there are Divs
828 + Add support for EPUB2 covers (blmage, #3992).
829 + Do not override existing "fileN" medias when writing to EPUB format
831 + Ensure that `lang` variable is set on all chapters (so that it
832 will add an `xml:lang` attribute on the `html` element).
836 + Removed remnants of `admonition-title`.
837 + Fix handling of `:align:` on figures and images (#4420).
838 When the image has the `align-right` (etc.) class, we now use
839 an `:align:` attribute.
840 + Improve spacing for tables with no width information (#5899).
841 If a simple table would be too wide, we use a grid table.
842 + Fix backslash escaping after strings (Albert Krewinkel, #5906).
843 The check whether a complex inline element following a string must
844 be escaped, now depends on the last character of the string instead
846 + Ensure there's a blank line before tables (#5898).
850 + Handle mixed lists without HTML fallback (#5107).
854 + Fix multiline table (Zihang Chen, #5683).
858 + Add RTL support (Alexander Krotov, #5551).
862 + Suppress non-absolute link URLs (#5770). Absolute URLs are
863 still printed in parentheses following the link text, but relative
864 URLs are suppressed (just as internal links starting with '#'
866 + Improved definition list term output. Now we boldface code but
867 not other things. This matches the most common style in man pages
868 (particularly option lists).
872 + Use `.LP` instead of `.PP` for line block (#5588).
873 + Use boldface for definition terms in DefinitionLists.
877 + Do not emit empty `<fn-group>` (Mauro Bieg, #5595).
878 + Update template to v1.1dtd (#5632, Arfon Smith).
879 + Update `data/jats.csl` to avoid commas between editor
880 name-part elements. (#5629)
881 + Add `abstract` to template (Mauro Bieg).
885 + Don't strip hash from internal links (#5922).
889 + Remove escapeStringForJira for code blocks (Jan-Otto Kröpke).
890 + Remove extraneous newline after single-line block quotes
891 (#5858, Albert Krewinkel).
892 + Improve escaping of special characters, using backslash escapes
893 instead of HTML entities (#5858, Albert Krewinkel).
895 * OpenDocument writer:
897 + Avoid duplicate attributes (#4634). We use the innermost
898 attribute in nested cases.
899 + If `native_numbering` extension is set, use native OpenDocument
900 enumeration for figures and tables (Nils Carlson).
901 + Place caption before table (#5681, Dmitry Pogodin).
905 + Add a test for MathML formulas in ODT documents (blmage).
906 + Improve the parsing of frames in ODT documents (blmage).
910 + Make handling of styles more robust in localized versions
911 of Word (Nikolay Yakimov, #5523, #5052, #5074). We now use
912 style names, not ids, for assigning semantic meaning, since
913 the ids can change depending on the locale. Style name
914 comparisons are case-insensitive, since those are
915 case-insensitive in Word. Since docx style names can have
916 spaces in them, and pandoc-markdown classes can't, anywhere
917 when style name is used as a class name, spaces are
918 replaced with ASCII dashes `-`. Code styles, i.e. "Source
919 Code" and "Verbatim Char" now honor style inheritance. Docx
920 Reader now honours "Compact" style (used in
921 Pandoc-generated docx). The side-effect is that "Compact"
922 style no longer shows up in docx+styles output. Styles
923 inherited from "Compact" will still show up.
924 + Re-use Readers.Docx.Parse for StyleMap (#5766, Nikolay Yakimov).
925 + Internal improvements and code simplification (Nikolay Yakimov).
926 + Preserve built-in styles in DOCX with custom style (Ben Steinberg,
927 #5670). This change prevents custom styles on divs and spans
928 from overriding styles on certain elements inside them, like
929 headings, blockquotes, and links. On those elements, the
930 "native" style is required for the element to display correctly.
931 This change also allows nesting of custom styles; in order to do so,
932 it removes the default "Compact" style applied to Plain blocks,
933 except when inside a table.
934 + Add `proofState` to list of elements carried over from
935 settings.xml in the reference.docx (Krystof Beuermann, #5703).
936 + Change order of `ilvl` and `numId` in `document.xml` (Agustín
937 Martín Barbero, #5645). Also, make list para properties go first.
938 This reordering of properties shouldn't be necessary but
939 it seems Word Online does not understand the docx correctly otherwise.
943 + Code formatting is now context dependent (Jeroen de Haas, #5573).
944 This commit alters the way in which the Powerpoint writer treats
945 inline code and code blocks. Inline code is now formatted at
946 the same size as the surrounding text. Code blocks are now given
947 a margin and font size according to their level.
948 Furthermore this commit allows changing the font with which code is
949 formatted via the `monofont` option.
950 + Start numbering at appopriate numbers (Jesse Rosenthal, #5709).
951 Starting numbers for ordered lists were previously ignored. Now
952 we specify the number if it is something other than 1.
954 * Text.Pandoc.Parsing:
956 + Add `manyChar`, `many1Char`, `manyTillChar`, `many1TillChar`,
957 `many1Till`, `manyUntil`, `mantyUntilChar`: these are like their
958 unsuffixed counterparts but pack some or all of their output
959 (Christian Despres, #5884).
960 + Add `stateAllowLineBreaks` to `ParserState` [API change].
961 + Fix inline parsing in grid table cells (#5708).
962 + Change type of `setLastStrPos` so it takes a `Maybe SourcePos`
963 rather than a `SourcePos` [API change].
964 + Make `parseFromString'` and `gridTableWith` and
965 `gridTableWith'` polymorphic in the parser state,
966 constraining it with `HasLastStrPosition` [API change].
967 + `parseFromString'`: reset `stateLastStrPos` to `Nothing` before parse.
968 + Rename takeWhileP -> take1WhileP and clean it up.
969 (It doesn't match the empty sequence.)
973 + For PDFs via HTML, ensure temp file is deleted even if the pdf
974 program is not found (#5720).
975 + Better detection of a Cygwin environment (#5451).
976 + Don't assume tex log file is UTF8-encoded (#5872).
977 Fall back to latin1 if it can't be read as UTF-8.
979 * Text.Pandoc.Extensions:
981 + Export new function `getAllExtensions`, which returns the
982 extensions that affect a given format (whether enabled by default
983 or not) [API change].
984 + Change type of `parseFormatSpec` from
985 `Either ParseError (String, Extensions -> Extensions)`
986 to `Either ParseError (String, [Extension], [Extension])`
988 + Add `Ext_gutenberg` constructor to `Extension` [API change].
989 + Add `Ext_native_numbering` constructor to `Extension` [API change]
992 * Text.Pandoc.Readers, Text.Pandoc.Writers:
994 + Change type of `getReader` and `getWriter` so they return
995 a value in the PandocMonad instance rather than an Either
996 [API change]. Exceptions for unknown formats and unsupported
997 extensions are now raised by these functions.
1001 + Change `optMetadataFile` type from `Maybe FilePath` to `[FilePath]`
1002 (Owen McGrath, #5702) [API change].
1004 * Text.Pandoc.Logging:
1006 + Add `CouldNotDeduceFormat` constructor to `LogMessage` [API change].
1007 Issue this warning when we're falling back to markdown or
1008 html because we don't recognize the extension of the input or
1010 + Clarify warning for missing title (#5760).
1011 + Add `UnusualConversion` constructor to `LogMessage` [API change]
1012 (Mauro Bieg, #5736). Emit warning on `-f latex -o out.pdf`.
1016 + Improve function documentation (Albert Krewkinkel).
1017 + Traverse nested blocks and inlines in correct order (Albert
1018 Krewinkel, #5667). Traversal methods are updated to use the new
1019 Walk module so that sequences with nested Inline (or Block) elements
1020 are traversed in the order in which they appear in the linearized
1022 + New unexported module `Text.Pandoc.Lua.Walk` (Albert Krewinkel).
1023 Lua filters must be able to traverse sequences of AST
1024 elements and to replace elements by splicing sequences back
1025 in their place. Special `Walkable` instances can be used for
1026 this; those are provided in a new module
1027 `Text.Pandoc.Lua.Walk`.
1028 + `Attr` values can now be given as normal Lua tables (Albert
1029 Krewinkel, #5744). This can be used as a convenient alternative
1030 to constructing `Attr` values with `pandoc.Attr`. Identifiers
1031 are taken from the `id` field, classes must be given as
1032 space separated words in the `class` field. All remaining fields
1033 are included as attributes. With this change, the following lines
1034 now create equal elements:
1036 pandoc.Span('test', {id = 'test', class = 'a b', check = 1})
1037 pandoc.Span('test', pandoc.Attr('test', {'a','b'}, {check = 1}))
1039 This also works when using the *attr* setter:
1041 local span = pandoc.Span 'text'
1042 span.attr = {id = 'test', class = 'a b', check = 1}
1044 Furthermore, the *attributes* field of AST elements can now be a
1045 plain key-value table even when using the `attributes` accessor:
1047 local span = pandoc.Span 'test'
1048 span.attributes = {check = 1} -- works as expected now
1050 + Export `make_sections`, remove `hierarchicalize`. Lua filters that
1051 use `hierarchicalize` will need to be rewritten to use
1053 + Add a `clone()` method to all AST elements (Albert Krewinkel, #5568).
1054 + Fix Lua function names in pandoc.system (niszet). Change
1055 `get_current_directory` to `get_working_directory` and
1056 `with_temp_directory` to `with_temporary_directory`, to
1057 conform to the manual.
1059 * Text.Pandoc.Error:
1061 + Add constructors `PandocUnknownReaderError`,
1062 `PandocUnknownWriterError`, `PandocUnsupportedExtensionError`.
1064 + Better message for `PandocShouldNeverHappenError`.
1065 + Better message for `PandocTemplateError`.
1067 * Text.Pandoc.Emoji:
1069 + Update emoji list (#5666). Done using new `tools/emojis.hs`,
1070 which uses the list from the gem GitHub uses. Future updates
1071 can be done with this tool.
1075 + Pass value of `--dpi` to `rsvg-convert` when converting SVG to PDF
1076 in the process of creating a PDF (#5721).
1078 * Text.Pandoc.Shared:
1080 + Replace `Element` and `makeHierarchical` with `makeSections`.
1081 Now that we have Divs, we can use them to represent the
1082 structure of sections, and we don't need a special Element type.
1083 `makeSections` reorganizes a block list, adding Divs with class
1084 `section` around sections, and adding numbering if needed.
1085 This change also fixes some longstanding issues recognizing section
1086 structure when the document contains Divs (#3057, see also #997).
1087 + Remove `Element` type [API change]
1088 + Remove `makeHierarchicalize` [API change]
1089 + Add `makeSections` [API change]
1090 + Export `deLink` [API change]
1091 + Make `filterIpynbOutput` strip ANSI escapes from code in output
1092 for non-ipynb formats, when the default "best" option is used with
1093 `--ipynb-output` (#5633).
1094 + Fix `camelCaseToHyphenated` so it handles `ABCDef` better.
1095 + Improve `isTight` (#5857). If a list has an empty item,
1096 this should not count against its being a tight list.
1097 + Export `htmlSpanLikeElements` [API change] (Daniele D'Orazio, #5796).
1098 This is a mapping of HTML span-like elements that are internally
1099 represented as a Span with a single class.
1100 + Change the implementation of `htmlSpanLikeElements` to retain
1101 classes and attributes (#5882, Florian Beeres).
1103 * Text.Pandoc.Slides: recognize content in Divs when determining
1106 * Text.Pandoc.SelfContained:
1108 + Omit content-type on type attribute for `<style>` (#5725).
1109 It doesn't seem to be valid for HTML5, and as a result Chrome
1110 ignores the style element.
1112 * Text.Pandoc.Pretty has been removed [API change].
1113 We now use the new external doclayout module instead.
1115 * Text.Pandoc.Writers.Shared:
1117 + Remove `metaToJSON`, `metaToJSON'` [API change].
1118 + Modify `addVariablesToContext`, `defField`, `setField`, `getField`,
1119 `resetField` to work with Context rather than JSON values. [API change]
1120 + Export new function `endsWithPlain` [API change].
1121 + Change `gridTables` so it does better at keeping the widths of
1122 columns (#4320) and does better at figuring out column widths
1123 when no widths are given (#5899).
1125 * Text.Pandoc.Options
1127 + Change type of `writerTemplate` to `Maybe Template` instead
1129 + Change To/FromJSON instances for `HTMLMathMethod`, `CiteMethod`,
1130 `ObfuscationMethod`, `TrackChanges`, `WrapOption`,
1131 `TopLevelDivision`, `ReferenceLocation`, `HTMLSlideVariant` (#5790).
1132 In each case we use lowercase (or hyphenated lowercase) for
1133 constructors to line up more closely with command-line option
1134 values. This is a breaking change for those who manually decode or
1135 encode JSON for these data types (e.g. for `ReaderOptions` or
1138 * Text.Pandoc.Filters:
1140 + Add `FromYAML` instance for `Filter`.
1141 + `applyFilters`: Add and apply filters in order (not reversed)
1142 This changes `applyFilters` from Text.Pandoc.Filter so
1143 that it does a left fold rather than a right fold, applying
1144 the filters in the order listed.
1148 + Change `toEntities` to emit numerical hex character references
1151 * Text.Pandoc.Highlighting:
1153 + Add additional listings languages (Wandmalfarbe).
1155 * Text.Pandoc.MediaBag:
1157 + Some of the types using Strings were switched to use FilePath instead
1158 (Christian Despres, #5884).
1160 * Text.Pandoc.Templates:
1162 + Don't import/export `varListToJSON` [API change]. It is removed in
1163 doctemplates >= 0.3.
1164 + Change type of `renderTemplate'` [API change]. Return value is
1165 now Text rather than being polymorphic. This makes room for
1166 upcoming removal of the `TemplateTarget` class from doctemplates.
1168 * Text.Pandoc.App.Opt [API changes]:
1170 + More convenient To/FromJSON instances. Make the field names
1171 like `strip-empty-paragraphs` rather than `optStripEmptyParagraphs`.
1172 Anyone who is using JSON serialization of Opt will need to adjust
1174 + Change `optHighlightStyle` to a `Maybe String` instead of
1175 `Maybe Style`. Do the parsing/loading of themes later, after
1177 + Remove `optBaseHeaderLevel` from `Opt`. We now just use
1178 `optShiftHeadingLevelBy`, to avoid redundancy.
1179 + Change `optShiftHeadingLevel` to `optShiftHeadingLevelBy` to
1181 + Custom FromJSON instance for `LineEnding`, so either `CRLF`
1182 or `crlf` will work.
1183 + Change `optVariables` from `[(String, String)]` to `Context Text`.
1184 + Change `optMetadata` to `Meta`, to allow structured values.
1185 The current behavior of the `--metadata` option stays the same.
1186 + Rename `optReader`, `optWriter` as `optFrom`, `optTo`.
1187 + Add `FromYAML` instances to `Opt` and to all subsidiary types.
1188 + Rename `optMetadataFile` to `optMetadataFiles`.
1189 + Rename `optPDFEngineArgs` to `optPDFEngineOpts`.
1190 + Rename `optWrapText` to `optWrap`.
1191 + Add `IpynbOutput` enumerated type: use this instead of
1192 a string for `optIpynbOutput`.
1193 + Change optInputFiles to a `Maybe [FilePath]` (#5888) [API change].
1194 `Nothing` means: nothing specified.
1195 `Just []` means: an empty list specified (e.g. in defaults).
1196 + List fields in Opt so they aren't reversed (#5881) [API change].
1197 Previously `optIncludeInHeader`, etc. were in reverse order.
1198 + The `sourcefile` variable is now always a list. It used to be
1199 sometimes a string, sometimes a list (when there was more than one).
1203 + default.latex: added code for `cslreferences` environment,
1204 to be used for pandoc-citeproc references. A `csl-hanging-indent`
1205 variable (set automatically if there is a `hanging-ident`
1206 class on the references Div) controls whether contents of this
1207 environment receive a hanging indent.
1208 + default.latex: Add `space` as default option for xeCJK, so that
1209 spaces between words are preserved (#5855, jeongminkim-islab).
1210 This is necessary for Korean.
1211 + default.latex: Remove include of `grffile` (#5848).
1212 This package used to be needed for proper handling of image filenames
1213 containing periods (in addition to the period before the extension).
1214 It no longer works with the latest LaTeX kernel and graphicx,
1215 so we have removed it. Future versions of graphicx will handle
1216 these filenames without the need for `grffile`.
1217 + default.context: add a saner default for page numbers.
1218 Previously they appeared centered at the top of the page;
1219 now we put them centered at the bottom, unless the `pagenumbering`
1221 + default.context: define a start-stop-pair `cslreferences` to
1222 allow for hanging indents in the bibliography (#5875, Denis Maier).
1223 + default.ms: update defaults. Use Palatino font, use slightly
1224 wider interparagraph space, don't indent paragraphs,
1225 and put page numbers on the bottom. This brings ms output
1226 closer to default LaTeX output.
1227 + default.revealjs: add navigationMode (Mauro Bieg, #5657).
1228 + default.muse: handle multiple authors better.
1229 + docbook4, docbook5 templates: add indentation to body.
1230 + HTML-based templates: use `styles.html` partial to avoid
1232 + HTML-based templates: change indentation of styles in template.
1234 * reference.docx (#5820):
1236 + Change Block Text (block quote) style so that the same font
1237 is used as in the body text, and the block text is indented
1239 + All headings now have a uniform color.
1240 + Level-1 headings no longer set `w:themeShade="B5"`.
1241 + Level-2 headings are now 14 point rather than 16 point.
1242 + Level-3 headings are now 12 point rather than 14 point.
1243 + Level-4 headings are italic rather than bold.
1245 * epub.css: Add CSS for hanging-indent div to support pandoc-citeproc's
1246 new hanging indents.
1250 + Repeat ghc-options in all stanzas.
1251 + Remove conditionals for ghc < 8 (Albert Krewinkel, #5693).
1252 + Compile with `-Wcpp-undef` and `-fhide-source-paths` when possible
1254 + Add cabal.project to extra-source-files (Albert Krewinkel).
1255 + Add dependency on skylighting-core (#5729). Even though it shouldn't
1256 be needed, some tools require it.
1257 + Require latest pandoc-types, texmath, skylighting, haddock-library.
1258 + Ensure TemplateHaskell is added to other-extensions when it is
1259 used (Vanessa McHale, #5728).
1260 + Remove `derive_json_via_th` flag; always use TH. This cuts down
1261 on code duplication and reduces the chance for errors. See #4083.
1267 + Remove references to obsolete flag (#5694).
1269 * Benchmarks: fix failure on ipynb.
1271 * Use MathJax 3 (zorkow).
1273 * KaTeX math: respect `classoption=fleqn` variable,
1274 bump KaTeX version to 0.11.1 (#5815, Mauro Bieg).
1276 * Fix redundant constraint compiler warnings (Pete Ryland, #5625).
1278 * Use throwError instead of fail when appropriate.
1280 * Use Prelude.fail to avoid ambiguity with fail from GHC.Base.
1282 * Add `diff-zip.sh` to tools (John MacFarlane, Agustín Martín Barbero).
1283 This is intended to make it easier to test differences in zip
1284 containers, like epub, docx, or odt.
1286 * Add `.gitattributes` (#5747). This ensures that the golden files
1287 in `test/fb2/reader/` don't have newlines converted. This should fix
1288 a test failure on GitHub CI with Windows.
1290 * Reorder options in `--help`.
1292 * Revise code for HsYAML-0.2.0.0 (@vijayphoenix, #5704).
1294 * Remove blank line in code example in Haddocks (Leif Metcalf, #5679).
1296 * Fix trypandoc with `getReader`/`getWriter` changes.
1298 * Allow building pandoc with GHC 8.8.
1300 * linux tarball: add architecture `-amd64` to filename.
1301 Now it will be: `pandoc-VERSION-linux-ARCH.tar.gz`.
1305 + Add section for exit codes.
1306 + Document some pptx limitations in slide show section:
1307 No incremental display (#5689). No pause with `. . .` (#5701).
1308 + reveal.js flags (Mauro Bieg, #5653).
1309 + Document addition of `data-` prefix to unknown attributes in HTML5.
1310 + Link to YAML spec (Mauro Bieg, #5687).
1311 + Fix capitalization of "Linux" (#5859, Marcus Stollsteimer).
1312 + Use a table for exit codes.
1313 + Put all template variable docs into one section.
1314 + Use ATX headers consistently.
1315 + Add fuller documentation of templates (#5779), including
1316 new template syntax, partials, etc.
1317 + Add documentation for the variable `hyperrefoptions` (Wandmalfarbe).
1318 + Clarify when macro definitions are passed as raw latex.
1319 In Markdown input, they are always passed through. In LaTeX, only if
1320 `latex_macros` is disabled.
1321 + Clarify that `--dpi` provides a default and doesn't override
1322 dpi values specified in the images themselves (#5721).
1323 + Document how to use custom writers with `--standalone` (#5866).
1324 + Clarify `--preserve-tabs` default.
1328 + Fix instructions for libicu.
1329 + Add Void Linux instructions (Volodymyr Kozachnyskyi).
1333 + Add information on tests (Agustín Martín Barbero, #5652).
1334 + Add information about command test naming to CONTRIBUTING (Florian B).
1336 * Fix typos in changelog and comments (#5896, Brian Wignall).
1338 * doc/lua-filters.md:
1340 + Fix mistakes in mediabag module docs (#5851, Albert Krewinkel).
1341 + Improve metadata replacement example in lua-filters doc (#5851).
1342 + Mention which Lua version is shipped with pandoc (Albert Krewinkel,
1345## pandoc 2.7.3 (2019-06-11)
1347 * Add `jira` (Atlassian's Jira wiki markup) as output format (#2497,
1350 * Add `tex_math_dollars` to `multimarkdownExtensions` (#5512).
1351 This form is now supported in multimarkdown,
1352 in addition to `tex_math_double_backslash`.
1354 * Fix `--self-contained` so it works when output format has extensions.
1355 Previously if you used `--self-contained` with `html-smart` or
1356 `html+smart`, it wouldn't work.
1358 * Add template variable `curdir` with working directory
1359 from which pandoc is run (#5464).
1361 * Markdown reader: don't create implicit reference for empty header
1364 * Muse reader: allow images inside link descriptions (Alexander Krotov).
1366 * HTML reader: epub related fixes.
1368 + With epub extensions, check for `epub:type` in addition to `type`.
1369 + Fix problem with noteref parsing which caused block-level
1370 content to be eaten with the noteref.
1371 + Rename `pAnyTag` to `pAny`.
1372 + Refactor note resolution.
1373 + Trim definition list terms (Alexander Krotov).
1377 + Add braces when resolving `\DeclareMathOperator`
1378 (#5441). These seem to be needed for xelatex but not pdflatex.
1379 + Allow newlines in `\mintinline`.
1380 + Pass through unknown listings language as class (#5540).
1381 Previously if the language was not in the list of languages supported
1382 by listings, it would not be added as a class, so highlighting
1383 would not be triggered.
1384 + `rawLaTeXInline`: Include trailing `{}`s in raw latex commands (#5439).
1385 This change affects the markdown reader and other readers that allow raw
1386 LaTeX. Previously, trailing `{}` would be included for unknown
1387 commands, but not for known commands. However, they are sometimes used
1388 to avoid a trailing space after the command. The chances that a `{}`
1389 after a LaTeX command is not part of the command are very small.
1391 * MediaWiki reader: handle multiple attributes in table row (#5471,
1394 * Docx reader: Add support for `w:rtl` (#5545). Elements with this
1395 property are put into Span inlines with `dir="rtl"`.
1397 * DocBook reader: Issue `IgnoredElement` warnings.
1399 * Org reader (Albert Krewinkel):
1401 + Fix planning elements in headers level 3 and higher
1402 (#5494). Planning info is now always placed before
1403 the subtree contents. Previously, the planning info was placed after
1404 the content if the header's subtree was converted to a list, which
1405 happens with headers of level 3 and higher per default.
1406 + Omit, but warn about unknown export options. Unknown export
1407 options are properly ignored and omitted from the output.
1408 + Prefer plain symbols over math symbols (#5483).
1409 Symbols like `\alpha` are output plain and unemphasized, not as math.
1410 + Recognize emphasis after TODO/DONE keyword (#5484).
1414 + Skip unknown elements rather than throwing errors (#5560).
1415 Sometimes custom elements are used (e.g. `id` element
1416 inside `author`); previously the reader would halt with an error.
1417 Now it skips the element and issues an `IgnoredElement` warning.
1418 + Parse notes (#5493, Alexander Krotov).
1419 + Internal improvements (Alexander Krotov).
1421 * OpenDocument writer: Roll back automatic figure/table numbering
1422 (#5474). This was added in pandoc 2.7.2, but it makes it impossible
1423 to use pandoc-crossref. So this has been rolled back for now,
1424 until we find a good solution to make this behavior optional
1425 (or a creative way to let pandoc-crossref and this feature
1428 * New module Text.Pandoc.Writers.Jira, exporting `writeJira` [API
1429 change] (Albert Krewinkel).
1433 + Don't include 'landmarks' if there aren't any.
1434 Previously we could get an empty ol element, which caused
1435 validation errors with epubcheck.
1436 + Ensure unique ids for styleesheets in content.opf (#5463).
1437 + Make stylesheet link compatible with kindlegen (#5466,
1438 Eric Schrijver). Pandoc omitted `type="text/css"` from both
1439 `<style>` and `<rel="stylesheet">` elements in all templates, which
1440 is valid according to the spec. However, Amazon’s kindlegen software
1441 relies on this attribute on `<link>` elements when detecting
1442 stylesheets to include.
1446 + Output video and audio elements depending on file
1447 extension of the image path (Mauro Bieg).
1448 + Emit empty alt tag in figures (#5518, Mauro Bieg).
1449 The same text is already in the <figcaption> and
1450 screen-readers would read it twice, see #4737.
1451 + Don't add variation selector if it's already there.
1452 This fixes round-trip failures.
1453 + Prevent gratuitous emojification on iOS (#5469).
1454 iOS chooses to render a number of Unicode entities, including '↩', as
1455 big colorful emoji. This can be defeated by appending Unicode
1456 VARIATION SELECTOR-15'/'VARIATION SELECTOR-16'. So we now append this
1457 character when escaping strings, for both '↩' and '↔'. If other
1458 characters prove problematic, they can simply be added to
1459 `needsVariationSelector`. + Add `class="heading"` to level 7+ Headers
1460 rendered as `<p>` elements (#5457).
1462 * RST writer: treat Span with no attributes as transparent (#5446).
1463 Previously an Emph inside a Span was being treated as
1464 nested markup and ignored. With this patch, the Span
1469 + Include inline code attributes with `--listings` (#5420).
1470 + Don't produce columns environment unless beamer (#5485).
1471 + Fix footnote in image caption. Regression: the fix for #4683 broke
1473 + Don't highlight code in headings (#5574). This causes
1475 + Use `\mbox` to get proper behavior inside `\sout` (#5529).
1477 * EPUB writer: Fix document section assignments (#5546).
1478 For example, introduction should go in bodymatter, not frontmatter, and
1479 epigraph, conclusion, and afterward should go in bodymatter, not
1480 backmatter. For the full list of assignments, see the manual.
1484 + Add backslashes to avoid unwanted interpretation of
1485 definition list terms as other kinds of block (#554).
1486 + Ensure the code fence is long enough (#5519).
1487 Previously too few backticks were used when the code block
1488 contained an indented line of backticks. (Ditto tildes.)
1489 + Handle labels with integer names (Jesse Rosenthal, #5495).
1490 Previously if labels had integer names, it could produce a conflict
1491 with auto-labeled reference links. Now we test for a conflict and
1492 find the next available integer. This involves adding a new state
1493 variable `stPrevRefs` to keep track of refs used in other document
1494 parts when using `--reference-location=block|section`
1496 * Textile writer: fix closing tag for math output (Albert Krewinkel).
1497 Opening and closing tag for math output match now.
1499 * Org writer: always indent src blocks content by 2 spaces (#5440, Albert
1500 Krewinkel). Emacs always uses two spaces when indenting the content of
1501 src blocks, e.g., when exiting a `C-c '` edit-buffer. Pandoc used to
1502 indent contents by the space-equivalent of one tab, but now always uses
1507 + Use `` `+...+` `` form for inline code.
1508 The old `` `a__b__c` `` yields emphasis inside code in asciidoc.
1509 To get a pure literal code span, use `` `+a__b__c+` ``.
1510 + Use proper smart quotes with asciidoctor (#5487).
1511 Asciidoctor has a different format for smart quotes.
1512 + Use doubled ## when necessary for spans (#5566).
1513 + Ensure correct nesting of strong/emph (#5565): strong
1514 must be the outer element.
1518 + Wrap elements with p when needed (#5570). The JATS spec restricts
1519 what elements can go inside `fn` and `list-item`. So we wrap other
1520 elements inside `<p specific-use="wrapper">` when needed.
1521 + Properly handle footnotes (#5511) according to "best practice."
1522 (Group them at the end in `<fn-group>` and use `<xref>` elements
1524 + Fix citations with PMID so they validate (#5481). This includes
1525 an update to data/jats.csl.
1526 + Ensure validity of `<pub-date>` by parsing the date and
1527 extracting year, month, and day, as expected. Also add an
1528 iso-8601-date attribute automatically.
1529 + Don't use `<break>` element for LineBreak. It is only
1530 allowed in a few special contexts, and not in `<p>` elements.
1531 + Don't make `<string-name>` a child of `<string>`, which is illegal.
1535 + Do not wrap note references into `<sup>` and brackets
1536 (Alexander Krotov). Existing FB2 readers, such as FBReader, already
1537 display links with type="note" as a superscript.
1538 + Use genre metadata field (#5478).
1540 * Muse writer: do not escape empty line after `<br>` (Alexander Krotov).
1542 * Add unicode code point in "Missing character" warning (#5538).
1543 If the character isn't in the console font, the message is pretty useless,
1544 so we show the code point for anything non-ASCII.
1546 * Lua: add Version type to simplify comparisons (Albert Krewinkel).
1547 Version specifiers like `PANDOC_VERSION` and `PANDOC_API_VERSION` are
1548 turned into `Version` objects. The objects simplify version-appropriate
1549 comparisons while maintaining backward-compatibility.
1550 A function `pandoc.types.Version` is added as part of the newly
1551 introduced module `pandoc.types`, allowing users to create version
1554 * pandoc lua module (Albert Krewinkel):
1556 - Fix deletion of nonexistent attributes (#5569).
1557 - Better tests for Attr and AttributeList.
1559 * pandoc.mediabag lua module (Albert Krewinkel):
1561 + Add function `delete` for deleting a single item.
1562 + Add function `empty` for removing all entries.
1563 + Add function `items` for iterating over mediabag.
1565 * Text.Pandoc.Class: Fix handling of `file:` URL scheme in
1566 `downloadOrRead` (#5517, Mauro Bieg). Previously `file:/`
1567 URLs were handled wrongly and pandoc attempted to make HTTP
1568 requests, which failed.
1570 * Text.Pandoc.MIME: add `mediaCategory` [API change] (Mauro Bieg).
1572 * Text.Pandoc.Shared:
1574 + Add `onlySimpleTableCells` [API change]
1575 (Mauro Bieg) and use this to consolidate simple-table detection
1576 (#5524). This fixes an inconsistency in the HTML reader, which did not
1577 treat tables with `<p>` inside cells as simple.
1578 + `metaToJSON`: treat digits starting with 0 as a string, not a number
1579 (#5479). This fixes a regression in YAML metadata in pandoc 2.7.2.
1581 * Text.Pandoc.Logging: Add `IgnoredElement` constructor for
1582 `LogMessage`. `SkippedConetnt` doesn't work for some XML-based
1583 readers which don't have access to parsec source positions.
1585 * Text.Pandoc.Asciify: Add Turkish undotted-i (#5433, Mauro Bieg).
1587 * Improve output of Lua tests (#5499, Albert Krewinkel).
1588 This makes use of tasty-lua, a package to write tests in Lua
1589 and integrate the results into Tasty output. Test output becomes
1590 more informative: individual tests and test groups become visible
1591 in test output. Failures are reported with helpful error messages.
1593 * Lua: add `pandoc.system` module (#5468, Albert Krewinkel).
1594 The `system` Lua module provides utility functions to interact with the
1595 operating- and file system. E.g.
1596 `print(pandoc.system.get_current_directory())`
1599 pandoc.system.with_temporary_directory('tikz', function (dir)
1600 -- write and compile a TikZ file with pdflatex
1604 * LaTeX template: Add pdflang to hypersetup if lang is set (#5443).
1606 * beamer template: Fix using Beamer with geometry (#5505, Daniel Maslowski).
1607 Beamer already loads geometry, so we need to use the `\geometry`
1608 command to set geometry options.
1610 * EPUB2/3 templates: Move inline styles to default epub.css (#5466).
1611 NOTE: Those who use a custom CSS stylesheet with EPUB should
1614 code{ white-space: pre-wrap; }
1615 span.smallcaps{ font-variant: small-caps; }
1616 span.underline{ text-decoration: underline; }
1617 q { quotes: "“" "”" "‘" "’"; }
1618 div.column{ display: inline-block; vertical-align: top; width: 50%; }
1620 * reveal.js template:
1622 + Updates for revealjs 3.8.0 (#5435, ebiim).
1623 + Remove reference to head.min.js (#5448, Winnie Hellmann).
1624 NOTE: users will need to update reveal.js to at least 3.8.0
1625 for their presentations generated with this version of pandoc
1630 + Replace `</>` with literal `/` (#5451).
1631 We use forward-slash for a directory separator in tmpDir,
1632 even on Windows (because that's what tex likes). So we
1633 should not put a backslash between the tmpDir and the
1634 filename on Windows. This is harmless enough in normal
1635 Windows setups, but it breaks on Cygwin.
1636 Thanks to @cc2x for noticing and diagnosing the problem.
1637 + Allow use of `-output-directory` in `--pdf-engine-opt` (#5462).
1638 This is currently possible with `mklatex` and `-outdir`, but
1639 was not yet possible with xelatex and `-output-directory`.
1640 + For PDF via ms/pdfroff, make TOC appear at beginning and in
1641 PDF bookmarks (#5553). Previously the TOC appeared at the end
1642 of the document, and was not bookmarked. To keep it at the end,
1643 add `--pdf-engine-opt=--no-toc-relocation` to your command line.
1645 * Fix broken links in documents (#5473, Shim Myeongseob).
1646 Also, use absolute links to pandoc.org when possible, so that
1647 the links can be followed by people viewing these documents
1650 * Improved sample lua tikz filter in lua-filters docs (#5445,
1651 Matthew Doty). There are three changes:
1653 + It only processes elements which begin with `\begin{tikzpicture}`
1654 + It uses pdf2svg instead of imagemagick to preserve fidelity
1655 + The images produced have transparent backgrounds
1659 + Add note about `title-meta`, `author-meta`, `date-meta` (#5486).
1660 + Fix typo (#5489, Christian Krause).
1662 * add test/tables.xwiki to git and pandoc.cabal (#5498, Mauro Bieg).
1664 * Disable missing-home-modules warning in `stack.yaml`.
1665 Otherwise `stack ghci` fails.
1668## pandoc 2.7.2 (2019-04-05)
1670 * Add XWiki writer (#1800, Derek Chen-Becker).
1671 Add `Text.Pandoc.Writers.XWiki`, exporting `writeXWiki` [API change].
1673 * Dokuwiki Reader: parse single curly brace (#5416, Mauro Bieg).
1675 * Vimwiki reader: improve handling of internal links (#5414).
1676 We no longer append `.html` to link targets, and we add a title
1677 `wikilink`. This mirrors behavior of other wiki readers. Generally
1678 the `.html` extension is not wanted. It may be important for output
1679 to HTML in certain circumstances, but it can always be added using a
1680 filter that matches on links with title `wikilink`.
1682 If your workflow requires the current behavior, here is a lua filter
1683 that will add the `.html` extension:
1687 if el.title == 'wikilink' then
1688 el.target = el.target .. ".html"
1695 + Use format `ipynb` for raw cell where no format given.
1696 + Avoid introducing spurious `.0` on integers in metadata.
1698 * Markdown reader: fenced div takes priority over setext header.
1700 * HTML reader: read `data-foo` attribute into `foo` (#5392).
1701 The HTML writer adds the `data-` prefix for HTML5 for nonstandard
1702 attributes. But the attributes are represented in the AST without
1703 the `data-` prefix, so we should strip this when reading HTML.
1705 * LaTeX reader: Improve autolink detection (#5340).
1707 * PowerPoint writer (Jesse Rosenthal):
1709 + Expand builtin reference doc to model all layouts.
1710 The previous built-in reference doc had only title and content
1711 layouts. Add in a section-header slide and a two-content slide, so
1712 users can more easily modify it to build their own templates.
1713 + Always open up in slide view. When editing a
1714 template/reference-doc, the user might be in Master view, but when
1715 producing a slide show, it is assumed that slide view will be
1717 + Remove `handoutsMasterList` from template presentation.xml
1718 + Fix numerous errors in templating (#5402). Previously, some templates
1719 produced by Office 365 (MacOS) would not render with `--reference-doc`
1720 correctly. We now apply correct shapes for content, and build
1721 shape trees correctly.
1722 + Make default placeholder type for template lookup.
1723 + Apply speaker notes to metadata slide if applicable.
1724 + Test for speaker notes after breaking header.
1725 + Correctly handle notes after section-title header.
1726 Previously, if notes came after a section-title header (ie, a level-1
1727 header in a slide-level=2 presentation), they would go on the next
1728 slide. This keeps them on the slide with the header.
1729 + Internal improvements.
1733 + Use format `ipynb` for raw cell where no format given.
1734 According to nbformat docs, this is supposed to render in every
1735 format. We don't do that, but we at least preserve it as a raw
1736 block in markdown, so you can round-trip.
1737 + Consolidate adjacent raw blocks. Sometimes pandoc creates two
1738 HTML blocks, e.g. one for the open tag and one for a close tag.
1739 If these aren't consolidated, only one will show up in output cell.
1740 + Fixed carry-over of nbformat from metadata.
1741 + Preserve `nbformat_minor` if it's given. This helps with round-tripping.
1745 + Avoid inadvertently creating ?` or !` ligatures (#5407).
1746 These are upside down ? and !, resp.
1747 + Fix footnotes in table caption and cells (#5367). This fixes a
1748 bug wherein footnotes appeared in the wrong order, and with
1749 duplicate numbers, when in table captions and cells.
1750 We now use regular `\footnote` commands, even in the table
1751 caption and the minipages containing cells. Apparently
1752 longtable knows how to handle this.
1754 * HTML writer: Don't add data- prefix to RDFa attributes (#5403).
1756 * JATS writer: Ensure that plain strings go inside `<pub-id>` tag (#5397).
1760 + Better rendering of numbers (#5398). If the number is integral,
1761 we render it as an integral not a float.
1762 + Proper rendering of empty map in YAML metadata (#5398). Should
1763 be `{}`, not empty string.
1764 + Properly escape attributes in Markdown writer (#5369).
1765 + Be sure implicit figures work in list contexts (#5368).
1766 Previously they would sometimes not work: e.g., when they
1767 occurred in final paragraphs in lists that were originally
1768 parsed as Plain and converted later using PlainToPara.
1770 * Docx writer: Use `w:br` without attributes for line breaks (#5377).
1771 We previously added the attribute `type="textWrapping"`, but
1772 this causes problems on Word Online.
1774 * LaTeX template (Andrew Dunning):
1776 + Ensure correct heading/table order (#5365). Improve workaround
1777 (#1658) for tables following headings. The new solution works whether
1778 or not the `indent` variable is enabled.
1779 + Remove `subparagraph` variable. The default is now to use run-in
1780 style for level 4 and 5 headings (`\paragraph` and `\subparagraph`).
1781 To get the previous default behavior (where these were formatted as
1782 blocks, like `\subsubsection`), set the `block-headings` variable.
1783 + Add pandoc to PDF metadata (#5388).
1784 + Group graphics-related code (#5389).
1785 + Move `\setstretch` after front matter (#5179). Ensures that
1786 `\maketitle`, `\tableofcontents`, and so forth are not affected by
1787 changes to line spacing.
1789 * Update data/jats.csl to avoid commas between name-part elements
1792 * Add support for golang (`go`) with `--listings` (#5427).
1794 * Text.Pandoc.Shared - improve `metaToJSON` behavior with numbers.
1795 We now do a better job marshalling numbers from MetaString
1796 or MetaInlines into JSON Number.
1798 * Text.Pandoc.Writers.Shared: `metaValueToJSON`: use Number Values for
1799 integers. Pandoc's MetaValue doesn't have a distinguished number type,
1800 so numbers are put in MetaStrings. If the MetaString consists
1801 entirely of digits, we convert it to a Number. We should probably
1802 consider adding a MetaNumber constructor to MetaValue, for better
1803 round-tripping with JSON etc. This change aids round-tripping in
1804 ipynb metadata fields, like `toc_depth`.
1806 * Text.Pandoc.Class: `fetchItem`: don't treat UNC paths as
1807 protocol-relative URLs (#5127). These are paths beginning `//?/UNC/...`.
1809 * Text.Pandoc.ImageSize: Improve `pdfSize` so it handles
1810 a wider range of PDFs (#4322, with help from Richard Davis).
1812 * Text.Pandoc.Pretty: avoid stack overflow by using strict sum (#5401).
1814 * Fix harmless error in file-scope code (#5422).
1818 + Improve 'header' and 'heading' usage (#5423, Andrew
1819 Dunning). The term 'header' was being used where 'heading'
1820 is more appropriate.
1821 + Add paragraph on options affecting markdown in ipynb.
1823 * stack.yaml - remove -Wmissing-home-modules
1824 This seems to cause problems with stack ghci. Remove RTS options.
1826 * Add ghc-options to cabal.project.
1828 * appveyor.yml - use ghc 8.6.4. Fixes segfault issues on Windows (#5037).
1830 * linux build process: Remove clone of pandoc-citeproc (#5366).
1831 It wasn't being used; cabal.project specifies the version to use.
1833## pandoc 2.7.1 (2019-03-14)
1835 * Add tectonic as an option for --pdf-engine (#5345, Cormac Relf).
1836 Runs tectonic on STDIN instead of a temporary .tex file, so that it
1837 looks in the working directory for `\include` and `\input` like the rest
1838 of the engines. Allows overriding the output directory
1839 args with `--pdf-engine-opt=--outdir --pdf-engine-opt="$DIR"`.
1841 * Allow `-o/--output` to be used with `--print-default-data-file`,
1842 `--print-highlighting-style`, `--print-default-template`.
1843 Note that `-o` must occur BEFORE the `--print*` command on the command
1844 line (this is documented, #5357).
1848 + Support `\underline`, `\ul`, `\uline` (#5359, Paul
1849 Tilley). These are parsed as a Span with class `underline`, as
1851 + Ensure that `\Footcite` and `\Footcites` get put in a note.
1855 + Remove sensitivity to `raw_html`, `raw_tex` extensions.
1856 We now include every output format. Pruning is handled by
1858 + Better handling of cell metadata. We now include even complex cell
1859 metadata in the Div's attributes (as JSON, in complex cases, or
1860 as plain strings in simple cases).
1864 + Recurse into native divs for output cell data (#5354).
1865 + Render cell metadata fields from div attributes.
1867 * Docx writer: avoid extra copy of abstractNum and num elements
1868 in numbering.xml. This caused pandoc-produced docx files to
1869 be uneditable using Word Online (#5358).
1871 * Markdown writer: improve handling of raw blocks/inline.
1872 We now emit raw content using `raw_attribute` when no more
1873 direct method is available. Use of `raw_attribute` can be
1874 forced by disabling `raw_html` and `raw_tex`.
1876 * LaTeX writer: Add classes for frontmatter support (#5353, Andrew Dunning)
1877 and remove frontmatter from `scrreprt`.
1881 + Improve readability (#5363, Andrew Dunning).
1882 + Robust section numbering removal (#5351, Andrew Dunning).
1883 Ensures that section numbering does not reappear with custom
1884 section levels. See <https://tex.stackexchange.com/questions/473653/>.
1885 + Better handling of front/main/backmatter (#5348).
1886 In pandoc 2.7 we assumed that every class with chapters would accept
1887 `\frontmatter`, `\mainmatter`, and `\backmatter`. This is not so (e.g.
1888 report does not). So pandoc 2.7 breaks on report class by including an
1889 unsupported command. Instead of the `book-class` variable, we use two
1890 variables, `has-chapters` and `has-frontmatter`, and set these
1891 intelligently in the writer.
1893 * Text.Pandoc.Shared: Improve `filterIpynbOutput`. Ensure that
1894 images are prioritized over text. `best` should include everything
1897 * Tests.Old: specify `--data-dir=../data` to ensure tests can find
1898 data files even if they haven't been installed. Remove old
1899 `pandoc_datadir` environment variable, which hasn't done anything for a
1902 * MANUAL.txt: Add recommendation to use `raw_attribute` with ipynb (#5354).
1904 * Use cmark-gfm-hs 0.1.8 (note that 0.1.7 is buggy).
1906 * Use latest pandoc-citeproc, texmath.
1909## pandoc 2.7 (2019-03-03)
1911 * Use XDG data directory for user data directory (#3582). Instead of
1912 `$HOME/.pandoc`, the default user data directory is now
1913 `$XDG_DATA_HOME/pandoc`, where `XDG_DATA_HOME` defaults to
1914 `$HOME/.local/share` but can be overridden by setting the
1915 environment variable. If this directory is missing, then
1916 `$HOME/.pandoc` is searched instead, for backwards compatibility.
1917 However, we recommend moving local pandoc data files from
1918 `$HOME/.pandoc` to `$HOME/.local/share/pandoc`. On Windows the
1919 default user data directory remains the same.
1921 * Slide show formats behavior change: content under headers
1922 less than slide level is no longer ignored, but included in
1923 the title slide (for HTML slide shows) or in a slide after
1924 the title slide (for beamer). This change makes possible
1925 2D reveal.js slideshows with content in the top slide on
1926 each stack (#4317, #5237).
1928 * Add command line option `--ipynb-output=all|none|best` (#5339).
1929 Output cells in ipynb notebooks often contain several different
1930 versions of an output, with different MIME types, e.g. an HTML
1931 table and a plain-text fallback. Specifying `--ipynb-output=best`
1932 (the default) ensures that the best version for the output format
1933 is used. `all` includes all versions, and `none` suppresses them
1934 all, leaving output cells empty.
1936 * `asciidoctor` is now an output format separate from `asciidoc`,
1937 to accommodate some minor implementation-specific differences
1938 (currently just in the treatment of display math).
1940 * Add `latexmk` as an option for `--pdf-engine` (#3195).
1941 Note that you can use `--pdf-engine-opt=-outdir=bar` to specify
1942 a persistent temp directory.
1946 + Improve tight/loose list handling (#5285). Previously the
1947 algorithm allowed list items with a mix of Para and Plain, which
1949 + Add newline when parsing blocks in YAML (#5271). Otherwise last
1950 block gets parsed as a Plain rather than a Para. This is a
1951 regression in pandoc 2.x. This patch restores pandoc 1.19
1953 + Make `yamlToMeta` respect extensions (#5272, Mauro Bieg).
1954 This adds a `ReaderOptions` parameter to `yamlToMeta` [API change].
1955 + Fix bug parsing fenced code blocks (#5304). Previously parsing
1956 would break if the code block contained a string of backticks of
1957 sufficient length followed by something other than end of line.
1959 * LaTeX reader: don't let `\egroup` match `{`. `braced` now actually
1960 requires nested braces. Otherwise some legitimate command and
1961 environment definitions can break.
1963 * Docx reader (Jesse Rosenthal):
1965 + Rename `getDocumentPath` as `getDocumentXmlPath`.
1966 + Use field notation for setting `ReaderEnv`.
1967 + Figure out `document.xml` path once at the beginning of parsing, and
1968 add it to the environment, so we can avoid repeated lookups.
1969 + Dynamically determine main document xml path (#5277).
1970 The desktop Word program places the main document file in
1971 `word/document.xml`, but the online word places it in
1972 `word/document2.xml`. This file path is actually stated in the root
1973 `_rels/.rels` file, in the `Relationship` element with an
1974 `http://../officedocument` type.
1975 + Fix paths in archive to prevent Windows failure (#5277).
1976 Some paths in archives are absolute (have an opening slash) which, for
1977 reasons unknown, produces a failure in the test suite on MS
1978 Windows. This fixes that by removing the leading slash if it exists.
1979 + Add comments to aid code readability.
1980 + Trim space inside the last inline (#5273).
1981 + Unwrap sdt elements in footnotes and comments (#5302).
1983 * Muse reader (Alexander Krotov):
1985 + Test that block level markup does not break `<verbatim>`.
1986 + Add secondary note support.
1988 * ipynb reader: handle images referring to attachments. Previously
1989 we didn't strip off the attachment: prefix, so even though the
1990 attachment was available in the mediabag, pandoc couldn't find it.
1994 + Fix parsing of figures (#5321). This ensures that a figure
1995 containing a single image is parsed as a pandoc "implicit
1996 figure" (i.e., a Para with a single Image whose title attribute
1997 begins with `fig:`). More complex figures will still be parsed
1999 + Support `fig-group` block element (#5317).
2000 + Handle citations with multiple references (#5310). The `rid`
2001 attribute can have a space-separated list of ids.
2003 * AsciiDoc Writer: Add `writeAsciiDoctor` [API change, Tarik Graba].
2004 Handle display math appropriately for Asciidoctor.
2006 * JATS writer: wrap figure caption in `<p>` to fix validation (#5290,
2011 + Implement WAI-ARIA roles for (end)notes, citations, and
2012 bibliography (#4213). Note that doc-biblioref is only used when
2013 link-citations produces links, since it belongs on links.
2014 + Include content (including speaker notes) in title slides
2019 + Ensure final newline.
2020 + Only include metadata under `jupyter` field.
2021 + Don't create attachments for images with absolute URIs,
2022 including data: URIs (#5303).
2023 + Keep plain text fallbacks in output even if a richer format is
2024 included (#5293). We don't know what output format will be needed.
2025 See the `--ipynb-output` command line option for a way to control
2026 what formats are included in the output.
2028 * Markdown writer: use `markdown="1"` when appropriate for Divs:
2029 when `native_divs` and `markdown_in_html_blocks` are disabled
2030 but `raw_html` and `markdown_attribute` are enabled.
2034 + Use right fold for `escapeString`. This is more elegant than
2035 the explicit recursive code we were using.
2036 + Avoid `{}` after control sequences when escaping.
2037 `\ldots{}.` doesn't behave as well as `\ldots.` with the latex
2038 ellipsis package. This patch causes pandoc to avoid emitting
2039 the `{}` when it is not necessary. Now `\ldots` and other
2040 control sequences used in escaping will be followed by either
2041 a `{}`, a space, or nothing, depending on context.
2042 + For beamer, include contents under headers superordinate to
2043 slidelevel (#4317). Currently we keep the fancy title slide, and
2044 add a new slide with the same title and whatever content was
2047 * Powerpoint writer (Jesse Rosenthal): support underlines.
2048 Use span with single class "underline" as in docx writer.
2050 * Muse writer: escape secondary notes (Alexander Krotov).
2052 * FB2 writer: add section identifiers support (#5229, John KetzerX).
2054 * Make `--fail-if-warnings` work for PDF output (#5343).
2056 * Lua filters (Albert Krewinkel):
2058 + Load module `pandoc` before calling `init.lua` (#5287). The file
2059 `init.lua` in pandoc's data directory is run as part of pandoc's
2060 Lua initialization process. Previously, the `pandoc` module was
2061 loaded in `init.lua`, and the structure for marshaling was
2062 set up after. This allowed simple patching of element
2063 marshaling, but made using `init.lua` more difficult. Now, all
2064 required modules are now loaded before calling `init.lua`. The
2065 file can be used entirely for user customization. Patching
2066 marshaling functions, while discouraged, is still possible via
2068 + All Lua modules bundled with pandoc, i.e., `pandoc.List`,
2069 `pandoc.mediabag`, `pandoc.utils`, and `text` are re-exported from the
2070 `pandoc` module. They are assigned to the fields `List`, `mediabag`,
2071 `utils`, and `text`, respectively.
2073 * Text.Pandoc.Lua (Albert Krewinkel):
2075 + Split `StackInstances` into smaller Marshaling modules.
2076 + Get `CommonState` from Lua global. This allows more control over
2077 the common state from within Lua scripts.
2081 + Support the `subject` metadata variable (#5289, Pascal Wagler).
2082 + Add `\frontmatter`, `\mainmatter`, `\backmatter`
2083 for book classes (#5306).
2085 * epub3 template: Add titlepage class to section (#5269).
2087 * HTML5 template: Add ARIA role `doc-toc` for table of contents (#4213).
2089 * Make `--metadata-file` use selected extensions (#5279, #5272, Mauro Bieg).
2091 * Text.Pandoc.Shared:
2093 + Remove `withTempDir` [API change].
2094 + Add new exported function `defaultUserDataDirs` [API change].
2095 + Add `filterIpynbOutput` [API change].
2096 + `compactify`: Avoid lists with a mix of Plain and Para elements
2099 * Text.Pandoc.Translations: reorder alphabetically and remove `Author`
2100 (#5334, Mauro Bieg).
2102 * Text.Pandoc.Extensions:
2104 + More carefully groom ipynb default extensions.
2105 + Add `all_symbols_escapable` to `githubMarkdownExtensions`.
2109 + Use system temp directory when possible (#1192). Previously we
2110 created temp dirs in the working directory, partly (a) because
2111 there were problems using the system temp directory on Windows,
2112 when their pathnames included tildes, and partly (b) because
2113 programs like `epstopdf.pl` would not be allowed to write to
2114 directories outside the working directory in restricted mode. We
2115 now (a) use the system temp dir except when the path includes
2116 tildes, and (b) set `TEXMFOUTPUT` when creating the PDF, so that
2117 subsidiary programs can use the system temp directory. This
2118 addresses problems that occurred when pandoc was used in a
2119 synced directory (such as Dropbox).
2120 + Change types of subsidiary functions to PandocIO, to allow
2121 warnings to be threaded through (#5343).
2123 * Text.Pandoc.MIME: add WebP (#5267, Mauro Bieg).
2125 * Tests: avoid calling `findPandoc` multiple times.
2127 * Old tests: remove need for temp files by using `pipeProcess`.
2129 * Added simple ipynb reader/writer tests (#5274).
2131 * Rearrange `--help` output in a more rational way, with common
2132 options at the beginning and options grouped by function (#5336).
2134 * trypandoc: Add JATS and other missing formats (Arfon Smith, #5291).
2136 * Add missing copyright notices and remove license boilerplate (#4592,
2139 * Use latest basement/foundation on 32bit windows.
2141 * Use latest skylighting (#5328). Custom syntax definitions no
2142 longer try to load `language.dtd`.
2144 * Require texmath 0.11.2.1
2146 * Use latest pandoc-citeproc (0.16.1.1).
2150 + Clarify variable substitution indentation in templates (#5338,
2151 Agustín Martín Barbero).
2152 + Reorder custom-styles section (#5324, Mauro Bieg).
2154## pandoc 2.6 (2019-01-30)
2156 * Support ipynb (Jupyter notebook) as input and output format.
2158 + Add `ipynb` as input and output format (extension `.ipynb`).
2159 + Added Text.Pandoc.Readers.Ipynb [API change].
2160 + Added Text.Pandoc.Writers.Ipynb [API change].
2161 + Add `PandocIpynbDecodingError` constructor to Text.Pandoc.Error.Error
2163 + Depend on ipynb library.
2164 + Note: there is no template for ipynb.
2166 * Add DokuWiki reader (#1792, Alexander Krotov). This adds
2167 Text.Pandoc.Readers.DokuWiki [API change], and adds `dokuwiki`
2170 * Implement task lists (#3051, Mauro Bieg). Added `task_lists`
2171 extension. Task lists are supported from markdown and gfm input.
2172 They should work, to some degree, in all output formats, though in
2173 most formats you'll get a bullet list with a unicode character for
2174 the box. In HTML, you get checkboxes and in LaTeX/PDF output, a
2175 box is used as the list marker. API changes:
2177 + Added constructor `Ext_task_lists` to `Extension`.
2178 + Added `taskListItemFromAscii` and `taskListItemToAscii` to
2181 * Allow some command line options to take URL in addition to FILE.
2182 `--include-in-header`, `--include-before-body`, `--include-after-body`.
2186 + Handle empty `start` attribute (see #5162).
2187 + Treat `textarea` as a verbatim environment (#5241) and preserve
2192 + Change treatment of `number-lines` directive (Brian Leung,
2193 #5207). Directives of this type without numeric inputs should
2194 not have a `startFrom` attribute; with a blank value, the
2195 writers can produce extra whitespace.
2196 + Removed superfluous `sourceCode` class on code blocks (#5047).
2197 + Handle `sourcecode` directive as synonynm for `code` (#5204).
2201 + Remove `sourceCode` class for literate Haskell code blocks
2202 (#5047). Reverse order of `literate` and `haskell` classes on
2203 code blocks when parsing literate Haskell, so `haskell` is
2205 + Treat `<textarea>` as a verbatim environment (#5241).
2209 + Handle `minlevel` option differently (#5190, Brian Leung).
2210 When `minlevel` exceeds the original minimum level observed in
2211 the file to be included, every heading should be shifted
2213 + Allow for case of `:minlevel == 0` (#5190).
2214 + Fix treatment of links to images (#5191, Albert Krewinkel).
2215 Links with descriptions which are pointing to images are no
2216 longer parsed as inline images, but as links.
2217 + Add support for #+SELECT_TAGS (Brian Leung).
2218 + Separate filtering logic from conversion function (Brian Leung).
2220 * TWiki reader: Fix performance issue with underscores (#3921).
2222 * MediaWiki reader: use `_` instead of `-` in auto-identifiers (#4731).
2223 We may not still be exactly matching mediawiki's algorithm.
2227 + Remove `sourceCode` class for literate Haskell code blocks
2228 (#5047). Reverse order of `literate` and `haskell` classes on
2229 code blocks when parsing literate Haskell, so `haskell` is
2231 + Support `\DeclareMathOperator` (#5149).
2232 + Support `\inputminted` (#5103).
2233 + Support `\endinput` (#5233).
2234 + Allow includes with dots like `cc_by_4.0`. Previously the `.0`
2235 was interpreted as a file extension, leading pandoc not to add
2236 `.tex` (and thus not to find the file). The new behavior matches
2241 + Use `mapLeft` from Shared instead of defining own.
2243 * Docx reader (Jesse Rosenthal):
2245 + Handle level overrides (#5134).
2249 + Support custom properties (#3024, #5252, Agustín Martín Barbero).
2250 Also supports additional core properties: `subject`, `lang`,
2251 `category`, `description`.
2252 + Make Level into a real type, instead of an alias for a tuple
2255 * ICML writer (Mauro Bieg):
2257 + Support custom-styles (#5137, see #2106).
2258 + Support unnumbered headers (#5140).
2260 * Texinfo writer: Use header identifier for anchor if present (#4731).
2261 Previously we were overwriting an existing identifier with a new one.
2263 * Org writer: Preserve line-numbering for example and code blocks
2266 * Man/Ms writers: Don't escape `-` as `\-`. The `\-` gets rendered
2267 in HTML and PDF as a unicode minus sign.
2269 * Ms writer: Ensure we have a newline after .EN in disply math (#5251).
2271 * RST writer: Don't wrap simple table header lines (#5128).
2273 * Asciidoc writer: Shorter delimiters for tables, blockquotes
2274 (#4364). This matches asciidoctor reference docs.
2276 * Dokuwiki writer: Remove automatic `:` prefix before internal image
2277 links (#5183, Damien Clochard). This prevented users from making
2278 relative image links.
2280 * Zimwiki writer: remove automatic colon prefix before internal
2281 images (#5183, Damien Clochard).
2283 * MediaWiki writer: fix caption, use 'thumb' instead of 'frame'
2284 (#5105). Captions used to have the word 'caption' prepended; this
2285 has been removed. Also, 'thumb' is used instead of 'frame' to
2286 allow images to be resized.
2290 + Ensure that we don't get > 2 levels of section nesting,
2291 even with slide level > 2 (#5168).
2292 + If slide level == N but there is no N-level header, make
2293 sure the next header with level > N gets treated as a slide
2294 and put in a section, rather than remaining loose (#5168).
2298 + Make `plain` RawBlocks pass through in `plain` output.
2299 + Include needed whitespace after HTML figure (#5121).
2300 We use HTML for a figure in markdown dialects that can't
2301 represent it natively.
2303 * Commonmark writer:
2305 + Fix handling of SoftBreak with `hard_line_breaks` (#5195).
2306 + Implement `--toc` (`writerTableOfContents`)
2307 in commonmark/gfm writers (#5172).
2311 + Ensure that picture transforms are done on metadata too.
2312 + Small fixes to `nav.xhtml`:
2313 Add 'landmarks' id attribute to the landmarks nav.
2314 Replace old default CSS removing numbers from ol.toc li
2315 with new rules that match `nav#toc ol, nav#landmarks ol`.
2316 We keep the `toc` class on `ol` for backwards compatibility.
2320 + Make raw content marked `beamer` pass through in `beamer`
2321 output (pandoc/lua-filters#40).
2322 + Beamer: avoid duplicated `fragile` property in some cases
2324 + Add `#` special characters for listings (#4939).
2325 This character needs special handling in `\lstinline`.
2327 * RTF writer: use `toTableOfContents` from Shared to replace
2328 old duplicated code.
2332 + Support custom properties. Also supports additional core
2333 properties: `subject`, `category`, `description` (#5252,
2334 Agustín Martín Barbero).
2335 + Use `toTableOfContents` from Shared to replace old duplicated code.
2337 * ODT writer (Augustín Martín Barbero):
2339 + Fix typo in custom properties (#2839).
2340 + Improve standard properties, including the following core
2341 properties: `generator` (Pandoc/VERSION), `description`, `subject`,
2342 `keywords`, `initial-creator` (from authors), `creation-date`
2343 (actual creation date) (#5252).
2347 + Allow '-' in filenames for custom lua writers (#5187).
2348 + sample.lua: add `SingleQuoted`, `DoubleQuoted` (#5104).
2349 + sample.lua: Add a missing `>` (MichaWiedenmann).
2351 * reveal.js template: Add `zoomKey` config (#4249).
2353 * HTML5 template: Remove unnecessary type="text/css" on style and
2354 link for HTML5 (#5146).
2356 * LaTeX template (Andrew Dunning, except where noted):
2358 + Prevent fontspec from scaling `mainfont` to match the default
2359 font, Latin Modern. A main font set to 12pt could
2360 previously appear between 11pt to 13pt depending on its design.
2361 To return to the earlier rendering, use `-V
2362 mainfontoptions="Scale=MatchLowercase"` (#5212, #5218).
2363 + Display monospaced fonts without TeX ligatures when using
2364 `--pdf-engine=lualatex`. It now matches the behaviour of other
2365 engines (#5212, #5218).
2366 + Remove the deprecated `romanfont` variable. The functionality of
2367 `mainfont` is identical (#5218).
2368 + Render `\subtitle` with the standard document classes.
2369 Previously, `subtitle` only appeared when using the KOMA-Script
2370 classes or Beamer (#5213, #5244).
2371 + Use Babel instead of Polyglossia for LuaLaTeX. This avoids
2372 several language selection problems, notably with retaining
2373 French spacing conventions when switching to a verbatim
2374 environment or another language; and in printing Greek text
2375 without hyphenation (#5193).
2376 + Use the [`xurl`](https://ctan.org/pkg/xurl) package if
2377 available, improving the appearance of URLs by allowing them to
2378 break at additional points (#5193).
2379 + Use [`bookmark`](https://ctan.org/pkg/bookmark) if available
2380 to correct heading levels in PDF bookmarks: see the [KOMA-Script
2381 3.26 release notes](https://komascript.de/release3.26) (#5193).
2382 + Require the [`xcolor`](https://ctan.org/pkg/xcolor) package to
2383 avoid a possible error when using additional packages alongside
2384 footnotes in tables (#5193, closes #4861).
2385 + Remove obsolete `fixltx2e` package, which has no functionality
2386 with TeX Live 2015 or later (#5193).
2387 + Allow multiple `fontfamilies.options` (#5193, closes #5194).
2388 + Restrict `institute` variable to Beamer (#5219).
2389 + Use [`footnotehyper`](https://ctan.org/pkg/footnotehyper)
2390 package if available to make footnotes in tables compatible
2391 with `hyperref` (#5234).
2392 + Number parts and chapters in book classes only if the
2393 `numbersections` variable is set, for consistency with other
2394 output formats. To return to the previous behaviour, use
2395 `-V numbersections -V secnumdepth=0` (#5235).
2396 + Reindent file (#5193).
2397 + Use built-in parskip handling with KOMA-Script classes (#5143, Enno).
2398 + Set default listings language for lua, assembler (#5227, John
2399 MacFarlane). Otherwise we get an error when trying to compile code
2400 with lua or assembler code. To change the default dialect
2401 (currenty 5.3 for lua and x86masm for assembler), you can use
2402 `--include-in-header` to inject something like
2403 `\lstset{defaultdialect=[5.2]Lua}`.
2405 * Text.Pandoc.Readers: Changed types of `readJSON`; it now runs
2406 in an instance of PandocMonad, like the other readers and
2407 writers. [API change]
2409 * Text.Pandoc.Writers: Changed types of `writeJSON`; it now runs
2410 in an instance of PandocMonad, like the other readers and
2411 writers. [API change]
2413 * Text.Pandoc.Error: Added `PandocUTF8DecodingError` constructor
2414 for `PandocError`. [API change]
2416 * Text.Pandoc.Writers.Shared - add `toTableOfContents`. [API change]
2417 This is refactored out from the Markdown writer.
2418 It can be used in other writers to create a table of contents.
2420 * Improve error messages for UTF-8 decoding errors. Now we give
2421 the filename and byte offset (#4765).
2423 * Text.Pandoc.XML: Strip out illegal XML characters in
2424 `escapeXMLString` (#5119).
2426 * Text.Pandoc.Process: update `pipeProcess` (Albert Krewinkel).
2427 The implementation of `pipeProcess` was rewritten to fix sporadic
2428 failures caused by prematurely closed pipes.
2430 * Use `safeRead` instead of `read` everywhere in the code
2431 (John MacFarlane, Mauro Bieg, #5162, #5180).
2433 * Text.Pandoc.SelfContained: Decompress `.svgz` when
2434 converting to `data:` URI (#5163, Alexander Krotov).
2436 * Text.Pandoc.Parsing: Remove unused `HasHeaderMap`
2437 (#5175, Alexander Krotov). [API change]
2439 * Normalize Windows paths to account for change in ghc 8.6 (#5127).
2440 When pandoc is compiled with ghc 8.6, Windows paths are treated
2441 differently, and paths beginning `\\server` no longer work.
2442 This commit rewrites such patsh to `\\?\UNC\server` which works.
2443 The change operates at the level of argument parsing, so it
2444 only affects the command line program.
2446 * Simplify/fix reading of `--metadata` values on command line
2447 to avoid problems relating to hvr/HsYAML#7 (#5177).
2449 * data/pandoc.lua: auto-fix nested constructor arguments (Albert
2450 Krewinkel). Incorrect types to pandoc element constructors are
2451 automatically converted to the correct types when possible. This was
2452 already done for most constructors, but conversions are now also done
2453 for nested types (like lists of lists).
2455 * Removed custom Setup.hs, use build-type: simple. The only thing we
2456 gained from the custom build was automatic installation of the man
2457 page when using 'cabal install'. But custom builds cause problems,
2458 e.g., with cross-compilation. Installation of the man page is
2459 better handled by packagers. Note to packagers (e.g. Debian): it
2460 may be necessary to add a step installing the man page with the
2463 * Allow latest http-client, tasty, zip-archive, Glob.
2465 * Require skylighting >= 0.7.5, adding support for sml, J,
2468 * Tests: Cleaned up `findPandoc` in `Tests.Helpers`, so it
2469 works well with cabal v2.
2473 + Use button for installer links (John MacFarlane, Mauro Bieg,
2475 + Fix links and bump required stack version (max).
2476 + Improve installation notes on associated software (Andrew
2477 Dunning). Includes explanation of how to install related tools
2478 with package managers (since the method of installing
2479 `rsvg-convert` is not obvious).
2481 * doc/org.md: improve documentation of org features (Albert
2484 * doc/lua-filters.md: use 3rd level headers for module fields.
2488 + Clarify automatic identifiers (#5201). We remove
2489 non-alphanumerics. This includes, e.g., emojis.
2490 + Fix example for Div with id (Geoffrey Ely).
2491 + Update list of LaTeX packages used.
2492 + Make it clear that `hard_line_breaks` works in `gfm` (see #5195).
2493 + Mention `raw_attribute` in documentation for `raw_html` and
2494 `raw_tex` (#5240, thanks to @eiro).
2495 + Clarify that `$sep$` must come right before `$endfor$` in templates
2497 + Document metadata support for docx, odt, pptx writers (Agustín
2499 + Reorganize template variables (#5249, Andrew Dunning).
2500 Add additional headings to categorize variables, and
2501 alphabetize when there is large number; add more examples.
2502 + Document `date-meta` template variable (#5260, Tristan Stenner).
2504 * trypandoc: Fix CSS and viewport.
2506## pandoc 2.5 (2018-11-27)
2508 * Text.Pandoc.App: split into several unexported submodules (Albert
2509 Krewinkel): Text.Pandoc.App.FormatHeuristics,
2510 Text.Pandoc.App.Opt, Text.Pandoc.App.CommandLineOptions,
2511 Text.Pandoc.App.OutputSettings. This is motivated partly by the
2512 desire to reduce recompilations when something is modified,
2513 since App previously depended on virtually every other module.
2515 * Text.Pandoc.Extensions
2517 + Semantically, `gfm_auto_identifiers` is now a modifier of
2518 `auto_identifiers`; for identifiers to be set, `auto_identifiers` must
2519 be turned on, and then the type of identifier produced depends on
2520 `gfm_auto_identifiers` and `ascii_identifiers` are set. Accordingly,
2521 `auto_identifiers` is now added to `githubMarkdownExtensions` (#5057).
2522 + Remove `ascii_identifiers` from `githubMarkdownExtensions`.
2523 GitHub doesn't seem to strip non-ascii characters any more.
2525 * Text.Pandoc.Lua.Module.Utils (Albert Krewinkel)
2527 + Test AST object equality via Haskell (#5092). Equality of Lua
2528 objects representing pandoc AST elements is tested by unmarshalling
2529 the objects and comparing the result in Haskell.
2530 A new function `equals` which performs this test has been added to the
2531 `pandoc.utils` module.
2532 + Improve stringify. Meta value strings (MetaString)
2533 and booleans (MetaBool) are now converted to the literal string and the
2534 lowercase boolean name, respectively. Previously, all values of these
2535 types were converted to the empty string.
2537 * Text.Pandoc.Parsing: Remove Functor and Applicative constraints where Monad
2538 already exists (Alexander Krotov).
2540 * Text.Pandoc.Pretty: Don't render BreakingSpace at end of line
2541 or beginning of line (#5050).
2543 * Text.Pandoc.Readers.Markdown
2545 + Fix parsing of citations, quotes, and underline emphasis
2546 after symbols. Starting with pandoc 2.4, citations, quoted inlines,
2547 and underline emphasis were no longer recognized after certain
2548 symbols, like parentheses (#5099, #5053).
2549 + In pandoc 2.4, a soft break after an abbreviation would be
2550 relocated before it to allow for insertion of a nonbreaking
2551 space after the abbreviation. This behavior is here reverted.
2552 A soft break after an abbreviation will remain, and no nonbreaking
2553 space will be added. Those who care about this issue should take care not
2554 to end lines with an abbreviation, or to insert nonbreaking spaces
2557 * Text.Pandoc.Readers.FB2: Do not throw error for unknown elements in
2558 `<body>` (Alexander Krotov). Some libraries include custom elements
2561 * Text.Pandoc.Readers.HTML
2563 + Allow `tfoot` before body rows (#5079).
2564 + Parse `<small>` as a Span with class "small" (#5080).
2565 + Allow thead containing a row with `td` rather than `th` (#5014).
2567 * Text.Pandoc.Readers.LaTeX
2569 + Cleaned up handling of dimension arguments. Allow decimal points,
2571 + Don't allow arguments for verbatim, etc.
2572 + Allow space before bracketed options.
2573 + Allow optional arguments after `\\` in tables.
2574 + Improve parsing of `\tiny`, `\scriptsize`, etc. Parse as raw,
2575 but know that these font changing commands take no arguments.
2577 * Text.Pandoc.Readers.Muse
2579 + Trim whitespace before parsing grid table cells (Alexander Krotov).
2580 + Add grid tables support (Alexander Krotov).
2582 * Text.Pandoc.Shared
2584 + For bibliography match Div with id `refs`, not class `references`.
2585 This was a mismatch between pandoc's docx, epub, latex, and markdown
2586 writers and the behavior of pandoc-citeproc, which actually looks for a
2587 div with id `refs` rather than one with class `references`.
2588 + Exactly match GitHub's identifier generating algorithm (#5057).
2589 + Add parameter for `Extensions` to `uniqueIdent` and
2590 `inlineListToIdentifier` (#5057). [API change]
2591 This allows these functions to be sensitive to the settings of
2592 `Ext_gfm_auto_identifiers` and `Ext_ascii_identifiers`, and allows us to
2593 use `uniqueIdent` in the CommonMark reader, replacing custom code. It
2594 also means that `gfm_auto_identifiers` can now be used in all formats.
2596 * Text.Pandoc.Writers.AsciiDoc
2598 + Use `.`+ as list markers to support nested ordered lists (#5087).
2599 + Support list number styles (#5089).
2600 + Render Spans using `[#id .class]#contents#` (#5080).
2602 * Text.Pandoc.Writers.CommonMark
2604 + Respect `--ascii` (#5043, quasicomputational).
2605 + Make sure `--ascii` affects quotes, super/subscript.
2607 * Text.Pandoc.Writers.Docx
2609 + Fix bookmarks to headers with long titles (#5091).
2610 Word has a 40 character limit for bookmark names. In addition, bookmarks
2611 must begin with a letter. Since pandoc's auto-generated identifiers may
2612 not respect these constraints, some internal links did not work. With
2613 this change, pandoc uses a bookmark name based on the SHA1 hash of the
2614 identifier when the identifier isn't a legal bookmark name.
2615 + Add bookmarks to code blocks (Nikolay Yakimov).
2616 + Add bookmarks to images (Nikolay Yakimov).
2617 + Refactor common bookmark creation code into a function (Nikolay Yakimov).
2619 * Text.Pandoc.Writers.EPUB: Handle calibre metadata (#5098).
2622 <meta name="calibre:series" content="Classics on War and Politics"/>
2624 are now included from an epub XML metadata file. You can also include
2625 this information in your YAML metadata, like so:
2628 series: Classics on War and Policitics
2630 In addition, ibooks-specific metadata can now be included via an XML
2631 file. (Previously, it could only be included via YAML metadata, see
2634 * Text.Pandoc.Writers.HTML: Use plain `"` instead of `"` outside of
2637 * Text.Pandoc.Writers.ICML: Consolidate adjacent strings, inc. spaces.
2638 This avoids splitting up the output unnecessarily into separate elements.
2640 * Text.Pandoc.Writers.LaTeX: Don't emit `[<+->]` unless beamer output, even
2641 if `writerIncremental` is True (#5072).
2643 * Text.Pandoc.Writers.Muse (Alexander Krotov).
2645 + Output tables as grid tables if they have multi-line cells.
2646 + Indent simple tables only on the top level.
2647 + Output tables with one column as grid tables.
2648 + Add support for `--reference-location`.
2649 + Internal improvements.
2651 * Text.Pandoc.Writers.OpenDocument: Fix list indentation (Nils Carlson,
2652 #5095). This was a regression in pandoc 2.4.
2654 * Text.Pandoc.Writers.RTF: Fix warnings for skipped raw inlines.
2656 * Text.Pandoc.Writers.Texinfo: Add blank line before `@menu` section (#5055).
2658 * Text.Pandoc.XML: in `toHtml5Entities`, prefer shorter entities
2659 when there are several choices for a particular character.
2661 * data/abbreviations
2663 + Add additional abbreviations (Andrew Dunning)
2664 Many of these borrowed from the Chicago Manual of Style 10.42,
2665 'Scholarly abbreviations'.
2669 + Asciidoc template: add :lang: to title header is lang is set in
2672 * pandoc.cabal: Add cabal flag `derive_json_via_th` (Albert Krewinkel)
2673 Disabling the flag will cause derivation of ToJSON and FromJSON
2674 instances via GHC Generics instead of Template Haskell. The flag is
2675 enabled by default, as deriving via Generics can be slow (see #4083).
2679 + Tweaked drop-down lists.
2680 + Put link to site in footer.
2681 + Preselect output format.
2682 + Update on change of in or out format.
2683 + Add man input format.
2687 + Fix outdated description of latex_macros extension.
2688 + Clarified placement of bibliography.
2689 + Added "A note on security."
2690 + Fix note on curly brace syntx for locators.
2691 + Document new explicit syntax for citeproc locators.
2692 + Remove confusing cross-links for some extensions.
2693 + Don't put pandoc in code ticks in heading.
2694 + Document that `--ascii` works for gfm and commonmark too.
2695 + Add `man` to `--from` options.
2697 * doc/customizing-pandoc.md: various improvements (Mauro Bieg).
2700## pandoc 2.4 (2018-11-03)
2704 * New input format `man` (Yan Pashkovsky, John MacFarlane).
2708 * `--ascii` is now implemented in the writers, not in Text.Pandoc.App,
2709 via the new `writerPreferAscii` field in `WriterOptions`.
2710 Now the `write*` functions for Docbook, HTML, ICML, JATS, LaTeX,
2711 Ms, Markdown, and OPML are sensitive to `writerPreferAscii`.
2712 Previously the to-ascii translation was done in Text.Pandoc.App,
2713 and thus not available to those using the writer functions
2716 * `--ascii` now works with Markdown output. HTML5 character reference
2719 * `--ascii` now works with LaTeX output. 100% ASCII output can't be
2720 guaranteed, but the writer will use commands like `\"{a}` and `\l`
2721 whenever possible, to avoid emitting a non-ASCII character.
2723 * For HTML5 output, `--ascii` now uses HTML5 character reference
2724 entities rather than numerical entities.
2726 * Improved detection of format based on extension (in Text.Pandoc.App).
2727 We now ensure that if someone tries to convert a file for a
2728 format that has a pandoc writer but not a reader, it won't just
2729 default to markdown.
2731 * Add viz. to abbreviations file (#5007, Nick Fleisher).
2733 * AsciiDoc writer: always use single-line section headers,
2734 instead of the old underline style (#5038). Previously the single-line
2735 style would be used if `--atx-headers` was specified, but
2736 now it is always used.
2738 * RST writer: Use simple tables when possible (#4750).
2740 * CommonMark (and gfm) writer: Add plain text fallbacks. (#4528,
2741 quasicomputational). Previously, the writer would unconditionally
2742 emit HTML output for subscripts, superscripts, strikeouts (if the
2743 strikeout extension is disabled) and small caps, even with
2744 `raw_html` disabled. Now there are plain-text (and, where
2745 possible, fancy Unicode) fallbacks for all of these corresponding
2746 (mostly) to the Markdown fallbacks, and the HTML output is only
2747 used when `raw_html` is enabled.
2749 * Powerpoint writer: support raw openxml (Jesse Rosenthal, #4976).
2750 This allows raw openxml blocks and inlines to be used in the pptx
2751 writer. Caveats: (1) It's up to the user to write
2752 well-formed openxml. The chances for corruption, especially with
2753 such a brittle format as pptx, is high. (2) Because of
2754 the tricky way that blocks map onto shapes, if you are using
2755 a raw block, it should be the only block on a slide
2756 (otherwise other text might end up overlapping it). (3) The
2757 pptx ooxml namespace abbreviations are different from the
2758 docx ooxml namespaces. Again, it's up to the user to get it
2759 right. Unzipped document and ooxml specification should be
2762 * With `--katex` in HTML formats, do not use the autorenderer (#4946).
2763 We no longer surround formulas with `\(..\)` or `\[..\]`. Instead,
2764 we tell katex to convert the contents of span elements with
2765 class "math". Since math has already been identified, this
2766 avoids wasted time parsing for LaTeX delimiters. Note, however,
2767 that this may yield unexpected results if you have span elements
2768 with class "math" that don't contain LaTeX math.
2769 Also, use latest version of KaTeX by default (0.9.0).
2771 * The man writer now produces ASCII-only output, using groff escapes,
2776 + Add title, author and date to metadata; any remaining
2777 metadata fields are added as `meta:user-defined` tags.
2778 + Implement table caption numbering (#4949, Nils Carlson).
2779 Captioned tables are numbered and labeled with format "Table 1:
2780 caption", where "Table" is replaced by a translation, depending
2781 on the value of `lang` in metadata. Uncaptioned tables are not
2783 + OpenDocument writer: Implement figure numbering in captions (#4944,
2784 Nils Carlson). Figure captions are now numbered 1, 2, 3, ...
2785 The format in the caption is "Figure 1: caption" and so on
2786 (where "Figure" is replaced by a translation, depending on the
2787 value of `lang` in the metadata). Captioned figures are numbered
2788 consecutively and uncaptioned figures are not enumerated. This
2789 is necessary in order for LibreOffice to generate an
2790 Illustration Index (Table of Figures) for included figures.
2792 * RST reader: Pass through fields in unknown directives as div attributes
2793 (#4715). Support `class` and `name` attributes for all directives.
2795 * Org reader: Add partial support for `#+EXCLUDE_TAGS` option. (#4284,
2796 Brian Leung). Headers with the corresponding tags should not
2797 appear in the output.
2799 * Log warnings about missing title attributes now include a
2800 suggestion about how to fix the problem (#4909).
2802 * Lua filter changes (Albert Krewinkel):
2804 + Report traceback when an error occurs. A proper Lua traceback is
2805 added if either loading of a file or execution of a filter
2806 function fails. This should be of help to authors of Lua filters
2807 who need to debug their code.
2809 + Allow access to pandoc state (#5015). Lua filters and custom
2810 writers now have read-only access to most fields of pandoc's
2811 internal state via the global variable `PANDOC_STATE`.
2813 + Push ListAttributes via constructor (Albert Krewinkel).
2814 This ensures that ListAttributes, as present in OrderedList elements,
2815 have additional accessors (viz. `start`, `style`, and `delimiter`).
2817 + Rename ReaderOptions fields, use snake_case. Snake case is used
2818 in most variable names, using camelCase for these fields was an
2819 oversight. A metatable is added to ensure that the old field
2820 names remain functional.
2822 + Iterate over AST element fields when using `pairs`. This makes
2823 it possible to iterate over all ield names of an AST element by
2824 using a generic `for` loop with pairs`:
2826 for field_name, field_content in pairs(element) do
2830 Raw table fields of AST elements should be considered an
2831 implementation detail and might change in the future. Accessing
2832 element properties should always happen through the fields
2833 listed in the Lua filter docs.
2835 Note that the iterator currently excludes the `t`/`tag` field.
2837 + Ensure that MetaList elements behave like Lists. Methods usable
2838 on Lists can also be used on MetaList objects.
2840 + Fix MetaList constructor (Albert Krewinkel). Passing a MetaList
2841 object to the constructor `pandoc.MetaList` now returns the
2842 passed list as a MetaList. This is consistent with the
2843 constructor behavior when passed an (untagged) list.
2845 * Custom writers: Custom writers have access to the global variable
2846 `PANDOC_DOCUMENT`(Albert Krewinkel, #4957). The variable contains
2847 a userdata wrapper around the full pandoc AST and exposes two
2848 fields, `meta` and `blocks`. The field content is only
2849 marshaled on-demand, performance of scripts not accessing the
2850 fields remains unaffected.
2854 * Text.Pandoc.Options: add `writerPreferAscii` to `WriterOptions`.
2856 * Text.Pandoc.Shared:
2858 + Export `splitSentences`. This was previously duplicated in the Man and
2860 + Add `ToString` typeclass (Alexander Krotov).
2862 * New exported module Text.Pandoc.Filter (Albert Krewinkel).
2864 * Text.Pandoc.Parsing
2866 + Generalize `gridTableWith` to any `Char` Stream (Alexander Krotov).
2867 + Generalize `readWithM` from `[Char]` to any `Char` Stream
2868 that is a `ToString` instance (Alexander Krotov).
2870 * New exposed module Text.Pandoc.Filter (Albert Krewinkel).
2872 * Text.Pandoc.XML: add `toHtml5Entities`.
2874 * New exported module Text.Pandoc.Readers.Man (Yan Pashkovsky, John
2877 * Text.Pandoc.Writers.Shared
2879 + Add exported functions `toSuperscript` and
2880 `toSubscript` (quasicomputational, #4528).
2881 + Remove exported functions `metaValueToInlines`,
2882 `metaValueToString`. Add new exported functions
2883 `lookupMetaBool`, `lookupMetaBlocks`, `lookupMetaInlines`,
2884 `lookupMetaString`. Use these whenever possible for uniformity
2885 in writers (Mauro Bieg, #4907). (Note that
2886 removed function `metaValueToInlines` was in previous
2888 + Add `metaValueToString`.
2892 + Expose more useful internals (Albert Krewinkel):
2894 - `runFilterFile` to run a Lua filter from file;
2895 - data type `Global` and its constructors; and
2896 - `setGlobals` to add globals to a Lua environment.
2898 This module also contains `Pushable` and `Peekable` instances
2899 required to get pandoc's data types to and from Lua. Low-level
2900 Lua operation remain hidden in Text.Pandoc.Lua.
2902 + Rename `runPandocLua` to `runLua` (Albert Krewinkel).
2904 + Remove `runLuaFilter`, merging this into Text.Pandoc.Filter.Lua's
2905 `apply` (Albert Krewinkel).
2907### Bug fixes and under-the-hood improvements
2909 * Text.Pandoc.Parsing
2911 + Make `uri` accept any stream with Char tokens (Alexander Krotov).
2912 + Rewrite `uri` without `withRaw` (Alexander Krotov).
2913 + Generalize `parseFromString` and `parseFromString'` to any
2914 streams with Char token (Alexander Krotov)
2915 + Rewrite `nonspaceChar` using `noneOf` (Alexander Krotov)
2917 * Text.Pandoc.Shared: Reimplement `mapLeft` using `Bifunctor.first`
2920 * Text.Pandoc.Pretty: Simplify `Text.Pandoc.Pretty.offset`
2925 + Work around HXT limitation for --syntax-definition with windows
2927 + Always preserve tabs for man format. We need it for tables.
2928 + Split command line parsing code into a separate unexported
2929 module, Text.Pandoc.App.CommandLineOptions (Albert Krewinkel).
2931 * Text.Pandoc.Readers.Roff: new unexported module for tokenizing
2934 * New unexported module Text.Pandoc.RoffChar, provided character
2935 escape tables for roff formats.
2937 * Text.Pandoc.Readers.HTML: Fix `htmlTag` and `isInlineTag` to
2938 accept processing instructions (#3123, regression since 2.0).
2940 * Text.Pandoc.Readers.JATS: Use `foldl'` instead of `maximum` to
2941 account for empty lists (Alexander Krotov).
2943 * Text.Pandoc.Readers.RST: Don't allow single-dash separator in
2944 headerless table (#4382).
2946 * Text.Pandoc.Readers.Org: Parse empty argument array in inline src
2947 blocks (Brian Leung).
2949 * Text.Pandoc.Readers.Vimwiki:
2951 + Get rid of `F`, `runF` and `stateMeta'` in favor of `stateMeta`
2953 + Parse `Text` without converting to `[Char]` (Alexander Krotov).
2955 * Text.Pandoc.Readers.Creole: Parse `Text` without converting to
2956 `[Char]` (Alexander Krotov).
2958 * Text.Pandoc.Readers.LaTeX
2960 + Allow space at end of math after `\` (#5010).
2961 + Add support for `nolinkurl` command (#4992, Brian Leung).
2962 + Simplified type on `doMacros'`.
2963 + Tokenize before pulling tokens, rather than after (#4408). This
2964 has some performance penalty but is more reliable.
2965 + Make macroDef polymorphic and allow in inline context.
2966 Otherwise we can't parse something like `\lowercase{\def\x{Foo}}`.
2967 I have actually seen tex like this in the wild.
2968 + Improved parsing of `\def`, `\let`. We now correctly parse:
2978 + Improve parsing of `\def` argspec.
2979 + Skip `\PackageError` commands (see #4408).
2980 + Fix bugs omitting raw tex (#4527). The default is `-raw_tex`,
2981 so no raw tex should result unless we explicitly say `+raw_tex`.
2982 Previously some raw commands did make it through.
2983 + Moved `isArgTok` to Text.Pandoc.Readers.LaTeX.Parsing.
2984 + Moved `babelLangToBCP`, `polyglossiaLangToBCP` to new module,
2985 Text.Pandoc.Readers.LaTeX.Lang (unexported).
2986 + Simplified accent code using unicode-transforms.
2987 New dependency on unicode-transforms package for normalization.
2988 + Allow verbatim blocks ending with blank lines (#4624).
2989 + Support `breq` math environments: `dmath`, `dgroup`, `darray`.
2990 This collects some of the general-purpose code from the LaTeX reader,
2991 with the aim of making the module smaller.
2993 * Text.Pandoc.Readers.Markdown
2995 + Fix awkward soft break movements before abbreviations (#4635).
2996 + Add updateStrPos in a couple places where needed.
2998 * Text.Pandoc.Readers.Docx: Trigger bold/italic with bCs, iCs
2999 (#4947). These are variants for "complex scripts" like Arabic
3000 and are now treated just like b, i (bold, italic).
3002 * Text.Pandoc.Readers.Muse (Alexander Krotov)
3004 + Try to parse lists before trying to parse table.
3005 This ensures that tables inside lists are parsed correctly.
3006 + Forbid whitespace after opening and before closing markup
3008 + Parse page breaks.
3009 + Simplify `museToPandocTable` to get rid of partial functions.
3010 + Allow footnotes to start with empty line.
3011 + Make sure that the whole text is parsed.
3012 + Allow empty headers. Previously empty headers caused parser to
3013 terminate without parsing the rest of the document.
3014 + Allow examples to be indented with tabs.
3015 + Remove indentation from examples indicated by `{{{` and `}}}`.
3016 + Fix parsing of empty cells.
3017 + Various changes to internals.
3018 + Rewrite some parsers in applicative style.
3019 + Avoid tagsoup dependency.
3020 + Allow table caption to contain `+`.
3022 * Text.Pandoc.Writers.LaTeX
3024 + Add newline if math ends in a comment (#4880). This prevents the
3025 closing delimiter from being swalled up in the comment.
3026 + With `--listings`, don't pass through org-babel attributes (#4889).
3027 + With `--biblatex`, use `\autocite` when possible (#4960).
3028 `\autocites{a1}{a2}{a3}` will not collapse the entries. So, if
3029 we don't have prefixes and suffixes, we use instead
3030 `\autocite{a1,a2,a3}`.
3031 + Fix description lists contining highlighted code (#4662).
3033 * Text.Pandoc.Writers.Man
3035 + Don't wrap `.SH` and `.SS` lines (#5019).
3036 + Avoid unnecessary `.RS`/`.RE` pair in definition lists with
3037 one paragraph definitions.
3038 + Moved common groff functions to Text.Pandoc.Writers.Groff.
3039 * Fix strong/code combination on man (should be `\f[CB]` not
3040 `\f[BC]`, see #4973).
3041 + Man writer: use `\f[R]` instead of `\f[]` to reset font
3042 (Alexander Krotov, #4973).
3043 + Move `splitSentences` to Text.Pandoc.Shared.
3045 * Text.Pandoc.Writers.Docx
3047 + Add framework for custom properties (#3034). So far, we don't
3048 actually write any custom properties, but we have the
3049 infrastructure to add this.
3051 + Handle tables in table cells (#4953). Although this is not
3052 documented in the spec, some versions of Word require a `w:p`
3053 element inside every table cell. Thus, we add one when the
3054 contents of a cell do not already include one (e.g. when a table
3055 cell contains a table).
3057 * Text.Pandoc.Writers.AsciiDoc: Prevent illegal nestings.
3058 Adjust header levels so that n+1 level headers are only
3059 found under n level headers, and the top level is 1.
3061 * Text.Pandoc.Writers.OpenDocument: Improve bullet/numbering
3062 alignment (#4385). This change eliminates the large gap we used
3063 to have between bullet and text, and also ensures that numbers
3064 in numbered lists will be right-aligned.
3066 * Text.Pandoc.Writers.ZimWiki
3068 + Number ordered list items sequentially, rather than always
3070 + Remove extra indentation on lists (#4963).
3072 * Text.Pandoc.Writers.EPUB: Use metadata field `css` instead of
3073 `stylesheet` (Mauro Bieg, #4990).
3075 * Text.Pandoc.Writers.Markdown: Ensure blank between raw block and
3076 normal content (#4629). Otherwise a raw block can prevent a
3077 paragraph from being recognized as such.
3079 * Text.Pandoc.Writers.Ms
3081 + Removed old `escapeBar`. We don't need this now that we use
3083 + Moved common code to Text.Pandoc.Writers.Roff and to
3084 Text.Pandoc.RoffChar.
3085 + Move `splitSentences` to Text.Pandoc.Shared (to avoid duplication
3086 with the man writer).
3088 * Text.Pandoc.Writers.Muse (Alexander Krotov).
3090 + Add support for grid tables.
3091 + Fix Muse writer style.
3092 + Use `length` instead of `realLength` to calculate definition
3093 indentation. Muse parsers don't take character width into
3094 account when calculating indentation.
3095 + Do not insert newline before lists.
3096 + Use lightweight markup after `</em>` tag.
3098 * New unexported module Text.Pandoc.Writers.Roff, providing functions
3099 useful for all roff format writers (man, ms).
3103 + Move globals handling to separate module Text.Pandoc.Lua.Global
3106 + Lua filter internals: push Shared.Element as userdata (Albert
3107 Krewinkel). Hierarchical Elements were pushed to Lua as plain
3108 tables. This is simple, but has the disadvantage that marshaling
3109 is eager: all child elements will be marshaled as part of the
3110 object. Using a Lua userdata object instead allows lazy access
3111 to fields, causing content marshaling just (but also each time)
3112 when a field is accessed. Filters which do not traverse the full
3113 element contents tree become faster as a result.
3115### Default template changes
3119 + Add variable `hyperrefoptions` (#4925, Mathias Walter).
3120 + Add variable `romanfont`, `romanfontoptions` (#4665, OvidiusCicero).
3122 * AsciiDoc template: use single-line style for title.
3124 * revealjs template: Fix typo in the socket.io javascript plugin (#5006,
3127 * Text.Pandoc.Lua.Util: add missing docstring to `defineHowTo`
3130 * data/pandoc.lua: add datatype ListAttributes (Albert Krewinkel)
3132 * data/sample.lua: replace custom pipe function with pandoc.utils.pipe
3135### Documentation improvements
3139 + Add chromeos install instructions (#4958) (Evan Pratten).
3140 + Add note about TinyTeX.
3144 + Change `groff` -> `roff`.
3145 + Implement `--ascii` for Markdown writer.
3146 + Clarify LaTeX image dimensions output (Mauro Bieg).
3148 * doc/customizing-pandoc.md: added skeleton (Mauro Bieg, #3288).
3150 * doc/getting-started.md: Added title to test1.md to avoid warning.
3152 * doc/lua-filters.md: merge type references into main document,
3153 fix description of Code.text (Albert Krewinkel).
3155### Build infrastructure improvements
3159 + Makefile: added quick-cabal, full-cabal targets.
3160 + Make .msi download targets insensitive to order of appveyor builds.
3162 * Update benchmarks for ghc 8.6.1.
3166 + Enable more compiler warnings (Albert Krewinkel).
3167 + Make base lower bound 4.8.
3168 + Bump upper bound for QuickCheck.
3169 + Bump upper bound for binary.
3170 + Updated version bounds for containers and haddock-library (#4974).
3171 + Added docx/docPropos/custom.xml to cabal data-files.
3172 + Require skylighting 0.7.4 (#4920).
3173 + New dependency on unicode-transforms package for normalization.
3175 * Improved .travis.yml testing and test with GHC 8.6.1 (Albert Krewinkel).
3177 * Added `tools/changelog-helper.sh`.
3179 * Added test/grofftest.sh for testing the man reader on real man pages.
3181## pandoc 2.3.1 (2018-09-28)
3185 + Parse RST inlines containing newlines (#4912, Francesco Occhipinti).
3186 This eliminates a regression introduced after pandoc 2.1.1, which
3187 caused inline constructions containing newlines not to be recognized.
3188 + Fix bug with internal link targets (#4919). They were gobbling up
3189 indented content underneath.
3191 * Markdown reader: distinguish autolinks in the AST. With this change,
3192 autolinks are parsed as Links with the `uri` class. (The same is true
3193 for bare links, if the `autolink_bare_uris` extension is enabled.)
3194 Email autolinks are parsed as Links with the `email` class. This
3195 allows the distinction to be represented in the AST.
3199 + Force inline code blocks to honor export options (Brian Leung).
3200 + Parse empty argument array in inline src blocks (Brian Leung).
3202 * Muse reader (Alexander Krotov):
3204 + Added additional tests.
3205 + Do not allow code markup to be followed by digit.
3206 + Remove heading level limit.
3207 + Simplify `<literal>` tag parsers
3208 + Parse Text instead of String. Benchmark shows 7% improvement.
3209 + Get rid of HTML parser dependency.
3210 + Various code improvements.
3212 * ConTeXt writer: change `\` to `/` in Windows image paths (#4918).
3213 We do this in the LaTeX writer, and it avoids problems.
3214 Note that `/` works as a LaTeX path separator on Windows.
3218 + Add support for multiprenote and multipostnote arguments
3219 with `--biblatex` (Brian Leung, #4930). The multiprenotes occur before
3220 the first prefix of a multicite, and the multipostnotes follow the
3222 + Fix a use of `last` that might take empty list. If you ran with
3223 `--biblatex` and have an empty document (metadata but no blocks),
3224 pandoc would previously raise an error because of the use of
3225 `last` on an empty list.
3227 * RTF writer: Fix build failure with ghc-8.6.1 caused by missing
3228 MonadFail instance (Jonas Scholl).
3230 * ODT Writer: Improve table header row style handling (Nils Carlson).
3231 This changes the way styles for cells in the header row
3232 and normal rows are handled in ODT tables.
3233 Previously a new (but identical) style was generated for
3234 every table, specifying the style of the cells within the table.
3235 After this change there are two style definitions for table cells,
3236 one for the cells in the header row, one for all other cells.
3237 This doesn't change the actual styles, but makes post-processing
3238 changes to the table styles much simpler as it is no longer
3239 necessary to introduce new styles for header rows and there are
3240 now only two styles where there was previously one per table.
3244 + Don't add `uri` class to presumed autolinks. Formerly the `uri`
3245 class was added to autolinks by the HTML writer, but it had to
3246 guess what was an autolink and could not distinguish
3247 `[http://example.com](http://example.com)` from
3248 `<http://example.com>`. It also incorrectly recognized
3249 `[pandoc](pandoc)` as an autolink. Now the HTML writer
3250 simply passes through the `uri` attribute if it is present,
3251 but does not add anything.
3252 + Avoid adding extra section nestings for revealjs.
3253 Previously revealjs title slides at level (slidelevel - 1)
3254 were nested under an extra section element, even when
3255 the section contained no additional (vertical) content.
3256 That caused problems for some transition effects.
3257 + Omit unknown attributes in EPUB2 output. For example,
3258 `epub:type` attributes should not be passed through,
3259 or the epub produced will not validate.
3261 * JATS writer: remove 'role' attribute on 'bold' and 'sc' elements (#4937).
3262 The JATS spec does not allow these.
3264 * Textile writer: don't represent `uri` class explicitly
3265 for autolinks (#4913).
3267 * Lua filters (Albert Krewinkel):
3269 + Cleanup filter execution code.
3270 + Better error on test failure.
3272 * HTML, Muse reader tests: reduce time taken by round-trip test.
3274 * Added cabal.project.
3276 * MANUAL: `epub:type` is only useful for epub3 (Maura Bieg).
3278 * Use hslua v1.0.0 (Albert Krewinkel).
3280 * Fix `translations/ru` to use modern Russian orthography
3283 * Build Windows binary using ghc 8.6.1 and cabal new-build. This
3284 fixes issues with segfaults in the 32-bit Windows binaries (#4283).
3286## pandoc 2.3 (2018-09-16)
3288 * Add `--metadata-file` option (Mauro Bieg, #1960), which allows
3289 users to specify metadata in a YAML file, regardless of the
3290 input format (#1960).
3292 * Text.Pandoc.Writers.Shared: export `isDisplayMath` (API change).
3294 * Text.Pandoc.Readers.Markdown: export `yamlToMeta` (API change,
3297 * Text.Pandoc.Readers.LaTeX.Types:
3299 + New type `ArgSpec` (API change).
3300 + Second parameter of `Macro` constructor is now `[ArgSpec]` instead of
3305 + Use `tex` instead of `latex` for raw tex-ish content. We can't
3306 always tell if it's LaTeX, ConTeXt, or plain TeX. Better just to
3307 use `tex` always. Note that if `context` or `latex` specifically
3308 is desired, you can still force that in a markdown document by
3309 using the raw attribute. Note that this change may affect some
3310 filters, if they assume that raw tex parsed by the Markdown reader
3311 will be RawBlock (Format `latex`). In most cases it should be
3312 trivial to modify the filters to accept `tex` as well.
3313 + Refactor and reorganize YAML code (Mauro Bieg).
3314 + Make `example_lists` work for interrupted lists
3315 without `startnum` (#4908).
3319 + Parse `<script type="math/tex` tags as math (#4877).
3320 These are used by MathJax in some configurations.
3321 + Extract spaces inside links instead of trimming them
3322 (Alexander Krotov, #4845).
3323 + Added round-trip tests (Alexander Krotov).
3324 + Make parsing sensitive to the `raw_tex` extension (#1126). This now
3325 allows raw LaTeX environments, `\ref`, and `\eqref` to be parsed
3326 (which is helpful for translation HTML documents using MathJaX).
3328 * Org reader (Albert Krewinkel):
3330 + Respect export option `p` for planning info. Inclusion of planning info
3331 (`*DEADLINE*`, `*SCHEDULED*`, and `*CLOSED*`) can be controlled via the
3332 `p` export option: setting the option to `t` will add all planning
3333 information in a *Plain* block below the respective headline.
3334 + Org reader internals: don't rely on RecordWildCards and ViewPatterns
3336 + Strip planning info from output. Planning info is parsed, but not
3337 included in the output (as is the default with Emacs Org-mode, #4867).
3341 + Handle parameter patterns for `\def` (#4768, #4771).
3342 For example: `\def\foo#1[#2]{#1 and #2}`.
3343 + Allow `%` characters in URLs. This affects `\href` and `\url` (#4832).
3344 + Fixed parsing of `\texorpdfstring`. We were returning the wrong
3345 argument as the content.
3346 + Support `blockcquote`, `foreignblockquote`, `foreigncblockquote`,
3347 `hyphenblockquote`, `hyphencblockquote`, `enquote*`, `foreignquote`,
3348 `hyphenquote` from `csquotes` (#4848). Note that `foreignquote`
3349 will be parsed as a regular Quoted inline (not using the quotes
3350 appropriate to the foreign language).
3351 + Support more text-mode accents (#4652). Add support for `\|`, `\b`, `\G`,
3352 `\h`, `\d`, `\f`, `\r`, `\t`, `\U`, `\i`, `\j`, `\newtie`,
3353 `\textcircled`. Also fall back to combining characters when composed
3354 characters are not available.
3355 + Resolve `\ref` for figure numbers.
3356 + Support `mintinline` (#4365, Marc Schreiber).
3357 + Fix siunitx unit commands so they are only recognized in
3358 siunitx contexts (#4842). For example, `\l` outside of an
3359 siunitx context should be l-slash, not l (for liter).
3360 + Fix double `unnumbered` class (#4838). The `unnumbered` class
3361 was being included twice for starred sections.
3363 * RST reader: Don't skip link definitions after comments (#4860).
3365 * Muse reader (Alexander Krotov):
3367 + Close the `</quote>` in indented tag test.
3368 There is already a separate test for unclosed `</quote>`.
3369 + Autonumber sections in the correct order. Parsing now stops
3370 at each section header to ensure the header is registered before
3371 parsing of the next section starts.
3372 + Move duplicate code into `headingStart` function.
3373 + Allow newline after opening `*` or `**`.
3374 + Don't allow digits after closing marker in lightweight markup
3375 This change makes reader more compatible with Emacs Muse.
3376 + Parse `<verse>` tag in one pass instead of using
3377 `parseFromString`. This change makes it possible to have
3378 verbatim `</verse>` tag inside verse.
3380 * ODT reader: deal gracefully with missing `<office:font-face-decls/>`
3381 (#4336). This allows pandoc to parse ODT document produced by KDE's
3384 * Muse writer (Alexander Krotov):
3386 + Output headers without asterisks if not on the top level.
3387 + Never wrap definition list terms.
3388 + Set `envInsideBlock = True` when rendering notes.
3389 + Use `""` instead of `[]` for empty String.
3390 + Check for whitespace in the beginning and end of Str's.
3391 + Escape `-`, `;` and `>` in the beginning of strings.
3392 + Escape list markers in the beginning of notes.
3393 + Normalize inline list before testing if tags should be used.
3394 + Use tags instead of lightweight markup for empty strings.
3395 + Use lightweight markup when possible.
3396 + Escape empty strings. This guarantees that `conditionalEscapeString`
3397 never returns empty string.
3398 + Wrap conditionalEscapeString result into `Muse` type.
3399 This removes the need to pass `envInsideLinkDescription` to it.
3400 + Separate `shouldEscapeString` function.
3401 + Simplify inline list rendering.
3402 + Replace newlines in strings with spaces.
3406 + Add MetaString case for abstract, subtitle (#4900, Mauro Bieg).
3407 + Properly handle display math in spans (#4826). This isn't a
3408 complete solution, since other nestings of display math may still
3409 cause problems, but it should work for what is by far the most
3414 + Always output `<dt>` element, even if it is empty (#4883,
3416 + Don't prefix `epub:` attributes with `data-`.
3418 * Org writer: Don't escape literal `_`, `^` (#4882). Org doesn't
3419 recognize these escapes.
3421 * ODT writer: Fix percentage image scaling (#4881, Nils Carlson).
3422 Image scaling was broken when a width was set to a percentage.
3424 * EPUB writer: set `epub:type` on body element in each chapter,
3425 depending on the `epub:type` of the first section (#4823). This
3426 only affects epub3. See
3427 http://www.idpf.org/epub/profiles/edu/structure/#h.l0bzsloklt10
3429 * FB2 writer: put `coverpage` element between title and date rather than in
3430 `document-info` element (#4854).
3432 * Markdown writer: Escape `~` if strikeout extension enabled (#4840).
3434 * Haddock writer: Use proper format for latex math in haddock (#4571, Joe
3435 Hermaszewski). Inline math in `\(..\)`, display math in `\[..\]`,
3436 tex is now used. Previously we'd "fake it with unicode" and fall
3437 back to tex when that didn't work. But newer haddock versions
3442 + Ensure that title element is always present, even if empty (#4839).
3443 + Put author tags in the template, rather than adding them in
3446 * LaTeX writer/template: be sensitive to `filecolor` variable (#4822).
3447 `linkcolor` only affects internal links, and `urlcolor` only
3448 affects linked URLs. For external links, the option to use is
3451 * ConTeXt writer: output raw `tex` blocks as well as `context` (#969).
3455 + Use `.. raw:: latex` for `tex` content.
3456 + Use `.. container` for generic Divs, instead of raw HTML.
3457 + Render Divs with admonition classes as admonitions (#4833).
3458 Also omit Div with class `admonition-title`. These are generated
3459 by the RST reader and should be omitted on round-trip.
3461 * Text.Pandoc.PDF: fix message printed when rsvg-convert is not available
3462 (#4855, Antonio Terceiro).
3464 * HTML5 template: add the `title-block-header` identifier to the
3465 `header` element, to make it easier to style precisely (#4767,
3468 * OpenDocument template: Remove unnecessary indenting of TOC title (#4798,
3469 José de Mattos Neto).
3471 * latex template: Add support for $toc-title$ to LaTeX (and PDF)
3472 (#4853, Wandmalfarbe).
3474 * TEI template: improve `publicationStmt`. Add support for
3475 `publisher`, `address`, `pubPlace`, and `date` variables.
3477 * beamer template: Support "toc-title" (#4835, Cyril Roelandt).
3479 * Text.Pandoc.Extensions: Fix haddock on `Ext_footnotes` (Chris Martin).
3481 * Lua: cleanup Lua utils, remove unused functions (Albert Krewinkel).
3485 + Clarify that `--biblatex/--natbib` don't work directly for PDF
3487 + Document `epub:type` attribute (Mauro Bieg, #4901)
3488 + Clarify when `--resource-path` has an effect.
3489 + More detail on customization in syntax highlighting section.
3490 + Document encoding issue with `--listings` (#4871, Damien Clochard).
3491 + Remove docs on removed `--katex-stylesheet` (Mauro Bieg, #4862).
3492 + Use https for context wiki links (#4910).
3496 + Link to lua-filters repository (#4874).
3497 + Fix mistake in REPL instructions for stack. (#4849, Brian Leung).
3499 * lua-filters.md: add links to filters, and to lua-filters repository
3504 + Indicate that cabal >= 2.0 is needed.
3505 + Added chocolatey installation method (#4844, Miodrag Milić).
3507 * Travis: exclude round-trip tests, except for nightly test which can fail.
3509 * Use latest texmath, pandoc-citeproc.
3511 * Use a patched version of foundation until
3512 https://github.com/haskell-foundation/foundation/pull/503
3515 * Clean up appveyor build and Windows package creation.
3516 We now use 64-bit stack and ghc 8.4.3, lts-12 for the 64-bit build. The
3517 WiX-based msi is now 64-bit for 64-bit builds (fixing #4795).
3519 * Remove obsolete RELEASE-CHECKLIST.md.
3521 * Added additional compiler warnings in Makefile and CI builds.
3523## pandoc 2.2.3.2 (2018-08-07)
3525 * Markdown reader: Properly handle boolean values in YAML metadata (#4819).
3526 This fixes a regression in 2.2.3, which cause boolean values to
3527 be parsed as MetaInlines instead of MetaBool.
3529 We here record another undocumented (but desirable) change in 2.2.3:
3530 numerical metadata fields are now parsed as MetaInlines rather than
3533## pandoc 2.2.3.1 (2018-08-06)
3535 * Markdown reader: Fix parsing of embedded mappings in YAML metadata
3536 (#4817). This fixes a regression in 2.2.3 which caused embedded
3537 mappings (e.g. mappings in sequences) not to work in YAML metadata.
3539## pandoc 2.2.3 (2018-08-05)
3541 * RST reader: improve parsing of inline interpreted text roles (#4811).
3543 + Use a Span with class "title-reference" for the default
3544 title-reference role.
3545 + Use `B.text` to split up contents into `Space`s, `SoftBreak`s,
3546 and `Str`s for `title-reference`.
3547 + Use Code with class "interpreted-text" instead of Span and Str for
3548 unknown roles. (The RST writer has also been modified to round-trip
3550 + Disallow blank lines in interpreted text.
3551 + Backslash-escape now works in interpreted text.
3552 + Backticks followed by alphanumerics no longer end interpreted text.
3553 + Remove support for nested inlines (Francesco Occhipinti).
3554 RST does not allow nested emphasis, links, or other inline
3555 constructs. This fixes several bugs (#4581, #4561, #4792).
3557 * Org reader: fix parsers relying on `parseFromString` (#4784, Albert
3558 Krewinkel). Emphasis was not parsed when it followed directly after
3559 some block types (e.g., lists).
3561 * Markdown reader: Allow unquoted numbers and booleans as YAML mapping
3562 keys. Previously in 2.2.2 you could not do
3574 With this change, both forms work.
3576 * DocBook reader: metadata handling improvements.
3577 Now we properly parse title and subtitle elements that are direct
3578 children of book and article (as well as children of bookinfo,
3579 articleinfo, or info). We also now use the `subtitle` metadata
3580 field for subtitles, rather than tacking the subtitle on to the
3585 + Allow images to be directly nested within links (#4810, Francesco
3587 + Use `titleblock` instead of `title` variable for title block (#4803,
3588 Francesco Occhipinti). `titleblock` contains a properly formatted
3589 title and subtitle (using top-level headers). `title` and
3590 `subtitle` variables are still available and just contain the
3591 title and subtitle text. Note that this change will require an
3592 update to custom rst templates.
3593 + Render Code with class "interpreted-text" as interpreted text role.
3595 * MediaWiki writer: Avoid extra blank line in tables with empty cells
3596 (#4794). Note that the old output is semantically identical, but the
3597 new output looks better.
3599 * Lua Utils module: add function `blocks_to_inlines` (#4799, Albert
3600 Krewinkel). Exposes a function converting which flattenes a list of
3601 blocks into a list of inlines. An example use case would be the
3602 conversion of Note elements into other inlines.
3604 * RST template: use `titleblock` instead of `title`. Users of
3605 custom RST templates will want to update this.
3607 * LaTeX template: Moved some beamer code in default.latex template.
3608 This change allows beamer themes to change the template and font (as
3609 Metropolis does) (#4450).
3611 * Better error message on `-t pdf -o out.pdf` (#1155, Mauro Bieg).
3613 * Added test case for #4669 to repository.
3615 * INSTALL.md: Fix broken link for cabal-install (#4806, ChanHoHo).
3619 + Add beamer info for slide backgrounds (#4802, John Muccigrosso).
3620 + Clarify when `csquotes` is used in LaTeX writer (#4514).
3621 + Add `commonmark` to list of output formats where `raw_tex` has an
3625## pandoc 2.2.2.1 (2018-07-19)
3627 * Fix regression finding templates in user data directory (#4777).
3628 Under version 2.2.1 and prior pandoc found latex templates in the
3629 templates directory under the data directory, but this broke in 2.2.2.
3631 * Fix for bug in parsing `\input` in `rawLaTeXBlock` and
3632 `rawLaTeXInline` (#4781). (This primarily affects the markdown
3633 reader, and other readers that accept raw tex.)
3634 Starting in 2.2.2, everything after an `\input` (or `\include`)
3635 in a markdown file would be parsed as raw LaTeX.
3639 + Clarify `gfm` vs `markdown_github` (#4783, Mauro Bieg).
3640 * Use `keywords` instead of `tags` in YAML metadata example (#4779).
3641 Unlike `tags`, `keywords` is used in some of the writers
3642 and default templates.
3644 * Add missing `rollingLinks` option to revealjs template (#4778,
3647## pandoc 2.2.2 (2018-07-16)
3649 * Use HsYAML instead of yaml for translations and YAML metadata (#4747).
3650 yaml wraps a C library; HsYAML is pure Haskell. Advances #4535.
3652 Note: HsYAML implements YAML 1.2, in which the valid true
3653 values are `true`, `True`, `TRUE`. This means a change in
3654 the semantics of YAML metadata that could affect users:
3655 `y`, `yes`, and `on` no longer count as true values.
3657 * Fix regression: make `--pdf-engine` work with full paths (#4681, Mauro
3660 * CommonMark reader: Handle `ascii_identifiers` extension (#4742,
3661 Anders Waldenborg). Non-ascii characters were not stripped from
3662 identifiers even if the `ascii_identifiers` extension was
3663 enabled (which is is by default for gfm).
3665 * TikiWiki reader: Improve list parsing (#4722, Mauro Bieg).
3666 Remove trailing Space from list items. Parse lists that have no space
3671 + Treat `lilypond` as a verbatim environment (#4725).
3672 + Parse figure label into Image id (#4700, Mauro Bieg).
3673 + Beamer: Allow "noframenumbering" option (#4696, Raymond Ehlers).
3674 + Allow spaces around `\graphicspath` arguments (#4698).
3675 + Handle includes without surrounding blanklines (#4553).
3676 In addition, `\input` can now be used in an inline context,
3677 e.g. to provide part of a paragraph, as it can in LaTeX.
3678 + In `rawLaTeXBlock`, handle macros that resolve to a
3679 `\begin` or `\end` (#4667).
3680 + In `rawLaTeXBlock`, don't expand macros in macro definitions (#4653).
3681 Note that this only affected LaTeX in markdown.
3682 + Tighten up reading of beamer overlay specifications (#4669).
3683 Ideally we'd turn these on only when reading beamer, but currently
3684 beamer is not distinguished from latex as an input format.
3685 This commit also activates parsing of overlay specifications
3686 after commands in general (e.g. `\item`), since they can occur
3687 in many contexts in beamer.
3688 + Parse more siunitx unit commands (#4296, #4773).
3689 + Be more forgiving in key/value option parsing (#4761).
3693 + Allow empty code spans, e.g. `` ` ` ``.
3694 + Emojis are now wrapped in Spans with class `emoji` and
3695 attribute `data-emoji` (Anders Waldenborg, #4743).
3696 This allows the writer to handle them in a special way
3697 (e.g. using a special font, or just rendering the
3700 * Muse reader (Alexander Krotov, except where indicated):
3702 + Get rid of non-exhaustive pattern match warning (Mauro Bieg).
3703 + Add support for floating images.
3704 + Add support for images with specified width.
3705 + Parse image URLs without "guard" and "takeExtension".
3706 + Split link and image parsing into separate functions.
3707 + Parse links starting with "URL:" explicitly instead of trying to strip
3708 "URL:" prefix after parsing.
3710 * Texinfo writer: Use `@sup` and `@sub` instead of custom macros (#4728,
3713 * Markdown writer: Preserve `implicit_figures` with attributes, even if
3714 `implicit_attributes` is not set, by rendering in raw HTML (#4677).
3716 * Markdown and commonmark/github writers now respect the `emoji`
3717 extension. So, `-f markdown+emoji -t markdown+emoji` now leaves
3718 `:smile:` as `:smile:` rather than converting it to a smile
3721 * Docx writer: Be sensitive to `toc` in YAML metadata (#4645).
3723 * ODT/OpenDocument writer: Make internal links work (#4358).
3724 This adds proper bookmarks to the headers with non-null IDs.
3726 * EPUB writer: Properly escape pagetitle. Previously we weren't
3727 escaping `&` and other XML characters in the pagetitle, so a title
3728 containing a `&` would be invalid.
3730 * AsciiDoc Writer: Eescape square brackets at start of line (#4545,
3735 + Don't treat 'example' as a syntax name (#4748).
3736 This fixes conversions from org with example blocks.
3737 + Support `--number-sections` via the `section-numbering`
3738 directive in standalone output.
3740 * reveal.js writer and template: reuse mathjax URL
3741 provided by the argument to `--mathjax` or the normal pandoc default,
3742 rather than a hard-coded one in the template (#4701).
3746 + Properly handle footnotes in table captions (#4683).
3747 Refactored code from figure captions to use in both places.
3748 + In beamer output, fix single digit column percentage (#4690, Mauro
3751 * FB2 writer (Alexander Krotov):
3753 + Convert Plain to Para in annotation (#2424).
3754 + Fix order of items in title-info (#2424).
3756 * Custom writer: fix error message on script failure (Albert Krewinkel).
3757 Error messages produced by Lua were not displayed by Pandoc.
3759 * Text.Pandoc.Emoji now exports `emojiToInline`, which returns a Span
3760 inline containing the emoji character and some attributes with metadata
3761 (class `emoji`, attribute `data-emoji` with emoji name). (API change,
3762 Anders Waldenborg, #4743).
3766 + Revert fix for #4484 (only compress images on last run, #4755).
3767 This will mean some increase in the time it takes to
3768 produce an image-heavy PDF with xelatex, but it will
3769 make tables of contents correct, which is more important.
3770 + Fix logic error in `runTeXProgram`. We were running the tex program
3771 one more time than requested. This should speed up PDF production.
3773 * Allow `--template` to take a URL as argument.
3775 * Text.Pandoc.Highlighting: Add missing re-export of `breezeDark`
3776 highlighting style (#4687, Adrian Sieber, API change).
3778 * Clarify macOS install in INSTALL.md (#4661). Make the binary package
3779 installer the recommended method, and note that on some older versions of
3780 macOS, homebrew installs from source and takes a lot of disk space
3785 + Clarify EPUB linked media (#4756, Mauro Bieg)
3786 + Update manual for "true" YAML values. Now that we're using HsYAML and
3787 YAML 1.2, the valid true values are `true`, `True`, `TRUE`. NOTE!
3788 `y`, `yes`, `on` no longer count as true values.
3789 + Document `-F` as alias for `--filter` (thanks to Gandalf Saxe).
3790 + Update manual on how math is rendered in LaTeX.
3791 + Add proxy description (#4131, Mauro Bieg).
3792 + Clarify that `--toc` requires `--standalone` (#4703).
3793 + Update citation styles link (#4699, wiefling).
3795 * In API docs, clarify how `Ext_east_asian_line_breaks` extension works
3796 (kaizshang91). Note that it will not take effect when readers/writers
3797 are called as libraries (#4674).
3799 * Improved translations/fr (#4766, lux-lth).
3801 * Removed inadvertently added `.orig` files from repository (#4648).
3803 * Remove `network-uri` flag and use 'Network.Socket'.
3804 This removes a compiler warning. There is no need for the old
3805 `network-uri` flag, since network 2.6 was released in 2014.
3807 * Add stack.lts10.yaml, stack.lts11.yaml. use lts-12 in stack.yaml.
3809 * Bump upper bounds for dependent packages.
3811 * Exclude foundation 0.0.21 for ghc 7.10. Otherwise cabal gets
3812 confused because of the way ghc 7.10 is excluded in foundation's
3813 cabal file. This can be removed when haskell-foundation/foundation#500
3816 * Require cabal-version >= 2.0. This is needed for haddock-library.
3821## pandoc 2.2.1 (2018-05-10)
3823 * Restored and undeprecated gladtex for HTML math (#4607).
3825 + Added `GladTeX` constructor to `Text.Pandoc.Options.HTMLMathMethod`
3826 [API change, reverts removal in v2.2]
3827 + Restored and undeprecated `--gladtex` option, removed in v2.2.
3829 * LaTeX reader: Handle `$` in `/text{..}` inside math (#4576).
3831 * Org reader: Fix image filename recognition (Albert Krewinkel).
3832 Use a function from the filepath library to check whether a string is a
3833 valid file name. The custom validity checker that was used before gave
3834 wrong results (e.g. for absolute file paths on Windows,
3835 kawabata/ox-pandoc#52).
3837 * FB2 reader: Replace some errors with warnings (Alexander Krotov).
3841 + Strip links from headers when creating TOC (#4340).
3842 Otherwise the TOC entries will not link to the sections.
3843 + Fix regression with tex math environments in HTML + MathJax (#4639).
3845 * Muse writer (Alexander Krotov): Add support for left-align and
3846 right-align classes (#4542).
3848 * Docx writer: Support underline (#4633).
3850 * Text.Pandoc.Parsing: Lookahead for non-whitespace after
3851 `singleQuoteStart` and `doubleQuoteStart` (#4637).
3853 * `test-pandoc-utils.lua`: more robust testing on both windows
3854 and \*nix. Previously the pipe tests were only run if
3855 `\bin/false` and `/bin/sed` were present, which they aren't
3856 in default MacOS and Windows systems. Fixed by using `tr`
3857 and `false`, which should always be in the path on a \*nix
3858 system, and `find` and `echo` for Windows.
3860 * Text.Pandoc.Shared: add `uriPathToPath`.
3861 This adjusts the path from a file: URI in a way that is sensitive
3862 to Windows/Linux differences. Thus, on Windows,
3863 `/c:/foo` gets interpreted as `c:/foo`, but on Linux,
3864 `/c:/foo` gets interpreted as `/c:/foo`. See #4613.
3866 * Use `uriPathToPath` with file: URIs (#4613).
3868 * Revert piping HTML to pdf-engine (Mauro Bieg, #4413). Use a temp
3871 * Text.Pandoc.Class: Catch IO errors when writing media files
3872 and issue a warning, rather than an error (Francesco Occhipinti, #4559).
3874 * Don't lowercase custom writer filename (Alexander Krotov, #4610).
3876 * MANUAL (Mauro Bieg):
3878 + Clarify truthiness in template variables (#2281).
3879 + Clarify pipe table width calculation (#4520).
3881 * ConTeXt template: New Greek fallback typeface (Pablo Rodríguez, #4405).
3882 CMU Serif gives better typographic results than the previous
3883 Greek fallback DejaVu Serif.
3885 * Make HTML template polyglot (#4606, OvidiusCicero), by making
3886 `<link rel="stylesheet" href="$css$">` self-closing.
3888 * Use texmath 0.11, allowing better translation of non-ASCII
3889 characters in math (#4642).
3892## pandoc 2.2 (2018-04-27)
3894 * New input format: `fb2` (FictionBook2) (Alexander Krotov).
3896 * Make `--ascii` work for all XML formats (ICML, OPML, JATS,...),
3897 and for `ms` and `man`.
3899 * Remove deprecated `--latexmathml`, `--gladtex`, `--mimetex`, `--jsmath`, `-m`,
3900 `--asciimathml` options.
3902 * New module Text.Pandoc.Readers.FB2, exporting readFB2 (Alexander
3903 Krotov, API change).
3907 + Allow empty key-value attributes, like `title=""` (#2944).
3908 + Handle table w/o following blank line in fenced div (#4560).
3909 + Remove "fallback" for `doubleQuote` parser. Previously the
3910 parser tried to be efficient -- if no end double quote was found,
3911 it would just return the contents. But this could backfire in a
3912 case `**this should "be bold**`, since the fallback would return
3913 the content `"be bold**` and the closing boldface delimiter
3914 would never be encountered.
3915 + Improve computation of the relative width of the last column in a
3916 multiline table, so we can round-trip tables without constantly
3917 shrinking the last column.
3921 + Fix images with space in file path (#4344).
3925 + Properly resolve section numbers with `\ref` and chapters (#4529).
3926 + Parse sloppypar environment (#4517, Marc Schreiber).
3927 + Improve handling of raw LaTeX (for markdown etc.) (#4589, #4594).
3928 Previously there were some bugs in how macros were handled.
3929 + Support `\MakeUppercase`, `\MakeLowercase`, `\uppercase`,
3930 `\lowercase`, and also `\MakeTextUppercase` and
3931 `\MakeTextLowercase` from textcase (#4959).
3935 + Fixed tables with no body rows (#4513).
3936 Previously these raised an exception.
3940 + Improve table parsing (#4508). This fixes detection of table
3941 attributes and also handles `!` characters in cells.
3945 + Properly handle title in `section` element (#4526).
3946 Previously we just got `section_title` for `section` (though `sect1`,
3947 `sect2`, etc. were handled properly).
3948 + Read tex math as output by asciidoctor (#4569, Joe Hermaszewski).
3952 + Combine adjacent CodeBlocks with the same attributes into
3953 a single CodeBlock. This prevents a multiline codeblock in
3954 Word from being read as different paragraphs.
3958 + Allow < 3 spaces indent under directives (#4579).
3959 + Fix anonymous redirects with backticks (#4598).
3961 * Muse reader (Alexander Krotov):
3963 + Add support for Text::Amuse multiline headings.
3964 + Add `<math>` tag support.
3965 + Add support for `<biblio>` and `<play>` tags.
3966 + Allow links to have empty descriptions.
3967 + Require block `<literal>` tags to be on separate lines.
3968 + Allow `-` in anchors.
3969 + Allow verse to be indented.
3970 + Allow nested footnotes.
3971 + Internal improvements.
3973 * Muse writer (Alexander Krotov):
3975 + Escape `>` only at the beginning of a line.
3976 + Escape `]` in image title.
3977 + Escape `]` brackets in URLs as `%5D`.
3978 + Only escape brackets when necessary.
3979 + Escape ordered list markers.
3980 + Do not escape list markers unless preceded by space.
3981 + Escape strings starting with space.
3982 + Escape semicolons and markers after line break.
3983 + Escape `;` to avoid accidental comments.
3984 + Don't break headers, line blocks and tables with line breaks.
3985 + Correctly output empty headings.
3986 + Escape horizontal rule only if at the beginning of the line.
3987 + Escape definition list terms starting with list markers.
3988 + Place header IDs before header.
3989 + Improve span writing.
3990 + Do not join Spans in normalization.
3991 + Don't align ordered list items.
3992 + Remove key-value pairs from attributes before normalization.
3993 + Enable `--wrap=preserve` for all tests by default.
3994 + Reduced `<verbatim>` tags in output.
3999 + Use more consistent indentation (#4563). Previously we
4000 used an odd mix of 3- and 4-space indentation. Now we use 3-space
4001 indentation, except for ordered lists, where indentation must
4002 depend on the width of the list marker.
4003 + Flatten nested inlines (#4368, Francesco Occhipinti).
4004 Nested inlines are not valid RST syntax, so we flatten them following
4005 some readability criteria discussed in #4368.
4009 + Ensure that `pagetitle` is always set, even when structured titles
4010 are used. This prevents spurious warnings about empty title
4013 * FB2 writer (Alexander Krotov):
4015 + Output links inline instead of producing notes. Previously all links
4016 were turned into footnotes with unclickable URLs inside.
4017 + Allow emphasis and notes in titles.
4018 + Don't intersperse paragraph with empty lines.
4019 + Convert metadata value `abstract` to book annotation.
4020 + Use `<empty-line />` for `HorizontalRule` rather than `LineBreak`.
4021 FB2 does not have a way to represent line breaks inside paragraphs;
4022 previously we used `<empty-line />` elements, but these are not allowed
4025 * Powerpoint writer (Jesse Rosenthal):
4027 + Handle Quoted Inlines (#4532).
4028 + Simplify code with `ParseXml`.
4029 + Allow fallback options when looking for placeholder type.
4030 + Check reference-doc for all layouts.
4031 + Simplify speaker notes logic.
4032 + Change notes state to a simpler per-slide value.
4033 + Remove `Maybe` from `SpeakerNotes` in `Slide`. `mempty`
4034 means no speaker notes.
4035 + Add tests for improved speaker notes.
4036 + Handle speaker notes earlier in the conversion process.
4037 + Keep notes with related blocks (#4477). Some blocks automatically
4038 split slides (imgs, tables, `column` divs). We assume that any
4039 speaker notes immediately following these are connected to these
4040 elements, and keep them with the related blocks, splitting after them.
4041 + Remove `docProps/thumbnail.jpeg` in data dir (Jesse Rosenthal, #4588).
4042 It contained a nonfree ICC color calibration profile and is not needed
4043 for production of a powerpoint document.
4047 + Include a blank line at the end of the row in a single-row multiline
4048 table, to prevent it from being interpreted as a simple table (#4578).
4050 * CommonMark writer:
4052 + Correctly ignore LaTeX raw blocks when `raw_tex` is not
4053 enabled (#4527, quasicomputational).
4057 + Add `epub:type="footnotes"` to notes section in EPUB3 (#4489).
4061 + In beamer, don't use format specifier for default ordered lists
4062 (#4556). This gives better results for styles that put ordered list
4063 markers in boxes or circles.
4064 + Update `\lstinline` delimiters (#4369, Tim Parenti).
4068 + Use `\f[R]` rather than `\f[]` to reset font (#4552).
4069 + Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`,
4070 since the header font is automatically bold (#4552).
4071 + Use `\f[CB]` rather than `\f[BC]` for monospace bold (#4552).
4072 + Create pdf anchor for a Div with an identifier (#4515).
4073 + Escape `/` character in anchor ids (#4515).
4074 + Improve escaping for anchor ids: we now use _uNNN_ instead of uNNN
4079 + Don't escape U+2019 as `'` (#4550).
4081 * Text.Pandoc.Options:
4083 + Removed `JsMath`, `LaTeXMathML`, and `GladTeX` constructors from
4084 `Text.Pandoc.Options.HTMLMathMethod` [API change].
4086 * Text.Pandoc.Class:
4088 + `writeMedia`: unescape URI-escaping in file path. This avoids
4089 writing things like `file%20one.png` to the file system.
4091 * Text.Pandoc.Parsing:
4093 + Fix `romanNumeral` parser (#4480). We previously accepted 'DDC'
4095 + `uri`: don't treat `*` characters at end as part of URI (#4561).
4099 + Use the alias `application/eps` for EPS (#2067).
4100 This will ensure that we retain the eps extension after reading the
4101 image into a mediabag and writing it again.
4105 + Use `withTempDir` in `html2pdf`.
4106 + With `xelatex`, don't compress images til the last run (#4484).
4107 This saves time for image-heavy documents.
4108 + Don't try to convert EPS files (#2067). `pdflatex` converts them
4109 itself, and JuicyPixels can't do it.
4110 + For `pdflatex`, use a temp directory in the working directory.
4111 Otherwise we can have problems with the EPS conversion pdflatex
4112 tries to do, which can't operate on a file above the working
4113 directory without `--shell-escape`.
4115 * Changes to tests to accommodate changes in pandoc-types.
4116 In <https://github.com/jgm/pandoc-types/pull/36> we changed
4117 the table builder to pad cells. This commit changes tests
4118 (and two readers) to accord with this behavior.
4120 * Set default extensions for `beamer` same as `latex`.
4124 + Add `beameroption` variable (#4359, Étienne Bersac).
4125 + Use `pgfpages` package; this is needed for notes on second
4126 screen in beamer (Étienne Bersac).
4127 + Add `background-image` variable (#4601, John Muccigrosso).
4129 * reveal.js template: Add `background-image` variable (#4600,
4132 * ms template: Fix date. Previously `.ND` was used, but this only
4133 works if you have a title page, which we don't. Thanks to @teoric.
4135 * Removed pragmas for unused extensions (#4506, Anabra).
4137 * Fix bash completion for `--print-default-data-file` (#4549).
4138 Previously this looked in the filesystem, even if pandoc
4139 was compiled with `embed_data_files` (and sometimes it looked
4140 in a nonexistent build directory). Now the bash completion
4141 script just includes a hard-coded list of data file names.
4145 + Clarify template vs metadata variables (#4501, Mauro Bieg).
4146 + Fix raw content example (#4479, Mauro Bieg).
4147 + Specify that you use html for raw output in epub.
4148 + Add examples for raw docx blocks (#4472, Tristan Stenner).
4149 The documentation states that the target format name should match
4150 the output format, which isn't the case for `docx`/`openxml` and
4152 + Don't say that `empty_paragraphs` affects markdown output (#4540).
4153 + Consolidate input/output format documentation (#4577, Mauro Bieg).
4155 * New README template. Take in/out formats from manual.
4157 * Fix example in lua-filters docs (#4459, HeirOfNorton).
4159 * Use the `-threaded` GHC flag when building benchmarks (#4587,
4160 Francesco Occhipinti).
4162 * Bump temporary upper bound to 1.4.
4164 * Use pandoc-citeproc 0.14.3.1.
4166 * Use texmath-0.10.1.2 (fixes escapes in math in ms, #4597).
4168 * Removed old lib directory. This was used for something long ago,
4169 but plays no role now.
4171 * Removed unneeded data file `LaTeXMathML.js`.
4173 * Create 64- and 32-bit versions of Windows binary packages.
4175## pandoc 2.1.3 (2018-03-18)
4177 * Docx reader (Jesse Rosenthal):
4179 + Add tests for nested smart tags.
4180 + Parse nested smart tags.
4181 + Make unwrapSDT into a general `unwrap` function that can unwrap both
4182 nested SDT tags and smartTags. This makes the SmartTags constructor in
4183 the Docx type unnecessary, so we remove it (#4446).
4184 + Remove unused `docxWarnings` (Alexander Krotov).
4186 * RST reader: Allow unicode bullet characters (#4454).
4188 * Haddock reader: Better table handling, using haddock-library's
4189 new table support, if compiled against a version that
4190 includes it. Note that tables with col/rowspans will not
4191 translate well into Pandoc.
4193 * Muse reader (Alexander Krotov):
4195 + Various internal improvements.
4196 + Require closing tag to have the same indentation as opening.
4197 + Do not reparse blocks inside unclosed block tag (#4425).
4198 + Parse `<class>` tag (supported by Emacs Muse).
4199 + Do not produce empty Str element for unindented verse lines.
4203 + Add support to parse unit string of `\SI` command (closes #4296,
4206 * Haddock writer: In the writer, we now render tables always as
4207 grid tables, since Haddock supports these.
4209 * DokuWiki writer: rewrite backSlashLineBreaks (#4445, Mauro Bieg).
4211 * Docx writer: Fixed formatting of `DefaultStyle` ordered lists in
4212 docx writer. We want decimal for the top level, not lower roman.
4216 + Strip whitespace at beginning and ending of inline containers
4217 (#4327, Francesco Occhipinti).
4218 + Filter out empty inline containers (#4434). There is nothing in
4219 RST that corresponds to e.g. `Emph []`, so we just ignore elements
4220 like this (Francesco Occhipinti).
4222 * Muse writer (Alexander Krotov):
4224 + Support spans with anchors.
4225 + Replace smallcaps with emphasis before normalization.
4226 + Output smallcaps as emphasis.
4227 + Expand Cite before list normalization.
4228 + Write empty inline lists as `<verbatim></verbatim>`.
4229 + Remove empty Str from the beginning of inline lists during normalization.
4230 + Escape "-" to avoid creating bullet lists.
4231 + Fix math expansion for more than one expression per paragraph.
4232 + Expand math before inline list normalization.
4234 * Dokuwiki writer: fix LineBreaks in Tables (#4313, Mauro Bieg).
4238 + Asciify pdf anchors, since unicode anchors don't work (#4436).
4239 Internal links should be converted automatically, so this shouldn't
4240 affect users directly.
4241 + Don't escape hyphens as `\-`; that's for a minus sign (#4467).
4243 * Beamer writer: put hyperlink after `\begin{frame}` and not in the title
4244 (#4307). If it's in the title, then we get a titlebar on slides with
4245 the `plain` attribute, when the id is non-null. This fixes a regression
4248 * EPUB writer: Remove notes from TOC in nav.xhtml (#4453, Mauro Bieg).
4250 * JATS writer: Remove extraneous, significant whitespace (#4335,
4253 * html2pdf: inject base tag with current working directory (#4413, Mauro
4254 Bieg). This helps ensure that linked resources are included.
4256 * Add Semigroup instances for everything for which we defined a
4257 Monoid instance previously (API change):
4259 + Text.Pandoc.Class.FileTree.
4260 + Text.Pandoc.Translations.Translations.
4261 + Text.Pandoc.Extensions.Extensions.
4262 + Text.Pandoc.Readers.Odt.StyleReader.Styles.
4263 + Text.Pandoc.Pretty.Doc.
4264 + Text.Pandoc.MediaBag.MediaBag.
4266 * Add custom Prelude to give clean code for Monoid and Semigroup
4267 that works with ghc 7.10-8.4. The custom Prelude (`prelude/Prelude`)
4268 is used for ghc versions < 8.4. `NoImplicitPrelude` is used
4269 in all source files, and Prelude is explicitly imported
4270 (this is necessary for ghci to work properly with the custom prelude).
4272 * Text.Pandoc.Writers.Shared (Francesco Occhipinti):
4274 + Export `stripLeadingTrailingSpace`.
4275 + Don't wrap lines in grid tables when `--wrap=none` (#4320).
4276 + `gridTable`: Don't wrap lines in tables when `--wrap=none`. Instead,
4277 expand cells, even if it results in cells that don't respect relative
4278 widths or surpass page column width. This change affects RST,
4279 Markdown, and Haddock writers.
4281 * Raise error if someone tries to print docx, odt, etc. template (#4441).
4283 * LaTeX template: Provide `bidi` package's option using
4284 `\PassOptionsToPackage` (#4357, Václav Haisman). This avoid a
4285 clash when `polyglossia` loads it first and then it is loaded again
4288 * ConTeXt template: Added `pdfa` variable to generate PDF/A (#4294, Henri
4289 Menke). Instructions on how to install the ICC profiles on ConTeXt
4290 standalone can be found in the wiki:
4291 <http://wiki.contextgarden.net/PDFX#ICC_profiles>.
4292 If the ICC profiles are not available the log will contain error
4295 * Use latest pandoc-types, skylighting
4297 * Use latest pandoc-citeproc in binary package.
4299 * Bump upper bound for time, criterion, haddock-library, exceptions,
4300 http-types, aeson, haddock-library.
4302 * Bump upper bound tasty-quickcheck 0.10 (#4429, Felix Yan).
4304 * pandoc.cabal: fix up other-extensions and language fields.
4305 Language is now consistently `Haskell2010`, and other-extensions
4306 is consistently `NoImplicitPrelude`. Everything else to be specified
4307 in the module header as needed.
4309 * Removed `old-locale` flag and Text.Pandoc.Compat.Time.
4310 This is no longer necessary since we no longer support ghc 7.8.
4312 * Make `weigh-pandoc` into a benchmark program.
4313 Remove `weigh-pandoc` flag. `weigh-pandoc` is now built (and run)
4314 automatically when you build (and run) benchmarks.
4316 * MANUAL: add instructions for background images reveal.js (#4325, John
4319 * appveyor: use VS 2013 environment instead of VS 2015 for Windows builds.
4321## pandoc 2.1.2 (2018-03-02)
4325 + Fix parsing bug with nested fenced divs (#4281). Previously we allowed
4326 "nonindent spaces" before the opening and closing `:::`, but this
4327 interfered with list parsing, so now we require the fences to be flush with
4328 the margin of the containing block.
4330 * Commonmark reader:
4332 + `raw_html` is now on by default. It can be disabled explicitly
4333 using `-f commonmark-raw_html`.
4335 * Org reader (Albert Krewinkel):
4337 + Move citation tests to separate module.
4338 + Allow changing emphasis syntax (#4378). The characters allowed before
4339 and after emphasis can be configured via `#+pandoc-emphasis-pre` and
4340 `#+pandoc-emphasis-post`, respectively. This allows to change which
4341 strings are recognized as emphasized text on a per-document or even
4342 per-paragraph basis. Example:
4344 #+pandoc-emphasis-pre: "-\t ('\"{"
4345 #+pandoc-emphasis-post: "-\t\n .,:!?;'\")}["
4349 + Fixed comments inside citations (#4374).
4350 + Fix regression in package options including underscore (#4424).
4351 + Make `--trace` work.
4352 + Fixed parsing of `tabular*` environment (#4279).
4356 + Fix regression in parsing of headers with trailing space (#4280).
4358 * Muse reader (Alexander Krotov):
4360 + Enable `<literal>` tags even if amuse extension is enabled.
4361 Amusewiki disables <literal> tags for security reasons.
4362 If user wants similar behavior in pandoc, RawBlocks and RawInlines
4363 can be removed or replaced with filters.
4364 + Remove space prefix from `<literal>` tag contents.
4365 + Do not consume whitespace while looking for closing end tag.
4366 + Convert alphabetical list markers to decimal in round-trip test.
4367 Alphabetical lists are an addition of Text::Amuse.
4368 They are not present in Emacs Muse and can be ambiguous
4369 when list starts with "i.", "c." etc.
4370 + Allow `<quote>` and other tags to be indented.
4371 + Allow single colon in definition list term.
4372 + Fix parsing of verse in lists.
4373 + Improved parsing efficiency. Avoid `parseFromString`.
4374 Lists are parsed in linear instead of exponential time now.
4375 + Replace ParserState with MuseState.
4376 + Prioritize lists with roman numerals over alphabetical lists.
4377 This is to make sure "i." starts a roman numbered list,
4378 instead of a list with letter "i" (followed by "j", "k", ...").
4379 + Fix directive parsing.
4380 + Parse definition lists with multiple descriptions.
4381 + Parse next list item before parsing more item contents.
4382 + Fixed a bug: headers did not terminate lists.
4383 + Move indentation parsing from `definitionListItem` to `definitionList`.
4384 + Paragraph indentation does not indicate nested quote.
4385 Muse allows indentation to indicate quotation or alignment,
4386 but only on the top level, not within a <quote> or list.
4387 + Require that block tags are on separate lines.
4388 Text::Amuse already explicitly requires it anyway.
4389 + Fix matching of closing inline tags.
4390 + Various internal changes.
4391 + Fix parsing of nested definition lists.
4392 + Require only one space for nested definition list indentation.
4393 + Do not remove trailing whitespace from `<code>`.
4394 + Fix parsing of trailing whitespace. Newline after whitespace now
4395 results in softbreak instead of space.
4397 * Docx reader (Jesse Rosenthal, except where noted):
4399 + Handle nested sdt tags (#4415).
4400 + Don't look up dependant run styles if `+styles` is enabled.
4401 + Move pandoc inline styling inside custom-style span.
4402 + Read custom styles (#1843). This will read all paragraph and
4403 character classes as divs and spans, respectively. Dependent styles
4404 will still be resolved, but will be wrapped with appropriate style
4405 tags. It is controlled by the `+styles` extension (`-f docx+styles`).
4406 This can be used in conjunction with the `custom-style` feature in the
4407 docx writer for a pandoc-docx editing workflow. Users can convert from
4408 an input docx, reading the custom-styles, and then use that same input
4409 docx file as a reference-doc for producing an output docx file. Styles
4410 will be maintained across the conversion, even if pandoc doesn't
4412 + Small change to Fields hyperlink parser. Previously, unquoted string
4413 required a space at the end of the line (and consumed it). Now we
4414 either take a space (and don't consume it), or end of input.
4415 + Pick table width from the longest row or header (Francesco Occhipinti,
4418 * Muse writer (Alexander Krotov):
4420 + Change verse markup: `> ` instead of `<verse>` tag.
4421 + Remove empty strings during inline normalization.
4422 + Don't indent nested definition lists.
4423 + Use unicode quotes for quoted text.
4424 + Write image width specified in percent in Text::Amuse mode.
4425 + Don't wrap displayMath into `<verse>`.
4426 + Escape nonbreaking space (`~~`).
4427 + Join code with different attributes during normalization.
4428 + Indent lists inside Div.
4429 + Support definitions with multiple descriptions.
4431 * Powerpoint writer (Jesse Rosenthal):
4433 + Use table styles This will use the default table style in the
4434 reference-doc file. As a result they will be easier when using
4435 in a template, and match the color scheme.
4436 + Remove empty slides. Because of the way that slides were split, these
4437 could be accidentally produced by comments after images. When animations
4438 are added, there will be a way to add an empty slide with either
4439 incremental lists or pauses.
4440 + Implement syntax highlighting. Note that background colors can't
4441 be implemented in PowerPoint, so highlighting styles that require
4442 these will be incomplete.
4443 + New test framework for pptx. We now compare the output of the
4444 Powerpoint writer with files that we know to (a) not be corrupt,
4445 and (b) to show the desired output behavior (details below).
4446 + Add `notesMaster` to `presentation.xml` if necessary.
4447 + Ignore links and (end)notes in speaker notes.
4448 + Output speaker notes.
4449 + Read speaker note templates conditionally. If there are speaker
4450 notes in the presentation, we read in the notesMasters templates
4451 from the reference pptx file.
4452 + Fix deletion track changes (#4303, Jesse Rosenthal).
4454 * Markdown writer: properly escape @ to avoid capture as citation
4459 + Put hypertarget inside figure environment (#4388).
4460 This works around a problem with the endfloat package and
4461 makes pandoc's output compatible with it.
4462 + Fix image height with percentage (#4389). This previously caused
4463 the image to be resized to a percentage of textwidth, rather than
4466 * ConTeXt writer (Henri Menke):
4468 + New section syntax and support `--section-divs` (#2609).
4469 `\section[my-header]{My Header}` ->
4470 `\section[title={My Header},reference={my-header}]`.
4471 The ConTeXt writer now supports the `--section-divs` option to
4472 write sections in the fenced style, with `\startsection` and
4474 + xtables: correct wrong usage of caption (Henri Menke).
4478 + Fix image resizing with multiple images (#3930, Andrew Pritchard).
4479 + Use new golden framework (Jesse Rosenthal).
4480 + Make more deterministic to facilitate testing (Jesse Rosenthal).
4481 - `getUniqueId` now calls to the state to get an incremented digit,
4482 instead of calling to P.uniqueHash.
4483 - we always start the PRNG in mkNumbering/mkAbstractNum with the same
4484 seed (1848), so our randoms should be the same each time.
4485 + Fix ids in comment writing (Jesse Rosenthal). Comments from
4486 `--track-changes=all` were producing corrupt docx, because the
4487 writer was trying to get id from the `(ID,_,_)` field of
4488 the attributes, and ignoring the "id" entry in the key-value pairs. We
4491 * Ms writer: Added papersize variable.
4495 + Use `height` instead of `depth` for images (#4331).
4496 + Ensure that id prefix is always used.
4497 + Don't emit `role` attribute; that was a leftover from the
4499 + Use 'xml:id', not 'id' attribute (#4371).
4503 + Do not output implicit heading IDs (#4363, Alexander
4504 Krotov). Convert to `asciidoc-auto_identifiers` for old behaviour.
4508 + Remove `blockToRST'` moving its logic into `fixBlocks`
4509 (Francesco Occhipinti).
4510 + Insert comment between lists and quotes (#4248, Francesco Occchipinti).
4512 * RST template: remove definition of 'math' role as raw.
4513 This used to be needed prior to v 0.8 of docutils, but
4514 now math support is built-in.
4516 * Slides: Use divs to set incremental/non-incremental (#4381,
4517 Jesse Rosenthal). The old method (list inside blockquote) still
4518 works, but we are encouraging the use of divs with class
4519 `incremental` or `nonincremental`.
4521 * Text.Pandoc.ImageSize:
4523 + Make image size detection for PDFs more robust (#4322).
4524 + Determine image size for PDFs (#4322).
4525 + EMF Image size support (#4375, Andrew Pritchard).
4527 * Text.Pandoc.Extensions:
4529 + Add `Ext_styles` (Jesse Rosenthal, API change). This will be used in
4530 the docx reader (defaulting to off) to read pargraph and character
4531 styles not understood by pandoc (as divs and spans, respectively).
4532 + Made `Ext_raw_html` default for `commonmark` format.
4534 * Text.Pandoc.Parsing:
4536 + Export `manyUntil` (Alexander Krotov, API change).
4537 + Export improved `sepBy1` (Alexander Krotov).
4538 + Export list marker parsers: `upperRoman`, `lowerRoman`,
4539 `decimal`, `lowerAlpha`, `upperAlpha` (Alexander Krotov, API change).
4541 * Tests/Lua: fix tests on windows (Albert Krewinkel).
4543 * Lua: register script name in global variable (#4393). The name of the Lua
4544 script which is executed is made available in the global Lua variable
4545 `PANDOC_SCRIPT_FILE`, both for Lua filters and custom writers.
4547 * Tests: Abstract powerpoint tests out to OOXML tests (Jesse Rosenthal).
4548 There is very little pptx-specific in these tests, so we abstract out
4549 the basic testing function so it can be used for docx as well. This
4550 should allow us to catch some errors in the docx writer that slipped
4551 by the roundtrip testing.
4553 * Lua filters: store constructors in registry (Albert Krewinkel). Lua
4554 functions used to construct AST element values are stored in the Lua
4555 registry for quicker access. Getting a value from the registry is much
4556 faster than getting a global value (partly to idiosyncrasies of hslua);
4557 this change results in a considerable performance boost.
4561 + `doc/org.md` Add draft of Org-mode documentation (Albert Krewinkel).
4562 + `doc/lua-filters.md`: document global vars set for filters
4564 + INSTALL.md: mention Stack version. (#4343, Adam Brandizzi).
4565 + MANUAL: add documentation on custom styles (Jesse Rosenthal).
4566 + MANUAL.txt: Document incremental and nonincremental divs (Jesse
4567 Rosenthal). Blockquoted lists are still described, but fenced divs are
4568 presented in preference.
4569 + MANUAL.txt: document header and footer variables (newmana).
4570 + MANUAL.txt: self-contained implies standalone (#4304, Daniel Lublin).
4571 + CONTRIBUTING.md: label was renamed. (#4310, Alexander Brandizzi).
4573 * Require tagsoup 0.14.3 (#4282), fixing HTML tokenization bug.
4575 * Use latest texmath.
4577 * Use latest pandoc-citeproc.
4579 * Allow exceptions 0.9.
4581 * Require aeson-pretty 0.8.5 (#4394).
4583 * Bump blaze-markup, blaze-html lower bounds to 0.8, 0.9 (#4334).
4585 * Update tagsoup to 0.14.6 (Alexander Krotov, #4282).
4587 * Removed ghc-prof-options. As of cabal 1.24, sensible defaults are used.
4589 * Update default.nix to current nixpkgs-unstable for hslua-0.9.5 (#4348,
4592## pandoc 2.1.1 (2018-01-18)
4596 + Don't coalesce adjacent raw LaTeX blocks if they are separated by a
4597 blank line. See lierdakil/pandoc-crossref#160.
4598 + Improved `inlinesInBalancedBrackets` (#4272, jgm/pandoc-citeproc#315).
4599 The change both improves performance and fixes a regression whereby
4600 normal citations inside inline notes and figure captions were not
4605 + Better handling for headers with an anchor (#4240). Instead of creating a
4606 Div containing the header, we put the id directly on the header.
4607 This way header promotion will work properly.
4608 + Add aligned environment when needed in math (#4254). `rst2latex.py`
4609 uses an `align*` environment for math in `.. math::` blocks, so this
4610 math may contain line breaks. If it does, we put the math in an
4611 `aligned` environment to simulate `rst2latex.py`'s behavior.
4615 + Fix col width parsing for percentages < 10% (#4262, n3fariox).
4619 + Advance source position at end of stream.
4620 + Pass through macro defs in `rawLaTeXBlock` even if the `latex_macros`
4621 extension is set (#4246). This reverts to earlier behavior and is
4622 probably safer on the whole, since some macros only modify things in
4623 included packages, which pandoc's macro expansion can't modify.
4624 + Fixed pos calculation in tokenizing escaped space.
4625 + Allow macro definitions inside macros (#4253). Previously we went into
4626 an infinite loop with
4628 \newcommand{\noop}[1]{#1}
4629 \noop{\newcommand{\foo}[1]{#1}}
4632 + Fix inconsistent column widths (#4238). This fixes a bug whereby column
4633 widths for the body were different from widths for the header in some
4636 * Docx reader (Jesse Rosenthal):
4638 + Parse hyperlinks in `instrText` tags (#3389, #4266). This was a form of
4639 hyperlink found in older versions of word. The changes introduced for
4640 this, though, create a framework for parsing further fields in MS Word
4641 (see the spec, ECMA-376-1:2016, §17.16.5, for more on these fields).
4642 We introduce a new module, `Text.Pandoc.Readers.Docx.Fields` which
4643 contains a simple parsec parser. At the moment, only simple hyperlink
4644 fields are accepted, but that can be extended in the future.
4646 * Muse reader (Alexander Krotov):
4648 + Parse `~~` as non-breaking space in Text::Amuse mode.
4649 + Refactor list parsing.
4651 * Powerpoint writer (Jesse Rosenthal):
4653 + Change reference to `notesSlide` to `endNotesSlide`.
4654 + Move image sizing into `picProps`.
4655 + Improve table placement.
4656 + Make our own `_rels/.rels` file.
4657 + Import reference-doc images properly.
4658 + Move `Presentation.hs` out of `PandocMonad`.
4659 + Refactor into separate modules. T.P.W.Powerpoint.Presentation
4660 defines the Presentation datatype and goes Pandoc->Presentation;
4661 T.P.W.Pandoc.Output goes Presentation->Archive.
4662 Text.Pandoc.Writers.Powerpoint a thin wrapper around the two modules.
4663 + Avoid overlapping blocks in column output.
4664 + Position images correctly in two-column layout.
4665 + Make content shape retrieval environment-aware.
4666 + Improve image handling. We now determine image and caption placement
4667 by getting the dimensions of the content box in a given layout.
4668 This allows for images to be correctly sized and positioned in a
4669 different template. Note that images without captions and headers are
4670 no longer full-screened. We can't do this dependably in different
4671 layouts, because we don't know where the header is (it could be to
4672 the side of the content, for example).
4673 + Read presentation size from reference file. Our presentation size is
4674 now dependent on the reference/template file we use.
4675 + Handle (sub)headers above slidelevel correctly. Above the slidelevel,
4676 subheaders will be printed in bold and given a bit of extra space
4677 before them. Note that at the moment, no distinction is made between
4678 levels of headers above the slide header, though that can be changed.
4679 + Check for required files. Since we now import from reference/dist
4680 file by glob, we need to make sure that we're getting the files we
4681 need to make a non-corrupt Powerpoint. This performs that check.
4682 + Improve templating using `--reference-doc`. Templating should work
4683 much more reliably now.
4684 + Include Notes slide in TOC.
4685 + Set notes slide header to slide-level.
4686 + Add table of contents. This is triggered by the `--toc` flag. Note
4687 that in a long slide deck this risks overrunning the text box. The user
4688 can address this by setting `--toc-depth=1`.
4689 + Set notes slide number correctly.
4690 + Clean up adding metadata slide. We want to count the slide numbers
4691 correctly if it's in there.
4692 + Add anchor links. For anchor-type links (`[foo](#bar)`) we produce
4693 an anchor link. In powerpoint these are links to slides, so we keep
4694 track of a map relating anchors to the slides they occur on.
4695 + Make the slide number available to the blocks. For anchors,
4696 block-processing functions need to know what slide number
4697 they're in. We make the `envCurSlideId` available to blocks.
4698 + Move `curSlideId` to environment.
4699 + Allow setting `toc-title` in metadata.
4700 + Link notes to endnotes slide.
4704 + Fix cell width calculation (#4265). Previously we could get
4705 ever-lengthening cell widths when a table was run repeatedly through
4706 `pandoc -f markdown -t markdown`.
4710 + Escape `&` in lstinline (Robert Schütz).
4714 + Use xtables instead of Tables (#4223, Henri Menke).
4715 Default to xtables for context output. Natural Tables are used
4716 if the new `ntb` extension is set.
4720 + Fixed footnote backlinks with `--id-prefix` (#4235).
4722 * `Text.Pandoc.Extensions`: Added `Ext_ntb` constructor (API change,
4725 * `Text.Pandoc.ImageSize`: add derived `Eq` instance to `Dimension`
4726 (Jesse Rosenthal, API change).
4728 * Lua filters (Albert Krewinkel):
4730 + Make `PANDOC_READER_OPTIONS` available.
4731 The options which were used to read the document are made available to
4732 Lua filters via the `PANDOC_READER_OPTIONS` global.
4733 + Add lua module `pandoc.utils.run_json_filter`, which runs a JSON filter
4734 on a Pandoc document.
4735 + Refactor filter-handling code into `Text.Pandoc.Filter.JSON`,
4736 `Text.Pandoc.Filter.Lua`, and `Text.Pandoc.Filter.Path`.
4737 + Improve error messages. Provide more context about the task
4738 which caused an error.
4740 * data/pandoc.lua (Albert Krewinkel):
4742 + Accept singleton inline as a list. Every constructor which accepts a
4743 list of inlines now also accepts a single inline element for
4745 + Accept single block as singleton list. Every constructor which accepts
4746 a list of blocks now also accepts a single block element for
4747 convenience. Furthermore, strings are accepted as shorthand for
4748 `{pandoc.Str "text"}` in constructors.
4749 + Add attr, listAttributes accessors. Elements with
4750 attributes got an additional `attr` accessor. Attributes were
4751 accessible only via the `identifier`, `classes`, and `attributes`,
4752 which was in conflict with the documentation, which indirectly states
4753 that such elements have the an `attr` property.
4754 + Drop `_VERSION`. Having a `_VERSION` became superfluous, as this
4755 module is closely tied to the pandoc version, which is available via
4757 + Fix access to Attr components. Accessing an Attr value (e.g.,
4758 ` Attr().classes`) was broken; the more common case of accessing it via
4759 an Inline or Block element was unaffected by this.
4761 * Move `metaValueToInlines` to from Docx writer to
4762 `Text.Pandoc.Writers.Shared`, so it can be used by other writers
4767 + Clarify otherlangs in LaTeX (#4072).
4768 + Clarify `latex_macros` extension.
4769 + Recommend use of `raw_attribute` extension in header includes (#4253).
4771 * Allow latest QuickCheck, tasty, criterion.
4773 * Remove custom prelude and ghc 7.8 support.
4775 * Reduce compiler noise (exact paths for compiled modules).
4777## pandoc 2.1 (2018-01-07)
4779 * Allow filters and lua filters to be interspersed (#4196). Previously
4780 we ran all lua filters before JSON filters. Now we run filters in
4781 the order they are presented on the command line, whether lua or JSON.
4782 There are two incompatible API changes: The type of `applyFilters`
4783 has changed, and `applyLuaFilters` has been removed. `Filter` is
4786 * Use latest skylighting and omit the `missingIncludes` check, fixing
4787 a major performance regression in earlier releases of the 2.x series
4788 (#4226). Behavior change: If you use a custom syntax definition that
4789 refers to a syntax you haven't loaded, pandoc will now complain when
4790 it is highlighting the text, rather than doing a check at the start.
4791 This change dramatically speeds up invocations of pandoc on short
4794 * Text.Pandoc.Class: make `FileTree` opaque (don't export
4795 `FileTree` constructor). This forces users to interact with it using
4796 `insertInFileTree` and `getFileInfo`, which normalize file names.
4800 + Rewrite `inlinesInBalancedBrackets`. The rewrite is much more
4801 direct, avoiding `parseFromString`. And it performs significantly
4802 better; unfortunately, parsing time still increases exponentially
4804 + Avoid parsing raw tex unless `\` + letter seen. This seems to
4805 help with the performance problem, #4216.
4807 * LaTeX reader: Simplified a check for raw tex command.
4809 * Muse reader (Alexander Krotov):
4811 + Enable round trip test (#4107).
4812 + Automatically translate `#cover` into `#cover-image`.
4813 Amusewiki uses #cover directive to specify cover image.
4815 * Docx reader (Jesse Rosenthal):
4817 + Allow for insertion/deletion of paragraphs (#3927).
4818 If the paragraph has a deleted or inserted paragraph break (depending
4819 on the track-changes setting) we hold onto it until the next
4820 paragraph. This takes care of accept and reject. For this we introduce
4821 a new state which holds the ils from the previous para if necessary.
4822 For `--track-changes=all`, we add an empty span with class
4823 `paragraph-insertion`/`paragraph-deletion` at the end of the paragraph
4824 prior to the break to be inserted or deleted.
4825 + Remove unused anchors (#3679). Docx produces a lot of anchors with
4826 nothing pointing to them---we now remove these to produce cleaner
4827 output. Note that this has to occur at the end of the process
4828 because it has to follow link/anchor rewriting.
4829 + Read multiple children of `w:sdtContents`.
4830 + Combine adjacent anchors. There isn't any reason to have numerous
4831 anchors in the same place, since we can't maintain docx's
4832 non-nesting overlapping. So we reduce to a single anchor.
4835 * Muse writer (Alexander Krotov): don't escape URIs from AST
4839 + Removed redundant subtitle in title (Sebastian Talmon).
4840 + `firstRow` table definition compatibility for Word 2016 (Sebastian
4841 Talmon). Word 2016 seems to use a default value of "1" for table
4842 headers, if there is no firstRow definition (although a default
4843 value of 0 is documented), so all tables get the first Row formatted
4844 as header. Setting the parameter to 0 if the table has no header
4845 row fixes this for Word 2016
4846 + Fix custom styles with spaces in the name (#3290).
4848 * Powerpoint writer (Jesse Rosenthal):
4850 + Ignore Notes div for parity with other slide outputs.
4851 + Set default slidelevel correctly. We had previously defaulted to
4852 slideLevel 2. Now we use the correct behavior of defaulting to the
4853 highest level header followed by content. We change an expected test
4854 result to match this behavior.
4855 + Split blocks correctly for linked images.
4856 + Combine adjacent runs.
4857 + Make inline code inherit code size. Previously (a) the code size
4858 wasn't set when we force size, and (b) the properties was set from
4859 the default, instead of inheriting.
4860 + Simplify `replaceNamedChildren` function.
4861 + Allow linked images. The following markdown:
4862 `[](http://www.example.com)`
4863 will now produce a linked image in the resulting PowerPoint file.
4864 + Fix error with empty table cell. We require an empty `<a:p>` tag,
4865 even if the cell contains no paragraphs---otherwise PowerPoint
4866 complains of corruption.
4867 + Implement two-column slides. This uses the columns/column div
4868 format described in the pandoc manual. At the moment, only two
4869 columns (half the screen each) are allowed. Custom widths are not
4873 * OpenDocument/ODT writers: improved rendering of formulas (#4170, oltolm).
4875 * Lua filters (Albert Krewinkel):
4877 + `data/pandoc.lua`: drop 'pandoc-api-version' from Pandoc objects
4878 + The current pandoc-types version is made available to Lua programs in
4879 the global `PANDOC_API_VERSION`. It contains the version as a list of
4881 + The pandoc version available as a global `PANDOC_VERSION` (a list
4883 + `data/pandoc.lua`: make `Attr` an `AstElement`.
4884 + `data/pandoc.lua`: make all types subtypes of `AstElement`.
4885 `Pandoc`, `Meta`, and `Citation` were just plain functions and did
4886 not set a metatable on the returned value, which made it difficult
4887 to amend objects of these types with new behavior. They are now
4888 subtypes of AstElement, meaning that all their objects can gain
4889 new features when a method is added to the behavior object
4890 (e.g., `pandoc.Pandoc.behavior`).
4891 + `data/pandoc.lua`: split type and behavior tables. Clearly distinguish
4892 between a type and the behavioral properties of an instance of that
4893 type. The behavior of a type (and all its subtypes) can now be
4894 amended by adding methods to that types `behavior` object, without
4895 exposing the type objects internals. E.g.:
4897 pandoc.Inline.behavior.frob = function () print'42' end
4898 local str = pandoc.Str'hello'
4899 str.frob() -- outputs '42'
4901 + `data/pandoc.lua`: fix Element inheritance. Extending all elements
4902 of a given type (e.g., all inline elements) was difficult, as the
4903 table used to lookup unknown methods would be reset every time a
4904 new element of that type was created, preventing recursive property
4905 lookup. This is was changed in that all methods and attributes of
4906 supertypes are now available to their subtypes.
4907 + `data/pandoc.lua`: fix attribute names of Citation (#4222). The
4908 fields were named like the Haskell fields, not like the documented,
4909 shorter version. The names are changed to match the documentation
4910 and Citations are given a shared metatable to enable simple
4912 + `data/pandoc.lua`: drop function `pandoc.global_filter`.
4913 + Bump `hslua` version to 0.9.5. This version fixes a bug that made it
4914 difficult to handle failures while getting lists or a Map from Lua.
4915 A bug in pandoc, which made it necessary to always pass a tag when
4916 using MetaList or MetaBlock, is fixed as a result. Using the pandoc
4917 module's constructor functions for these values is now optional
4918 (if still recommended).
4919 + Stop exporting `pushPandocModule` (API change). The introduction
4920 of `runPandocLua` renders direct use of this function obsolete.
4921 + Update generation of module docs for lua filters.
4922 + `Lua.Module.Utils`: make stringify work on `MetaValues` (John
4923 MacFarlane). I'm sure this was intended in the first place,
4924 but currently only `Meta` is supported.
4926 * Improve benchmarks.
4928 + Set the default extensions properly.
4929 + Improve benchmark argument parsing. You can now say
4930 `make bench BENCHARGS="markdown latex reader"` and both the
4931 markdown and latex readers will be benchmarked.
4933 * MANUAL.txt simplify and add more structure (Mauro Bieg).
4935 * Generate README.md from template and MANUAL.txt.
4936 `make README.md` will generate the README.md after changes
4937 to MANUAL.txt have been made.
4939 * Update copyright notices to include 2018 (Albert Krewinkel).
4941## pandoc 2.0.6 (2017-12-28)
4943 * Added `jats` as an input format.
4945 + Add Text.Pandoc.Readers.JATS, exporting `readJATS` (API
4946 change) (Hamish Mackenzie).
4947 + Improved citation handling in JATS reader. JATS citations
4948 are now converted to pandoc citations, and JATS ref-lists
4949 are converted into a `references` field in metadata, suitable
4950 for use with pandoc-citeproc. Thus a JATS article with embedded
4951 bibliographic information can be processed with pandoc and
4952 pandoc-citeproc to produce a formatted bibliography.
4954 * Allow `--list-extensions` to take an optional FORMAT argument.
4955 This lists the extensions set by default for the selected FORMAT.
4956 The extensions are now alphabetized, and the `+` or `-`
4957 indicating the default setting comes before, rather than after,
4962 + Preserve original whitespace between blocks.
4963 + Recognize `\placeformula` as context.
4964 + Be pickier about table captions. A caption starts with a `:` which
4965 can't be followed by punctuation. Otherwise we can falsely interpret
4966 the start of a fenced div, or even a table header line like
4967 `:--:|:--:`, as a caption.
4968 + Always use four space rule for example lists. It would be awkward
4969 to indent example list contents to the first non-space character after
4970 the label, since example list labels are often long. Thanks to
4971 Bernhard Fisseni for the suggestion.
4972 + Improve raw tex parsing. Note that the Markdown reader is also
4973 affected by the `latex_macros` extension changes described below
4974 under the LaTeX reader.
4978 + `latex_macros` extension changes (#4179). Don't pass through macro
4979 definitions themselves when `latex_macros` is set. The macros
4980 have already been applied. If `latex_macros` is enabled, then
4981 `rawLaTeXBlock` in Text.Pandoc.Readers.LaTeX will succeed in parsing
4982 a macro definition, and will update pandoc's internal macro map
4983 accordingly, but the empty string will be returned.
4984 + Export `tokenize`, `untokenize` (API change).
4985 + Use `applyMacros` in `rawLaTeXBlock`, `rawLaTeXInline`.
4986 + Refactored `inlineCommand`.
4987 + Fix bug in tokenizer. Material following `^^` was
4988 dropped if it wasn't a character escape. This only affected
4989 invalid LaTeX, so we didn't see it in the wild, but it appeared
4990 in a QuickCheck test failure.
4991 + Fix regression in LateX tokenization (#4159). This mainly affects the
4992 Markdown reader when parsing raw LaTeX with escaped spaces.
4993 + Add tests of LaTeX tokenizer.
4994 + Support `\foreignlanguage` from babel.
4995 + Be more tolerant of `&` character (#4208). This allows us to parse
4996 unknown tabular environments as raw LaTeX.
4998 * Muse reader (Alexander Krotov):
5000 + Parse anchors immediately after headings as IDs.
5001 + Require that note references does not start with 0.
5002 + Parse empty comments correctly.
5004 * Org reader (Albert Krewinkel):
5006 + Fix asterisks-related parsing error (#4180).
5007 + Support minlevel option for includes (#4154). The level of headers
5008 in included files can be shifted to a higher level by specifying a
5009 minimum header level via the `:minlevel` parameter. E.g.
5010 `#+include: "tour.org" :minlevel 1` will shift the headers in
5011 tour.org such that the topmost headers become level 1 headers.
5012 + Break-up org reader test file into multiple modules.
5016 + Enable raw HTML and other extensions by default for notes
5017 (#4164). This fixes a regression in 2.0. Note that extensions can
5018 now be individually disabled, e.g. `-f opml-smart-raw_html`.
5022 + Allow empty list items (#4193).
5023 + More accurate parsing of references (#4156). Previously we erroneously
5024 included the enclosing backticks in a reference ID (#4156). This
5025 change also disables interpretation of syntax inside references, as
5026 in docutils. So, there is no emphasis in `` `my *link*`_ ``.
5030 + Continue lists after interruption (#4025, Jesse Rosenthal).
5031 Docx expects that lists will continue where they left off after an
5032 interruption and introduces a new id if a list is starting again. So
5033 we keep track of the state of lists and use them to define a "start"
5034 attribute, if necessary.
5035 + Add tests for structured document tags unwrapping (Jesse Rosenthal).
5036 + Preprocess Document body to unwrap `w:sdt` elements (Jesse Rosenthal,
5041 + Don't linkify table of contents.
5045 + Fix anchors for headers (#4188). We were missing an `_`.
5047 * PowerPoint writer (Jesse Rosenthal):
5049 + Treat lists inside BlockQuotes as lists. We don't yet produce
5050 incremental lists in PowerPoint, but we should at least treat lists
5051 inside BlockQuotes as lists, for compatibility with other slide formats.
5052 + Add ability to force size. This replaces the more specific
5053 `blockQuote runProp`, which only affected the size of blockquotes. We
5054 can use this for notes, etc.
5055 + Implement notes. This currently prints all notes on a final slide.
5056 Note that at the moment, there is a danger of text overflowing the
5057 note slide, since there is no logic for adding further slides.
5058 + Implement basic definition list functionality to PowerPoint writer.
5059 + Don't look for default template file for Powerpoint (#4181).
5060 + Add pptx to isTextFormat list. This is used to check standalone
5061 and not writing to the terminal.
5062 + Obey slide level option (Jesse Rosenthal).
5067 + Ensure that `distArchive` is the one that comes with pandoc
5068 (#4182). Previously a `reference.docx` in `~/.pandoc` (or the user data
5069 dir) would be used instead, and this could cause problems because a
5070 user-modified docx sometimes lacks vital sections that we count
5071 on the `distArchive` to supply.
5075 + Do not wrap "-" to avoid accidental bullet lists (Alexander Krotov).
5076 + Don't allow fn refs to wrap to beginning of line (#4171, with help from
5077 Alexander Krotov). Otherwise they can be interpreted as footnote
5080 * Muse writer (Alexander Krotov):
5082 + Don't wrap note references to the next line (#4172).
5086 + Use br elements in line blocks instead of relying on CSS
5087 (#4162). HTML-based templates have had the custom CSS for
5088 `div.line-block` removed. Those maintaining custom templates will want
5089 to remove this too. We still enclose line blocks in a div with class
5094 + Use `\renewcommand` for `\textlatin` with babel (#4161).
5095 This avoids a clash with a deprecated `\textlatin` command defined
5097 + Allow fragile=singleslide attribute in beamer slides (#4169).
5098 + Use `\endhead` after `\toprule` in headerless tables (#4207).
5102 + Add cover image specified by `cover-image` meta (Alexander Krotov,
5105 * JATS writer (Hamish Mackenzie):
5107 + Support writing `<fig>` and `<table-wrap>` elements
5108 with `<title>` and `<caption>` inside them by using Divs with class set
5109 to one of `fig`, `table-wrap` or `caption` (Hamish Mackenzie). The
5110 title is included as a Heading so the constraint on where Heading can
5111 occur is also relaxed.
5112 + Leave out empty alt attributes on links.
5113 + Deduplicate image mime type code.
5114 + Make `<p>` optional in `<td>` and `<th>` (#4178).
5115 + Self closing tags for empty xref (#4187).
5116 + Improve support for code language.
5120 + Use init file to setup Lua interpreter (Albert Krewinkel).
5121 The same init file (`data/init`) that is used to setup the Lua
5122 interpreter for Lua filters is also used to setup the interpreter of
5124 + Define instances for newtype wrapper (Albert Krewinkel). The custom
5125 writer used its own `ToLuaStack` instance definitions, which made
5126 it difficult to share code with Lua filters, as this could result
5127 in conflicting instances. A `Stringify` wrapper is introduced to
5129 + Added tests for custom writer.
5130 + Fixed definition lists and tables in `data/sample.lua`.
5132 * Fixed regression: when target is PDF, writer extensions were being
5133 ignored. So, for example, `pandoc -t latex-smart -o file.pdf`
5134 did not work properly.
5136 * Lua modules (Albert Krewinkel):
5138 + Add `pandoc.utils` module, to hold utility functions.
5139 + Create a Haskell module Text.Pandoc.Lua.Module.Pandoc to
5140 define the `pandoc` lua module.
5141 + Make a Haskell module for each Lua module. Move definitions for the
5142 `pandoc.mediabag` modules to a separate Haskell module.
5143 + Move `sha1` from the main `pandoc` module to `pandoc.utils`.
5144 + Add function `pandoc.utils.hierarchicalize` (convert list of
5145 Pandoc blocks into (hierarchical) list of Elements).
5146 + Add function `pandoc.utils.normalize_date` (parses a date and
5147 converts it (if possible) to "YYYY-MM-DD" format).
5148 + Add function `pandoc.utils.to_roman_numeral` (allows conversion
5149 of numbers below 4000 into roman numerals).
5150 + Add function `pandoc.utils.stringify` (converts any AST element
5151 to a string with formatting removed).
5152 + `data/init.lua`: load `pandoc.utils` by default
5153 + Turn pipe, read into full Haskell functions. The `pipe` and `read`
5154 utility functions are converted from hybrid lua/haskell functions
5155 into full Haskell functions. This avoids the need for intermediate
5156 `_pipe`/`_read` helper functions, which have dropped.
5157 + pandoc.lua: re-add missing MetaMap function. This was a bug
5158 introduced in version 2.0.4.
5160 * Text.Pandoc.Class: Add `insertInFileTree` [API change]. This gives
5161 a pure way to insert an ersatz file into a `FileTree`. In addition, we
5162 normalize paths both on insertion and on lookup.
5164 * Text.Pandoc.Shared: export `blocksToInlines'` (API change, Maura Bieg).
5166 * Text.Pandoc.MIME: Add opus to MIME type table as audio/ogg (#4198).
5168 * Text.Pandoc.Extensions: Alphabetical order constructors for
5169 `Extension`. This makes them appear in order in `--list-extensions`.
5171 * Allow lenient decoding of latex error logs, which are not always
5172 properly UTF8-encoded (#4200).
5174 * Update latex template to work with recent versions of beamer.
5175 The old template produced numbered sections with some recent
5176 versions of beamer. Thanks to Thomas Hodgson.
5178 * Updated reference.docx (#4175). Instead of just "Hello, world", the
5179 document now contains exemplars of most of the styles that have an
5180 effect on pandoc documents. This makes it easier to see the effect
5183 * Removed `default.theme` data file (#4096). It is no longer needed now
5184 that we have `--print-highlight-style`.
5186 * Added `stack.lts9.yaml` for building with lts 9 and ghc 8.0.2.
5187 We still need this for the alpine static linux build, since
5188 we don't have ghc 8.2.2 for that yet.
5190 * Removed `stack.pkg.yaml`. We only really need `stack.yaml`; we
5191 can put flag settings for pandoc-citeproc there.
5193 * Makefile: Add 'trypandoc' and 'pandoc-templates' targets to
5194 make releases easier.
5198 + Add note on what formats have `+smart` by default.
5199 + Use native syntax for custom-style (#4174, Mauro Bieg).
5200 + Introduce dedicated Extensions section, since some extensions
5201 affect formats other than markdown (Mauro Bieg, #4204).
5202 + Clarify default html output for `--section-divs` (Richard Edwards).
5204 * filters.md: say that Text.Pandoc.JSON comes form pandoc-types.
5205 Closes jgm/pandoc-website#16.
5207 * epub.md: Delete removed `-S` option from command (#4151, Georger Araújo).
5209## pandoc 2.0.5 (2017-12-12)
5211 * Fix a bug in 2.0.4, whereby pandoc could not read the theme files
5212 generated with `--print-highlight-style` (#4133). Improve JSON
5213 serialization of styles.
5215 * Fix CSS issues involving line numbers (#4128).
5216 Highlighted code blocks are now enclosed in a div with class `sourceCode`.
5217 Highlighting CSS no longer sets a generic color for pre and code; we only
5218 set these for class `sourceCode`.
5220 * `--pdf-engine-opt`: fix bug where option order was reversed (#4137).
5222 * Add PowerPoint (pptx) writer (Jesse Rosenthal).
5223 It works following the standard Pandoc conventions for making other
5224 sorts of slides. Caveats:
5226 + Syntax highlighting is not yet implemented. (This is difficult
5227 because there are no character classes in Powerpoint.)
5228 + Footnotes and Definition lists are not yet implemented. (Notes will
5229 usually take the form of a final slide.
5230 + Image placement and auto-resizing has a few glitches.
5231 + Reference powerpoint files don't work dependably from the command
5232 line. This will be implemented, but at the moment users are advised
5233 to change themes from within Powerpoint.
5235 * Create shared Text.Pandoc.Writers.OOXML module (Jesse Rosenthal).
5236 This is for functions used by both Powerpoint and Docx writers.
5238 * Add default pptx data for Powerpoint writer (Jesse Rosenthal).
5240 * Add `empty_paragraphs` extension.
5242 + Deprecate `--strip-empty-paragraphs` option. Instead we now
5243 use an `empty_paragraphs` extension that can be enabled on
5244 the reader or writer. By default, disabled.
5245 + Add `Ext_empty_paragraphs` constructor to `Extension`.
5246 + Revert "Docx reader: don't strip out empty paragraphs."
5247 This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b.
5248 + Implement `empty_paragraphs` extension in docx reader and writer,
5249 opendocument writer, html reader and writer.
5250 + Add tests for `empty_paragraphs` extension.
5254 + Don't parse native div as table caption (#4119).
5255 + Improved computation of column widths in pipe tables.
5256 Pipe tables with lines longer than the text width (as set
5257 by `--columns`) are now scaled to text width, with the relative
5258 widths of columns determined by the ratios between the
5259 header lines. Previously we computed column widths using
5260 the ratio of header line lengths to column width, so that
5261 tables with narrow header lines were extremely thin, which
5262 was very rarely the desired result.
5264 * LaTeX reader: fix `\` before newline (#4134). This should be a space,
5265 as long as it's not followed by a blank line. This has been fixed at the
5268 * Muse reader (Alexander Krotov):
5270 + Add test for `#disable-tables` directive in Emacs mode.
5271 + Don't allow emphasis to be preceded by letter.
5272 + Add underline support in Emacs Muse mode..
5273 + Support multiline directives in Amusewiki mode
5275 * Man writer: omit internal links (#4136). That is, just print the link
5276 text without the URL.
5278 * Markdown reader: accept processing instructions as raw HTML (#4125).
5280 * Lua filters (Albert Krewinkel):
5282 + Use script to initialize the interpreter. The file `init.lua` is
5283 used to initialize the Lua interpreter which is used in Lua filters.
5284 This gives users the option to require libraries which they want to
5285 use in all of their filters, and to extend default modules.
5286 + Fix package loading for Lua 5.1. The list of package searchers is
5287 named `package.loaders` in Lua 5.1 and LuaJIT, and `package.searchers`
5288 in Lua 5.2 and later.
5289 + Refactor lua module handling. The integration with Lua's package/module
5290 system is improved: A pandoc-specific package searcher is prepended to
5291 the searchers in `package.searchers`. The modules `pandoc` and
5292 `pandoc.mediabag` can now be loaded via `require`.
5293 + Bump lower bound of hslua. The release hslua 0.9.3 contains a new
5294 function which makes using Haskell functions as package loaders much
5297 * reveal.js template: add title-slide identifier to title slide (#4120).
5298 This allows it to be styled more easily.
5300 * LaTeX template: Added support for `pagestyle` variable (#4135,
5303 * Add `-threaded` to ghc-options for executable (#4130, fixes a build
5307## pandoc 2.0.4 (2017-12-03)
5309 * Add `--print-highlight-style` option. This generates a JSON version
5310 of a highlighting style, which can be saved as a `.theme` file, modified,
5311 and used with `--highlight-style` (#4106, #4096).
5313 * Add `--strip-empty-paragraphs` option. This works for any input format.
5314 It is primarily intended for use with docx and odt documents where
5315 empty paragraphs have been used for inter-paragraph spaces.
5317 * Support `--webtex` for `gfm` output.
5319 * Recognize `.muse` file extension.
5321 * Support beamer `\alert` in LaTeX reader. Closes #4091.
5323 * Docx reader: don't strip out empty paragraphs (#2252).
5324 Users who have a conversion pipeline from docx may want to consider adding
5325 `--strip-empty-paragraphs` to the command line.
5327 * Org reader (Albert Krewinkel): Allow empty list items (#4090).
5329 * Muse reader (Alexander Krotov):
5331 + Parse markup in definition list terms.
5332 + Allow definition to end with EOF.
5333 + Make code blocks round trip.
5334 + Drop common space prefix from list items.
5335 + Add partial round trip test.
5336 + Don't interpret XML entities.
5338 + Parse `~~` as non-breaking space in Emacs mode.
5339 + Correctly remove indentation from notes. Exactly one space is
5340 required and considered to be part of the marker.
5341 + Allow list items to be empty.
5342 + Add ordered list test.
5343 + Add more multiline definition tests.
5344 + Don't allow blockquotes within lists.
5345 + Fix reading of multiline definitions.
5346 + Add inline `<literal>` support.
5347 + Concatenate inlines of the same type
5349 * Docx writer: allow empty paragraphs (#2252).
5351 * CommonMark/gfm writer:
5353 + Use raw html for native divs/spans (#4113). This allows a pandoc
5354 markdown native div or span to be rendered in gfm using raw html tags.
5355 + Implement `raw_html` and `raw_tex` extensions. Note that `raw_html`
5356 is enabled by default for `gfm`, while `raw_tex` is disabled by default.
5358 * Muse writer (Alexander Krotov):
5360 + Test that inline math conversion result is normalized.
5361 Without normalization this test produced
5362 `<em>a</em><em>b</em><em>c</em>`.
5363 + Improve inline list normalization and move to writer.
5364 + Escape hash symbol.
5365 + Escape `----` to avoid accidental horizontal rules.
5366 + Escape only `</code>` inside code tag.
5367 + Additional `<verbatim>` is not needed as `<code>` is verbatim already.
5371 + Allow specifying just width or height for image size.
5372 Previously both needed to be specified (unless the image was
5373 being resized to be smaller than its original size).
5374 If height but not width is specified, we now set width to
5375 textwidth. If width but not height is specified, we now set
5376 height to textheight. Since we have `keepaspectratio`, this
5377 yields the desired result.
5378 + Escape `~` and `_` in code with `--listings` (#4111).
5380 * HTML writer: export `tagWithAttributes`. This is a helper allowing
5381 other writers to create single HTML tags.
5383 * Let papersizes `a0`, `a1`, `a2`, ... be case-insensitive by
5384 converting the case as needed in LaTeX and ConTeXt writers.
5386 * Change `fixDisplayMath` from `Text.Pandoc.Writers.Shared`
5387 so that it no longer produces empty `Para`'s as an artifact.
5389 * `Text.Pandoc.Shared.blocksToInlines`: rewrote using builder.
5390 This gives us automatic normalization, so we don't get
5391 for example two consecutive Spaces.
5393 * Include default CSS for 'underline' class in HTML-based templates.
5395 * revealjs template: add `tex2jax` configuration for the
5396 math plugin. With the next release of reveal.js, this will
5397 fix the problem of `$`s outside of math contexts being
5398 interpreted as math delimiters (#4027).
5400 * `pandoc.lua` module for use in lua filters (Albert Krewinkel):
5402 + Add basic lua List module (#4099, #4081). The List module is
5403 automatically loaded, but not assigned to a global variable. It can be
5404 included in filters by calling `List = require 'List'`. Lists of blocks,
5405 lists of inlines, and lists of classes are now given `List` as a metatable,
5406 making working with them more convenient. E.g., it is now possible to
5407 concatenate lists of inlines using Lua's concatenation operator `..`
5408 (requires at least one of the operants to have `List` as a metatable):
5410 function Emph (emph)
5411 local s = {pandoc.Space(), pandoc.Str 'emphasized'}
5412 return pandoc.Span(emph.content .. s)
5415 The `List` metatable is assigned to the tables which get passed to
5416 the constructors `MetaBlocks`, `MetaInline`, and `MetaList`. This
5417 enables the use of the resulting objects as lists.
5418 + `Lua/StackInstances`: push Pandoc and Meta via constructor.
5419 Pandoc and Meta elements are now pushed by calling the respective
5420 constructor functions of the pandoc Lua module. This makes serialization
5421 consistent with the way blocks and inlines are pushed to lua and allows
5422 to use List methods with the `blocks` value.
5423 + Add documentation for pandoc.List in `lua-filters.md`.
5425 * Use latest tagsoup. This fixes a bug in parsing HTML tags with
5426 `&` (but not a valid entity) following them (#4094, #4088).
5428 * Use skylighting 0.4.4.1, fixing the color of unmarked code text
5429 when `numberLines` is used (#4103).
5431 * Make `normalizeDate` more forgiving (Mauro Bieg, #4101), not
5432 requiring a leading 0 on single-digit days.
5434 * Fix `--help` output for `--highlight-style` to include `FILE` (Mauro
5437 * Clearer deprecation warning for `--latexmathml, --asciimathml, -m`.
5438 Previously we only mentioned `--latexmathml`, even if `-m` was
5441 * Changelog: fix description of lua filters in 2.0 release
5442 (Albert Krewinkel). Lua filters were initially run *after* conventional
5443 (JSON) filters. However, this was changed later to make it easier to deal
5444 with files in the mediabag. The changelog is updated to describe that
5445 feature of the 2.0 release correctly.
5447 * Change Generic JSON instances to TemplateHaskell (Jasper Van der Jeugt,
5448 #4085). This reduces compile time and memory usage significantly.
5450 * `lua-filters.md`: Added tikz filter example.
5452 * Create alternative zip file for macOS binaries.
5454 * Create alternative zip file for Windows binaries.
5456 * Update INSTALL.md since we now provide zips for binaries.
5458 * Relax `http-types` dependency (Justus Sagemüller, #4084).
5460 * Add `epub.md`, `getting-started.md` to docs. These used to live in
5463 * Add `packages` target to Makefile.
5465 * Bump bounds for binary, http-types, tasty-hunit
5467## pandoc 2.0.3 (2017-11-20)
5469 * Lua filters: preload text module (Albert Krewinkel, #4077).
5470 The `text` module is preloaded in lua. The module contains some UTF-8
5471 aware string functions, implemented in Haskell. The module is loaded on
5474 text = require 'text'
5476 s.text = text.upper(s.text)
5480 * Allow table-like access to attributes in lua filters (Albert Krewinkel,
5481 #4071). Attribute lists are represented as associative lists in Lua. Pure
5482 associative lists are awkward to work with. A metatable is attached to
5483 attribute lists, allowing to access and use the associative list as if
5484 the attributes were stored in as normal key-value pair in table.
5485 Note that this changes the way `pairs` works on attribute lists. Instead
5486 of producing integer keys and two-element tables, the resulting iterator
5487 function now returns the key and value of those pairs. Use `ipairs` to
5488 get the old behavior. Warning: the new iteration mechanism only works if
5489 pandoc has been compiled with Lua 5.2 or later (current default: 5.3).
5491 * Text.Pandoc.Parsing.uri: allow `&` and `=` as word characters (#4068).
5492 This fixes a bug where pandoc would stop parsing a URI with an
5493 empty attribute: for example, `&a=&b=` wolud stop at `a`.
5494 (The uri parser tries to guess which punctuation characters
5495 are part of the URI and which might be punctuation after it.)
5497 * Introduce `HasSyntaxExtensions` typeclass (Alexander Krotov, #4074).
5499 + Added new `HasSyntaxExtensions` typeclass for `ReaderOptions` and
5501 + Reimplemented `isEnabled` function from `Options.hs` to accept both
5502 `ReaderOptions` and `WriterOptions`.
5503 + Replaced `enabled` from `CommonMark.hs` with new `isEnabled`.
5505 * Add `amuse` extension (Alexander Krotov) to enable Amuse wiki
5506 behavior for `muse`. New `Ext_amuse` constructor for
5507 `Extension`. Note: this is switched on by default; for
5508 Emacs behavior, use `muse-amuse`.
5510 * Muse reader (Alexander Krotov):
5512 + Count only one space as part of list item marker.
5513 + Produce SoftBreaks on newlines. Now wrapping can be preserved
5514 with `--wrap=preserve`.
5515 + Add Text::Amuse footnote extensions. Footnote end is indicated by
5516 indentation, so footnotes can be placed anywhere in the text,
5517 not just at the end of it.
5518 + Accept Emacs Muse definition lists when `-amuse`.
5519 Emacs Muse does not require indentation.
5523 + Ensure we don't produce level 0 headers (#4076), even for chapter
5524 sections in epubs. This causes problems because writers aren't set
5526 + Allow spaces after `\(` and before `\)` with `tex_math_single_backslash`.
5527 Previously `\( \frac{1}{a} < \frac{1}{b} \)` was not parsed as math in
5528 `markdown` or `html` `+tex_math_single_backslash`.
5530 * MANUAL: clarify that math extensions work with HTML.
5531 Clarify that `tex_math_dollars` and `tex_math_single_backslash`
5532 will work with HTML as well as Markdown.
5534 * Creole reader: Fix performance issue for longer lists (Sascha Wilde,
5537 * RST reader: better support for 'container' directive (#4066).
5538 Create a div, incorporate name attribute and classes.
5542 + Support column specs like `*{2}{r}` (#4056). This is equivalent to
5543 `rr`. We now expand it like a macro.
5544 + Allow optional args for parbox (#4056).
5545 + Allow optional arguments on `\footnote` (#4062).
5547 * EPUB writer: Fixed path for cover image (#4069). It was previously
5548 `media/media/imagename`, and should have been `media/imagename`.
5550 * Markdown writer: fix bug with doubled footnotes in grid tables
5553 * LaTeX template: include natbib/biblatex after polyglossia (#4073).
5554 Otherwise we seem to get an error; biblatex wants polyglossia
5555 language to be defined.
5557 * Added examples to lua filters documentation.
5560## pandoc 2.0.2 (2017-11-12)
5562 * Deprecated ancient HTML math methods: `--latexmathml`, `--gladtex`,
5563 `--mimetex`, `--jsmath`.
5565 * Fixed URIs in `data/jats.csl`. They were being rendered twice,
5566 leading to invalid XML in default JATS output with pandoc-citeproc.
5568 * `lua-filters.md`: use real-world man page filter as example.
5570 * Add lua filter functions `walk_inline` and `walk_block`
5571 in the pandoc module, to apply filters inside particular
5572 inline and block elements.
5574 * Refactored some code from `Text.Pandoc.Lua.PandocModule`
5575 into new internal module `Text.Pandoc.Lua.Filter`.
5579 + Allow fenced code blocks to be indented 1-3 spaces (#4011).
5580 This brings our handling of them into alignment with CommonMark's.
5581 + Fix YAML metadata with "chomp" (`|-`). Previously if a
5582 YAML block under `|-` contained a blank line, pandoc would
5583 not parse it as metadata.
5585 * Removed `etc.` from abbreviations file. Often `etc.` ends a
5586 sentence, and we want the period to be treated as a
5587 sentence-ending period.
5589 * Fix regression with `--metadata` (#4054). Values specified with
5590 `--metadata` should replace a metadata value set in the document
5591 itself, rather than creating a list including a new value.
5595 + Fix EPUB OCF structure. #3720 had been improperly implemented.
5596 + Fix modified paths for raw HTML tags (src, poster, etc.)
5597 (#4050, #4055). This had not been updated for the new EPUB
5598 container layout, with a separate text/ subdirectory.
5599 + Fix image paths with empty `--epub-subdirectory`.
5601 * Miscellaneous code cleanup (Alexander Krotov).
5603 * Use pandoc-types 1.17.3, which adds `Walkable` instances
5604 for `[Block] Block` and `[Inline] Inline`.
5606 * Remove obsolete `stack.full.yaml` (#4052).
5608 * Change to using pandoc-citeproc 0.12.1 in binary packages.
5610 * Consolidate math output method documentation (#4049, Mauro Bieg).
5612 * `MANUAL.txt`: fix header level of "Extension: emoji" (Albert Krewinkel).
5614 * Use lua filter to generate man page from `MANUAL.txt`, replacing old
5615 Haskell filters. This is easier and faster.
5617 * Improved `INSTALL.md`.
5619 * Update commands to extract deb archive on Linux (#4043, Salim B).
5622## pandoc 2.0.1.1 (2017-11-04)
5624 * Improved fix to #3989 (parsing of HTML tags containing
5625 `>` in an attribute or comment). The previous fix (in 2.0.1) only
5626 worked in certain cases.
5628 * FB2 writer (Alexander Krotov):
5630 + Add `unrecognised` genre to `<title-info>`
5631 (Alexander Krotov). XML schema requires at least one genre.
5632 + Remove `<annotation>` from `<body>`.
5634 * CommonMark writer: fix strikethrough for `gfm` (#4038).
5636 * Use texmath 0.10, which adds support for a wider range of
5637 symbols and fixes default column alignments in MathML
5640 * Highlighting fixes, using skylighting 0.4.3.2:
5643 + Support `lineAnchors` (or `line-anchors`) in HTML code blocks.
5644 + Ensure that code lines don't get duplicate identifiers (#4031).
5645 The line identifiers are built using the code block's identifier
5646 as a prefix. If the code block has null identifier, we use
5649 * Added a few abbreviations to `data/abbreviations`,
5650 and sorted the list (#3984, Wandmalfarbe).
5652 * Improved support for columns in HTML writer (#4028).
5654 + Remove `width` attribute from the `div`.
5655 + Remove space between `<div class="column">` elements,
5656 since this prevents columns whose widths sum to 100%
5657 (the space takes up space).
5658 + Move as much as possible of the CSS to the template.
5659 + Ensure that all the HTML-based templates (including epub)
5660 contain the CSS for columns.
5661 + Columns default to 50% width unless they are given a width
5662 attribute. So if you want two equal-width columns, you
5663 can use a div with class `column` and no `width` attribute.
5665 * SelfContained: use `base64` for css links with media attribute (#4026).
5666 This fixes `--self-contained` with S5.
5668 * Improve `pandoc-template-mode.el` (Vaclav Haisman).
5670 * INSTALL.md: MacOS instructions needed xar -f (adam234).
5674 + Clarify that --setext-headers doesn't affect gfm output (#4035).
5675 + Clarify what is needed to open and close a div in `fenced_divs`
5676 (#4039, Tristano Ajmone).
5677 + Removed reference to `default.beamer` in docs (#4024).
5678 Also added mention of other templates affecting PDF output
5679 with different settings.
5682## pandoc 2.0.1 (2017-10-31)
5684 * Fixed regression in parsing of HTML comments in markdown and other
5685 non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`) (#4019).
5686 The parser stopped at the first `>` character, even if it wasn't
5687 the end of the comment.
5689 * Creole reader (Sascha Wilde):
5691 + Fix some minor typos and formatting.
5692 + Add additional test on nowiki-block after para.
5693 + Fix lists with trailing white space.
5695 * LaTeX reader: handle `%` comment right after command.
5696 For example, `\emph%`.
5698 * Markdown reader: make sure fenced div closers work in lists.
5699 Previously the following failed:
5706 and you needed a blank line before the closing `:::`.
5708 * Make `fenced_divs` affect the Markdown writer. If `fenced_divs` is
5709 enabled, Divs will be rendered as fenced divs.
5711 * LaTeX/Beamer writer: support "blocks" inside columns and other Divs
5714 * HTML Writer: consistently use dashed class-names (Mauro Bieg, #3556).
5715 Note: this change may require some changes in CSS rules.
5716 `footnoteRef` has become `footnote-ref`, `titleslide` has
5717 become `title-slide`, and `footnoteBack` has become `footnote-back`.
5719 * JATS writer: Properly pass through author metadata (#4020).
5721 * FB2 writer (Alexander Krotov):
5723 + Write blocks outside of `<p>` in definitions.
5724 + Make bullet lists consistent with ordered lists, repeating
5725 the marker for the outer list rather than indenting sublists,
5726 since indentation does not work in readers.
5727 + Add new style FB2 tests.
5729 * `Text.Pandoc.ImageSize`: Add `Millimeter` constructor to `Dimension`
5730 (#4012) [API change]. Now sizes given in 'mm' are no longer converted
5733 * Revise documentation of small caps syntax (Andrew Dunning, #4013).
5735 * Fix broken reference links in manual (Andrew Dunning, #4014)
5737 * Fixed example of slide columns structure in changelog (#4015).
5738 Also documented this feature in MANUAL.txt.
5741## pandoc 2.0.0.1 (2017-10-30)
5745 + Fixed filepaths for nonstandard epub-subdirectory values.
5746 + Ensure that epub2 is recognized as a non-text format,
5747 so that a template is used.
5748 + Don't include "prefix" attribute for ibooks for epub2.
5749 It doesn't validate.
5750 + Fix stylesheet paths; previously we had an incorrect
5751 stylesheet path for the cover page and nav page.
5755 + Insert space when needed in macro expansion (#4007).
5756 Sometimes we need to insert a space after a control sequence
5757 to prevent it merging with a following letter.
5758 + Allow unbraced arguments for macros (#4007).
5759 + Allow body of macro definition to be unbraced (#4007).
5761 * Linux package build: ensure that pandoc-citeproc is statically linked.
5763 * trypandoc: add native, ms.
5766## pandoc 2.0 (2017-10-29)
5770 * New output format `ms` (groff ms). Complete support, including
5771 tables, math, syntax highlighting, and PDF bookmarks. The writer uses
5772 texmath's new eqn writer to convert math to eqn format, so a ms file
5773 produced with this writer should be processed with `groff -ms -e` if
5776 * New output format `jats` (Journal Article Tag Suite). This is an XML
5777 format used in archiving and publishing articles. Note that a
5778 URI-encoded CSL stylesheet (`data/jats.csl`) is added automatically
5779 unless a stylesheet is specified using `--css`.
5781 * New output format `gfm` (GitHub-flavored CommonMark) (#3841).
5782 This uses bindings to GitHub's fork of cmark, so it should parse
5783 gfm exactly as GitHub does (excepting certain postprocessing
5784 steps, involving notifications, emojis, etc.). `markdown_github`
5785 has been deprecated in favor of `gfm`.
5787 * New output format `muse` (Emacs Muse) (Alexander Krotov, #3489).
5789 * New input format `gfm` (GitHub-flavored CommonMark) (#3841).
5790 This uses bindings to GitHub's fork of cmark. `markdown_github`
5791 has been deprecated in favor of `gfm`.
5793 * New input format `muse` (Emacs Muse) reader (Alexander Krotov, #3620).
5795 * New input format `tikiwiki` (TikiWiki markup) (rlpowell, #3800).
5797 * New input format `vimwiki` (Vimwiki markup) (Yuchen Pei, #3705).
5798 Note that there is a new data file, `data/vimwiki.css`, which can
5799 be used to display the HTML produced by this reader and
5800 pandoc's HTML writer in the style of vimwiki's own HTML
5803 * New input format `creole` (Creole 1.0) (#3994, Sascha Wilde).
5805 * New syntax for Divs, with `fenced_divs` extension enabled by
5806 default (#168). This gives an attractive, plain-text way to create
5807 containers for block-level content.
5809 * Added new syntax for including raw content in any output format,
5810 enabled by the `raw_attribute` extension (which is on by default
5811 for `markdown` and `multimarkdown`). The syntax is the same as
5812 for fenced code blocks or code inlines, only with `{=FORMAT}` for
5813 attributes, where `FORMAT` is the name of the output format
5814 (e.g., `ms`, `html`).
5816 * Implement multicolumn support for slide formats (#1710).
5817 The structure expected is:
5819 :::::::::::::: {.columns}
5820 ::: {.column width="40%"}
5823 ::: {.column width="60%"}
5828 Support has been added for beamer and all HTML slide formats.
5830 * Allows line comments in templates, beginning with `$--` (#3806).
5831 (Requires doctemplates 0.2.1.)
5833 * Add `--eol=crlf|lf|native` flag and writer option to control line endings
5834 (Stefan Dresselhaus, #3663, #2097).
5836 * Add `--log` option to save log messages in JSON format to a file (#3392).
5838 * Add `--request-header` option, to set request headers when pandoc
5839 makes HTTP requests to fetch external resources. For example:
5840 `--request-header User-Agent:blah`.
5842 * Added lua filters (Albert Krewinkel, #3514). The new `--lua-filter`
5843 option works like `--filter` but takes pathnames of special lua filters
5844 and uses the lua interpreter baked into pandoc, so that no external
5845 interpreter is needed. Note that lua filters are all applied after
5846 regular filters, regardless of their position on the command line.
5847 For documentation of lua filters, see `doc/lua-filters.md`.
5849 * Set `PANDOC_READER_OPTIONS` in environment where filters are run.
5850 This contains a JSON representation of `ReaderOptions`, so filters
5853 * Support creation of pdf via groff `ms` and pdfroff.
5854 `pandoc -t ms -o output.pdf input.txt`.
5856 * Support for PDF generation via HTML and `weasyprint` or `prince`
5857 (Mauro Bieg, #3909). `pandoc -t html5 -o output.pdf --pdf-engine=prince`.
5859 * Added `--epub-subdirectory` option (#3720). This specifies the
5860 subdirectory in the OCF container that holds the EPUB specific content.
5861 We now put all EPUB related content in an `EPUB/` subdirectory by default
5862 (later this will be configurable).
5867 com.apple.ibooks.display-options.xml
5869 EPUB/ <<--configurable-->>
5870 fonts/ <<--static-->>
5872 media/ <<--static-->>
5875 styles/ <<--static-->>
5879 text/ <<--static-->>
5883 * Added `--resource-path=SEARCHPATH` command line option (#852).
5884 SEARCHPATH is separated by the usual character, depending on OS
5885 (: on unix, ; on windows). Default resource path is just working
5886 directory. However, the working directory must be explicitly
5887 specified if the `--resource-path` option is used.
5889 * Added --abbreviations=FILE option for custom abbreviations file
5890 (#256). Dfault abbreviations file (`data/abbreviations`) contains
5891 a list of strings that will be recognized by pandoc's
5892 Markdown parser as abbreviations. (A nonbreaking space will
5893 be inserted after the period, preventing a sentence space in
5894 formats like LaTeX.) Users can override the default by putting a file
5895 abbreviations in their user data directory (`~/.pandoc` on *nix).
5897 * Allow a theme file as argument to `--highlight-style`.
5898 Also include a sample, `default.theme`, in `data/`.
5900 * Allow `--syntax-definition` option for dynamic loading of syntax
5901 highlighting definitions (#3334).
5903 * Lists in `markdown` by default now use the CommonMark variable
5904 nesting rules (#3511). The indentation required for a block-level
5905 item to be included in a list item is no longer fixed, but is
5906 determined by the first line of the list item. To be included in
5907 the list item, a block must be indented to the level of the first
5908 non-space content after the list marker. Exception: if are 5 or more
5909 spaces after the list marker, then the content is interpreted as an
5910 indented code block, and continuation paragraphs must be indented
5911 two spaces beyond the end of the list marker. See the CommonMark
5912 spec for more details and examples.
5914 Documents that adhere to the four-space rule should, in most cases,
5915 be parsed the same way by the new rules. Here are some examples
5916 of texts that will be parsed differently:
5921 will be parsed as a list item with a sublist; under the four-space
5922 rule, it would be a list with two items.
5928 Here we have an indented code block under the list item, even though it
5929 is only indented six spaces from the margin, because it is four spaces
5930 past the point where a continuation paragraph could begin. With the
5931 four-space rule, this would be a regular paragraph rather than a code
5938 Here the code block will start with two spaces, whereas under
5939 the four-space rule, it would start with `code`. With the four-space
5940 rule, indented code under a list item always must be indented eight
5941 spaces from the margin, while the new rules require only that it
5942 be indented four spaces from the beginning of the first non-space
5943 text after the list marker (here, `a`).
5945 This change was motivated by a slew of bug reports from people
5946 who expected lists to work differently (#3125, #2367, #2575, #2210,
5947 #1990, #1137, #744, #172, #137, #128) and by the growing prevalance
5948 of CommonMark (now used by GitHub, for example). Those who
5949 prefer the old behavior can use `-f markdown+four_space_rule`.
5951 * Added `four_space_rule` extension. This triggers the old pandoc
5952 parsing rule for content nested under list items (the "four space
5955 * Added `spaced_reference_links` extension (#2602). It allows whitespace
5956 between the two parts of a reference link: e.g.
5962 This was previously enabled by default; now it is forbidden by default.
5964 * Add `space_in_atx_header` extension (#3512). This is enabled by default
5965 in pandoc and GitHub markdown but not the other flavors.
5966 This requirse a space between the opening #'s and the header
5967 text in ATX headers (as CommonMark does but many other implementations
5968 do not). This is desirable to avoid falsely capturing things ilke
5976 * Add `sourcefile` and `outputfile` template variables (Roland Hieber,
5979 * Allow ibooks-specific metadata in epubs (#2693). You can now have
5980 the following fields in your YAML metadata, and it will be treated
5981 appropriately in the generated EPUB:
5986 specified-fonts: false
5987 ipad-orientation-lock: portrait-only
5988 iphone-orientation-lock: landscape-only
5990 scroll-axis: vertical
5996 * Reader functions no longer presuppose that CRs have been
5997 stripped from the input. (They strip CRs themselves, before
5998 parsing, to simplify the parsers.)
6000 * Added support for translations (localization) (#3559).
6001 Currently this only affects the LaTeX reader, for things
6002 like `\figurename`. Translation data files for 46 languages
6003 can be found in `data/translations`.
6005 * Make `--ascii` work with DocBook output too.
6007 * Rename `--latex-engine` to `--pdf-engine`,
6008 and `--latex-engine-opt` to `--pdf-engine-opt`.
6010 * Removed `--parse-raw` and `readerParseRaw`. These were confusing.
6011 Now we rely on the `+raw_tex` or `+raw_html` extension with latex or html
6012 input. Thus, instead of `--parse-raw -f latex` we use `-f latex+raw_tex`,
6013 and instead of `--parse-raw -f html` we use `-f html+raw_html`.
6015 * With `--filter` R filters are now recognized, even if they are
6016 not executable (#3940, #3941, Andrie de Vries).
6018 * Support SVG in PDF output, converting with `rsvg2pdf` (#1793).
6020 * Make epub an alias for epub3, not epub2.
6022 * Removed `--epub-stylesheet`; use `--css` instead (#3472, #847).
6023 Multiple stylesheets may be used. Stylesheets will be taken both from
6024 `--css` and from the `stylesheet` metadata field (which can contain
6025 either a file path or a list of them).
6027 * `--mathml` and MathML in HTMLMathMethod no longer take an argument.
6028 The argument was for a bridge JavaScript that used to be necessary
6029 in 2004. We have removed the script already.
6031 * `--katex` improvements. The latest version is used, and the
6032 autoload script is loaded by default.
6034 * Change MathJax CDN default since old one is shutting down (#3544).
6035 Note: The new URL requires a version number, which we'll have
6036 to update manually in subsequent pandoc releases in order to
6037 take advantage of mathjax improvements.
6039 * `--self-contained`: don't incorporate elements with `data-external="1"`
6040 (#2656). You can leave an external link as it is by adding the attribute
6041 data-external="1" to the element. Pandoc will then not try to
6042 incorporate its content when `--self-contained` is used. This is
6043 similar to a feature already supported by the EPUB writer.
6045 * Allow `--extract-media` to work with non-binary input formats
6046 (#1583, #2289). If `--extract-media` is supplied with a non-binary
6047 input format, pandoc will attempt to extract the contents of all
6048 linked images, whether in local files, data: uris, or external uris.
6049 They will be named based on the sha1 hash of the contents.
6051 * Make `papersize: a4` work regardless of the case of `a4`.
6052 It is converted to `a4` in LaTeX and `A4` in ConTeXt.
6054 * Make `east_asian_line_breaks` affect all readers/writers (#3703).
6056 * Underlined elements are now treated consistently by readers
6057 (#2270, hftf); they are always put in a Span with class `underline`.
6058 This allows the user to treat them differently from other emphasis,
6059 using a filter. Docx, Org, Textile, Txt2Tags, and HTML readers
6062 * Improved behavior of `auto_identifiers` when there are explicit ids
6063 (#1745). Previously only autogenerated ids were added to the list
6064 of header identifiers in state, so explicit ids weren't taken
6065 into account when generating unique identifiers. Duplicated
6066 identifiers could result. This simple fix ensures that explicitly given
6067 identifiers are also taken into account.
6069 * Use `table-of-contents` for contents of toc, make `toc` a boolean
6070 (#2872). Changed markdown, rtf, and HTML-based templates accordingly.
6071 This allows you to set `toc: true` in the metadata; this
6072 previously produced strange results in some output formats.
6073 For backwards compatibility, `toc` is still set to the
6074 toc contents. But it is recommended that you update templates
6075 to use `table-of-contents` for the toc contents and `toc`
6078 * Change behavior with binary format output to stdout.
6079 Previously, for binary formats, output to stdout was disabled
6080 unless we could detect that the output was being piped (and not
6081 sent to the terminal). Unfortunately, such detection is not
6082 possible on Windows, leaving windows users no way to pipe binary
6083 output. So we have changed the behavior in the following way:
6085 + Output to stdout is allowed when it can be determined that
6086 the output is being piped (on non-Windows platforms).
6087 + If the `-o` option is not used, binary output is never sent
6088 to stdout by default; instead, an error is raised.
6089 + If `-o -` is used, binary output is sent to stdout, regardless
6090 of whether it is being piped. This works on Windows too.
6092 * Better error behavior: uses of `error` have been replaced by
6093 raising of `PandocError`, which can be trapped and handled by the
6096 * Removed `hard_line_breaks` extension from `markdown_github` (#3594).
6097 GitHub has two Markdown modes, one for long-form documents like READMEs
6098 and one for short things like issue coments. In issue comments, a line
6099 break is treated as a hard line break. In README, wikis, etc., it is
6100 treated as a space as in regular Markdown. Since pandoc is more likely to
6101 be used to convert long-form documents from GitHub Markdown,
6102 `-hard_line_breaks` is a better default.
6104 * Include `backtick_code_blocks` extension in `mardkown_mmd` (#3637).
6106 * Escape `MetaString` values (as added with `-M/--metadata` flag) (#3792).
6107 Previously they would be transmitted to the template without any
6108 escaping. Note that `--M title='*foo*'` yields a different result from
6114 In the latter case, we have emphasis; in the former case, just
6115 a string with literal asterisks (which will be escaped
6116 in formats, like Markdown, that require it).
6118 * Allow `em`, `cm`, `in` for image height/width in HTML, LaTeX (#3450).
6120 * HTML writer: Insert `data-` in front of unsupported attributes. Thus,
6121 a span with attribute `foo` gets written to HTML5 with `data-foo`, so
6122 it is valid HTML5. HTML4 is not affected. This will allow us to use
6123 custom attributes in pandoc without producing invalid HTML. (With help
6124 from Wandmalfarbe, #3817.)
6126 * Plain writer: improved super/subscript rendering. We now
6127 handle more non-digit characters for which there are
6128 sub/superscripted unicode characters. When unicode
6129 sub/superscripted characters are not available, we use
6130 `_(..)` or `^(..)` (#3518).
6132 * Docbook, JATS, TEI writers: print INFO message when omitting interior
6133 header (#3750). This only applies to section headers inside list items,
6134 e.g., which were otherwise silently omitted.
6136 * Change to `--reference-links` in Markdown writer (#3701). With
6137 `--reference-location` of `section` or `block`, pandoc will now repeat
6138 references that have been used in earlier sections. The Markdown
6139 reader has also been modified, so that *exactly* repeated references
6140 do not generate a warning, only references with the same label but
6141 different targets. The idea is that, with references after every block,
6142 one might want to repeat references sometimes.
6144 * ODT/OpenDocument writer:
6146 + Support `lang` attribute (#1667).
6147 + Added support for `--toc` (#2836). Thanks to @anayrat.
6151 + `lang` meta, see #1667 (Mauro Bieg, #3515).
6152 + Change `FigureWithCaption` to `CaptionedFigure` (iandol, #3658).
6153 + Use `Table` rather than `Table Normal` for table style (#3275).
6154 `Table Normal` is the default table style and can't be modified.
6155 + Pass through comments (#2994). We assume that comments are defined as
6156 parsed by the docx reader:
6158 I want <span class="comment-start" id="0" author="Jesse Rosenthal"
6159 date="2016-05-09T16:13:00Z">I left a comment.</span>some text to
6160 have a comment <span class="comment-end" id="0"></span>on it.
6162 We assume also that the id attributes are unique and properly
6163 matched between comment-start and comment-end.
6164 + Bookmark improvements. Bookmark start/end now surrounds content rather
6165 than preceding it. Bookmarks generated for Div with id
6166 (jgm/pandoc-citeproc#205).
6167 + Add `keywords` metadata to docx document properties (Ian).
6169 * RST writer: support unknown interpreted text roles by
6170 parsing them as `Span` with `role` attributes (#3407). This
6171 way they can be manipulated in the AST.
6175 + Line block: Use class instead of style attribute (#1623). We now
6176 issue `<div class="line-block">` and include a default definition
6177 for `line-block` in the default templates, instead of hard-coding a
6179 + Add class `footnoteBack` to footnote back references (Timm Albers).
6180 This allows for easier CSS styling.
6181 + Render SmallCaps as span with smallcaps class (#1592), rather than
6182 using a style attribute directly. This gives the user more flexibility
6183 in styling small caps in CSS.
6184 + With reveal.js we use `data-src` instead of `src` for images for
6186 + Special-case `.stretch` class for images in reveal.js (#1291).
6187 Now in reveal.js, an image with class `stretch` in a paragraph
6188 by itself will stretch to fill the whole screen, with no
6189 caption or figure environment.
6191 * Added warnings for non-rendered blocks to writers.
6193 * Writers now raise an error on template failure.
6195 * When creating a PDF via LaTeX, warn if the font is missing some
6198 * Remove initial check for PDF-creating program (#3819).
6199 Instead, just try running it and raise the exception if it
6200 isn't found at that point. This improves things for users of Cygwin
6201 on Windows, where the executable won't be found by `findExecutable`
6202 unless `.exe` is added. The same exception is raised as before, but
6205 * Readers issue warning for duplicate header identifiers (#1745).
6206 Autogenerated header identifiers are given suffixes so as not to clash
6207 with previously used header identifiers. But they may still coincide with
6208 an explicit identifier that is given for a header later in the document,
6209 or with an identifier on a div, span, link, or image. We now issue
6210 a warning in this case, so users can supply an explicit identifier.
6212 * CommonMark reader now supports `emoji`, `hard_line_breaks`, `smart`,
6213 and `raw_html` extensions.
6217 + Don't allow backslash + newline to affect block structure (#3730).
6218 Note that as a result of this change, the following, which formerly
6219 produced a header with two lines separated by a line break, will
6220 now produce a header followed by a paragraph:
6225 This may affect some existing documents that relied on
6226 this undocumented and unintended behavior. This change makes pandoc
6227 more consistent with other Markdown implementations, and with itself
6228 (since the two-space version of a line break doesn't work inside ATX
6229 headers, and neither version works inside Setext headers).
6232 * Org reader (Albert Krewinkel, unless noted):
6234 + Support `table.el` tables (#3314).
6235 + Support macros (#3401).
6236 + Support the `#+INCLUDE:` file inclusion mechanism (#3510).
6237 Recognized include types are `example`, `export`, `src`, and
6238 normal org file inclusion. Advanced features like line numbers
6239 and level selection are not implemented yet.
6240 + Interpret more meta value as inlines. The values of the following
6241 meta variables are now interpreted using org-markup instead of
6242 treating them as pure strings: `keywords` (comma-separated list of
6243 inlines), `subtitle` (inline values), `nocite` (inline values, can
6245 + Support `\n` export option (#3940). This turns all newlines in the
6246 text into hard linebreaks.
6250 + Improved admonition support (#223). We no longer add an
6251 `admonition` class, we just use the class for the type of admonition,
6252 `note` for example. We put the word corresponding to the label in
6253 a paragraph inside a `Div` at the beginning of the admonition with
6254 class `admonition-title`. This is about as close as we can get to
6256 + Initial support of `.. table` directive. This allows adding captions
6258 + Support `.. line-block` directive. This is deprecated but may still
6259 be in older documents.
6260 + Support scale and align attributes of images (#2662).
6261 + Implemented implicit internal header links (#3475).
6262 + Support RST-style citations (#853). The citations appear at the end
6263 of the document as a definition list in a special div with id
6264 `citations`. Citations link to the definitions.
6265 + Recurse into bodies of unknown directives (#3432).
6266 In most cases it's better to preserve the content than
6267 to emit it. This isn't guaranteed to have good results;
6268 it will fail spectacularly for unknown raw or verbatim directives.
6269 + Handle chained link definitions (#262). For example,
6272 .. _goodbye: example.com
6274 Here both `hello` and `goodbye` should link to `example.com`.
6275 + Support anchors (#262). E.g.
6283 This is supported by putting "paragraph" in a `Div` with id `hello`.
6284 + Support `:widths:` attribute for table directive.
6285 + Implement csv-table directive (#3533). Most attributes are supported,
6286 including `:file:` and `:url:`.
6287 + Support unknown interpreted text roles by parsing them as Span
6288 with "role" attributes (#3407). This way they can be manipulated in
6291 * HTML reader: parse a span with class `smallcaps` as `SmallCaps`.
6295 + Implemented `\graphicspath` (#736).
6296 + Properly handle column prefixes/suffixes. For example, in
6297 `\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}`
6298 each cell will be interpreted as if it has a `$`
6299 before its content and a `$` after (math mode).
6300 + Handle komascript `\dedication` (#1845). It now adds a
6301 `dedication` field to metadata. It is up to the user to supply
6302 a template that uses this variable.
6303 + Support all `\textXX` commands, where XX = `rm`, `tt`, `up`, `md`,
6304 `sf`, `bf` (#3488). Spans with a class are used when there is
6306 + Expand `\newenvironment` macros (#987).
6307 + Add support for LaTeX subfiles package (Marc Schreiber, #3530).
6308 + Better support for subfigure package (#3577).
6309 A figure with two subfigures turns into two pandoc
6310 figures; the subcaptions are used and the main caption
6311 ignored, unless there are no subcaptions.
6312 + Add support for `\vdots` (Marc Schreiber, #3607).
6313 + Add basic support for hyphenat package (Marc Schreiber, #3603).
6314 + Add basic `\textcolor` support (Marc Schreiber).
6315 + Add support for `tabularx` environment (Marc Schreiber, #3632).
6316 + Better handling of comments inside math environments (#3113).
6317 This solves a problem with commented out `\end{eqnarray}` inside
6318 an eqnarray (among other things).
6319 + Parse tikzpicture as raw verbatim environment if `raw_tex` extension
6320 is selected (#3692). Otherwise skip with a warning. This is better
6321 than trying to parse it as text!
6322 + Add `\colorbox` support (Marc Schreiber).
6323 + Set identifiers on Spans used for `\label`.
6324 + Have `\setmainlanguage` set `lang` in metadata.
6325 + Support etoolbox's `\ifstrequal`.
6326 + Support `plainbreak`, `fancybreak` et al from the memoir class
6327 (bucklereed, #3833).
6328 + Support `\let`. Also, fix regular macros so they're expanded at the
6329 point of use, and NOT also the point of definition. `\let` macros,
6330 by contrast, are expanded at the point of definition. Added an
6331 `ExpansionPoint` field to `Macro` to track this difference.
6332 + Support simple `\def` macros. Note that we still don't support
6333 macros with fancy parameter delimiters, like `\def\foo#1..#2{...}`.
6334 + Support `\chaptername`, `\partname`, `\abstractname`, etc. (#3559,
6336 + Put content of `\ref`, `\label`, `\eqref` commands into `Span` with
6337 attributes, so they can be handled in filters (Marc Schreiber, #3639)
6338 + Add Support for `glossaries` and `acronym` package (Marc Schreiber,
6339 #3589). Acronyms are not resolved by the reader, but acronym and
6340 glossary information is put into attributes on Spans so that they
6341 can be processed in filters.
6342 + Use `Link` instead of `Span` for `\ref`. This makes more sense
6343 semantically and avoids unnecessary `Span [Link]` nestings when
6344 references are resolved.
6345 + Rudimentary support for `\hyperlink`.
6346 + Support `\textquoteleft|right`, `\textquotedblleft|right` (#3849).
6347 + Support `\lq`, `\rq`.
6348 + Implement `\newtoggle`, `\iftoggle`, `\toggletrue|false` from etoolbox
6350 + Support `\RN` and `\Rn`, from biblatex (bucklereed, #3854).
6351 + Improved support for `\hyperlink`, `\hypertarget` (#2549).
6352 + Support `\k` ogonek accent.
6353 + Improve handling of accents. Handle ogonek, and fall back correctly
6354 with forms like `\"{}`.
6355 + Better support for ogonek accents.
6356 + Support for `\faCheck` and `\faClose` (Marc Schreiber, #3727).
6357 + Support for `xspace` (Marc Schreiber, #3797).
6358 + Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia)
6360 + Better handling of `\part` in LaTeX (#1905). Now we parse chapters as
6361 level 0 headers, and parts as level -1 headers. After parsing, we
6362 check for the lowest header level, and if it's less than 1 we bump
6363 everything up so that 1 is the lowest header level. So `\part` will
6364 always produce a header; no command-line options are needed.
6365 + Add block version of `\textcolor` (Marc Schreiber).
6366 + `\textcolor` works as inline and block command (Marc Schreiber).
6367 + `\textcolor` will be parse as span at the beginning of a paragraph
6369 + Read polyglossia/babel `\text(LANG){...}` (bucklereed)
6370 + Improved handling of include files in LaTeX reader (#3971).
6371 Previously `\include` wouldn't work if the included file
6372 contained, e.g., a begin without a matching end.
6373 + Support `\expandafter` (#3983).
6374 + Handle `\DeclareRobustCommand` (#3983). Currently it's just treated
6375 as a synonym for `\newcommand`.
6376 + Handle `\lettrine` (Mauro Bieg).
6378 * Math improvements due to updates in texmath:
6380 + Improved handling of accents and upper/lower delimiters.
6381 + Support for output in GNU eqn format (used with *roff).
6382 + Allow `\boldsymbol` + a token without braces, and similarly
6383 with other styling commands.
6384 + Improve parsing of `\mathop` to allow multi-character operator names.
6385 + Add thin space after math operators when "faking it with
6388 * `walk` is now used instead of `bottomUp` in the `ToJSONFilter`
6389 instance for `a -> [a]` (pandoc-types). Note that behavior
6390 will be slightly different, since `bottomUp`'s treatment of
6391 a function `[a] -> [a]` is to apply it to each sublist of a
6392 list, while walk applies it only to maximal sublists.
6393 Usually the latter behavior is what is wanted, and the
6394 former can be simulated when needed. But there may be
6395 existing filters that need to be rewritten in light of the
6396 new behavior. Performance should be improved.
6398 * There are some changes to syntax highlighting due to revisions
6399 in the `skylighting` library:
6401 + Support for `powershell` has been added, and many syntax
6402 definitions have been updated.
6403 + Background colors have been added to the `kate` style.
6404 + The way highlighted code blocks are formatted in HTML has
6405 been changed (David Baynard), in ways that may require
6406 changes in hard-coded CSS affecting highlighting.
6407 (If you haven't included hard-coded highlighting CSS in
6408 your template, you needn't change anything.)
6413 * New module `Text.Pandoc.Class` (Jesse Rosenthal, John MacFarlane).
6414 This contains definitions of the `PandocMonad` typeclass, the
6415 `PandocIO` and `PandocPure` monads, and associated functions.
6417 * Changed types of all writers and readers.
6419 + We now use `Text` instead of `String` in the interface (#3731).
6420 (We have not yet changed the internals of most readers to work
6421 with `Text`, but making this change in the API now opens up a
6422 path to doing that.)
6423 + The result is now of form `m a` with constraint `PandocMonad m`.
6424 Readers and writers can be combined to form monadic values which
6425 can be run using either `runIO` or `runPure`. If `runIO` is used,
6426 then both readers and writers will be able to do IO when needed
6427 (for include files, for example); if `runPure` is used,
6428 then the functions are pure and will not touch IO.
6429 + Where previously you used
6430 `writeRST def (readMarkdown def "[foo](url)")`, now you
6432 `runPure $ readMarkdown def (pack "[foo](url)") >>= writeRST def`.
6434 * New module `Text.Pandoc.Readers` (Albert Krewinkel). This
6435 contains reader helper functions formerly defined in the
6436 top-level `Text.Pandoc` module.
6438 + Changed `StringReader` -> `TextReader`.
6439 + `getReader` now returns a pair of a reader and
6440 `Extensions`, instead of building the extensions into the
6441 reader (#3659). The calling code must explicitly set
6442 `readerExtensions` using the `Extensions` returned. The
6443 point of the change is to make it possible for the calling
6444 code to determine what extensions are being used.
6446 * New module `Text.Pandoc.Writers` (Albert Krewinkel).
6447 This contains writer helper functions formerly defined in the
6448 top-level `Text.Pandoc` module.
6450 + Changed `StringWriter` -> `TextWriter`.
6451 + `getWriter` now retuns a pair of a reader and
6452 `Extensions`, instead of building the extensions into the
6453 reader (#3659). The calling code must explicitly set
6454 `readerExtensions` using the `Extensions` returned. The
6455 point of the change is to make it possible for the calling
6456 code to determine what extensions are being used.
6458 * New module `Text.Pandoc.Lua`, exporting `runLuaFilter` (Albert Krewinkel,
6461 * New module `Text.Pandoc.App`. This abstracts out the functionality
6462 of the command line program (`convertWithOpts`), so it can be reproduced
6463 e.g. in a desktop or web application. Instead of exiting, we throw errors
6464 (#3548), which are caught (leading to exit) in pandoc.hs, but allow other
6465 users of `Text.Pandoc.App` to recover. `pandoc.hs` is now a 2-liner.
6466 The module also exports some utility functions for parsing options
6467 and running filters.
6469 * New module `Text.Pandoc.Logging` (exported module) (#3392).
6470 This now contains the `Verbosity` definition previously in
6471 `Text.Pandoc.Options`, as well as a new `LogMessage` datatype that will
6472 eventually be used instead of raw strings for warnings. This will enable
6473 us, among other things, to provide machine-readable warnings if desired.
6474 Include ToJSON instance and showLogMessage. This gives us the possibility
6475 of both machine-readable and human-readable output for log messages.
6477 * New module `Text.Pandoc.BCP47`, with `getLang`, `Lang(..)`, `parseBCP47`.
6479 * New module `Text.Pandoc.Translations`, exporting `Term`,
6480 `Translations`, `readTranslations`.
6482 * New module `Text.Pandoc.Readers.LaTeX.Types', exporting `Macro`, `Tok`,
6483 `TokType`, `Line`, `Column`.
6485 * `Text.Pandoc.Error`: added many new constructors for `PandocError`.
6487 * Expose some previously private modules (#3260). These are often
6488 helpful to people writing their own reader or writer modules:
6490 + `Text.Pandoc.Writers.Shared`
6491 + `Text.Pandoc.Parsing`
6492 + `Text.Pandoc.Asciify`
6493 + `Text.Pandoc.Emoji`
6494 + `Text.Pandoc.ImageSize`
6495 + `Text.Pandoc.Highlighting`
6497 * New module `Text.Pandoc.Extensions` (Albert Krewinkel):
6498 Extension parsing and processing functions were defined in the top-level
6499 `Text.Pandoc` module. These functions are moved to the Extensions
6500 submodule as to enable reuse in other submodules.
6502 * Add `Ext_raw_attribute` constructor for `Extension`.
6504 * Add `Ext_fenced_divs` constructor for `Extension'.
6506 * Add `Ext_four_space_rule` constructor in `Extension`.
6508 * Add `Ext_gfm_auto_identifiers` constructor for `Extension`.
6510 * Add `Monoid` instance for `Extensions`.
6512 * Add `Text.Pandoc.Writers.Ms`, exporting `writeMs`.
6514 * Add `Text.Pandoc.Writers.JATS`, exporting `writeJATS`.
6516 * Add `Text.Pandoc.Writers.Muse`, exporting `writeMuse`.
6518 * Add `Text.Pandoc.Readers.Muse`, exporting `readMuse`.
6520 * Add `Text.Pandoc.Readers.TikiWiki`, exporting `readTikiWiki`.
6522 * Add `Text.Pandoc.Readers.Vimwiki`, exporting `readVimwiki`.
6524 * Add `Text.Pandoc.Readers.Creole`, exporting `readCreole`.
6526 * Export `setVerbosity` from `Text.Pandoc`.
6528 * `Text.Pandoc.Pretty`: Add `Eq` instance for `Doc`.
6530 * `Text.Pandoc.XML`: `toEntities`: changed type to `Text -> Text`.
6532 * `Text.Pandoc.UTF8`:
6534 + Export `fromText`, `fromTextLazy`, `toText`, `toTextLazy`.
6535 Define `toString`, `toStringLazy` in terms of them.
6536 + Add new functions parameterized on `Newline`: `writeFileWith`,
6537 `putStrWith`, `putStrLnWith`, `hPutStrWith`, `hPutStrLnWith`.
6539 * `Text.Pandoc.MediaBag`: removed `extractMediaBag`.
6541 * `Text.Pandoc.Highlighting`:
6543 + `highlighting` now returns an Either rather than Maybe.
6544 This allows us to display error information returned by the skylighting
6545 library. Display a warning if the highlighting library throws an error.
6546 + Add parameter for `SyntaxMap` to `highlight`.
6548 * `Text.Pandoc.Writers.Math`:
6550 + Export `defaultMathJaxURL`, `defaultKaTeXURL`. This will ensure that
6551 we only need to update these in one place.
6553 * `Text.Pandoc.SelfContained`:
6555 + Removed `WriterOptions` parameter from `makeSelfContained`.
6556 + Put `makeSelfContained` in PandocMonad instead of IO. This removes
6557 the need to pass MediaBag around and improves exceptions. It also
6558 opens up the possibility of using makeSelfContained purely.
6559 + Export `makeDataURI`.
6561 * `Text.Pandoc.ImageSize`:
6563 + Export `lengthToDim`, new function `scaleDimension`.
6564 + Export `inEm` from ImageSize (#3450).
6565 + Change `showFl` and `show` instance for `Dimension` so
6566 extra decimal places are omitted.
6567 + Added `Em` as a constructor of `Dimension`.
6568 + Add `WriterOptions` parameter to `imageSize` signature (Mauro Bieg).
6570 * `Text.Pandoc.Templates`:
6572 + Change type of `renderTemplate'`. Now it runs in `PandocMonad`
6573 and raises a proper `PandocTemplateError` if there are problems, rather
6574 than failing with uncatchable `error`.
6575 + Change signature of `getDefaultTemplate`. Now it runs in any instance
6576 of `PandocMonad`, and returns a `String` rather than an `Either` value.
6577 And it no longer takes a `datadir` parameter, since this can be
6578 retrieved from `CommonState`.
6580 * `Text.Pandoc.Options`:
6582 + Added `writerEpubSubdirectory` to `WriterOptions` (#3720).
6583 The EPUB writer now takes its EPUB subdirectory from this option.
6584 + In `WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine`
6585 and `writerLaTeXArgs` to `writerPdfArgs` (Mauro Bieg, #3909).
6586 + Add `writerSyntaxMap` to `WriterOptions`.
6587 + Removed `writerEpubStylesheet` from `WriterOptions`.
6588 + Remove `writerUserDataDir` from `WriterOptions`. It is now carried
6589 in `CommonState` in `PandocMonad` instances. (And thus it can be used
6591 + Changed `writerEpubMetadata` to a `Maybe String`.
6592 + Removed `readerApplyMacros` from `ReaderOptions`. Now we just check
6593 the `latex_macros` reader extension.
6594 + FromJSON/ToJSON instances for `ReaderOptions`.
6595 + In `HTMLMathMethod`, the `KaTeX` contsructor now takes only
6596 one string (for the KaTeX base URL), rather than two.
6597 + Removed `writerSourceURL` from `WriterOptions`. We now use
6598 `stSourceURL` in `CommonState`, which is set by `setInputFiles`.
6600 * `Text.Pandoc.Shared`:
6602 + `tabFilter` now takes a `Text`, not `String`.
6603 + `openURL`: Changed type from an Either. Now it will just raise
6604 an exception to be trapped later.
6605 + Remove `normalizeSpaces` (#1530).
6606 + Remove `warn`. (Use `report` from `Text.Pandoc.Class` instead.)
6607 + Export a new function `crFilter`.
6608 + Add `eastAsianLineBreakFilter` (previously in Markdown reader).
6609 + Provide custom `isURI` that rejects unknown schemes.
6610 (Albert Krewinkel, #2713). We also export the set of known
6611 `schemes`. The new function replaces the function of the same name
6612 from `Network.URI`, as the latter did not check whether a scheme is
6613 well-known. All official IANA schemes (as of 2017-05-22) are
6614 included in the set of known schemes. The four non-official schemes
6615 `doi`, `isbn`, `javascript`, and `pmid` are kept.
6617 + Remove `readDataFile`, `readDefaultDataFile`, `getReferenceDocx`,
6618 `getReferenceODT`. These now live in `Text.Pandoc.Class`,
6619 where they are defined in terms of `PandocMonad`
6620 primitives and have different signatures.
6621 + Remove `openURL`. Use `openURL` from `Text.Pandoc.Class` instead.
6622 + Add `underlineSpan`.
6624 * `Text.Pandoc.Readers.HTML`: export new `NamedTag` class.
6626 * `Text.Pandoc.Readers.Markdown`: remove `readDocxWithWarnings`.
6627 With the new API one can simply use `getLog` after running
6630 * `Text.Pandoc.Readers.LaTeX`: Changed types for `rawLaTeXInline`
6631 and `rawLaTeXBlock`. (Both now return a `String`, and they are
6632 polymorphic in state.)
6635### Bug fixes and under-the-hood improvements
6637 * TEI writer: Added identifiers on `<div>` elements.
6639 * DokuWiki reader: Better handling for code block in list item (#3824).
6641 * Custom writer: Remove old preprocesesor conditionals (Albert Krewinkel).
6643 * ZimWiki writer: Removed internal formatting from note and table cells,
6644 because ZimWiki does not support it (Alex Ivkin, #3446).
6648 + Updated list of syntax highlighting languages (#3461).
6649 Now `r` gets you `<source>` rather than `<code>` (among others).
6650 + Add display attribute on `<math>` tags (#3452). This allows display
6651 math to be rendered properly.
6652 + Remove newline before `</ref>` (#2652).
6653 + Don't softbreak lines inside list items (#3531).
6657 + Reduce to two spaces after bullets (#3417, Albert Krewinkel).
6658 + Add unit tests (Alexander Krotov).
6659 + Stop using raw HTML to wrap divs (Albert Krewinkel, #3771).
6660 + Do not strip `#` from Org anchor links (Alexander Krotov).
6662 * CommonMark writer:
6664 + Avoid excess blank lines at end of output.
6665 + Prefer pipe tables to HTML tables even if it means losing relative
6666 column width information (#3734).
6667 + Support table, strikethrough extensions, when enabled (as with gfm).
6668 Note that we bypass the commonmark writer from cmark and construct our
6669 own pipe tables, with better results.
6670 + Properly support `--wrap=none`.
6671 + Use smallcaps class for `SmallCaps` (#1592).
6672 + Omit "fig:" prefix in image titles. This is used internally to
6673 indicate internal figures.
6677 + Properly handle table captions.
6678 + Don't wrap lines in in definition list terms. Wrapping is not allowed.
6679 + Implemented `+/-smart` and improved escaping with `+smart`.
6680 + Add empty comments when needed to avoid including a blockquote
6681 in the indented content of a preceding block (#3675).
6682 + Improve grid table output, fix bug with empty rows (#3516).
6683 Uses the new `gridTable` in Writers.Shared, which is here
6684 improved to better handle 0-width cells.
6685 + Remove space at beginning/end of RST code span (#3496). Otherwise
6686 we get invalid RST. There seems to be no way to escape the space.
6687 + Add header anchors when header has non-standard id (#3937).
6688 + Correctly handle inline code containing backticks, using a `:literal:`
6690 + Don't backslash-escape word-internal punctuation (#3978).
6694 + Don't include variables in metadata blocks. Previously variables set
6695 on the command line were included in e.g. YAML metadata, contrary to
6696 documentation and intentions.
6697 + Improved escaping with `+smart`.
6698 + Fixed grid tables embedded in grid tables (#2834).
6699 + Use span with class 'smallcaps' for SmallCaps, instead of a style
6700 attribute as before (#1592).
6701 + Escape initial `%` in a paragraph if the `pandoc_title_blocks`
6702 extension is enabled (#3454). Otherwise in a document starting with
6703 a literal `%` the first line is wrongly interpreted as a title.
6704 + Fixed false ordered lists in YAML metadata (#3492, #1685). Now we
6705 properly escape things that would otherwise start ordered lists,
6711 + Better handling of tables with empty columns (#3337). We now
6712 calculate the number of columns based on the longest row (or the
6713 length of aligns or widths).
6714 + Escape unordered list markers at beginning of paragraph (#3497), to
6715 avoid false interpretation as a list.
6716 + Escape `|` appropriately.
6717 + Ensure space before list at top level (#3487).
6718 + Avoid spurious blanklines at end of document after tables and list,
6720 + Fixed bugs in simple/multiline list output (#3384).
6721 Previously we got overlong lists with `--wrap=none`. This is fixed.
6722 Previously a multiline list could become a simple list (and would
6723 always become one with `--wrap=none`).
6724 + Don't emit a simple table if `simple_tables` disabled (#3529).
6725 + Case-insensitive reference links (David A Roberts, #3616).
6726 Ensure that we do not generate reference links whose labels differ only
6727 by case. Also allow implicit reference links when the link
6728 text and label are identical up to case.
6729 + Put space before reference link definitions (Mauro Bieg, #3630).
6730 + Better escaping for links (David A. Roberts, #3619). Previously the
6731 Markdown writer would sometimes create links where there were none
6732 in the source. This is now avoided by selectively escaping bracket
6733 characters when they occur in a place where a link might be created.
6734 + Added missing `\n` (David A. Roberts, #3647).
6735 + Fixed duplicated reference links with `--reference-links`
6736 and `--reference-location=section` (#3674). Also ensure that there
6737 are no empty link references `[]`.
6738 + Avoid inline surround-marking with empty content (#3715).
6739 E.g. we don't want `<strong></strong>` to become `****`.
6740 Similarly for emphasis, super/subscript, strikeout.
6741 + Don't allow soft break in header (#3736).
6742 + Make sure `plain`, `markdown_github`, etc. work for raw.
6743 Previously only `markdown` worked. Note: currently a raw block labeled
6744 `markdown_github` will be printed for any `markdown` format.
6745 + Ensure that `+` and `-` are escaped properly so they don't cause
6746 spurious lists (#3773). Previously they were only
6747 if succeeded by a space, not if they were at end of line.
6748 + Use pipe tables if `raw_html` disabled and `pipe_tables` enabled,
6749 even if the table has relative width information (#3734).
6750 + Markdown writer: don't crash on `Str ""`.
6751 + Make `Span` with null attribute transparent. That is, we don't use
6752 brackets or `<span>` tags to mark spans when there are no attributes;
6753 we simply output the contents.
6754 + Escape pipe characters when `pipe_tables` enabled (#3887).
6755 + Better escaping of `<` and `>`. If `all_symbols_escapable` is set,
6756 we backslash escape these. Otherwise we use entities as before.
6757 + When writing plain, don't use ` ` to separate list and indented
6758 code. There's no need for it in this context, since this isn't to be
6759 interpreted using Markdown rules.
6760 + Preserve classes in JS obfuscated links (Timm Albers, #2989).
6761 HTML links containing classes originally now preserve them when using
6762 javascript email obfuscation.
6763 + Render `SmallCaps` as a native span when `native_spans` are enabled.
6764 + Always write attributes with `bracketed_spans` (d-dorazio).
6768 + Fix handling of nested font commands (#3568). Previously pandoc emitted
6769 incorrect markup for bold + italic, for example, or bold + code.
6770 + Avoid error for definition lists with no definitions (#3832).
6774 + Fix internal links with `writerIdentifierPrefix opt`
6775 (#3397, Mauro Bieg).
6779 + Don't include bookmarks on headers unless non-null id (#3476).
6780 + Support 9 levels of headers (#1642).
6781 + Allow 9 list levels (#3519).
6782 + Don't take `distArchive` from datadir (#3322). The docx writer takes
6783 components from the distribution's version of `reference.docx` when it
6784 can't find them in a user's custom `reference.docx`. Previously, we
6785 allowed a `reference.docx` in the data directory (e.g. `~/.pandoc`)
6786 to be used as the distribution's reference.docx. This led to a
6787 bizarre situation where pandoc would produce a good docx using
6788 `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to
6789 `~/.pandoc/reference.docx`, it would then produce a corrupted docx.
6790 + Fixed handling of soft hyphen (0173) (#3691).
6791 + Better handling of keywords (#3719).
6792 + Cleaner code for handling dir and style attributes for `Div`.
6793 + Use `Set` for dynamic styles to avoid duplicates.
6794 + Removed redundant element from data/docx/word/numbering.xml.
6795 The elements we need are generated when the document is
6796 compiled; this didn't do anything.
6797 + Activate `evenAndOddHeaders` from reference docx (#3901,
6798 Augustín Martín Barbero).
6800 * ODT/OpenDocument writer:
6802 + Calculate aspect ratio for percentage-sized images (Mauro Bieg, #3239).
6803 + Use more widely available bullet characters (#1400). The old
6804 characters weren't available in some font sets. These seem to work
6805 well on Windows and Linux versions of LibreOffice.
6806 + Wider labels for lists (#2421). This avoids overly narrow labels for
6807 ordered lists with `()` delimiters. However, arguably it creates
6808 overly wide labels for bullets. Also, lists now start flush with
6809 the margin, rather than indented.
6810 + Fixed dropped elements in some ordered lists (#2434).
6814 + Don't render `RawBlock` as code.
6815 + Don't fail with an error on interior headers (e.g. in list) (#3750).
6816 Instead, omit them with an INFO message.
6817 + Add support for "lang" metadata (Alexander Krotov, #3625).
6818 + Format `LineBlock` as poem (Alexander Krotov). Previously writer
6819 produced one paragraph with `<empty-line/>` elements, which are not
6820 allowed inside `<p>` according to FB2 schema.
6821 + Replace `concatMap` with `cMap` (Alexander Krotov).
6822 + Write FB2 lists without nesting blocks inside `<p>` (Alexander
6827 + Make sure `html4`, `html5` formats work for raw blocks/inlines.
6828 + Render raw inline environments when `--mathjax` used (#3816).
6829 We previously did this only with raw blocks, on the assumption
6830 that math environments would always be raw blocks. This has changed
6831 since we now parse them as inline environments.
6832 + Ensure we don't get two style attributes for width and height.
6833 + Report when not rendering raw inline/block.
6834 + Issue warning if no title specified and template used (#3473).
6835 + Info message if `lang` is unspecified (#3486).
6836 + Removed unused parameter in `dimensionsToAttributeList`.
6837 + Avoid two class attributes when adding `uri` class (#3716).
6838 + Fix internal links with `writerIdentifierPrefix opt` (#3397, Mauro
6840 + Use revealjs's math plugin for mathjax (#3743). This is a thin
6841 wrapper around mathjax that makes math look better on revealjs.
6842 + Slidy: use h1 for all slides, even if they were originally
6843 level 2 headers (#3566). Otherwise the built-in table of contents
6848 + Don't render LaTeX images with data: URIs (#3636). Note that
6849 `--extract-media` can be used when the input contains data: URIs.
6850 + Make highlighted code blocks work in footnotes (Timm Albers).
6851 + Don't use figure inside table cell (#3836).
6852 + Use proper code for list enumerators (#3891). This should fix problems
6853 with lists that don't use arabic numerals.
6854 + Always add hypertarget when there's a non-empty identifier (#2719).
6855 Previously the hypertargets were only added when there was actually
6856 a link to that identifier.
6857 + Use `%` after hypertarget before code block.
6858 + Add `\leavevmode` before hypertarget at start of paragraph (#2704,
6859 fixes formatting problems in beamer citations).
6860 + Don't use `lstinline` in `\item[..]` (#645). If you do, the contents
6861 of item disappear or are misplaced. Use `\texttt` instead.
6862 + Fix problem with escaping in `lstinline` (#1629). Previously the
6863 LaTeX writer created invalid LaTeX when `--listings` was specified and
6864 a code span occurred inside emphasis or another construction.
6865 + Fix error with line breaks after empty content (#2874). LaTeX
6866 requires something before a line break, so we insert a `~` if no
6867 printable content has yet been emitted.
6869 + Fixed detection of otherlangs (#3770). We weren't recursing into
6871 + Handle language in inline code with `--listings` (#3422).
6872 + Write euro symbol directly in LaTeX (Andrew Dunning, #3801).
6873 The textcomp package allows pdfLaTeX to parse `€` directly, making the
6874 `\euro` command unneeded.
6875 + Fixed footnotes in table captions (#2378). Note that if the table has
6876 a first page header and a continuation page header, the notes will
6877 appear only on the first occurrence of the header.
6878 + In `writeBeamer` output, allow hyperlinks to frames (#3220).
6879 Previously you could link to a header above or below slide level but
6880 not *to* slide level. This commit changes that. Hypertargets are
6881 inserted inside frame titles; technically the reference is to just
6882 after the title, but in normal use (where slides are viewed full
6883 screen in a slide show), this does not matter.
6884 + Remove `\strut` at beginning of table cells (#3436). This fixes a
6885 problem with alignment of lists in table cells. The `\strut` at the
6886 end seems to be enough to avoid the too-close spacing that motivated
6887 addition of the strut in #1573.
6888 + Add partial siunitx Support (Marc Schreiber, #3588).
6892 + Refactored to use BCP47 module.
6893 + Remove unnecessary `$` (Alexander Krotov, #3482).
6894 + Use header identifiers for chapters (#3968).
6898 + `title_page.xhtml` is now put in `text/`.
6899 + Don't strip formatting in TOC (#1611).
6903 + Fix bug for certain links in table cells (#3667).
6904 + Allow 'pre' code in list item (#3916).
6908 + Added warnings for ignored material (#3392).
6909 + Better sanity checks to avoid parsing unintended things as
6910 raw HTML in the Markdown reader (#3257).
6911 + Revise treatment of `li` with `id` attribute (#3596). Previously we
6912 always added an empty div before the list item, but this created
6913 problems with spacing in tight lists. Now we do this: If the list
6914 item contents begin with a `Plain` block, we modify the `Plain`
6915 block by adding a `Span` around its contents. Otherwise, we add a
6916 `Div` around the contents of the list item (instead of adding an
6917 empty `Div` to the beginning, as before).
6918 + Add `details` tag to list of block tags (#3694).
6919 + Removed `button` from block tag list (#3717). It is already in the
6920 `eitherBlockOrInlineTag` list, and should be both places.
6921 + Use `Set`s instead of lists for block tag lookup.
6922 + Rewrote to use `Text` throughout. Effect on memory usage is modest
6924 + Use the lang value of `<html>` to set the lang meta value (bucklereed,
6926 + Ensure that paragraphs are closed properly when the parent block
6927 element closes, even without `</p>` (#3794).
6928 + Parse `<figure>` and `<figcaption>` (Mauro Bieg, #3813).
6929 + Parse `<main>` like `<div role=main>` (bucklereed, #3791).
6930 `<main>` closes `<p>` and behaves like a block element generally
6931 + Support column alignments (#1881). These can be set either
6932 with a `width` attribute or with `text-width` in a `style` attribute.
6933 + Modified state type to be an instance of `HasLogMessages`, so
6934 `registerHeader` can issue warnings.
6935 + `</td>` or `</th>` should close any open block tag (#3991).
6936 + `<td>` should close an open `<th>` or `<td>`.
6937 + `htmlTag` improvements (#3989). We previously failed on cases
6938 where an attribute contained a `>` character. This patch fixes the
6939 bug, which especially affects raw HTML in Markdown.
6943 + Newline is not indentation (Alexander Krotov).
6947 + Allow extra hyphens after `|-` in tables (#2649).
6948 + Allow blank line after table start (#2649).
6949 + Fixed more table issues (#2649).
6950 + Ensure that list starts begin at left margin (#2606). Including when
6951 they're in tables or other list items.
6952 + Make smart double quotes depend on `smart` extension (#3585).
6953 + Don't do curly quotes inside `<tt>` contexts (#3585). Even if `+smart`.
6954 + Modified state type to be an instance of `HasLogMessages`, so
6955 `registerHeader` can issue warnings.
6957 * TWiki reader (Alexander Krotov):
6959 + Remove unnecessary `$` (#3597).
6960 + Simplify `linkText` (#3605).
6964 + Minor refactoring, avoiding explicit MediaBag handling.
6965 This all works behind the scenes in CommonState plumbing.
6969 + Don't drop smartTag contents (#2242).
6970 + Handle local namespace declarations (#3365). Previously we didn't
6971 recognize math, for example, when the xmlns declaration occurred on
6972 the element and not the root.
6973 + More efficient trimSps (#1530). Replacing `trimLineBreaks`. This
6974 does the work of `normalizeSpaces` as well, so we avoid the need for
6976 + Avoid 0-level headers (Jesse Rosenthal, #3830). We used to parse
6977 paragraphs styled with "HeadingN" as "nth-level header." But if a
6978 document has a custom style named "Heading0", this will produce a
6979 0-level header, which shouldn't exist. We only parse this style
6980 if N>0. Otherwise we treat it as a normal style name, and
6981 follow its dependencies, if any.
6982 + Add tests for avoiding zero-level header (Jesse Rosenthal).
6986 + Replaced `collectRights` with Rights from `Data.Either`.
6987 + Remove dead code (Albert Krewinkel).
6989 * Org reader (Albert Krewinkel, unless noted).
6991 + Don't allow tables inside list items (John MacFarlane, #3499).
6992 + Disallow tables on list marker lines (#3499).
6993 + Convert markup at beginning of footnotes (John MacFarlane, #3576).
6994 + Allow emphasized text to be followed by `[` (#3577).
6995 + Handle line numbering switch for src blocks.
6996 The line-numbering switch that can be given to source blocks (`-n` with
6997 an start number as an optional parameter) is parsed and translated to a
6998 class/key-value combination used by highlighting and other readers and
7000 + Stop adding rundoc prefix to src params. Source block parameter names
7001 are no longer prefixed with `rundoc`. This was intended to simplify
7002 working with the rundoc project, a babel runner. However, the rundoc
7003 project is unmaintained, and adding those markers is not the reader's
7004 job anyway. The original language that is specified for a source
7005 element is now retained as the `data-org-language` attribute and only
7006 added if it differs from the translated language.
7007 + Allow multi-word arguments to src block params (#3477). The reader now
7008 correctly parses src block parameter list even if parameter arguments
7009 contain multiple words.
7010 + Avoid creating `nullMeta` by applying `setMeta` directly
7012 + Replace `sequence . map` with `mapM`.
7013 + Fix smart parsing behavior. Parsing of smart quotes and special
7014 characters can either be enabled via the `smart` language extension or
7015 the `'` and `-` export options. Smart parsing is active if either the
7016 extension or export option is enabled. Only smart parsing of special
7017 characters (like ellipses and en and em dashes) is enabled by default,
7018 while smart quotes are disabled. Previously, all smart parsing was
7019 disabled unless the language extension was enabled.
7020 + Subject full doc tree to headline transformations (Albert Krewinkel,
7021 #3695). Emacs parses org documents into a tree structure, which is
7022 then post-processed during exporting. The reader is changed to do the
7023 same, turning the document into a single tree of headlines starting
7025 + Fix cite parsing behaviour (Herwig Stuetz). Until now, `org-ref`
7026 cite keys included special characters also at the end. This caused
7027 problems when citations occur right before colons or at the end of
7028 a sentence. With this change, all non alphanumeric characters at
7029 the end of a cite key are ignored. This also adds `,` to the list
7030 of special characters that are legal in cite keys to better mirror
7031 the behaviour of org-export.
7032 + Fix module names in haddock comments. Copy-pasting had lead to
7033 haddock module descriptions containing the wrong module names.
7034 + Recognize babel result blocks with attributes (#3706). Babel
7035 result blocks can have block attributes like captions and names.
7036 Result blocks with attributes were not recognized and were parsed
7037 as normal blocks without attributes.
7038 + Include tags in headlines. The Emacs default is to include tags in the
7039 headline when exporting. Instead of just empty spans, which contain the
7040 tag name as attribute, tags are rendered as small caps and wrapped in
7041 those spans. Non-breaking spaces serve as separators for multiple tags.
7042 + Respect export option for tags (#3713). Tags are appended to
7043 headlines by default, but will be omitted when the `tags` export option
7045 + Use `tag-name` attribute instead of `data-tag-name`.
7046 + Use `org-language` attribute rather than `data-org-language`.
7047 + Modified state type to be an instance of `HasLogMessages`, so
7048 `registerHeader` can issue warnings.
7049 + End footnotes after two blank lines. Footnotes can not only be
7050 terminated by the start of a new footnote or a header, but also by two
7051 consecutive blank lines.
7052 + Update emphasis border chars (#3933). The org reader was updated to
7053 match current org-mode behavior: the set of characters which are
7054 acceptable to occur as the first or last character in an org emphasis
7055 have been changed and now allows all non-whitespace chars at the
7056 inner border of emphasized text (see `org-emphasis-regexp-components`).
7060 + Fixed small bug in list parsing (#3432). Previously the parser didn't
7061 handle properly this case:
7067 + Handle multiline cells in simple tables (#1166).
7068 + Parse list table directive (Keiichiro Shikano, #3432).
7069 + Make use of `anyLineNewline` (Alexander Krotov, #3686).
7070 + Use `anyLineNewline` in `rawListItem` (Alexander Krotov, #3702).
7071 + Reorganize block parsers for ~20% faster parsing.
7072 + Fixed `..include::` directive (#3880).
7073 + Handle blank lines correctly in line blocks (Alexander Krotov, #3881).
7074 Previously pandoc would sometimes combine two line blocks separated
7075 by blanks, and ignore trailing blank lines within the line block.
7076 + Fix indirect hyperlink targets (#512).
7080 + Allow attributes in reference links to start on next line (#3674).
7081 + Parse YAML metadata in a context that sees footnotes defined in
7082 the body of the document (#1279).
7083 + When splitting pipe table cells, skip tex math (#3481).
7084 You might have a `|` character inside math. (Or for that matter
7085 something that the parser might mistake for raw HTML.)
7086 + Treat span with class `smallcaps` as SmallCaps.
7087 This allows users to specify small caps in Markdown this way:
7088 `[my text]{.smallcaps}` (#1592).
7089 + Fixed internal header links (#2397).
7090 This patch also adds `shortcut_reference_links` to the list
7092 + Treat certain environments as inline
7093 when they occur without space surrounding them (#3309, #2171).
7094 E.g. equation, math. This avoids incorrect vertical space
7096 + Optimized `nonindentSpaces`. Makes the benchmark go from 40 to 36 ms.
7097 + Allow latex macro definitions indented 1-3 spaces.
7098 Previously they only worked if nonindented.
7099 + Improved parsing of indented raw HTML blocks (#1841).
7100 Previously we inadvertently interpreted indented HTML as
7101 code blocks. This was a regression. We now seek to determine the
7102 indentation level of the contents of an HTML block, and (optionally)
7103 skip that much indentation. As a side effect, indentation may be
7104 stripped off of raw HTML blocks, if `markdown_in_html_blocks` is
7105 used. This is better than having things interpreted as indented
7107 + Fixed smart quotes after emphasis (#2228). E.g. in `*foo*'s 'foo'`.
7108 + Warn for notes defined but not used (#1718).
7109 + Use `anyLineNewline` (Alexander Krotov).
7110 + Interpret YAML metadata as Inlines when possible (#3755). If
7111 the metadata field is all on one line, we try to interpret it as
7112 Inlines, and only try parsing as Blocks if that fails. If it
7113 extends over one line (including possibly the `|` or `>` character
7114 signaling an indented block), then we parse as Blocks. This was
7115 motivated by some German users finding that `date: '22. Juin 2017'`
7116 got parsed as an ordered list.
7117 + Fixed spurious parsing as citation as reference def (#3840).
7118 We now disallow reference keys starting with `@` if the
7119 `citations` extension is enabled.
7120 + Parse `-@roe` as suppress-author citation (pandoc-citeproc#237).
7121 Previously only `[-@roe]` (with brackets) was recognized as
7122 suppress-author, and `-@roe` was treated the same as `@roe`.
7123 + Fixed parsing of fenced code after list when there is no intervening
7125 + Allow raw latex commands starting with `\start` (#3558). Previously
7126 these weren't allowed because they were interpreted as starting
7127 ConTeXt environments, even without a corresponding `\stop`...
7128 + Added `inlines`, `inlines1`.
7129 + Require nonempty alt text for `implicit_figures` (#2844).
7130 A figure with an empty caption doesn't make sense.
7131 + Removed texmath macro material; now all this is handled
7132 in the LaTeX reader functions.
7133 + Fixed bug with indented code following raw LaTeX (#3947).
7137 + Rewrote LaTeX reader with proper tokenization (#1390,
7138 #2118, #3236, #3779, #934, #982). This rewrite is primarily
7139 motivated by the need to get macros working properly. A side benefit
7140 is that the reader is significantly faster. We now tokenize the
7141 input text, then parse the token stream. Macros modify the token
7142 stream, so they should now be effective in any context, including
7143 math. Thus, we no longer need the clunky macro processing
7144 capacities of texmath.
7145 + Parse `\,` to `\8198` (six-per-em space) (Henri Werth).
7146 + Allow `\newcommand\foo{blah}` without braces.
7147 + Support `\lstinputlisting` (#2116).
7148 + Issue warnings when skipping unknown latex commands (#3392).
7149 + Include contents of `\parbox`.
7150 + Allow `\hspace` and `\vspace` to count as raw block or inline.
7151 Previously we would refuse to parse anything as raw inline if
7152 it was in the `blockCommands` list. Now we allow exceptions
7153 if they're listed under ignoreInlines in inlineCommands.
7154 This should make it easier e.g. to include an `\hspace`
7155 between two side-by-side raw LaTeX tables.
7156 + Don't drop contents of `\hypertarget`.
7157 + Handle spaces before `\cite` arguments.
7158 + Allow newpage, clearpage, pagebreak in inline contexts as well as
7159 block contexts (#3494).
7160 + Treat `{{xxx}}` the same as `{xxx}` (#2115).
7161 + Use `pMacroDefinition` in macro (for more direct parsing).
7162 Note that this means that `macro` will now parse one
7163 macro at a time, rather than parsing a whole group together.
7164 + Fixed failures on `\ref{}`, `\label{}` with `+raw_tex`. Now these
7165 commands are parsed as raw if `+raw_tex`; otherwise, their argument
7166 is parsed as a bracketed string.
7167 + Don't crash on empty `enumerate` environment (#3707).
7168 + Handle escaped `&` inside table cell (#3708).
7169 + Handle block structure inside table cells (#3709). `minipage` is no
7171 + Handle some width specifiers on table columns (#3709). Currently
7172 we only handle the form `0.9\linewidth`. Anything else would have
7173 to be converted to a percentage, using some kind arbitrary assumptions
7175 + Make sure `\write18` is parsed as raw LaTeX. The change is in the
7176 LaTeX reader's treatment of raw commands, but it also affects the
7178 + Fixed regression with starred environment names (#3803).
7179 + Handle optional args in raw `\titleformat` (#3804).
7180 + Improved heuristic for raw block/inline. An unknown command at the
7181 beginning of the line that could be either block or inline is
7182 treated as block if we have a sequence of block commands followed by
7183 a newline or a `\startXXX` command (which might start a raw ConTeXt
7185 + Don't remove macro definitions from the output, even if
7186 `Ext_latex_macros` is set, so that macros will be applied.
7187 Since they're only applied to math in Markdown, removing the macros
7188 can have bad effects. Even for math macros, keeping them should be
7190 + Removed `macro`. It is no longer necessary, since the
7191 `rawLaTeXBlock` parser will parse macro definitions. This also avoids
7192 the need for a separate `latexMacro` parser in the Markdown reader.
7193 + Use `label` instead of `data-label` for label in caption (#3639).
7194 + Fixed space after `\figurename` etc.
7195 + Resolve references to section numbers.
7196 + Fix `\let\a=0` case, with single character token.
7197 + Allow `@` as a letter in control sequences. `@` is commonly used
7198 in macros using `\makeatletter`. Ideally we'd make the tokenizer
7199 sensitive to `\makeatletter` and `\makeatother`, but until then this
7200 seems a good change.
7201 + Track header numbers and correlate with labels.
7202 + Allow `]` inside group in option brackets (#3857).
7203 + lstinline with braces can be used (verb cannot be used with braces)
7204 (Marc Schreiber, #3535).
7205 + Fix keyval function: pandoc did not parse options in braces correctly
7206 (Marc Schreiber, #3642).
7207 + When parsing raw LaTeX commands, include trailing space (#1773).
7208 Otherwise things like `\noindent foo` break and turn into
7209 `\noindentfoo`. Affects `-f latex+raw_tex` and `-f markdown` (and other
7210 formats that allow `raw_tex`).
7211 + Don't treat "..." as Quoted (#3958). This caused quotes to be omitted in
7213 + Add tests for existing `\includegraphics` behaviour (Ben Firshman).
7214 + Allow space before `=` in bracketd options (Ben Firshman).
7215 + Be more forgiving in parsing command options. This was needed, for
7216 example, to make some minted options work.
7217 + Strip off quotes in `\include` filenames.
7219 * Added `Text.Pandoc.CSV`, simple (unexported) CSV parser.
7221 * `Text.Pandoc.PDF`:
7223 + Got `--resource-path` working with PDF output (#852).
7224 + Fetch images when generating PDF via context (#3380).
7225 To do this, we create the temp directory as a subdirectory
7226 of the working directory. Since context mk IV by default looks
7227 for images in the parent directory, this works.
7228 + Use `report` instead of `warn`, make it sensitive to verbosity settings.
7229 + Use `fillMediaBag` and `extractMedia` to extract media to temp dir.
7230 This reduces code duplication.
7231 + `html2pdf`: use stdin instead of intermediate HTML file
7232 + Removed useless `TEXINPUTS` stuff for `context2pdf`. mkiv context
7233 doesn't use `TEXINPUTS`.
7235 * `Text.Pandoc.Pretty`:
7237 + Simplified definition of `realLength`.
7238 + Don't error for blocks of size < 1. Instead, resize to 1 (see #1785).
7240 * `Text.Pandoc.MIME`:
7242 + Use `application/javascript` (not `application/x-javascript`).
7243 + Added `emf` to mimeTypes with type `application/x-msmetafile` (#1713).
7245 * `Text.Pandoc.ImageSize`:
7247 + Improve SVG image size code (Marc Schreiber, #3580).
7248 + Make `imageSize` recognize basic SVG dimensions (Mauro Bieg, #3462).
7250 * Use `Control.Monad.State.Strict` throughout. This gives 20-30% speedup
7251 and reduction of memory usage in most of the writers.
7253 * Use `foldrWithKey` instead of deprecated `foldWithKey`.
7255 * `Text.Pandoc.SelfContained`:
7257 + Fixed problem with embedded fonts (#3629).
7258 + Refactored getData from `getDataURI` in `SelfContained`.
7259 + Don't use data URIs for script or style (#3423). Instead, just use
7260 script or style tags with the content inside. The old method with
7261 data URIs prevents certain optimizations outside pandoc. Exception:
7262 data URIs are still used when a script contains `</script>` or a
7263 style contains `</`.
7264 + SelfContained: Handle URL inside material retrieved from a URL
7265 (#3629). This can happen e.g. with an @import of a google web font.
7266 (What is imported is some CSS which contains an url reference
7267 to the font itself.) Also, allow unescaped pipe (|) in URL.
7268 + Load resources from `data-src` (needed for lazy loading in
7269 reveal.js slide shows).
7270 + Handle `data-background-image` attribute on section (#3979).
7272 * `Text.Pandoc.Parsing`:
7274 + Added `indentWith` (Alexander Krotov, #3687).
7275 + Added `stateCitations` to `ParserState`.
7276 + Removed `stateChapters` from `ParserState`.
7277 + In `ParserState`, make `stateNotes'` a Map, add `stateNoteRefs`.
7278 + Added `gobbleSpaces` and `gobbleAtMostSpaces`.
7279 + Adjusted type of `insertIncludedFile` so it can be used with token
7281 + Replace old texmath macro stuff from Parsing. Use Macro from
7282 Text.Pandoc.Readers.LaTeX.Types instead.
7283 + Export `insertIncludedFile`.
7284 + Added `HasLogMessages`, `logMessage`, `reportLogMessages` (#3447).
7285 + Replace partial with total function (Albert Krewinkel).
7286 + Introduce `HasIncludeFiles` type class (Albert Krewinkel). The
7287 `insertIncludeFile` function is generalized to work with all parser
7288 states which are instances of that class.
7289 + Add `insertIncludedFilesF` which returns F blocks (Albert Krewinkel).
7290 The `insertIncludeFiles` function was generalized and renamed
7291 to `insertIncludedFiles'`; the specialized versions are based on that.
7292 + `many1Till`: Check for the end condition before parsing (Herwig
7293 Stuetz). By not checking for the end condition before the first
7294 parse, the parser was applied too often, consuming too much of the
7295 input. This only affects `many1Till p end` where `p` matches on a
7297 + Provide `parseFromString` (#3690). This is a version of
7298 `parseFromString` specialied to ParserState, which resets
7299 `stateLastStrPos` at the end. This is almost always what we want.
7300 This fixes a bug where `_hi_` wasn't treated as emphasis in the
7301 following, because pandoc got confused about the position of the
7302 last word: `- [o] _hi_`.
7303 + Added `takeP`, `takeWhileP` for efficient parsing of `[Char]`.
7304 + Fix `blanklines` documentation (Alexander Krotov, #3843).
7305 + Give less misleading line information with `parseWithString`.
7306 Previously positions would be reported past the end of the chunk.
7307 We now reset the source position within the chunk and report
7308 positions "in chunk."
7309 + Add `anyLineNewline` (Alexander Krotov).
7310 + Provide shared F monad functions for Markdown and Org readers
7311 (Albert Krewinkel). The `F` monads used for delayed evaluation
7312 of certain values in the Markdown and Org readers are based on a
7313 shared data type capturing the common pattern of both `F` types.
7314 + Add `returnF` (Alexander Krotov).
7315 + Avoid parsing `Notes:**` as a bare URI (#3570). This avoids parsing
7316 bare URIs that start with a scheme + colon + `*`, `_`, or `]`.
7317 + Added `readerAbbreviations` to `ParserState`. Markdown reader
7318 now consults this to determine what is an abbreviation.
7319 + Combine grid table parsers (Albert Krewinkel, #3638). The grid table
7320 parsers for markdown and rst was combined into one single
7321 parser `gridTable`, slightly changing parsing behavior of both
7322 parsers: (1) The markdown parser now compactifies block content
7323 cell-wise: pure text blocks in cells are now treated as paragraphs
7324 only if the cell contains multiple paragraphs, and as plain blocks
7325 otherwise. Before, this was true only for single-column tables. (2)
7326 The rst parser now accepts newlines and multiple blocks in header
7328 + Generalize tableWith, gridTableWith (Albert Krewinkel).
7329 The parsing functions `tableWith` and `gridTableWith` are generalized
7330 to work with more parsers. The parser state only has to be an
7331 instance of the `HasOptions` class instead of requiring a concrete
7332 type. Block parsers are required to return blocks wrapped into a
7333 monad, as this makes it possible to use parsers returning results
7334 wrapped in `Future`s.
7336 * `Text.Pandoc.Shared`:
7338 + Simplify `toRomanNumeral` using guards (Alexander Krotov, #3445)
7339 + `stringify`: handle Quoted better (#3958). Previously we were losing
7340 the quotation marks in Quoted elements.
7342 * `Text.Pandoc.Writers.Shared`:
7344 + Export `metaToJSON'`, `addVariablesToJSON` (#3439).
7345 This allows us to add the variables AFTER using the metadata
7346 to generate a YAML header (in the Markdown writer).
7347 + Added `unsmartify` (previously in RST writer).
7348 Undo literal double curly quotes. Previously we left these.
7349 + Generalize type of `metaToJSON` so it can take a Text. Previously a
7350 String was needed as argument; now any ToJSON instance will do.
7351 + Added `gridTable` (previously in Markdown writer).
7352 + `gridTable`: Refactored to use widths in chars.
7353 + `gridTable`: remove unnecessary extra space in cells.
7354 + Fixed `addVariablesToJSON`. It was previously not allowing multiple
7355 values to become lists.
7356 + Pipe tables: impose minimum cell size (see #3526).
7359### Default template changes
7361 * HTML templates (including EPUB and HTML slide show templates):
7363 + Make default.html5 polyglot markup conformant (John Luke Bentley,
7364 #3473). Polyglot markup is HTML5 that is also valid XHTML. See
7365 <https://www.w3.org/TR/html-polyglot>. With this change, pandoc's
7366 html5 writer creates HTML that is both valid HTML5 and valid XHTML.
7367 + Regularized CSS in html/epub/html slide templates (#3485).
7368 All templates now include `code{white-space: pre-wrap}`
7369 and CSS for `q` if `--html-q-tags` is used. Previously some templates
7370 had `pre` and others `pre-wrap`; the `q` styles were only sometimes
7372 + CSS for `.smallcaps`, (Mauro Bieg, #1592)
7373 + `default.revealjs`: make `history` default to true.
7374 + `default.revealjs`: use lazy loading (#2283).
7375 + `default.revealjs`: add `mathjax` variable and some conditional code
7376 to use the MathJaX plugin.
7377 + `default.slidy` uses `https` instead of `http` (ickc, #3848).
7378 + `default.dzslides`: Load Google Font using HTTPS by default
7381 * DocBook5 template: Use `lang` and `subtitle` variables (Jens Getreu,
7384 * LaTeX/Beamer template:
7386 + Combine LaTeX/Beamer templates (Andrew Dunning, #3878).
7387 `default.beamer` has been removed; beamer now uses the
7388 `default.latex` template. Beamer-specific parts are conditional
7389 on the `beamer` variable set by the writer. Note that
7390 `pandoc -D beamer` will return this (combined) template.
7391 + Use `xcolor` for `colorlinks` option (Andrew Dunning, #3877).
7392 Beamer loads `xcolor` rather than `color`, and thus the
7393 `dvipsnames` option doesn't take effect. This also provides a wider
7394 range of colour selections with the `svgnames` option.
7395 + Use starred versions of `xcolor` names (Andrew Dunning).
7396 Prevents changes to documents defined using the `dvipsnames` list (e.g.
7397 `Blue` gives a different result with svgnames enabled).
7398 + Load `polyglossia` after header-includes (#3898). It needs to be
7399 loaded as late as possible.
7400 + Use `unicode-math` (Vaclav Haisman). Use `mathspec` with only
7402 + Don't load `fontspec` before `unicode-math` (over there).
7403 The `unicode-math` package loads `fontspec` so explict loading of
7404 `fontspec` before `unicode-math` is not necessary.
7405 + Use `unicode-math` by default in default.latex template. mathspec will
7406 be used in xelatex if the `mathspec` variable is set; otherwise
7407 unicode-math will be used (Václav Haisman).
7408 + Use `dvipsnames` options when `colorlinks` specified (otherwise
7409 we get an error for `maroon`) (Thomas Hodgson).
7410 + Added beamer `titlegraphic` and `logo` variables (Thomas Hodgson).
7411 + Fix typo in fix for notes in tables (#2378, zeeMonkeez).
7412 + Fix `hyperref` options clash (Andrew Dunning, #3847) Avoids an options
7413 clash when loading a package (e.g. `tufte-latex`) that uses
7414 `hyperref` settings different from those in the template.
7415 + Add `natbiboptions` variable (#3768).
7416 + Fix links inside captions in LaTeX output with links-as-notes
7417 (Václav Haisman, #3651). Declare our redefined `\href` robust.
7418 + Load `parskip` before `hyperref` (Václav Haisman, #3654).
7419 + Allow setting Japanese fonts when using LuaLaTeX (Václav Haisman,
7420 #3873). by using the `luatexja-fontspec` and `luatexja-preset`
7421 packages. Use existing `CJKmainfont` and `CJKoptions` template
7422 variables. Add `luatexjafontspecoptions` for `luatexja-fontspec`
7423 and `luatexjapresetoptions` for `luatexja-preset`.
7424 + Added `aspectratio` variable to beamer template (Václav Haisman,
7426 + Modified template.latex to fix XeLaTex being used with tables
7427 (lwolfsonkin, #3661). Reordered `lang` variable handling to
7428 immediately before `bidi`.
7430 * ConTeXt template: Improved font handling: `simplefonts` is now
7431 obsolete in ConTeXt (Pablo Rodríguez).
7434### Documentation improvements
7438 + Add URL for Prince HTML > PDF engine (Ian, #3919).
7439 + Document that content above slide-level will be omitted in
7440 slide shows. See #3460, #2265.
7441 + Explain `--webtex` SVG url (Mauro Bieg, #3471)
7442 + Small clarification in YAML metadata section.
7443 + Document that html4 is technically XHTML 1.0 transitional.
7444 + Remove refs to highlighting-kate (#3672).
7445 + Document ibooks specific epub metadata.
7446 + Clarify that mathml is used for ODT math.
7447 + Mention limitations of Literate Haskell Support (#3410,
7449 + Add documentation of limitations of grid tables (Stephen
7451 + Clarify that meta-json contains transformed values (Jakob Voß,
7452 #3491) Make clear that template variable `meta-json` does not
7453 contain plain text values or JSON output format but field values
7454 transformed to the selected output format.
7458 + Clarify that templates are dual-licensed.
7459 + Clarify that pandoc-types is BSD3 licensed.
7460 + List new files not written by jgm (Albert Krewinkel).
7461 + Update dates in copyright notices (Albert Krewinkel). This follows
7462 the suggestions given by the FSF for GPL licensed software.
7463 <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
7467 + Improved instructions for tests with patterns.
7468 + Put RPM-based distros on separate point (Mauro Bieg, #3449)
7472 + Fixed typos (Wandmalfarbe, #3479).
7473 + Add "ask on pandoc-discuss" (Mauro Bieg).
7475 * Add lua filter documentation in `doc/lua-filters.md`. Note that the
7476 end of this document is autogenerated from `data/pandoc.lua`
7477 using `make doc/lua-filters.md`, which uses `tools/ldoc.ltp`
7480 * Add `doc/filters.md`. This is the old scripting tutorial from
7483 * Add `doc/using-the-pandoc-api.md` (#3289). This gives an introduction
7484 to using pandoc as a Haskell library.
7487### Build infrastructure improvements
7489 * Removed `data/templates` submodule. Templates are now a subtree
7490 in `data/templates`. This removes the need to do `git submodule
7493 * Renamed `tests` -> `test`.
7495 * Remove `https` flag. Always build with HTTPS support.
7497 * Use `file-embed` instead of `hsb2hs` to embed data files when
7498 `embed_data_files` flag is set. `file-embed` gives us better dependency
7499 tracking: if a data file changes, ghc/stack/cabal know to recompile
7500 the Data module. This also removes `hsb2hs` as a build dependency.
7502 * Add `custom-setup` stanza to pandoc, lowercase field names.
7504 * Add `static` Cabal flag.
7506 * Name change OSX -> MacOS. Add a -MacOS suffix to mac package rather
7507 than -OSX. Changed local names from osx to macos.
7509 * make_macos_package.sh - Use strip to reduce executable size.
7511 * Revised binary linux package. Now a completely static executable
7512 is created, using Docker and alpine. We create both a deb and a
7513 tarball. The old `deb` directory has been replaced with a `linux`
7514 directory. Running `make` in the `linux` directory should
7515 perform the build, putting the binary packages in `artifacts/`.
7517 * `linux/control.in`: add `Replaces:`, so existing pandoc-citeproc and
7518 pandoc-data packages will be uninstalled; this package provides
7519 both (#3822). Add latex packages as 'suggested', update
7522 * Remove cpphs build requirement -- it is no longer needed.
7524 * Replaced `{deb,macos,windows}/stack.yaml` with `stack.pkg.yaml`.
7526 * Name change OSX -> macOS (ickc, #3869).
7528 * Fix casing of Linux, UNIX, and Windows (ickc).
7530 * `.travis.yml`: create a source dist and do cabal build and test there.
7531 That way we catch errors due to files missing from the data
7532 section of pandoc.cabal.
7536 + Split `make haddock` from `make full`.
7537 + Add BRANCH variable for winpkg.
7538 + Add `lint` target.
7539 + Improve `make full`. Disable optimizations.
7540 Build everything, inc. trypandoc and benchmarks. Use parallel build.
7541 + Allow `make test` to take `TESTARGS`.
7543 * Added new command tests (`Tests.Command`), using small text files
7544 in `test/command/`. Any files added in this directory will be treated
7545 as shell tests (see smart.md for an example). This makes it very easy
7546 to add regression tests etc.
7548 * Test fixes so we can find data files. In old tests & command tests,
7549 we now set the environment variable `pandoc_datadir`. In lua tests,
7550 we set the datadir explicitly.
7552 * Refactored `compareOutput` in docx writer test.
7554 * Consolidated some common functions in `Tests.Helper`.
7556 * Small change to unbalanced bracket test to speed up test suite.
7558 * Speed up Native writer quickcheck tests.
7560 * Use tasty for tests rather than test-framework.
7562 * Add simple Emacs mode to help with Pandoc templates editing.
7563 (Václav Haisman, #3889). `tools/pandoc-template-mode.el`
7566## pandoc 1.19.2.4 (2017-09-10)
7568 * Add dependencies on texmath and skylighting to the executable.
7569 This is needed for dependency version numbers to be available,
7572## pandoc 1.19.2.3 (2017-09-09)
7574 * Add CPP to Setup.hs so it works with Cabal >= 2 and < 2.
7576## pandoc 1.19.2.2 (2017-09-08)
7578 * Fix build with GHC 8.2.1 (#3876, Peter Simons). Setup.hs does not
7579 compile with Cabal 2.x, so we require an earlier version via
7580 setup-depends. The following packages need newer versions with
7581 GHC 8.2.1 and had their constraints relaxed accordingly:
7582 executable-path, process, syb, and time.
7584## pandoc 1.19.2.1 (2017-01-31)
7586 * Require skylighting >= 0.1.1.4.
7587 * Adjust test output for skylighting version.
7588 * Relax upper bounds on blaze-html and blaze-markup.
7590## pandoc 1.19.2 (2017-01-29)
7592 * Use skylighting library instead of highlighting-kate for syntax
7593 highlighting. Skylighting is faster and more accurate (#3363).
7594 Later we'll be able to add features like warning messages, dynamic
7595 loading of xml syntax definitions, and dynamic loading of themes.
7597 * Added a new highlight style, `breezeDark`.
7599 * Text.Pandoc.Highlighting: Update list of `listings` languages (#3374).
7600 This allows more languages to be used when using the `--listings`
7603 * OpenDocument writer:
7605 + Small refactoring. Removed separate 'parent' parameter in paraStyle.
7606 + Don't profilerate text styles unnecessarily (#3371).
7607 This change makes the writer create only as many temporary
7608 text styles as are absolutely necessary. It also consolidates
7609 adjacent nodes with the same style.
7611 * Org reader (Albert Krewinkel):
7613 + Allow short hand for single-line raw blocks (Albert Krewinkel,
7614 #3366). Single-line raw blocks can be given via `#+FORMAT: raw line`,
7615 where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
7616 + Accept org-ref citations followed by commas (Albert Krewinkel).
7617 Bugfix for an issue which, whenever the citation was immediately
7618 followed by a comma, prevented correct parsing of org-ref citations.
7619 + Ensure emphasis markup can be nested. Nested emphasis markup (e.g.
7620 `/*strong and emphasized*/`) was interpreted incorrectly in that the
7621 inner markup was not recognized.
7622 + Remove pipe char irking the haddock coverage tool (Albert Krewinkel).
7624 * Docx reader: Empty header should be list of lists (Jesse Rosenthal).
7625 In the past, the docx reader wrote an empty header as an empty list. It
7626 should have the same width as a row (and be filled with empty cells).
7630 + Improved handling of display math (#3362). Sometimes display math is
7631 indented with more than one colon. Previously we handled these cases
7632 badly, generating definition lists and missing the math.
7633 + Fix quotation mark parsing (#3336, tgkokk). Change MediaWiki reader's
7634 behavior when the smart option is parsed to match other readers'
7639 + Fixed `-f markdown_github-hard_line_breaks+escaped_line_breaks`
7640 (#3341). Previously this did not properly enable escaped line breaks.
7641 + Disallow space between inline code and attributes (#3326, #3323,
7644 * DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330, Mauro Bieg).
7646 * Added some test cases for ODT reader (#3306, #3308, Hubert Plociniczak).
7648 * LaTeX writer: allow tables with empty cells to count as "plain."
7649 This addresses a problem of too-wide tables when empty cells
7650 are used. Thanks to Joost Kremers for reporting the issue.
7652 * Org writer: prefix footnote numbers with `fn:` (Albert Krewinkel).
7653 Unprefixed numbers where used by older org-mode versions, but are no
7656 * HTML writer: don't process pars with empty RawInline, (#1040, #3327,
7659 * Markdown writer: Fix display math with `--webtex` (#3298).
7661 * Fix sample.lua so it properly handles raw blocks/inlines (#3358,
7666 + default.latex: Moved geometry after hyperref (Václav Haisman).
7667 Otherwise PDF sizes can be wrong in some circumstances.
7668 + Copied a few changes from default.latex to default.beamer
7670 + default.latex, default.beamer: Changed position of `\VerbatimNotes`
7671 and `fancyvrb`. This fixes hyperlinks on footnotes in documents
7672 that contain verbatim in notes (#3361). (Note: the beamer template
7673 was updated to match the LaTeX template, but at this point verbatim
7674 in notes seems not to work in beamer.)
7675 + default.latex: Allow passing `microtypeoptions` to microtype
7677 + default.latex: Add hyphen option to url package.
7678 + default.docbook5: Fix namespace declarations (Mauro Bieg).
7680 * Moved `make_osx_package.sh` to `osx/` directory.
7682 * Travis continuous integration:
7684 + Fix false positives with dist build.
7685 + Speed improvements (Kolen Cheung, #3304, #3357).
7689 + Clarify that blank space is needed around footnotes (#3352).
7690 + Fixed typo (#3351, Alexey Rogechev).
7691 + Note that `--wrap=auto` does not work in HTML output.
7692 + Default `--columns` width is 72, not 80.
7693 + Fixed broken links (#3316, Kolen Cheung).
7694 + Document usage of `@*` in nocite section (#3333, John Muccigrosso).
7698 + Indent code so it's properly formatted (#3335, Bheesham Persaud).
7699 + Added instructions for extracting binary from OSX, Windows packages.
7701 * CONTRIBUTING.md: Describe labels currently used in issue tracker
7702 (Albert Krewinkel). The labels have changed over time, the list of
7703 labels is updated to reflect the current set of labels used in the
7706 * Rearrange and extend badges in README (Albert Krewinkel, #3354)
7708 * Bumped version bounds for dependencies.
7711## pandoc 1.19.1 (2016-12-10)
7713 * Set `PANDOC_VERSION` environment variable for filters (#2640).
7714 This allows filters to check the pandoc version that produced
7715 the JSON they are receiving.
7717 * Docx reader: Ensure one-row tables don't have header (#3285,
7718 Jesse Rosenthal). Tables in MS Word are set by default to have
7719 special first-row formatting, which pandoc uses to determine whether
7720 or not they have a header. This means that one-row tables will, by
7721 default, have only a header -- which we imagine is not what people
7722 want. This change ensures that a one-row table is not understood to
7723 be a header only. Note that this means that it is impossible to
7724 produce a header-only table from docx, even though it is legal
7725 pandoc. But we believe that in nearly all cases, it will be an
7726 accidental (and unwelcome) result
7730 + Fixed some bad regressions in HTML table parser (#3280).
7731 This regression leads to the introduction of empty rows
7732 in some circumstances.
7733 + Understand `style=width:` as well as `width` in `col` (#3286).
7737 + Print warnings when keys, substitition, notes not found.
7738 Previously the parsers failed and we got raw text. Now we get a
7739 link with an empty URL, or empty inlines in the case of a note or
7742 + Fix hyperlink aliases (#3283).
7744 * Man writer: Ensure that periods are escaped at beginning of line
7747 * LaTeX writer: Fix unnumbered headers when used with `--top-level`
7748 (#3272, Albert Krewinkel). Fix interaction of top-level
7749 divisions `part` or `chapter` with unnumbered headers when
7750 emitting LaTeX. Headers are ensured to be written using
7751 stared commands (like `\subsection*{}`).
7753 * LaTeX template: use comma not semicolon to separate keywords for
7754 `pdfkeywords`. Thanks to Wandmalfarbe.
7756 * Markdown writer: Fixed incorrect word wrapping (#3277).
7757 Previously pandoc would sometimes wrap lines too early due to
7760 * Text.Pandoc.Pretty: Added `afterBreak` [API change]. This makes it
7761 possible to insert escape codes for content that needs escaping at the
7762 beginning of a line.
7764 * Removed old MathMLInHTML.js from 2004, which should no longer
7765 be needed for MathML with modern browsers.
7767 * Fixed tests with dynamic linking (#2709).
7769 * Makefile: Use stack instead of cabal for targets. This is just
7770 a convenience for developers.
7772 * Fixed bash completion of filenames with space (#2749).
7774 * MANUAL: improved documentation on how to create a custom
7777 * Fix minor spelling typos in the manual (#3273, Anthony Geoghegan)
7779## pandoc 1.19 (2016-12-01)
7781 * Changed resolution of filter paths.
7783 + We now first treat the argument of `--filter` as a full (absolute
7784 or relative) path, looking for a program there. If it's found, we
7786 + If not, and if it is a simple program name or a relative path, we
7787 try resolving it relative to `$DATADIR/filters`.
7788 + If this fails, then we treat it as a program name and look in the
7790 + Removed a hardcoded '/' that may have caused problems with
7793 Previously if you did `--filter foo` and you had `foo` in your path and
7794 also an executable `foo` in your working directory, the one in the path
7795 would be used. Now the one in the working directory is used.
7797 In addition, when you do `--filter foo/bar.hs`, pandoc will now find a
7798 filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a
7799 `foo/bar.hs` relative to the working directory.
7801 * Allow `file://` URIs as arguments (#3196). Also improved default reader
7802 format detection. Previously with a URI ending in .md or .markdown,
7803 pandoc would assume HTML input. Now it treats these as markdown.
7805 * Allow to overwrite top-level division type heuristics (#3258,
7806 Albert Krewinkel). Pandoc uses heuristics to determine the most
7807 reasonable top-level division type when emitting LaTeX or
7808 Docbook markup. It is now possible to overwrite this implicitly set
7809 top-level division via the `top-level-division` command line parameter.
7811 * Text.Pandoc.Options \[API changes\]:
7813 + Removed `writerStandalone` field in `WriterOptions`, made
7814 `writerTemplate` a `Maybe` value. Previously setting
7815 `writerStandalone = True` did nothing unless a template was provided
7816 in writerTemplate. Now a fragment will be generated if
7817 `writerTemplate` is `Nothing`; otherwise, the specified template
7818 will be used and standalone output generated.
7819 + `Division` has been renamed `TopLevelDivision` (#3197). The
7820 `Section`, `Chapter`, and `Part` constructors were renamed to
7821 `TopLevelSection`, `TopLevelChapter`, and
7822 `TopLevelPart`, respectively. An additional `TopLevelDefault`
7823 constructor was added, which is now also the new default value of
7824 the `writerTopLevelDivision` field in `WriterOptions`.
7826 * Improved error if they give wrong arg to `--top-level-division`.
7828 * Use new module from texmath to lookup MS font codepoints in Docx reader.
7829 Removed unexported module Text.Pandoc.Readers.Docx.Fonts. Its code now
7830 lives in texmath (0.9).
7832 * DocBook reader: Fixed xref lookup (#3243). It previously only worked
7833 when the qnames lacked the docbook namespace URI.
7837 + Improved table parsing (#3027). We now check explicitly for non-1
7838 rowspan or colspan attributes, and fail when we encounter them.
7839 Previously we checked that each row had the same number of cells,
7840 but that could be true even with rowspans/colspans. And there are
7841 cases where it isn't true in tables that we can handle fine -- e.g.
7842 when a tr element is empty. So now we just pad rows with empty cells
7844 + Treat `<math>` as MathML by default unless something else is
7845 explicitly specified in xmlns. Provided it parses as MathML,
7846 of course. Also fixed default which should be to inline math if no
7847 display attribute is used.
7848 + Only treat "a" element as link if it has href (#3226). Otherwise
7851 * Docx reader (Jesse Rosenthal):
7853 + Add a placeholder value for CHART. We wrap `[CHART]` in a
7854 `<span class="chart">`. Note that it maps to inlines because, in
7855 docx, anything in a drawing tag can be part of a larger paragraph.
7856 + Be more specific in parsing images We not only want `w:drawing`,
7857 because that could also include charts. Now we specify
7858 `w:drawing/pic:pic`. This shouldn't change behavior at all, but it's
7859 a first step toward allowing other sorts of drawing data as well.
7860 + Abstract out function to avoid code repetition.
7861 + Update tests for img title and alt (#3204).
7862 + Handle Alt text and titles in images. We use the "description" field
7863 as alt text and the "title" field as title. These can be accessed
7864 through the "Format Picture" dialog in Word.
7865 + Docx reader utils: handle empty namespace in `elemName`. Previously,
7866 if given an empty namespace `(elemName ns "" "foo")` `elemName`
7867 would output a QName with a `Just ""` namespace. This is never what
7868 we want. Now we output a `Nothing`. If someone *does* want a
7869 `Just ""` in the namespace, they can enter the QName
7872 * ODT reader/writer:
7874 + Inline code when text has a special style (Hubert Plociniczak). When
7875 a piece of text has a text `Source_Text` then we assume that this is
7876 a piece of the document that represents a code that needs to
7877 be inlined. Adapted the writer to also reflect that change.
7878 Previously it was just writing a 'preformatted' text using a
7879 non-distinguishable font style. Code blocks are still not recognized
7880 by the ODT reader. That's a separate issue.
7881 + Infer table's caption from the paragraph (#3224,
7882 Hubert Plociniczak). ODT's reader always put empty captions for the
7883 parsed tables. This commit
7885 1. checks paragraphs that follow the table definition
7886 2. treats specially a paragraph with a style named 'Table'
7887 3. does some postprocessing of the paragraphs that combines tables
7888 followed immediately by captions
7890 The ODT writer used the `TableCaption` style for the caption
7891 paragraph. This commit follows the OpenOffice approach which allows
7892 for appending captions to table but uses a built-in style named
7893 `Table` instead of `TableCaption`. Users of a custom `reference.odt`
7894 should change the style's name from `TableCaption` to `Table`.
7896 * ODT reader: Infer tables' header props from rows (#3199,
7897 Hubert Plociniczak). ODT reader simply provided an empty header list
7898 which meant that the contents of the whole table, even if not empty, was
7899 simply ignored. While we still do not infer headers we at least have to
7900 provide default properties of columns.
7904 + Allow reference link labels starting with `@...` if `citations`
7905 extension disabled (#3209). Example: in
7909 `link text` isn't hyperlinked because `[@a]` is parsed as
7910 a citation. Previously this happened whether or not the `citations`
7911 extension was enabled. Now it happens only if the `citations`
7912 extension is enabled.
7913 + Allow alignments to be specified in Markdown grid tables. For
7916 +-------+---------------+--------------------+
7917 | Right | Left | Centered |
7918 +=========:+:=================+:=============:+
7919 | Bananas | $1.34 | built-in wrapper |
7920 +-------+---------------+--------------------+
7922 + Allow Small Caps elements to be created using bracketed spans (as
7923 they already can be using HTML-syntax spans) (#3191, Kolen Cheung).
7927 + Don't treat `\vspace` and `\hspace` as block commands (#3256).
7928 Fixed an error which came up, for example, with `\vspace` inside
7929 a caption. (Captions expect inlines.)
7930 + Improved table handling. We can now parse all of the tables emitted
7931 by pandoc in our tests. The only thing we don't get yet are
7932 alignments and column widths in more complex tables. See #2669.
7933 + Limited support for minipage.
7934 + Allow for `[]`s inside LaTeX optional args. Fixes cases like:
7935 + Handle BVerbatim from fancyvrb (#3203).
7936 + Handle hungarumlaut (#3201).
7937 + Allow beamer-style `<...>` options in raw LaTeX (also in Markdown)
7938 (#3184). This allows use of things like `\only<2,3>{my content}` in
7939 Markdown that is going to be converted to beamer.
7941 * Use pre-wrap for code in dzslides template (Nicolas Porcel). Otherwise
7942 overly long code will appear on every slide.
7944 * Org reader (Albert Krewinkel):
7946 + Respect column width settings (#3246). Table column properties can
7947 optionally specify a column's width with which it is displayed in
7948 the buffer. Some exporters, notably the ODT exporter in org-mode
7949 v9.0, use these values to calculate relative column widths. The org
7950 reader now implements the same behavior. Note that the org-mode
7951 LaTeX and HTML exporters in Emacs don't support this feature yet,
7952 which should be kept in mind by users who use the column
7954 + Allow HTML attribs on non-figure images (#3222). Images which are
7955 the only element in a paragraph can still be given HTML attributes,
7956 even if the image does not have a caption and is hence not a figure.
7957 The following will add set the `width` attribute of the image to
7960 +ATTR\_HTML: :width 50%
7961 =======================
7963 \[\[file:image.jpg\]\]
7965 + Support `ATTR_HTML` for special blocks (#3182). Special
7966 blocks (i.e. blocks with unrecognized names) can be prefixed with an
7967 `ATTR_HTML` block attribute. The attributes defined in that
7968 meta-directive are added to the `Div` which is used to represent the
7970 + Support the `todo` export option. The `todo` export option allows to
7971 toggle the inclusion of TODO keywords in the output. Setting this to
7972 `nil` causes TODO keywords to be dropped from headlines. The default
7973 is to include the keywords.
7974 + Add support for todo-markers. Headlines can have optional
7975 todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`,
7976 or `#+TYP_TODO` meta directive. Multiple such directives can be
7977 given, each adding a new set of recognized todo-markers. If no
7978 custom todo-markers are defined, the default `TODO` and `DONE`
7979 markers are used. Todo-markers are conceptually separate from
7980 headline text and are hence excluded when autogenerating
7981 headline IDs. The markers are rendered as spans and labelled with
7982 two classes: One class is the markers name, the other signals the
7983 todo-state of the marker (either `todo` or `done`).
7987 + Use `\autocites*` when "suppress-author" citation used.
7988 + Ensure that simple tables have simple cells (#2666). If cells
7989 contain more than a single Plain or Para, then we need to set
7990 nonzero widths and put contents into minipages.
7991 + Remove invalid inlines in sections (#3218, Hubert Plociniczak).
7995 + Fix calculation of column widths for aligned multiline tables
7996 (#1911, Björn Peemöller). This also fixes excessive CPU and memory
7997 usage for tables when `--columns` is set in such a way that cells
7998 must be very tiny. Now cells are guaranteed to be big enough so that
7999 single words don't need to line break, even if this pushes the line
8000 length above the column width.
8001 + Use bracketed form for native spans when `bracketed_spans`
8003 + Fixed inconsistent spacing issue (#3232). Previously a tight bullet
8004 sublist got rendered with a blank line after, while a tight ordered
8005 sublist did not. Now we don't get the blank line in either case.
8006 + Fix escaping of spaces in super/subscript (#3225). Previously two
8007 backslashes were inserted, which gave a literal backslash.
8008 + Adjust widths in Markdown grid tables so that they match
8013 + Give full detail when there are errors converting tex math.
8014 + Handle title text in images (Jesse Rosenthal). We already handled
8015 alt text. This just puts the image "title" into the docx
8017 + Fixed XML markup for empty cells (#3238). Previously the Compact
8018 style wasn't being applied properly to empty cells.
8022 + Updated `renderHtml` import from blaze-html.
8024 * Text.Pandoc.Pretty:
8026 + Fixed some bugs that caused blank lines in tables (#3251). The bugs
8027 caused spurious blank lines in grid tables when we had things like
8028 `blankline $$ blankline`.
8029 + Add exported function `minOffet` \[API change\] (Björn Peemöller).
8030 + Added error message for illegal call to `block` (Björn Peemöller).
8032 * Text.Pandoc.Shared:
8034 + Put `warn` in MonadIO.
8035 + `fetchItem`: Better handling of protocol-relative URL (#2635). If
8036 URL starts with `//` and there is no "base URL" (as there would be
8037 if a URL were used on the command line), then default to http:.
8039 * Export Text.Pandoc.getDefaultExtensions \[API change\] (#3178).
8041 * In --version, trap error in `getAppUserDataDirectory` (#3241). This
8042 fixes a crash with `pandoc --version` on unusual systems with no real
8043 user (e.g. SQL Server 2016).
8045 * Added weigh-pandoc for memory usage diagnostics (#3169).
8047 * Use correct mime types for woff and woff2 (#3228).
8049 * Remove make\_travis\_yml.hs (#3235, Kolen Cheung).
8051 * changelog: Moved an item that was misplaced in the 1.17.2 section to the
8052 1.18 section where it belongs.
8054 * CONTRIBUTING.md: minor change in wording and punctuation (#3252,
8057 * Further revisions to manual for `--version` changes (#3244).
8061## pandoc 1.18 (2016-10-26)
8063 * Added `--list-input-formats`, `--list-output-formats`,
8064 `--list-extensions`, `--list-highlight-languages`, and
8065 `--list-highlight-styles` (#3173). Removed list of highlighting
8066 languages from `--version` output. Removed list of input and output
8067 formats from default `--help` output.
8069 * Added `--reference-location=block|section|document` option
8070 (Jesse Rosenthal). This determines whether Markdown link references
8071 and footnotes are placed at the end of the document, the end of the
8072 section, or the end of the top-level block.
8074 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
8075 This determines what a level-1 header corresponds to in LaTeX,
8076 ConTeXt, DocBook, and TEI output. The default is `section`.
8077 The `--chapters` option has been deprecated in favor of
8078 `--top-level-division=chapter`.
8080 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
8081 is now used in parsing RST and Markdown line blocks, DocBook
8082 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
8083 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
8084 are handled specially in the following ouput formats: AsciiDoc
8085 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
8086 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
8087 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
8088 other output formats, a paragraph with hard linebreaks is emitted.
8090 * Allow binary formats to be written to stdout (but not to tty) (#2677).
8091 Only works on posix, since we use the unix library to check whether
8092 output is to tty. On Windows, pandoc works as before and always requires
8093 an output file parameter for binary formats.
8095 * Changed JSON output format (Jesse Rosenthal). Previously we used
8096 generically generated JSON, but this was subject to change depending
8097 on the version of aeson pandoc was compiled with. To ensure stability,
8098 we switched to using manually written ToJSON and FromJSON
8099 instances, and encoding the API version. **Note:** pandoc filter
8100 libraries will need to be revised to handle the format change.
8101 Here is a summary of the essential changes:
8103 + The toplevel JSON format is now `{"pandoc-api-version" :
8104 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
8105 instead of `[{"unMeta": META}, [BLOCKS]]`.
8106 Decoding fails if the major and minor version numbers don't
8108 + Leaf nodes no longer have an empty array for their "c" value.
8109 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
8110 rather than `{"t":"Space","c":[]}` as before.
8112 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
8113 module to pandoc-types (Jesse Rosenthal). This makes it easier
8114 to use QuickCheck with pandoc types outside of pandoc itself.
8116 * Add `bracketed_spans` Markdown extension, enabled by default
8117 in pandoc `markdown`. This allows you to create a native span
8118 using this syntax: `[Here is my span]{#id .class key="val"}`.
8120 * Added `angle_brackets_escapable` Markdown extension (#2846).
8121 This is needed because github flavored Markdown has a slightly
8122 different set of escapable symbols than original Markdown;
8123 it includes angle brackets.
8125 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
8127 * Print highlighting-kate version in `--version`.
8129 * `Text.Pandoc.Options`:
8131 + `Extension` has new constructors `Ext_brackted_spans` and
8132 `Ext_angle_brackets_escapable` [API change].
8133 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
8134 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
8137 * `--filter`: we now check `$DATADIR/filters` for filters before
8138 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
8139 Voß for the idea). Filters placed in this directory need not
8140 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
8141 or `.rb`, pandoc will run the right interpreter.
8143 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
8144 default (Kolen Cheung).
8146 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
8148 * Execute .js filters with node (Jakob Voß).
8152 + Support `bc..` extended code blocks (#3037). Also, remove trailing
8153 newline in code blocks (consistently with Markdown reader).
8154 + Improve table parsing. We now handle cell and row attributes, mostly
8155 by skipping them. However, alignments are now handled properly.
8156 Since in pandoc alignment is per-column, not per-cell, we
8157 try to devine column alignments from cell alignments.
8158 Table captions are also now parsed, and textile indicators
8159 for thead and tfoot no longer cause parse failure. (However,
8160 a row designated as tfoot will just be a regular row in pandoc.)
8161 + Improve definition list parsing. We now allow multiple terms
8162 (which we concatenate with linebreaks). An exponential parsing
8163 bug (#3020) is also fixed.
8164 + Disallow empty URL in explicit link (#3036).
8168 + Use Div instead of BlockQuote for admonitions (#3031).
8169 The Div has class `admonition` and (if relevant) one of the
8170 following: `attention`, `caution`, `danger`, `error`, `hint`,
8171 `important`, `note`, `tip`, `warning`. **Note:** This will change
8172 the rendering of some RST documents! The word ("Warning", "Attention",
8173 etc.) is no longer added; that must be done with CSS or a filter.
8174 + A Div is now used for `sidebar` as well.
8175 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
8176 space before a footnote marker. We discard those spaces so that footnotes
8177 will be adjacent to the text that comes before it. This is in line with
8178 what rst2latex does.
8179 + Allow empty lines when parsing line blocks (Albert Krewinkel).
8183 + Allow empty lines when parsing line blocks (Albert Krewinkel).
8184 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
8188 + More robust parsing of unknown environments (#3026).
8189 We no longer fail on things like `^` inside options for tikz.
8190 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
8191 Some custom environments give these a meaning, so we should try not to
8192 fall over when we encounter them.
8193 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
8197 + Fix for unquoted attribute values in mediawiki tables (#3053).
8198 Previously an unquoted attribute value in a table row
8199 could cause parsing problems.
8200 + Improved treatment of verbatim constructions (#3055).
8201 Previously these yielded strings of alternating Code and Space
8202 elements; we now incorporate the spaces into the Code. Emphasis
8203 etc. is still possible inside these.
8204 + Properly interpret XML tags in pre environments (#3042). They are meant
8205 to be interpreted as literal text.
8207 * EPUB reader: don't add root path to data: URIs (#3150).
8208 Thanks to @lep for the bug report and patch.
8210 * Org reader (Albert Krewinkel):
8212 + Preserve indentation of verse lines (#3064). Leading spaces in verse
8213 lines are converted to non-breaking spaces, so indentation is preserved.
8214 + Ensure image sources are proper links. Image sources as those in plain
8215 images, image links, or figures, must be proper URIs or relative file
8216 paths to be recognized as images. This restriction is now enforced
8217 for all image sources. This also fixes the reader's usage of uncleaned
8218 image sources, leading to `file:` prefixes not being deleted from
8219 figure images. Thanks to @bsag for noticing this bug.
8220 + Trim verse lines properly (Albert Krewinkel).
8221 + Extract meta parsing code to module. Parsing of meta-data is well
8222 separable from other block parsing tasks. Moving into new module to
8223 get small files and clearly arranged code.
8224 + Read markup only for special meta keys. Most meta-keys should be read
8225 as normal string values, only a few are interpreted as marked-up text.
8226 + Allow multiple, comma-separated authors. Multiple authors can be
8227 specified in the `#+AUTHOR` meta line if they are given as a
8228 comma-separated list.
8229 + Give precedence to later meta lines. The last meta-line of any given
8230 type is the significant line. Previously the value of the first line
8231 was kept, even if more lines of the same type were encounterd.
8232 + Read LaTeX_header as header-includes. LaTeX-specific header commands
8233 can be defined in `#+LaTeX_header` lines. They are parsed as
8234 format-specific inlines to ensure that they will only show up in LaTeX
8236 + Set documentclass meta from LaTeX_class.
8237 + Set classoption meta from LaTeX_class_options.
8238 + Read HTML_head as header-includes. HTML-specific head content can be
8239 defined in `#+HTML_head` lines. They are parsed as format-specific
8240 inlines to ensure that they will only show up in HTML output.
8241 + Respect `author` export option. The `author` option controls whether
8242 the author should be included in the final markup. Setting
8243 `#+OPTIONS: author:nil` will drop the author from the final meta-data
8245 + Respect `email` export option. The `email` option controls whether the
8246 email meta-field should be included in the final markup. Setting
8247 `#+OPTIONS: email:nil` will drop the email field from the final
8249 + Respect `creator` export option. The `creator` option controls whether
8250 the creator meta-field should be included in the final markup. Setting
8251 `#+OPTIONS: creator:nil` will drop the creator field from the final
8252 meta-data output. Org-mode recognizes the special value `comment` for
8253 this field, causing the creator to be included in a comment. This is
8254 difficult to translate to Pandoc internals and is hence interpreted the
8255 same as other truish values (i.e. the meta field is kept if it's
8257 + Respect unnumbered header property (#3095). Sections the `unnumbered`
8258 property should, as the name implies, be excluded from the automatic
8259 numbering of section provided by some output formats. The Pandoc
8260 convention for this is to add an "unnumbered" class to the header. The
8261 reader treats properties as key-value pairs per default, so a special
8262 case is added to translate the above property to a class instead.
8263 + Allow figure with empty caption (Albert Krewinkel, #3161).
8264 A `#+CAPTION` attribute before an image is enough to turn an image into
8265 a figure. This wasn't the case because the `parseFromString` function,
8266 which processes the caption value, would fail on empty values. Adding
8267 a newline character to the caption value fixes this.
8271 + Use XML convenience functions (Jesse Rosenthal).
8272 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
8273 the code a lot cleaner than the original XML.Light functions, but they
8274 had been used inconsistently. This puts them in wherever applicable.
8275 + Handle anchor spans with content in headers. Previously, we would only
8276 be able to figure out internal links to a header in a docx if the
8277 anchor span was empty. We change that to read the inlines out of the
8278 first anchor span in a header.
8279 + Let headers use exisiting id. Previously we always generated an id for
8280 headers (since they wouldn't bring one from Docx). Now we let it use an
8281 existing one if possible. This should allow us to recurs through anchor
8283 + Use all anchor spans for header ids. Previously we only used the first
8284 anchor span to affect header ids. This allows us to use all the anchor
8285 spans in a header, whether they're nested or not (#3088).
8286 + Test for nested anchor spans in header. This ensures that anchor spans
8287 in header with content (or with other anchor spans inside) will resolve
8288 to links to a header id properly.
8290 * ODT reader (Hubert Plociniczak)
8292 + Include list's starting value. Previously the starting value of
8293 the lists' items has been hardcoded to 1. In reality ODT's list
8294 style definition can provide a new starting value in one of its
8296 + Infer caption from the text following the image.
8297 Frame can contain other frames with the text boxes.
8298 + Add `fig:` to title for Image with a caption (as expected
8299 by pandoc's writers).
8300 + Basic support for images in ODT documents.
8301 + Don't duplicate text for anchors (#3143). When creating an anchor
8302 element we were adding its representation as well as the original
8303 content, leading to text duplication.
8307 + Include an anchor element when a div or span has an id (#3102).
8308 Note that DocBook does not have a class attribute, but at least this
8309 provides an anchor for internal links.
8313 + Don't use * for unnumbered paragraph, subparagraph. The starred
8314 variants don't exist. This helps with part of #3058...it gets rid of
8315 the spurious `*`s. But we still have numbers on the 4th and 5th level
8317 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
8318 Otherwise they can cause unintended ligatures like `` ?` ``.
8319 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
8320 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
8321 This allows figure placement defaults to be changed by the user
8324 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
8325 TEI doesn't have `<book>` elements but only generic `<divN>` division
8326 elements. Checking the template for a trailing `</book>` is nonsensical.
8328 * MediaWiki writer: transform filename with underscores in images (#3052).
8329 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
8330 for internal links, but it also needs to happen for images.
8332 * ICML writer: replace partial function (!!) in table handling (#3175,
8335 * Man writer: allow section numbers that are not a single digit (#3089).
8337 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
8338 (#3068). In AsciiDoc, you must use a special form of emphasis
8339 (double `__`) for intraword emphasis. Pandoc was previously using
8340 this more than necessary.
8342 * EPUB writer: use stringify instead of plain writer for metadata
8343 (#3066). This means that underscores won't be used for emphasis,
8344 or CAPS for bold. The metadata fields will just have unadorned
8349 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
8350 with a `custom-style` key in the attributes will apply the corresponding
8351 key to the contained blocks or inlines.
8352 + Add ReaderT env to the docx writer (Jesse Rosenthal).
8353 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
8354 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
8355 on the command line. For finer-grained control, you can set
8356 the `dir` attribute in Div or Span elements.
8358 * Org writer (Albert Krewinkel):
8360 + Remove blank line after figure caption. Org-mode only treats an image
8361 as a figure if it is directly preceded by a caption.
8362 + Ensure blank line after figure. An Org-mode figure should be surrounded
8363 by blank lines. The figure would be recognized regardless, but images
8364 in the following line would unintentionally be treated as figures as
8366 + Ensure link targets are paths or URLs. Org-mode treats links as
8367 document internal searches unless the link target looks like a URL or
8368 file path, either relative or absolute. This change ensures that this
8370 + Translate language identifiers. Pandoc and Org-mode use different
8371 programming language identifiers. An additional translation between
8372 those identifiers is added to avoid unexpected behavior. This fixes a
8373 problem where language specific source code would sometimes be output
8375 + Drop space before footnote markers (Albert Krewinkel, #3162).
8376 The writer no longer adds an extra space before footnote markers.
8380 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
8381 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
8383 + Check for the `raw_html` extension before emitting a raw HTML block.
8384 + Abstract out note/ref function (Jesse Rosenthal).
8385 + Add ReaderT monad for environment variables (Jesse Rosenthal).
8387 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
8388 subtitle, author, date (#3119). Note that, as a result of this change,
8389 authors may need to update CSS.
8391 * revealjs template: Added `notes-server` option
8392 (jgm/pandoc-templates#212, Yoan Blanc).
8396 + Restore whitespace between paragraphs. This was
8397 a regression in the last release (jgm/pandoc-templates#207).
8398 + Added `themeoptions` variable (Carsten Gips).
8399 + Added `beamerarticle` variable. This causes the `beamerarticle`
8400 package to be loaded in beamer, to produce an article from beamer
8401 slides. (Carsten Gips)
8402 + Added support for `fontfamilies` structured variable
8404 + Added hypersetup options (Jake Zimmerman).
8408 + Added dummy definition for `\institute`.
8409 This isn't a standard command, and we want to avoid a crash when
8410 `institute` is used with the default template.
8411 + Define default figure placement (Václav Haisman), since pandoc
8412 no longer includes `[htbp]` for figures. Users with custom templates
8413 will want to add this. See #3103.
8414 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
8417 * Moved template compiling/rendering code to a separate library.
8418 `doctemplates`. This allows the pandoc templating system to be
8421 * Text.Pandoc.Error: Fix out of index error in `handleError`
8422 (Matthew Pickering). The fix is to not try to show the exact line when
8423 it would cause an out-of-bounds error as a result of included files.
8425 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
8427 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
8428 addresses. Technically `**@user` is a valid email address, but if we
8429 allow things like this, we get bad results in markdown flavors
8430 that autolink raw email addresses (see #2940). So we exclude a few
8431 valid email addresses in order to avoid these more common bad cases.
8433 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
8434 emit the alt text, emphasized. This accords with what the ODT writer
8435 currently does. The user will still get a warning about a nonexistent
8438 * Fix example in API documentation (#3176, Thomas Weißschuh).
8440 * Tell where to get tarball in INSTALL (#3062).
8442 * Rename README to MANUAL.txt and add GitHub-friendly README.md
8443 (Albert Krewinkel, Kolen Cheung).
8445 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
8449 + Put note on structured vars in separate paragraph (#2148, Albert
8450 Krewinkel). Make it clearer that structured author variables require a
8452 + Note that `--katex` works best with `html5` (#3077).
8453 + Fix the LaTeX and EPUB links in manual (Morton Fox).
8454 + Document `biblio-title` variable.
8456 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
8458 * Update KaTeX to v0.6.0 (Kolen Cheung).
8460 * Allow latest dependencies.
8462 * Use texmath 0.8.6.6 (#3040).
8464 * Allow http-client 0.4.30, which is the version in stackage lts.
8465 Previously we required 0.5.
8466 Remove CPP conditionals for earlier versions.
8468 * Remove support for GHC < 7.8 (Jesse Rosenthal).
8470 + Remove Compat.Monoid.
8471 + Remove an inline monad compatibility macro.
8472 + Remove Text.Pandoc.Compat.Except.
8473 + Remove directory compat.
8474 + Change constraint on mtl.
8475 + Remove unnecessary CPP condition in UTF8.
8476 + Bump base lower bound to 4.7.
8477 + Remove 7.6 build from .travis.yaml.
8478 + Bump supported ghc version in CONTRIBUTING.md.
8479 + Add note about GHC version support to INSTALL.
8480 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
8481 + Remove TagSoup compat.
8482 + Add EOL note to time compat module. Because time 1.4 is a boot library
8483 for GHC 7.8, we will support the compatibility module as long as we
8484 support 7.8. But we should be clear about when we will no longer need
8486 + Remove blaze-html CPP conditional.
8487 + Remove unnecessary CPP in custom Prelude.
8489## pandoc 1.17.2 (2016-07-17)
8491 * Added Zim Wiki writer, template and tests. `zimwiki` is now
8492 a valid output format. (Alex Ivkin)
8494 * Changed email-obfuscation default to no obfuscation (#2988).
8495 + `writerEmailObfuscation` in `defaultWriterOptions` is now
8497 + the default for the command-line `--email-obfuscation` option is
8500 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
8504 + Support arbitrary raw inlines (Albert Krewinkel).
8505 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
8506 parlance) to be included as `@@format:raw foreign format text@@`.
8507 + Improve Div handling (Albert Krewinkel). Div blocks handling is
8508 changed to make the output look more like idiomatic org mode:
8509 - Div-wrapped content is output as-is if the div's attribute is the
8511 - Div containers with an id but neither classes nor key-value pairs
8512 are unwrapped and the id is added as an anchor.
8513 - Divs with classes associated with greater block elements are
8514 wrapped in a `#+BEGIN`...`#+END` block.
8515 - The old behavior for Divs with more complex attributes is kept.
8517 * HTML writer: Better support for raw LaTeX environments (#2758).
8518 Previously we just passed all raw TeX through when MathJax
8519 was used for HTML math. This passed through too much.
8520 With this patch, only raw LaTeX environments that MathJax
8521 can handle get passed through.
8522 This patch also causes raw LaTeX environments to be treated
8523 as math, when possible, with MathML and WebTeX output.
8525 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
8526 (#2993). Markdown line breaks involve a newline, and simple and pipe
8527 tables can't contain one.
8529 * Make --webtex work with the Markdown writer (#1177).
8530 This is a convenient option for people using
8531 websites whose Markdown flavors don't provide for math.
8535 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
8536 We treat display math like block quotes, and apply FirstParagraph style
8537 to paragraphs that follow them. These can be styled as the user
8538 wishes. (But, when the user is using indentation, this allows for
8539 paragraphs to continue after display math without indentation.)
8540 + Use actual creation time as doc prop (Jesse Rosenthal).
8541 Previously, we had used the user-supplied date, if available, for Word's
8542 document creation metadata. This could lead to weird results, as in
8543 cases where the user post-dates a document (so the modification might be
8544 prior to the creation). Here we use the actual computer time to set the
8549 + Don't URI-escape image source (#2825). Usually this is a local file,
8550 and replacing spaces with `%20` ruins things.
8551 + Allow 'standout' as a beamer frame option (#3007).
8552 `## Slide title {.standout}`.
8554 * RST reader: Fixed links with no explicit link text. The link
8555 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
8556 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
8557 Closes Debian #828167 -- reported by Christian Heller.
8561 + Fixed attributes (#2984). Attributes can't be followed by
8562 a space. So, `_(class)emph_` but `_(noclass) emph_`.
8563 + Fixed exponential parsing bug (#3020).
8564 + Fix overly aggressive interpretation as images (#2998).
8565 Spaces are not allowed in the image URL in textile.
8569 + Fix `\cite` so it is a NormalCitation not AuthorInText.
8570 + Strip off double quotes around image source if present (#2825).
8571 Avoids interpreting these as part of the literal filename.
8575 + Add semicolon to list of special chars (Albert Krewinkel)
8576 Semicolons are used as special characters in citations syntax. This
8577 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
8578 suffix]`. Previously, parsing would have failed unless there was a space
8579 or other special character as the last <prefix> character.
8580 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
8581 A specification for an official Org-mode citation syntax was drafted by
8582 Richard Lawrence and enhanced with the help of others on the orgmode
8583 mailing list. Basic support for this citation style is added to the
8585 + Support arbitrary raw inlines (Albert Krewinkel).
8586 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
8587 parlance) to be included as `@@format:raw foreign format text@@`.
8588 + Remove partial functions (Albert Krewinkel, #2991).
8589 Partial functions like `head` lead to avoidable errors and should be
8590 avoided. They are replaced with total functions.
8591 + Support figure labels (Albert Krewinkel, #2496, #2999).
8592 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
8593 respective image. This allows e.g. the LaTeX to add proper `\label`
8595 + Improve tag and properties type safety (Albert Krewinkel).
8596 Specific newtype definitions are used to replace stringly typing of tags
8597 and properties. Type safety is increased while readability is improved.
8598 + Parse as headlines, convert to blocks (Albert Krewinkel).
8599 Emacs org-mode is based on outline-mode, which treats documents as trees
8600 with headlines are nodes. The reader is refactored to parse into a
8601 similar tree structure. This simplifies transformations acting on
8602 document (sub-)trees.
8603 * Refactor comment tree handling (Albert Krewinkel).
8604 Comment trees were handled after parsing, as pattern matching on lists
8605 is easier than matching on sequences. The new method of reading
8606 documents as trees allows for more elegant subtree removal.
8607 * Support archived trees export options (Albert Krewinkel).
8608 Handling of archived trees can be modified using the `arch` option.
8609 Archived trees are either dropped, exported completely, or collapsed to
8610 include just the header when the `arch` option is nil, non-nil, or
8611 `headline`, respectively.
8612 * Put export setting parser into module (Albert Krewinkel).
8613 Export option parsing is distinct enough from general block parsing to
8614 justify putting it into a separate module.
8615 * Support headline levels export setting (Albert Krewinkel).
8616 The depths of headlines can be modified using the `H` option. Deeper
8617 headlines will be converted to lists.
8618 * Replace ugly code with view pattern (Albert Krewinkel).
8619 Some less-than-smart code required a pragma switching of overlapping
8620 pattern warnings in order to compile seamlessly. Using view patterns
8621 makes the code easier to read and also doesn't require overlapping
8622 pattern checks to be disabled.
8623 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
8624 Org rules for allowed characters before or after markup chars were not
8625 checked for verbatim text. This resultet in wrong parsing outcomes of
8626 if the verbatim text contained e.g. space enclosed markup characters as
8627 part of the text (`=is_substr = True=`). Forcing the parser to update
8628 the positions of allowed/forbidden markup border characters fixes this.
8630 * LaTeX template: fix for obscure hyperref/xelatex issue.
8631 Here's a minimal case:
8633 \documentclass[]{article}
8634 \usepackage{hyperref}
8639 Without this change, this fails on the second invocation of xelatex.
8640 This affects inputs this like `# %á` with pdf output via xelatex.
8642 * trypandoc: call results 'html' instead of 'result'.
8643 This is for better compatibility with babelmark2.
8645 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
8646 MultiMarkdown was only mentioned as a supported Markdown dialect but not
8647 as a possible input or output format. A brief mention is added
8648 everywhere the other supported markdown dialects are mentioned.
8650 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
8651 Raw HTML is kept when the output format is Emacs Org mode.
8653 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
8655 * Text.Pandoc.Shared:
8657 + Introduce blocksToInlines function (Jesse Rosenthal).
8658 This is a lossy function for converting `[Block] -> [Inline]`. Its main
8659 use, at the moment, is for docx comments, which can contain arbitrary
8660 blocks (except for footnotes), but which will be converted to spans.
8661 This is, at the moment, pretty useless for everything but the basic
8662 `Para` and `Plain` comments. It can be improved, but the docx reader
8663 should probably emit a warning if the comment contains more than this.
8664 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
8665 + Add further formats for `normalizeDate` (Jesse Rosenthal).
8666 We want to avoid illegal dates -- in particular years with greater than
8667 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
8668 `%Y%m`, and finally `%Y`.
8669 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
8670 We only allow years between 1601 and 9999, inclusive. The ISO 8601
8671 actually says that years are supposed to start with 1583, but MS Word
8672 only allows 1601-9999. This should stop corrupted word files if the date
8673 is out of that range, or is parsed incorrectly.
8674 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
8675 Previously we parsed a list of dates, took the first one, and then
8676 tested its year range. That meant that if the first one failed, we
8677 returned nothing, regardless of what the others did. Now we test for
8678 sanity before running `msum` over the list of Maybe values. Anything
8679 failing the test will be Nothing, so will not be a candidate.
8683 + Add simple comment functionality. (Jesse Rosenthal).
8684 This adds simple track-changes comment parsing to the docx reader. It is
8685 turned on with `--track-changes=all`. All comments are converted to
8686 inlines, which can list some information. In the future a warning will be
8687 added for comments with formatting that seems like it will be excessively
8688 denatured. Note that comments can extend across blocks. For that reason
8689 there are two spans: `comment-start` and `comment-end`. `comment-start`
8690 will contain the comment. `comment-end` will always be empty. The two
8691 will be associated by a numeric id.
8692 + Enable warnings in top-level reader (Jesse Rosenthal).
8693 Previously we had only allowed for warnings in the parser. Now we allow
8694 for them in the `Docx.hs` as well. The warnings are simply concatenated.
8695 + Add warning for advanced comment formatting. (Jesse Rosenthal).
8696 We can't guarantee we'll convert every comment correctly, though we'll
8697 do the best we can. This warns if the comment includes something other
8699 + Add tests for warnings. (Jesse Rosenthal).
8700 + Add tests for comments (Jesse Rosenthal).
8701 We test for comments, using all track-changes options. Note that we
8702 should only output comments if `--track-changes=all`. We also test for
8703 emitting warnings if there is complicated formatting.
8705 * README: update to include track-changes comments. (Jesse Rosenthal)
8707 * Improved Windows installer - don't ignore properties set on command-line.
8708 See #2708. Needs testing to see if this resolves the issue.
8711 * Process markdown extensions on command line in L->R order (#2995).
8712 Previously they were processed, very unintuitively, in R->L
8713 order, so that `markdown-tex_math_dollars+tex_math_dollars`
8714 had `tex_math_dollars` disabled.
8716 * Added `secnumdepth` variable to LaTeX template (#2920).
8718 * Include table of contents in README.html in Windows package.
8720 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
8721 In Writers.Shared, we strip leading and trailing spaces for display
8722 math. Since SoftBreak's are treated as spaces, we should strip those
8725 * beamer, latex templates: pass biblatexoptions directly in package load.
8726 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
8728 * CPP workaround for deprecation of `parseUrl` in http-client.
8730 * Removed some redundant class constraints.
8732 * make_oxs_package.sh - use OSX env variable.
8734 * Added `winpkg` target to Makefile. This downloads the windows package
8735 from appveyor and signs it using the key.
8737 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
8738 Raw TeX is kept verbatim when the output format is Emacs Org mode.
8740 * Support math with haddock-library >= 1.4.
8742 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
8743 wouldn't accept the package.
8745 * Update library dependency versions.
8747## pandoc 1.17.1 (2016-06-04)
8749 * New output format: `docbook5` (Ivo Clarysse).
8751 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
8756 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
8757 This allows header attributes to be added to org documents in the form
8758 of `:PROPERTIES:` drawers. All available attributes are stored as
8759 key/value pairs. This reflects the way the org reader handles
8760 `:PROPERTIES:` blocks.
8761 + Add drawer capability (Carlos Sosa). For the implementation of the
8762 Drawer element in the Org Writer, we make use of a generic Block
8763 container with attributes. The presence of a `drawer` class defines
8764 that the `Div` constructor is a drawer. The first class defines the
8765 drawer name to use. The key-value list in the attributes defines
8766 the keys to add inside the Drawer. Lastly, the list of Block elements
8767 contains miscellaneous blocks elements to add inside of the Drawer.
8768 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
8769 reserved for internal use by Org-mode and should not be used.
8770 The `CUSTOM_ID` property is to be used instead, it is converted to the
8771 `ID` property for certain export format.
8775 + Ignore `--incremental` unless output format is beamer (#2843).
8776 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
8777 Allow for optional argument in square brackets.
8778 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
8779 This allows one to access the hyphenation patterns in CTAN's
8781 + Add missing languages from hyph-utf8 (Andrew Dunning).
8782 + Improve use of `\strut` with `\minipage` inside tables
8783 (Jose Luis Duran). This improves spacing in multiline
8785 + Use `{}` around options containing special chars (#2892).
8786 + Avoid lazy `foldl`.
8787 + Don't escape underscore in labels (#2921). Previously they were
8789 + brazilian -> brazil for polyglossia (#2953).
8791 * HTML writer: Ensure mathjax link is added when math appears in footnote
8792 (#2881). Previously if a document only had math in a footnote, the
8793 MathJax link would not be added.
8795 * EPUB writer: set `navpage` variable on nav page.
8796 This allows templates to treat it differently.
8800 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
8801 + Properly handle `ulink`/`link` (Ivo Clarysse).
8805 + Unescape URIs in spine (#2924).
8806 + EPUB reader: normalise link id (Mauro Bieg).
8810 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
8811 `moveTo` and `moveFrom` are track-changes tags that are used when a
8812 block of text is moved in the document. We now recognize these tags and
8813 treat them the same as `insert` and `delete`, respectively. So,
8814 `--track-changes=accept` will show the moved version, while
8815 `--track-changes=reject` will show the original version.
8816 + Tests for track-changes moving (Jesse Rosenthal).
8818 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
8819 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
8820 would error out if zip-archive failed. We change the archive extraction
8821 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
8823 * Markdown, HTML readers: be more forgiving about unescaped `&` in
8824 HTML (#2410). We are now more forgiving about parsing invalid HTML with
8825 unescaped `&` as raw HTML. (Previously any unescaped `&`
8826 would cause pandoc not to recognize the string as raw HTML.)
8830 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
8831 + Added `-s` to markdown-reader-more test.
8833 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
8834 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
8836 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
8839 * RST reader: Support `:class:` option for code block in RST reader
8842 * Org reader (all Albert Krewinkel, except where noted otherwise):
8844 + Stop padding short table rows.
8845 Emacs Org-mode doesn't add any padding to table rows. The first
8846 row (header or first body row) is used to determine the column count,
8847 no other magic is performed.
8848 + Refactor rows-to-table conversion. This refactors
8849 the codes conversing a list table lines to an org table ADT.
8850 The old code was simplified and is now slightly less ugly.
8851 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
8852 This fixes Org mode parsing of some corner cases regarding empty cells
8853 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
8854 two empty cells, but would be parsed as a single cell containing a pipe
8855 character. Empty rows where parsed as alignment rows and dropped from
8857 + Fix spacing after LaTeX-style symbols.
8858 The org-reader was droping space after unescaped LaTeX-style symbol
8859 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
8860 instead. This seems to be because the LaTeX-reader treats the
8861 command-terminating space as part of the command. Dropping the trailing
8862 space from the symbol-command fixes this issue.
8863 + Print empty table rows. Empty table rows should not
8864 be dropped from the output, so row-height is always set to be at least 1.
8865 + Move parser state into separate module.
8866 The org reader code has become large and confusing. Extracting smaller
8867 parts into submodules should help to clean things up.
8868 + Add support for sub/superscript export options.
8869 Org-mode allows to specify export settings via `#+OPTIONS` lines.
8870 Disabling simple sub- and superscripts is one of these export options,
8871 this options is now supported.
8872 + Support special strings export option Parsing of special strings
8873 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
8875 + Support emphasized text export option. Parsing of emphasized text can
8876 be toggled using the `*` option. This influences parsing of text marked
8877 as emphasized, strong, strikeout, and underline. Parsing of inline math,
8878 code, and verbatim text is not affected by this option.
8879 + Support smart quotes export option. Reading of smart quotes can be
8880 toggled using the `'` option.
8881 + Parse but ignore export options. All known export options are parsed
8883 + Refactor block attribute handling. A parser state attribute was used
8884 to keep track of block attributes defined in meta-lines. Global state
8885 is undesirable, so block attributes are no longer saved as part of the
8886 parser state. Old functions and the respective part of the parser state
8888 + Use custom `anyLine`. Additional state changes need to be made after
8889 a newline is parsed, otherwise markup may not be recognized correctly.
8890 This fixes a bug where markup after certain block-types would not be
8892 + Add support for `ATTR_HTML` attributes (#1906).
8893 Arbitrary key-value pairs can be added to some block types using a
8894 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
8895 when exporting to HTML, but since we cannot make this distinction here,
8896 the attributes are always added. The functionality is now supported
8898 + Add `:PROPERTIES:` drawer support (#1877).
8899 Headers can have optional `:PROPERTIES:` drawers associated with them.
8900 These drawers contain key/value pairs like the header's `id`. The
8901 reader adds all listed pairs to the header's attributes; `id` and
8902 `class` attributes are handled specially to match the way `Attr` are
8903 defined. This also changes behavior of how drawers of unknown type
8904 are handled. Instead of including all unknown drawers, those are not
8905 read/exported, thereby matching current Emacs behavior.
8906 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
8907 + Respect drawer export setting. The `d` export option can be used
8908 to control which drawers are exported and which are discarded.
8909 Basic support for this option is added here.
8910 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
8911 Also fix up tab handling for leading whitespace in code blocks.
8912 + Support new syntax for export blocks. Org-mode version 9
8913 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
8914 where `<FORMAT>` is the format of the block's content, the new
8915 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
8917 + Refactor `BEGIN...END` block parsing.
8918 + Fix handling of whitespace in blocks, allowing content to be indented
8919 less then the block header.
8920 + Support org-ref style citations. The *org-ref* package is an
8921 org-mode extension commonly used to manage citations in org
8922 documents. Basic support for the `cite:citeKey` and
8923 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
8924 + Split code into separate modules, making for cleaner code and
8927 * Added `docbook5` template.
8929 * `--mathjax` improvements:
8931 + Use new CommonHTML output for MathJax (updated default MathJax URL,
8933 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
8934 This is designed for cases where the input is always TeX and maximal
8935 conformity with TeX is desired. It seems to be smaller and load faster
8936 than what we used before. See #2858.
8937 + Load the full MathJax config to maximize loading speed (KolenCheung).
8939 * Bumped upper version bounds to allow use of latest packages
8940 and compilation with ghc 8.
8942 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
8943 #2310, #2310, #2824). This fixes behavior of roots, e.g.
8944 `\sqrt[3]{x}`, and issues with sub/superscript positioning
8945 and matrix column alignment in docx.
8949 + Clarified documentation of `implicit_header_references` (#2904).
8950 + Improved documentation of `--columns` option.
8952 * Added appveyor setup, with artefacts (Jan Schulz).
8954 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
8956 * LaTeX template: support for custom font families (vladipus).
8957 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
8958 can find some other usages. Example usage in YAML metadata:
8961 - name: \cyrillicfont
8962 font: Liberation Serif
8963 - name: \cyrillicfonttt
8964 options: Scale=MatchLowercase
8967 * Create unsigned msi as build artifact in appveyor build.
8969 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
8973## pandoc 1.17.0.3 (2016-03-24)
8975 * LaTeX writer: Fixed position of label in figures (#2813).
8976 Previously the label wasn't in the right place, and `\ref`
8977 wouldn't work properly.
8978 * Added .tei test files to pandoc.cabal so they'll be included
8980 * Updated copyright dates.
8982## pandoc 1.17.0.2 (2016-03-23)
8984 * Fixed serious regression in `htmlInBalanced`, which caused
8985 newlines to be omitted in some raw HTML blocks in Markdown
8988## pandoc 1.17.0.1 (2016-03-21)
8990 * File scope is no longer used when there are no input files (i.e.,
8991 when input comes from stdin). Previously file scope was triggered
8992 when the `json` reader was specified and input came from `stdin`,
8993 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
8994 thanks to Fedor Sheremetyev for calling the bug to our attention.)
8995 * Improved documentation of templates (#2797).
8997## pandoc 1.17 (2016-03-20)
8999 * Added `--file-scope` option (Jesse Rosenthal).
9000 By default pandoc operates on multiple files by first concatenating
9001 them (around extra line breaks) and then processing the joined file. So
9002 it only parses a multi-file document at the document scope. This has the
9003 benefit that footnotes and links can be in different files, but for
9004 some purposes it is useful to parse the individual files first
9005 and then combine their outputs (e.g. when the files use footnotes
9006 or links with the same labels). The `--file-scope` option causes
9007 pandoc to parse the files first, and then combine the parsed output,
9008 instead of combining before parsing. `--file-scope` is selected
9009 automatically for binary input files (which cannot be concatenated)
9010 and for pandoc json.
9012 * Add TEI Writer (Chris Forster) and `tei` output format.
9014 * Added a general `ByteStringReader` with warnings, used by the docx
9015 reader (API change, Jesse Rosenthal).
9017 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
9019 * Changed type of `Shared.uniqueIdent` argument from
9020 `[String]` to `Set String`. This avoids performance problems in documents
9021 with many identically named headers (API change, #2671).
9023 * Removed `tex_math_single_backslash` from `markdown_github` options
9026 * Make language extensions as well as full language names
9027 trigger syntax highlighting. For example, `py` will now work as
9028 well as `python` (jgm/highlighting-kate#83).
9030 * Added `institute` variable to latex, beamer templates (Fraser
9031 Tweedale, Josef Svenningsson).
9033 * Docx reader (Jesse Rosenthal):
9035 + Handle alternate content. Some word functions (especially graphics)
9036 give various choices for content so there can be backwards compatibility.
9037 + Don't turn numbered headers into lists.
9038 + Docx Reader: Add state to the parser, for warnings
9039 + Update feature checklist in source code.
9040 + Get rid of `Modifiable` typeclass.
9041 + Add tests for adjacent hyperlinks.
9042 + Add a "Link" modifier to `Reducible`. We want to make sure that
9043 links have their spaces removed, and are appropriately smushed
9048 + Fixed behavior of base tag (#2777).
9049 If the base path does not end with slash, the last component
9050 will be replaced. E.g. base = `http://example.com/foo`
9051 combines with `bar.html` to give `http://example.com/bar.html`.
9052 If the href begins with a slash, the whole path of the base
9053 is replaced. E.g. base = `http://example.com/foo/` combines
9054 with `/bar.html` to give `http://example.com/bar.html`.
9055 + Rewrote `htmlInBalanced`. This version avoids an exponential
9056 performance problem with `<script>` tags, and it should be faster
9058 + Properly handle an empty cell in a simple table (#2718).
9059 + Handle multiple `<meta>` tags with same name. Put them in a list
9060 in the metadata so they are all preserved, rather than (as before)
9061 throwing out all but one..
9065 + Improved pipe table parsing (#2765).
9066 + Allow `+` separators in pipe table cells. We already allowed
9067 them in the header, but not in the body rows, for some reason.
9068 This gives compatibility with org-mode tables.
9069 + Don't cross line boundary parsing pipe table row.
9070 Previously an Emph element could be parsed across the newline
9071 at the end of the pipe table row.
9072 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
9073 performance (#2730).
9074 + Fixed bug with smart quotes around tex math.
9078 + Handle interior `$` characters in math (#2743). For example,
9080 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
9081 This gives better results when people write e.g. `\TeX{}` in Markdown.
9082 + Properly handle LaTeX "math" environment as inline math (#2171).
9084 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
9087 * Org reader (Albert Krewinkel):
9089 + Prefix even empty figure names with "fig:" (#2643). The
9090 convention used by pandoc for figures is to mark them by prefixing
9091 the name with `fig:`. The org reader failed to do this if a figure
9093 + Refactor link-target processing (#2684).
9095 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
9096 Thanks to @c-foster.
9098 * HTML writer: Don't include alignment attribute for default table columns.
9099 Previously these were given "left" alignment. Better to leave off
9100 alignment attributes altogether (#2694).
9102 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
9103 better compatibility with other Markdown flavors (Henrik Tramberend).
9107 + Use image identifier to create a label and hypertarget for
9108 figures (Mauro Bieg).
9109 + Avoid double toprule in headerless table with caption (#2742).
9110 + Clean up options parser (Jesse Rosenthal).
9111 + Treat `memoir` template with `article` option as article, instead
9112 of treating all `memoir` templates as books.
9113 + Allow more flexible table alignment (Henrik Tramberend, #2665).
9114 New default is not to include `[c]` option (which is the default
9115 anyway if no positioning is specified). Now LaTeX emplates can
9116 control the overall table alignment in a document by setting the
9117 longtable length variables `LTleft` and `LTright`. For example,
9118 `\setlength\LTleft\parindent\setlength\LTright\fill`
9119 will create left-aligned tables that respect paragraph indentation.
9121 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
9123 * Org writer - pass through RawInline with format "org".
9125 * DokuWiki writer: use `$$` for display math.
9127 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
9129 * Make protocol-relative URIs work again (#2737).
9131 * make_osx_package.sh: Use env variable for developer id certs.
9133 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
9136 * Allow `zip-archive` 0.3.
9138 * Allow `aeson` 0.11.
9140## pandoc 1.16.0.2 (2016-01-12)
9142 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
9144 * Fixed regression in latex smart quote parsing (#2645).
9145 In cases where a match was not found for a quote, everything
9146 from the open quote to the end of the paragraph was being dropped.
9148## pandoc 1.16.0.1 (2016-01-10)
9150 * Fixed regression with `--latex-engine` (#2618). In 1.16
9151 `--latex-engine` raises an error if a full path is given.
9153 * Org reader: Fix function dropping subtrees tagged `:noexport`
9154 (Albert Krewinkel, #2628):
9156 * Markdown reader: renormalize table column widths if they exceed 100%
9159 * Textile reader: don't allow block HTML tags in inline contexts.
9160 The reader previously did allow this, following redcloth,
9161 which happily parses
9163 Html blocks can be <div>inlined</div> as well.
9167 <p>Html blocks can be <div>inlined</div> as well.</p>
9169 This is invalid HTML. The above sample now produces;
9171 <p>Html blocks can be</p>
9177 * Improved default template lookup for custom lua scripts (#2625).
9178 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
9179 pandoc would look for the template in
9180 `~/.pandoc/templates/default./path/to/lua/script.lua`.
9181 With this change it will look in the more reasonable
9182 `~/.pandoc/templates/default.script.lua`. This makes it possible to
9183 store default templates for custom writers.
9185 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
9188 * LaTeX writer: restore old treatment of Span (#2624). A Span is
9189 now rendered with surrounding `{}`, as it was before 1.16.
9191 * Entity handling fixes: improved handling of entities like
9192 `⟨` that require a trailing semicolon. Allow uppercase
9193 `x` in numerical hexidecimal character references, working
9194 around a tagsoup bug.
9196 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
9197 memory use on compile. With aeson 0.10 we were getting an out of
9198 memory error on a 2GB Ubuntu 64-bit VM.
9200 * Improved deb package creation script. Made `DPKGVER` work.
9201 Renamed `COMMIT` to `TREE`. You should now be able to do
9202 `TREE=1.16.0.1 DPKGVER=2 make deb`.
9205## pandoc 1.16 (2016-01-02)
9207 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
9209 + Added syntax for link and image attributes to pandoc's Markdown.
9210 + Updated readers and writers to use link and image attributes
9212 + Support image attributes in Docx, Textile, RST readers.
9214 * Renamed link attribute extensions. The old `link_attributes` is
9215 now `mmd_link_attributes`, and `link_attributes` now enables the
9216 new pandoc-style link and image attributes (API change).
9217 Note: this change could break some existing workflows.
9219 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
9220 Added threefold wrapping option.
9222 + Command line option: deprecated `--no-wrap`, added
9223 `--wrap=[auto|none|preserve]`
9224 + Added `WrapOption`, exported from `Text.Pandoc.Options`
9225 + Changed type of `writerWrapText` in `WriterOptions` from
9226 `Bool` to `WrapOption`.
9227 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
9228 + Supported `SoftBreak` in readers and writers.
9230 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
9231 change, Mauro Bieg).
9233 * Added `--dpi` command-line option (Mauro Bieg).
9235 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
9236 This change makes `--no-tex-ligatures` affect the LaTeX reader
9237 as well as the LaTeX and ConTeXt writers. If it is used,
9238 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
9239 literally, rather than parsing ligatures for quotation marks
9240 and dashes. And the LaTeX writer will print unicode quotation
9241 mark and dash characters literally, rather than converting
9242 them to the standard ASCII ligatures. Note that `--smart` has
9243 no effect on the LaTeX reader. `--smart` is still the default
9244 for all input formats when LaTeX or ConTeXt is the output format,
9245 *unless* `--no-tex-ligatures` is used.
9247 Some examples to illustrate the logic:
9250 % echo "'hi'" | pandoc -t latex
9252 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
9254 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
9256 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
9258 % echo "'hi'" | pandoc -f latex
9262 * Removed deprecated options `--offline` and `--html5`.
9264 * Fixed language code for Czech (`cs` not `cz`) (#2597).
9266 * Implemented `east_asian_line_breaks` extension (#2586).
9267 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
9268 to `Extension` (API change). This extension is like
9269 `ignore_line_breaks`, but smarter -- it only ignores line breaks
9270 between two East Asian wide characters. This makes it better suited
9271 for writing with a mix of East Asian and non-East Asian scripts.
9273 * Added support for PDF creation via `wkhtmltopdf`.
9274 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
9275 if you have math.) Margins can be set using the variables
9276 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
9277 Other styling can be done through CSS.
9279 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
9280 We were capturing final colons as in `[@foo: bar]`; the citation id
9281 was being parsed as `@foo:`.
9285 + Fixed image syntax for local files (#2589).
9286 + Changed type of `writeICML` (Mauro Bieg).
9287 API change: It is now `WriterOptions -> Pandoc -> IO String`.
9288 Also handle new image attributes.
9289 + Intersperse line breaks instead of appending them to
9290 every `ParagraphStyleRange` (Mauro Bieg, #2501).
9291 + Add `Cite` style to citations (Mauro Bieg).
9292 + Added figure handling (#2590, Mauro Bieg).
9293 + Better handling of math. Instead of just printing the raw tex,
9294 we now try to fake it with unicode characters.
9296 * HTML writer: Include `example` class for example lists (#2524).
9298 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
9300 + Support for percentage widths/heights
9301 + Use `Attr` instead of title to get dimensions from ODT walker
9302 to `writeOpenDocument`.
9306 + Support anchors in spans and divs with id elements
9307 (jgm/pandoc-citeproc#143).
9308 + Fixed code blocks (#1861).
9310 * Haddock writer: omit formatting inside links, which isn't supported
9313 * MediaWiki writer: Fixed spacing issues in table cells.
9315 + Start cell on new line unless it's a single Para or Plain
9317 + For single Para or Plain, insert a space after the `|` to
9318 avoid problems when the text begins with a character like
9321 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
9325 + Add support for GAP highlighting using listings (Raniere Silva).
9326 + Consider `header-includes` content as well as templates
9327 when determining whether to use csquotes (Andreas Lööw).
9328 + Create defaults for geometry using `margin-left` etc.
9329 If `geometry` has no value, but `margin-left`, `margin-right`,
9330 `margin-top`, and/or `-margin-bottom` are given, a default value
9331 for `geometry` is created from these. Note that these variables
9332 already affect PDF production via HTML5 with `wkhtmltopdf`.
9334 * ConTeXt writer: set default layout based on `margin-left`, etc.
9335 This sets up `\setuplayout` based on the variables `margin-left`,
9336 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
9339 * Docx writer: better handling of PDF images. Previously we tried
9340 to get the image size from the image even if an explicit size was
9341 specified. Since we still can't get image size for PDFs, this made
9342 it impossible to use PDF images in docx. Now we don't try to get
9343 the image size when a size is already explicitly specified.
9345 * Markdown writer: use raw HTML for link/image attributes when
9346 the `link_attributes` extension is unset and `raw_html` is set (#2554).
9348 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
9352 + Improved smart quote parsing (#2555). This fixes redering of
9354 + Use curly quotes for unmatched ` (#2555).
9355 + Allow blank space between braced arguments of commands (#2592).
9359 + Improved pipe table relative widths. Previously pipe table
9360 columns got relative widths (based on the header underscore lines)
9361 when the source of one of the rows was greater in width than the
9362 column width. This gave bad results in some cases where much of
9363 the width of the row was due to nonprinting material (e.g. link
9364 URLs). Now pandoc only looks at printable width (the width of a
9365 plain string version of the source), which should give better results.
9366 Thanks to John Muccigrosso for bringing up the issue.
9367 + Fixed parsing bug with macros. Previously macro definitions in
9368 indented code blocks were being parsed as macro definitions, not code.
9370 * Textile reader: skip over attribute in image source (#2515).
9371 We don't have a place yet for styles or sizes on images, but
9372 we can skip the attributes rather than incorrectly taking them
9373 to be part of the filename.
9375 * Docx reader: Handle dummy list items (Jesse Rosenthal).
9376 These come up when people create a list item and then delete the
9377 bullet. It doesn't refer to any real list item, and we used to ignore
9380 * CommonMark reader/writer rewritten to use latest `cmark`.
9382 * Fixed Emoji character definitions (#2523). There were many bugs in the
9385 * `Text.Pandoc.CSS`:
9387 + Added `pickStylesToKVs` function to extract multiple properties at
9388 once (API change, Mauro Bieg).
9389 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
9391 * `trypandoc`: sort drop-down lists.
9395 + Made `\euro` conditional on presence of character.
9396 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
9397 + Moved `header-includes` before setting of title (Thomas Hodgson),
9398 to match the LaTeX template (jgm/pandoc-templates#168).
9399 + Added `section-titles` variable (defaults to true)
9400 to enable/suppress section title pages in beamer
9401 slide shows (Thomas Hodgson).
9402 + Moved beamer themes after fonts, so that themes can
9403 change fonts. (Previously the fonts set were being
9404 clobbered by lmodern.sty.) (Thomas Hodgson).
9406 * Beamer/LaTeX template changes (Thomas Hodgson):
9407 + Added `thanks` variable
9408 + Use `parskip.sty` when `indent` isn't set (fall back to using
9409 `setlength` as before if `parskip.sty` isn't available).
9410 + Use `biblio-style` with biblatex.
9411 + Added `biblatexoptions` variable.
9413 * LaTeX template changes:
9415 + Added `paper` after `$papersize$` variable in latex template.
9416 Thus you can say `papersize: a4` and the latex will contain
9417 `a4paper`. This change may break some existing workflows; if
9418 you currently specify `a4paper`, you'll get `a4paperpaper` which
9419 is meaningless. However, the change seems worth it, as it will
9420 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
9421 and html->pdf via wkhtmltopdf.
9422 + Only pass options to color package if `colorlinks` is set
9424 + Make definition of `\euro` conditional in xelatex/lualatex,
9425 as it is already for pdflatex (Andrew Dunning).
9426 + Removed setting of `subject` in PDF metadata.
9427 This used to be set to the subtitle, but really the subtitle
9428 need not give the subject. Also, `subtitle` can contain formatting,
9429 so we'd need, at least, a plain text version for this.
9430 + Moved `header-includes` before setting of `\title`, `\author`,
9431 etc. This allows these macros to be redefined.
9432 + Use `\subtitle` command for `subtitle`, instead of tacking it
9433 on to the title as before. We give a no-op fallback definition if it
9434 is not defined. This change should produce much better results
9435 in classes that support `\subtitle`. With the default article
9436 class, which does not define `\subtitle`, subtitles will no
9437 longer be printed unless the user defines `\subtitle` and
9438 redefines `\maketitle`.
9439 + Moved redefinitions of `\paragraph` and `\subparagraph` to
9440 before header-includes.
9444 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
9445 needed for things to work on ConTeXt stable from TeXLive 2015.
9446 + Revert use of `\setuphead` in title block (Andrew Dunning,
9449 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
9451 * Fixed man template so disabling hyphenation actually works.
9452 The command needs to come after .TH.
9454 * Added 'navigation' variable to beamer template (#2543).
9455 Valid values are `empty` (the default), `horizontal`, `vertical`,
9456 and `frame`. Note that this changes the default behavior from
9457 `horizontal` to `empty`. Closes #2543.
9459 * Added `toc` to HTML slide format templates (Andrew Dunning),
9460 so that `--toc` creates a contents slide.
9462 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
9464 * Allow pipe tables with no body rows (#2556).
9465 Previously this raised a runtime error.
9467 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
9468 as URL. The Haskell URI parsing routines will accept "C:" as a
9469 scheme, so we rule that out manually. This helps with
9470 `--self-contained` and absolute Windows paths.
9472 * Define a `meta-json` variable for all writers (#2019). This contains
9473 a JSON version of all the metadata, in the format selected for the
9474 writer. So, for example, to get just the YAML metadata, you can run
9475 pandoc with the following custom template: `$meta-json$`. The intent
9476 is to make it easier for static site generators and other tools to get
9479 * Document limitations of --self-contained (#2553).
9481 * Improved Citations section of README (#2551). Added information
9482 about `link-citations` and a link to the pandoc-citeproc man page.
9484 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
9487 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
9489 * Improved implicit pandoc-citeproc inclusion.
9490 The filter pandoc-citeproc is automatically used when
9491 `--bibliography` is specified on the command line, unless
9492 `--natbib` or `--biblatex` is used. However, previously this
9493 only worked if `--bibliography` was spelled out in full, and not
9494 if `--biblio` was used.
9496 * reveal.js: Interpret pauses correctly for all headers (#2530).
9497 Previously, when using headers below the slide level, pauses are left
9498 uninterpreted into pauses. In my opinion, unexpected behavior but
9499 intentional looking at the code.
9501 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
9503 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
9506 * ImageSize: Added functions for converting between image dimensions
9509 * Use lts-3.18 in stack.yaml. This avoids Windows build
9510 issues with the HTTP library.
9512 * Bump version bounds for dependencies.
9514## pandoc 1.15.2.1 (2015-11-16)
9516 * Added two missing test files, and `stack.yaml`, to
9517 `extra-source-files` so they're included in the source tarball.
9519 * reveal.js template: Fixed parallaxBackground options.
9520 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
9521 need integer values, not strings. (Vaughn Iverson)
9523## pandoc 1.15.2 (2015-11-15)
9525 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
9526 ConTeXt rather than LaTeX (#2463).
9528 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
9530 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
9531 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
9534 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
9535 parsing (#2469). Tightened up the inline HTML parser so it disallows
9538 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
9542 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
9543 Paragraphs can be followed by lists, even if there is no blank line
9544 between the two blocks. However, this should only be true if the
9545 paragraph is not within a list, were the preceding block should be
9546 parsed as a plain instead of paragraph (to allow for compact lists).
9547 Thanks to @rgaiacs for bringing this up.
9548 + Allow toggling header args (Albert Krewinkel, #2269).
9549 Org-mode allows to skip the argument of a code block header argument if
9550 it's toggling a value. Argument-less headers are now recognized,
9551 avoiding weird parsing errors.
9552 + Fix markup parsing in headers (Albert Krewinkel, #2504).
9553 Markup as the very first item in a header wasn't recognized. This was
9554 caused by an incorrect parser state: positions at which inline markup
9555 can start need to be marked explicitly by changing the parser state.
9556 This wasn't done for headers. The proper function to update the state
9557 is now called at the beginning of the header parser, fixing this issue.
9558 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
9559 Smart quotes, ellipses, and dashes should behave like normal quotes,
9560 single dashes, and dots with respect to text markup parsing.
9561 + Require whitespace around definition list markers (#2518).
9562 This rule was not checked before, resulting in bugs with footnotes
9563 and some link types.
9567 + Pipe tables with long lines now get relative cell widths (#2471).
9568 If a pipe table contains a line longer than the column width (as set by
9569 `--columns` or 80 by default), relative widths are computed based on the
9570 widths of the separator lines relative to the column width. This should
9571 solve persistent problems with long pipe tables in LaTeX/PDF output, and
9572 give more flexibility for determining relative column widths in other
9573 formats, too. For narrower pipe tables, column widths of 0 are used,
9574 telling pandoc not to specify widths explicitly in output formats that
9576 + Improved parser for `mmd_title_block`. We now allow blank metadata
9577 fields. These were explicitly disallowed before.
9578 + Citation keys can now contain `://`, so URLs and DOIs can be used
9579 as citation keys (jgm/pandoc-citeproc#166).
9581 * Beamer template: fix incompatibility of section slides with natbib.
9582 Natbib (and presumably biblatex) bibliography commands create
9583 their own section. Since these are in frame environments,
9584 we have an incompatibility with the `\AtBeginSection` macro
9585 which creates a special frame when a new section occurs.
9586 (We can't have a frame inside another frame.) This change disables
9587 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
9588 bringing the problem to my attention. This supersedes #145. See
9591 * Textile reader: don't do smart punctuation unless explicitly asked
9592 (#2480). Note that although smart punctuation is part of the textile
9593 spec, it's not always wanted when converting from textile
9594 to, say, Markdown. So it seems better to make this an option.
9596 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
9597 The `comment` environment is handled in a similar way to the
9598 `verbatim` environment, except that its content is discarded.
9600 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
9601 Jesse Rosenthal). This fixes a problem with links in notes.
9603 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
9604 (mb21). For LaTeX, also collect `lang` and `dir` attributes on spans and
9605 divs to set the `lang`, `otherlangs` and `dir` variables if they aren’t set
9610 + Use proper command for `\textarabic` (mb21).
9611 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
9612 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
9613 to link to Div or Span elements. We now don't bother defining `\label`
9614 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
9615 + Avoid footnotes in list of figures (#1506).
9616 + Properly handle footnotes in captions (#1506).
9617 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
9618 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
9619 `toccolor` is set (#2508).
9621 * Textile writer: support start number in ordered lists (#2465).
9623 * OpenDocument writer: Allow customization of opendocument
9624 automatic styles. Automatic styles can now be inserted in the
9625 template, which now provides the enclosing `<office:automatic-styles>`
9628 * Docx writer: insert space between footnote reference and note (#2527).
9629 This matches Word's default behavior.
9631 * EPUB writer: don't download linked media when `data-external` attribute
9632 set (#2473). By default pandoc downloads all linked media and includes it
9633 in the EPUB container. This can be disabled by setting `data-external` on
9634 the tags linking to media that should not be downloaded. Example:
9636 <audio controls="1">
9637 <source src="http://www.sixbarsjail.it/tmp/bach_toccata.mp3"
9638 type="audio/mpeg"></source>
9641 * HTML writer: use width on whole table if col widths sum to < 100%.
9642 Otherwise some browsers display the table with the columns
9643 separated far apart.
9645 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
9646 `abstract` (Andrew Dunning).
9648 * HTML-based templates (Andrew Dunning):
9650 + Use en dash instead of hyphen between title prefix and title.
9651 + Add `keywords` to metadata.
9652 + Add `lang`, `dir`, `quotes` where missing.
9653 + Always make author and date display conditional.
9654 + Updated dzslides template from source.
9656 * Man template: make "generated by" comment conditional.
9658 * LaTeX, Beamer templates:
9660 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
9661 filled by commands that make babel understand the polyglossia-style
9662 language directives (mb21, #137).
9663 + Improved formatting of conditionals; `$for$` is always provided to allow
9664 multiple options (Andrew Dunning, #141).
9665 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
9666 to improve support for LuaTeX (Andrew Dunning, #135).
9667 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
9668 - use same options for all LaTeX engines;
9669 - add `subtitle` and `keywords` to PDF metadata;
9670 - do not override `hyperref` link coloring without user input, effectively making
9671 the `hidelinks` option the default (removed as a separate variable);
9672 - link colors can be enabled (using a slightly darker version of the old
9673 defaults) using a new `colorlinks` variable, automatically used by
9674 the LaTeX writer when custom colors are specified;
9675 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
9676 `colorlinks`, and is only applied if `colorlinks` is disabled.
9678 * ConTeXt template (Andrew Dunning):
9680 + New variables for controlling styles: `linkstyle`, `linkcolor`,
9681 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
9682 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
9683 `monofont`, `mathfont`, `fontsize`.
9684 + Default template no longer supports MkII.
9685 + Improve writing of title block (suppressing numbering of first page).
9686 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
9687 + Support `subtitle`, `abstract`.
9688 + Support list of figures (`lof`), list of tables (`lot`).
9689 + Disable link styling by default.
9690 + Define styles for all section types.
9692 + Improved formatting of conditionals.
9694 * Beamer template: added code to prevent slide breaks inside paragraphs
9695 (#2422, thanks to Nick Bart). This will matter, in practice, only when
9696 `allowframebreaks` is used. It is especially helpful for bibliography
9699 * OpenDocument template: Add `<office:automatic-styles>` tag around
9700 automatic styles. The writer now longer provides this (see #2520).
9702 * Restored Text.Pandoc.Compat.Monoid.
9704 * Do not export (<>) from custom Prelude. The Prelude now matches
9705 base 4.8 Prelude's API.
9707 * Don't use custom prelude with ghc 7.10. Use the custom prelude
9708 only for earlier versions. This change makes `stack ghci` and
9709 `cabal repl` work (#2503), at least with ghc 7.10.
9711 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
9712 This prevents problems building haddocks with "C" locale.
9714 * Change default for old-locale flag to False.
9716 * Use stack in deb, osx, and Windows package generators.
9718 * Added Vagrantfile for building deb in vm.
9719 This should help in automating binary package creation. 'make package'
9720 will make the package. 'make package COMMIT=blah' will make the package
9725 + Consistent capitalization for pandoc and Markdown.
9726 + Fixed `auto_identifiers` examples (Benoit Schweblin).
9727 + Improved documentation of template variables (Andrew Dunning).
9729## pandoc 1.15.1 (2015-10-15)
9731 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
9732 and reexported from `Text.Pandoc` (Alex Vong). This allows
9733 writers to access it. (Alex Vong) (API change)
9735 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
9736 `subscripts` (#2401).
9738 * Added `odt` as input format (MarLinn). Added new module
9739 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
9740 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
9741 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
9742 Partly implemented features: Citations, Tables.
9746 + Add basic tests for each header style (Ophir Lifshitz).
9747 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
9748 + Skip spaces in headers (Ophir Lifshitz).
9749 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
9750 `# Header {id="myid" class="foo bar"}`
9751 is now equivalent to `# Header {#myid .foo .bar}`.
9752 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
9753 (Kristof Bastiaensen)
9754 + Pipe tables: allow indented columns. Previously the left-hand column
9755 could not start with 4 or more spaces indent. This was inconvenient
9756 for right-aligned left columns. Note that the first (header column)
9757 must still have 3 or fewer spaces indentation, or the table will be
9758 treated as an indented code block.
9759 + Fix regression: allow HTML comments containing `--`.
9760 Technically this isn't allowed in an HTML comment, but
9761 we've always allowed it, and so do most other implementations.
9762 It is handy if e.g. you want to put command line arguments
9767 + Don't eat excess whitespace after macros with only optional
9769 + Support longtable (#2411).
9770 + Implement `\Cite` (#2335).
9771 + Support abstract environment. The abstract populates an
9772 `abstract` metadata field.
9773 + Properly handle booktabs lines. Lines aren't part of the
9774 pandoc table model, so we just ignore them (#2307).
9778 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
9779 + Updated for new automatic header attributes.
9780 + Add auto identifiers if not present on headers. This makes
9781 TOC linking work properly.
9782 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
9783 + Test `<ol>` type, class, and inline list-style(-type) CSS
9785 + Better handling of "section" elements (#2438). Previously
9786 `<section>` tags were just parsed as raw HTML blocks. With
9787 this change, section elements are parsed as Div elements with
9788 the class "section".
9790 * MediaWiki reader: handle unquoted table attributes (#2355).
9794 + Added proper support for DocBook `xref` elements (Frerich Raabe).
9795 Added `dbContent` field to reader state, so we can lookup
9797 + Handle `informalexample` (#2319).
9801 + Create special punctuation test (Ophir Lifshitz).
9802 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
9803 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
9804 in `headers.docx` with pandoc's current `styles.xml`, which
9805 contains styles for Heading 1 through 6. Added Heading 4
9806 through 7 to the test document. Note that Heading 7 is not
9807 parsed as a Heading because there is no Heading 7 style.
9809 * RST reader: better handling of indirect roles.
9810 Previously the parser failed on this kind of case
9812 .. role:: indirect(code)
9814 .. role:: py(indirect)
9819 Now it correctly recognizes `:py:` as a code role.
9823 + Add auto identifiers if not present on headers
9824 (#2354, Juliusz Gonera).
9825 + Allow verse blocks to contain empty lines (#2402,
9828 * EPUB reader: stop mangling external URLs (#2284).
9832 + Don't insert `\ ` when complex expression in matched pairs.
9833 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
9834 + Ensure that `\ ` is inserted when needed before Cite and Span
9835 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
9836 + Normalize headers only in "standalone" mode (#2394).
9838 * Haddock writer: escape `*` and `^` (G. Bataille).
9842 + In TOC, add links to headers (#829).
9843 + Use unicode super/subscripts for digits in plain output
9844 (when the `superscripts` and `subscripts` extensions are
9849 + Moved invalid character stripping to `formattedString`.
9850 This avoids an inefficient generic traversal (#2356).
9851 + Use user data directory for `reference.docx` archive.
9852 This allows the test suite to work without installing pandoc first.
9853 It also brings the docx writer in line with the odt writer.
9854 + Tests: docx writer tests now use `../data` for data directory.
9855 This allows tests to be run without installing first.
9856 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
9860 + Fixed detection of 'chapters' from template.
9861 If a documentclass isn't specified in metadata, but the
9862 template has a hardwired bookish documentclass, act as if
9863 `--chapters` was used. This was the default in earlier
9864 versions, but it has been broken for a little while.
9865 + Correctly recognize book documentclass in metadata (#2395).
9866 + Set language-related variables automatically, depending
9867 on the value of the `lang` field, which is now always
9868 assumed to be in BCP47 format (mb21, #1614, #2437).
9869 + Add `\protect` to `\hyperdef` in inline context. This way we
9870 don't get an error when this is used as a moveable argument (#2136).
9871 + Support all frame attributes in Beamer.
9872 + Percent-encode more special characters in URLs (#1640, #2377).
9873 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
9877 + Update KaTeX JS and CSS versions (Emily Eisenberg).
9878 + For dzslides, add `role="note"` for speaker notes (#1693).
9879 + Percent-encode more special characters in URLs (#1640, #2377).
9880 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
9881 + Render Div with class `section` as `<section>` in HTML5.
9885 + In TOC, replace literal `<br/>` with space (#2105).
9886 + With `--webtex`, include image file rather than `data:` URI (#2363).
9888 * Native writer: format Div properly, with blocks separated.
9890 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
9895 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
9896 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
9900 + Beamer: Add `innertheme`, `outertheme` variables
9901 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
9902 Integrate recent font and language updates from LaTeX template;
9903 allow use of `mainfont` variable for changing the slide text
9904 in XeTeX and LuaTeX (Andrew Dunning, #131).
9905 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
9906 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
9907 (Andrew Dunning, #122). Support handling of bidirectional
9908 text (mb21, #120). Improve reliability of superscripts/subscripts
9909 under XeTeX and prevent letters and numbers from appearing on a
9910 different baseline by removing use of the `realscripts` package
9911 (via `xltxtra`). To restore use of OpenType characters for these
9912 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
9913 `header-includes` (Andrew Dunning, #130). Remove redundant
9914 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
9915 `indent`, `subparagraph` variables (Andrew Dunning).
9916 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
9917 #113). Prevent package clash with `tufte-latex` and other classes that
9918 include `hyperref` or `color` (Xavier Olive, #115).
9919 + ConTeXt: Support handling of bidirectional text (mb21, #120).
9920 + LaTeX and ConTeXt: Use more specific language variables.
9921 Instead of directly using `lang`, we now use `babel-lang` and
9922 `polyglossia-lang` and `context-lang`. These variables are set by
9923 the writers to the necessary values, based on the `lang` variable
9924 (which now always takes a value in BCP47 format). (mb21, #114, #129).
9925 + HTML: Support handling of bidirectional text (mb21, #120).
9926 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
9927 Add dir attribute in html5 (Andrew Dunning).
9928 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
9929 Add `width`, `height` variables (Anrew Dunning). Update template
9930 from 3.1 source (Andrew Dunning). All configuration options are now
9931 available as variables, but are only be included if set (reveal.js
9932 uses defaults otherwise).
9933 + man: Added comment stating that the page is autogenerated by pandoc,
9934 giving version. Added `adjusting` and `hyphenate` variables
9937 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
9939 * MediaBag: ensure that `/` is always used as path separator.
9941 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
9943 * Added `--bash-completion` option. This generates a bash completion
9944 script. To use: `eval "$(pandoc --bash-completion)"`.
9946 * Text.Pandoc.Error: Define Typeable and Exception instances
9947 for PandocError (#2386).
9949 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
9950 This makes keys with extra space at the beginning and end
9957 will now be a link to bar (it wasn't before).
9959 * Text.Pandoc: disable `auto_identifiers` for epub.
9960 The epub writer inserts its own auto identifiers;
9961 this is more complex due to splitting into "chapter" files.
9963 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
9964 It now reexports Data.Time.
9966 * Use custom Prelude to avoid compiler warnings.
9968 + The (non-exported) prelude is in prelude/Prelude.hs.
9969 + It exports Monoid and Applicative, like base 4.8 prelude,
9970 but works with older base versions.
9971 + It exports (<>) for mappend.
9972 + It hides 'catch' on older base versions.
9974 * Added a `stack.ymal` and stack install instructions to INSTALL.
9976 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
9978 * Added note to CONTRIBUTING.md about ghc versions and travis.
9980 * Clarify docs on block quotes. The space after `>` is optional (#2346).
9982 * Removed obsolete reference to default.csl (#2372).
9984 * List all styles in manual for `--reference-docx` (Chris Black)
9986 * Don't capitalize header links in man page.
9988 * Added section on repl to CONTRIBUTING.md.
9990 * README: Added space after backslash in image example (#2329).
9992 * Document details of citation locator terms (Nick Bart).
9994 * Fixed some internal links in README (#2309).
9996 * Improve CSL documentation, variables documentations,
9997 links, and cross-references in README. (Andrew Dunning)
9999 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
10001 * Use `newManager` instead of `withManager` in recent `http-client`.
10002 This avoids a deprecation warning.
10004 * Allow building with latest versions of http-types,
10005 HUnit, criterion, syb, aeson.
10007 * Updated benchmark program for new criterion API.
10009 * Setup.hs: rewrite so as not to use process, directory, filepath.
10010 Using anything outside base is dangerous, since older
10011 versions of ghc may link against two different versions.
10013 * Added appveyor (Windows continuous integration) builds.
10015 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
10016 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
10017 `make .travis.yml` regenerates it based on the tested-with
10018 field of the cabal file.
10020## pandoc 1.15.0.6 (2015-07-15)
10022 * `--self-contained`: Fixed overaggressive CSS minimization
10023 (#2301, 2286). Previously `--self-contained` wiped out all
10024 spaces in CSS, including semantically significant spaces.
10025 This was a regression from 1.14.x.
10027 * Markdown reader: don't allow bare URI links or autolinks in link
10028 label (#2300). Added test cases.
10030 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
10031 Previously we disallowed `-` at the end of an autolink,
10032 and disallowed the combination `=-`. This commit liberalizes the
10033 rules for allowing punctuation in a bare URI, and adds test cases.
10034 One potential drawback is that you can no longer put a bare
10035 URI in em dashes like this:
10036 `this uri---http://example.com---is an example.`
10037 But in this respect we now match github's treatment of bare URIs.
10039 * HTML writer: support speaker notes in dzslides.
10040 With this change `<div class="notes">` and also `<div class="notes"
10041 role="note">` will be output if `-t dzslides` is used. So we can
10042 have speaker notes in dzslides too. Thanks to maybegeek.
10044 * Updated dzslides template.
10046 * Improved documentation of options to print system default files (#2298).
10047 `--print-default-data-file` and `--print-default-template`.
10049 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
10050 (Tiziano Müller). MathJax seems currently to be the only maintained
10051 math rendering extension for DokuWiki.
10053 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
10054 div as top-level header (#2294). This fixes a bug with `--section-divs`,
10055 where the final references section added by pandoc-citeproc, enclosed in
10056 its own div, got nested in the div for the section previous to it.
10058 * Allow vector 0.11.
10060 * Require cmark > 0.4.
10062## pandoc 1.15.0.5 (2015-07-10)
10064 * HTML writer: Fixed email javascript obfuscation with `mailto:`
10065 URLs (#2280). This fixes a potential security issue. Because
10066 single quotes weren't being escaped in the link portion, a
10067 specially crafted email address could allow javascript code injection.
10069 * RST reader: allow inline formatting in definition list field
10070 names (Lars-Dominik Braun).
10072 * PDF: Make sure `--latex-engine-opt` goes before the filename
10073 on the command line. LaTeX needs the argument to come after
10074 the options (#1779).
10076 * CommonMark writer: fixed tags used for super/subscript.
10078 * ConTeXt template: activate hanging indent for definition lists
10081 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
10082 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
10083 to include `hsb2hs` in Build-Tools in cabal.
10085 * Improved Windows installer (thanks to nkalvi).
10087 + When per-machine installation is chosen, the system path
10088 is updated instead of the user's.
10089 + An appropriate default is used for per-machine installation
10091 + Admin privileges are no longer required for a per-user install
10093 * Travis: unpack sdist for build to catch packaging bugs.
10095 * Improved documentation on where user templates go (#2272).
10097## pandoc 1.15.0.4 (2015-07-03)
10099 * Added pandoc.1 man page to the repository. It is no longer
10100 built as part of the cabal build process. (This proved too
10101 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
10102 when `README` is changed.
10104 * Copying of the man page now respects `--destdir` (#2262).
10106 * Improved error messages for filters. User is now informed if
10107 the filter requires an interpreter that isn't found in the path,
10108 or if the filter returns an error status.
10110## pandoc 1.15.0.3 (2015-07-02)
10112 * Ensure target directory is created when installing man page.
10114## pandoc 1.15.0.2 (2015-07-02)
10116 * Added files needed for building man page to Extra-Source-Files.
10118## pandoc 1.15.0.1 (2015-07-01)
10120 * Man page is now built and installed as part of the cabal build
10121 process. Removed Makefile target for man page.
10123## pandoc 1.15 (2015-07-01)
10125 * Man page changes:
10127 + Removed `--man1`, `--man5` options (breaking change).
10128 + Removed `Text.Pandoc.ManPages` module (breaking API change).
10129 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
10130 create the man page from README using a custom template and filters.
10131 + Added `man/` directory with template and filters needed to build
10133 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
10134 Now there is just pandoc.1, which has all the content from README.
10135 This change was needed because of the extensive cross-references
10136 between parts of the README.
10137 + Removed old `data/pandoc.1.template` and
10138 `data/pandoc_markdown.5.template`.
10140 * OpenDocument writer: Do not add a carriage return after a hard
10141 line break (Michael Chladek).
10145 + use `\goto` for internal links.
10146 + Added a `%` at end for `\reference` to avoid spurious space.
10148 * Ignore sandbox on 'make quick'
10150## pandoc 1.14.1 (2015-06-30)
10152 * Added `--man1` and `--man5` options to pandoc, allowing
10153 pandoc to generate its own man pages. Man pages are no longer
10154 automatically generated in the build process (the process for
10155 this was too complex and prone to failure, #2190). The
10156 `make-pandoc-man-pages` executable has been removed. The
10157 `man/` directory has been removed, and man page templates
10158 have been moved to `data/`. NOTE TO PACKAGERS: You will no
10159 longer find pandoc's man pages in `man/`, but you can
10160 generate them using `pandoc --man1 > pandoc.1` and `pandoc
10161 --man5 > pandoc_markdown.5`.
10163 * Added new unexported module: `Text.Pandoc.ManPages`.
10165 * `README` now acts like a data file (even though it isn't in
10166 `data/`). So, for example, `pandoc --print-default-data-file README`
10167 will produce the README.) This change was required for the `--man1`
10168 and `--man5` options, since the man pages are produced from the
10169 README, but it may be useful for other purposes as well.
10171 * Allow `reference.docx` and `reference.odt` to be used with
10172 `--print-default-data-file` and to shadow defaults if placed in
10173 the user data directory. Note that as of 1.14, we no longer
10174 include these files as data files; instead, we include their
10175 components. This change causes pandoc to behave as if it has
10176 these data files; they are constructed on demand when needed
10177 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
10179 * Fixed regression in CSS parsing with `--self-contained` (#2224).
10180 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
10181 silently drops big sections of CSS. This commit replaces the
10182 use of css-text with a small but principled CSS preprocessor,
10183 which removes whitespace and comments and replaces `url()` with
10184 base 64 data when possible.
10186 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
10187 This will allow math to work when pages are being viewed locally.
10189 * `Text.Pandoc.Options`: Export `plainExtensions`.
10190 These are the extensions used in `plain` output.
10192 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
10193 math mode; treat them as regular inline text. Normally these will
10194 cause an error in LaTeX, but there are contexts (e.g. `alltt`
10195 environments) where they are allowed.
10197 * HTML reader: allow `<body>` to close `<head>`.
10199 * DocBook reader: support `mediaobject`s and `figures` (#2184, mb21).
10201 * RST reader: Fix reference names with special characters
10202 (Lars-Dominik Braun).
10204 * Textile writer: escape `+` and `-` as entities (#2225).
10206 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
10208 * Plain writer: don't use symbols for super/subscript (#2237).
10209 Simplified code by using `plainExtensions`.
10211 * InDesign writer: Properly escape URLs containing more than one
10212 colon character (gohai).
10214 * Docx writer: Make sure we use dist version of `reference.docx`
10215 (and not the user's version) for certain settings. Taking some
10216 settings values from a user-supplied reference.docx can lead to
10217 corruption. This fixes a regression from the last release (#2249).
10219 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
10220 `getDefaultReferenceODT` (API change). These functions have been
10221 removed from the Docx and ODT writers.
10223 * LaTeX template (Xavier Olive):
10224 + Added `CJKmainfont` and `CJKoptions` variables.
10225 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
10227 * Epub templates: use `author.role`, not `author.type`.
10229 * Bump cmark version to >= 0.3.4.
10231 * Improved Windows installer (#2205, thanks to nkalvi).
10232 Users can now select a per-user or systemwide install, and can set
10233 the installation path. At the end of installation, the install location
10234 is given. The install location is also now given in the list of
10235 installed programs in Control Panel. Cleaner WiX syntax is used for
10238 * Added `download_stats` target to Makefile.
10240## pandoc 1.14.0.4 (2015-06-02)
10242 * Added missing commonmark template.
10244 * Improved try pandoc (moved button, show raw command).
10246## pandoc 1.14.0.3 (2015-06-01)
10248 * Allow compilation with syb 0.5.*.
10250 * Custom writer: fixed some compiler warnings for ghc < 7.10.
10252## pandoc 1.14.0.2 (2015-05-31)
10254 * Allow building with hslua 0.4.
10256## pandoc 1.14.0.1 (2015-05-28)
10258 * Fixed problem with building of `reference.docx` and `reference.odt`
10259 when the `embed_data_files` flag is used. Instead of having a phase
10260 of the build where `reference.docx` and `reference.odt` are created
10261 from their constituent data files, we now construct these archives
10262 from their constituents when a `docx` or `odt` is built. The
10263 constituent files have been moved from `extra-source-files` to
10264 `data-files`, and `reference.docx` and `reference.odt` have been
10265 removed. Users can create their own `reference.docx` or
10266 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
10267 `make-reference-files.hs` has been removed, simplifying the build
10270 * Don't include generated man pages in extra-source-files (#2189).
10272 * Bumped upper bound for aeson.
10274 * ConTeXt writer: create internal link anchors for Div elements with
10275 identifiers. (This is needed for linked citations to work.)
10277## pandoc 1.14 (2015-05-27)
10281 * Added `commonmark` as input and output format.
10283 * Added `--verbose` flag for debugging output in PDF production (#1840,
10286 * Allow wildcards in `--epub-embed-font` arguments (#1939).
10288 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
10290 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
10291 This is enabled by default for those markdown flavors that
10292 support reading shortcut reference links, namely: `markdown`,
10293 `markdown_strict`, `markdown_github`, `markdown_php`.
10294 If the extension is enabled, the reader parses shortcut reference
10295 links like `[foo]`, and the writer creates such links unless doing
10296 so would cause problems. Users of markdown flavors that support
10297 shortcut reference links should not notice a difference in reading
10298 markdown, but the markdown pandoc produces may differ.
10299 If shortcut links are not desired, the extension can be disabled
10302### Behavior changes
10304 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
10305 A "dirty" TOC is created at the beginning of document.
10306 It can be regenerated after the document has been opened.
10308 * An implicit `--filter pandoc-citeproc` is now triggered only when the
10309 `--bibliography` option is used, and not when the `bibliography`
10310 field in metadata is specified (#1849).
10314 + Reference links with `implicit_header_references` are no longer
10315 case-sensitive (#1606).
10316 + Definition lists no longer require indentation for first line (#2087).
10317 Previously the body of the definition (after the `:` or `~` marker)
10318 needed to be in column 4. This commit relaxes that requirement,
10319 to better match the behavior of PHP Markdown Extra. So, now
10320 this is a valid definition list:
10324 + Resolve a potentially ambiguity with table captions:
10334 Is "bar" a definition, or the caption for the table? We'll count
10335 it as a caption for the table.
10336 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
10337 Markdown Extra. Note: If you have been using headerless pipe tables,
10338 this change may cause existing tables to break.
10339 + Allow pipe tables with header but no body (#2017).
10340 + Allow a digit as first character of a citation key (Matthias Troffaes).
10341 See https://github.com/jgm/pandoc-citeproc/issues/97
10345 + Don't limit includes to `.tex` extension (#1882).
10346 If the extension is not `.tex`, it must be given explicitly in
10347 the `\input` or `\include`.
10351 + Allow numbering in the style file. This allows inherited styles
10352 with numbering (lists) (Jesse Rosenthal).
10356 + Support smart punctuation (Craig Bosma).
10357 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
10358 `:noexport:` tag set are not exported. This mirrors org-mode.
10359 + Put header tags into empty spans (Albert Krewinkel, #2160).
10360 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
10361 Instead of being interpreted as part of the headline, the tags are now
10362 put into the attributes of empty spans. Spans without textual content
10363 won't be visible by default, but they are detectable by filters. They
10364 can also be styled using CSS when written as HTML.
10365 + Generalize code block result parsing (Albert Krewinkel).
10366 Previously, only code blocks were recognized as result blocks;
10367 now, any kind of block can be the result.
10369 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
10370 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
10374 + Add "inline" or "display" class to math spans (#1914).
10375 This allows inline and display math to be styled differently.
10376 + Include raw latex blocks if `--mathjax` specified (#1938).
10377 + Require highlighting-kate >= 0.5.14 (#1903).
10378 This ensures that all code blocks will be wrapped in a `div`
10379 with class `sourceCode`. Also, the default highlighting CSS
10380 now adds `div.sourceCode { x-overflow: auto; }`, which means
10381 that code blocks (even with line numbers) will acquire a scroll
10382 bar on screens too small to display them (e.g. mobile phones).
10383 See also jgm/highlighting-kate#65.
10387 + Use a declaration for tight lists (Jose Luis Duran, Joseph
10388 Harriott). Previously, pandoc hard-coded some commands to make
10389 tight lists in LaTeX. Now we use a custom command instead,
10390 allowing the styling to be changed in a macro in the header.
10391 (Note: existing templates may need to be modified to include
10392 the definition of this macro. See the current template.)
10393 + Beamer output: if the header introducing a slide has the
10394 class `fragile`, add the `[fragile]` option to the slide (#2119).
10396 * MediaWiki writer:
10398 + Use `File:` instead of the deprecated `Image:` for images and
10399 other media files (Greg Rundlett).
10403 + Render a `Div (id,_,_) [Para _]` element as a `para` element
10404 with an `id` attribute. This makes links to citations work in
10405 DocBook with pandoc-citeproc.
10409 + Normalize headings to sequential levels (Nikolay Yakimov).
10410 This is pretty much required by docutils.
10411 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
10412 + Better handling of raw latex inline (#1961). We use
10413 `` :raw-latex:`...` `` and add a definition for this role to
10418 + Remove `linear=no` from cover `itemref` (#1609).
10419 + Don't use `sup` element for epub footnotes (#1995).
10420 Instead, just use an a element with class `footnoteRef`.
10421 This allows more styling options, and provides better results
10422 in some readers (e.g. iBooks, where anything inside the a
10423 tag breaks popup footnotes).
10424 + Take TOC title from `toc-title` metadata field.
10428 + Implemented `FirstParagraph` style (Jesse Rosenthal).
10429 Following the ODT writer, we add the `FirstParagraph` style to the
10430 first text paragraph following an image, blockquote, table, heading,
10431 or beginning of document. This allows it to be styled differently.
10432 The default is for it to be the same as `Normal`.
10433 + Added `BodyText` style (Jesse Rosenthal).
10434 We apply a `BodyText` style to all unstyled paragraphs. This is,
10435 essentially, the same as `Normal`, except that since not everything
10436 inherits from `BodyText` (the metadata won't, for example, or
10437 the headers or footnote numbers), we can change the text in the body
10438 without having to make exceptions for everything. If we do want to
10439 change *everything*, we can still do it through `Normal`.
10440 + Altered `Blockquote` style slightly (Jesse Rosenthal).
10441 Since `BlockQuote` derives from `BodyText`, we just want to specify
10442 by default that it won't indent, regardless of what `BodyText` does.
10443 Note that this will not produce any visible difference in the default
10445 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
10446 + Added a style to figure images (Nikolay Yakimov).
10447 Figures with empty captions use style `Figure`.
10448 Figures with nonempty captions use style `Figure with Caption`, which
10449 is based on `Figure`, and additionally has `keepNext` set.
10453 + Added figure captions (Nikolay Yakimov). The following styles are
10455 `Figure` -- for figure with empty caption),
10456 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
10457 `FigureCaption` (based on `Caption`) -- for figure captions.
10458 Also, `TableCaption` (based on `Caption`) is used for table captions.
10462 * New `Text.Pandoc.Error` module with `PandocError` type
10463 (Matthew Pickering).
10465 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
10466 (Matthew Pickering). This allows better handling of errors.
10468 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
10470 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
10472 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
10473 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
10474 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
10477 * New `Ext_shortcut_reference_links` constructor for `Extension`
10478 (Konstantin Zudov).
10484 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
10485 + Check for tex macros after indented code (#1973).
10486 + Rewrote `charsInBalancedBrackets` for efficiency.
10487 + Make sure a closing `</div>` doesn't get included in a
10488 definition list item (#2127).
10489 + Don't parse bracketed text as citation if it might be a link,
10490 image, or footnote (Nikolay Yakimov).
10491 + Require space after key in mmd title block (#2026, Nikolay
10492 Yakimov). Require space after key-value delimiter colon in mmd title
10494 + Require nonempty value in mmd title block (Nikolay Yakimov).
10495 + Disable all metadata block extensions when parsing
10496 metadata field values (#2026, Nikolay Yakimov). Otherwise we
10497 could get a mmd title block inside YAML metadata, for example.
10501 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
10502 + Handle tables with `<th>` in body rows (#1859, mb21).
10503 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
10504 to see if the input starts with `<!--`. If not, it's bogus comment
10505 mode and we fail `htmlTag`.
10506 + Handle `base` tag; if it has an `href` value, this is added to
10507 all relative URLs in links and images.
10511 + Look inside "info" elements for section titles (#1931).
10515 + Parse images in deprecated vml format (Jesse Rosenthal).
10516 + Allow sub/superscript verbatims (Jesse Rosenthal).
10517 Verbatim usually shuts off all other run styles, but we don't want it
10518 to shut off sub/superscript.
10522 + Handle `tabular*` environment (#1850).
10523 Note that the table width is not actually parsed or taken into
10524 account, but pandoc no longer chokes on it.
10525 + Ignore options in `\lstinline` rather than raising error (#1997).
10526 + Add some test cases for simple tables (Mathias Schenner).
10527 + Handle valign argument in tables (Mathias Schenner) (currently
10528 we just ignore this).
10529 + Allow non-empty colsep in tables (Mathias Schenner).
10530 The `tabular` environment allows non-empty column separators
10531 with the "@{...}" syntax. Previously, pandoc would fail to
10532 parse tables if a non-empty colsep was present. With this
10533 commit, these separators are still ignored, but the table gets
10534 parsed. A test case is included.
10535 + Recognize `\newpage` as a block command.
10536 + Allow block content in `\title{}` (#2001).
10537 + Check for block-level newcommand aliases in blockCommand (Nikolay
10539 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
10540 + Properly gobble spaces after `\\` (#2007).
10544 + Handle newlines in table cells, and empty cells (#1919).
10548 + Allow image links with non-image targets (Hans-Peter Deifel).
10549 This matches behavior of Org-Mode for links like
10550 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
10554 + Don't print empty id attributes (thanks to Steve Horne).
10558 + Fixed list-style-type for numbered example lists.
10559 Should be "decimal," not "example" (#1902).
10560 + Do not omit missing `alt` attribute on `img` tag (#1131,
10562 + Allow multiple colgroups in table (#2122).
10563 + In revealjs, ensure that lists in speaker notes don't add "fragment"
10564 classes, which can cause additional keypresses to be needed to
10565 advance a slide (#1394).
10569 + Don't escape `$` in URL (#1913).
10570 + Don't use listings in headers (Matthew Pickering, #1963).
10571 + Recognize book documentclass if set in metadata (#1971).
10572 This sets `--chapters` implicitly if the documentclass in metadata
10573 is a book documentclass. Previously this was done only if a book
10574 documentclass was set in a variable.
10575 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
10576 + Make `mainlang` work when `lang` is in metadata (#2174).
10580 + Fix wrapping by using breakable spaces (Tim Lin).
10584 + Fixed toc depth in RST writer. Previously the depth was being
10585 rendered as a floating point number with a decimal point.
10589 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
10590 compatibility with original Markdown. We now escape `<` and `>`
10591 with entities. Also, we now backslash-escape square brackets.
10592 + Avoid introducing spurious list items through wrapping (#1946).
10593 + Don't emit span tags if plain or raw HTML disabled.
10595 * MediaWiki writer:
10597 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
10601 + Insert some needed blank lines (#1860).
10602 + Avoid wrapping after list marker (#1858).
10606 + Properly handle internal links to IDs in spans, divs (#1884).
10607 + Use plain writer for metadata dc: fields (#2121).
10608 This gives better results when we have, e.g. multiple paragraphs.
10609 Note that tags aren't allowed in these fields.
10610 + Properly handle image links without an extension (#1855).
10611 + Improved chapter splitting and internal link rewriting (#1887,
10612 #2162, #2163). This will ensure that internal links work and
10613 that the references section produced by pandoc-citeproc is
10614 in its own chapter.
10615 + Fixed handling of svg images (#2183).
10619 + Better handling of raw blocks and inlines (#1951).
10620 Previously these were always escaped and printed verbatim.
10621 Now they are ignored unless the format is `icml`, in which
10622 case they are passed through unescaped.
10623 + Fixed image URIs in ICML output (gohai).
10627 + Raise error if loadstring returns an error status.
10628 + Raise `PandocLuaException` instead of using 'error'.
10629 Eventually we'll change the return type so that no exception
10630 is involved, but at least this can be trapped.
10631 + Use UTF-8 aware bytestring conversion.
10632 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
10633 Also factored out ByteString, since it's only used as an intermediate
10638 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
10639 + Filter out illegal XML characters (#1992, Matthew Pickering).
10640 + Added `noProof` to docx syntax highlighting `SourceCode` style.
10641 + Added footnotes id -1 and 0 (Jesse Rosenthal).
10642 Word uses, by default, footnotes with id -1 and 0 for separators. If a
10643 user modifies `reference.docx`, they will end up with a `settings.xml`
10644 file that references these footnotes, but no such footnotes in the
10645 document. This will produce a corruption error. Here we add these to the
10646 document and `settings.xml` file, so future modifications won't break
10648 + Handle lists correctly inside table cells (Jesse Rosenthal).
10649 Previously we didn't transform lists inside table cells.
10650 + Set firstRow information in tables (Nikolay Yakimov).
10651 + Don't replace `SourceCode` style in `reference.docx` if it is defined
10652 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
10653 any `SourceCode` and `*Tok` styles in `reference.docx`.
10654 + Attempt to match international style names (#1607, Nikolay Yakimov).
10655 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
10656 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
10657 `Definition`, `First Paragraph`.
10658 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
10659 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
10660 `Footnote Ref -> Footnote Reference`.
10661 + Added `Caption` style (Nikolay Yakimov).
10662 + Changed these styles' inheritance (Nikolay Yakimov):
10663 `Image Caption <- Caption`, `Table Caption <- Caption`.
10664 + Remove `SourceCode` style from `reference.docx` (#1872).
10665 This is added automatically by the docx writer.
10666 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
10668 * `Text.Pandoc.PDF`
10670 + Don't suggest "Try xelatex" if xelatex already in use (mb21, #1832).
10671 + More comprehensible errors on image conversion (#2067).
10672 EPS can't be supported without shelling out to something like
10673 ImageMagick, but at least we can avoid mysterious error messages.
10675 * `Text.Pandoc.Shared`:
10677 + Make safeRead safe (#1801, Matthew Pickering).
10678 + Addded `mapLeft`, `hush` (Matthew Pickering).
10680 * `Text.Pandoc.Pretty`:
10682 + Remove partial function (Matthew Pickering).
10684 * `Text.Pandoc.SelfContained`:
10686 + Add `;charset=utf-8` to script mime type if missing (#1842).
10687 + Improved building of data URIs (#1940). Now base64 is used except
10688 for `text/*` mime types.
10689 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
10690 + Properly handle data URIs in css urls (#2129).
10691 Use a proper CSS parser (adds dependency on `text-css`).
10693 * `Text.Pandoc.UTF8`:
10695 + Better handling of bare CRs in input files (#2132).
10696 Previously we just stripped them out; now we convert
10697 other line ending styles to LF line endings.
10699 * `Text.Pandoc.ImageSize`:
10701 + Fixed some exif header parsing bugs (#1834).
10702 + Make imageSize return an Either, not a Maybe (#1834).
10703 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
10704 parse failure (rather than `error`).
10705 + Improved warnings when image size can't be determined.
10706 + Removed error landmines (Matthew Pickering).
10708 * Added woff2 to MIME types (Alfred Wechselberger).
10710 * pandoc: When a binary input format is used, warn that file
10711 arguments past the first one are being ignored (Matthew Pickering).
10713### Template changes
10717 + Degrade gracefully if `\paragraph` not defined.
10718 + Include `grffile` together with `graphicx` (#2074).
10719 This properly handles filenames containing spaces and dots.
10720 + Redefine `\paragraph`, `\subparagraph`... to behave more
10721 like section headers (#1658).
10722 + Import hyperref before polyglossia to avoid an error with xelatex,
10723 "please load package hyperref before bidi package" (Nick Bart).
10724 + Added `toccolor` variable to control link color in toc (Kaixhin).
10726 * LaTeX, Beamer templates:
10728 + Provide `\tightlist`, which is now used by the LaTeX writer.
10729 + Use polyglossia in beamer (#85).
10730 + Use `bibliography` instead of `biblio-files`
10731 (#1661). Also use `\addbibresource` instead of `\bibliography` for
10733 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
10734 variable that is derived from a comma-separated list in `lang`;
10735 the last language is `mainlang` and the others are `otherlang`.
10739 + Use `div`, not `p`, for "rights" on title page.
10740 + Added header-includes, include-before, include-after (#1987).
10742 * OpenDocument template:
10744 + Use `text:p` instead of `text:h` for title.
10745 Using `text:h` causes problems with numbering. Closes #2059.
10746 Thansk to @nkalvi for diagnosing this.
10748 * reveal.js template:
10750 + Link to non-minified css, js. The minified versions no longer
10751 ship with the library.
10752 + Correctly include style CSS (#1949).
10753 + New configurable options options: `center`, `maxScale`, `slideNuber`
10754 (Dmitry Smirnov, pandoc-templates#89).
10755 + Moved custom CSS after theme. This allows custom CSS to modify
10756 themes, instead of being replaced by them.
10757 + Allow `center` to be set to false.
10759### Under the hood improvements
10761 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
10762 Yakimov). Instead the repository now includes the component text files,
10763 and the zipped binaries are built from these using a helper
10764 program, `make-reference-files`. This should make maintenance of
10765 these components easier going forward.
10767 * `Text.Pandoc.Parsing`:
10769 + Added new `<+?>` combinator (Nikolay Yakimov).
10770 + Added `stateHeaderKeys` to `ParserState`.
10772 * `make_deb.sh` fixes:
10774 + Detect architecture.
10775 + Add Installed-Size to debian package control file (#1900).
10776 + Use `fakeroot` to get permissions right.
10777 + Use `mkdir` and `cp` instead of `install`.
10778 + Set permissions of directories to 755.
10779 + Install in `/usr` rather than `/usr/local`.
10780 + Compress man pages.
10781 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
10783 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
10784 to assist with transition to `time` 1.5.
10786 * Updated CONTRIBUTING.md with information about issue tags (Matthew
10789 * Updated travis installs to the new sudo-less syntax (Tim Lin).
10791 * Updated dependency version bounds.
10793 * EPUB tests: don't use `joinPath`, which varies across platforms.
10794 Instead, use a forward-slash to join paths, regardless of the
10795 platform. This matches the way `MediaBag` now works.
10797 * Clarify JSON input and output in usage message (Caleb McDaniel).
10799 * Improved INSTALL instructions.
10801 * Always build man pages. Removed make-pandoc-man-pages flag.
10803 * Makefile: removed man target, now that we generate man pages by default.
10807 + Fixed typos (J. Lewis Muir).
10808 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
10809 + Added note on in-field markup in biblio databases (Nick Bart).
10810 + Fixed misleading example of raw HTML block.
10811 + Various minor formatting and consistency fixes for the program
10812 options (Andreas Lööw).
10813 + Made definition lists for options all "loose" for consistency.
10814 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
10815 `--bib2json` and `--bib2yaml` options (Nick Bart).
10816 + Removed obsolete reference to `mods2yaml` (Nick Bart).
10817 + Added section on syntax highlighting.
10818 + Documented `toccolor` variable.
10820## pandoc 1.13.2.1 (2015-04-15)
10822 * Updated to build with ghc 7.10.1.
10824 * Bumped package upper bounds for filepath, blaze-html, blaze-markup.
10826## pandoc 1.13.2 (2014-12-20)
10828 * TWiki Reader: add new new twiki reader (API chaneg, Alexander Sulfrian).
10832 + Better handling of paragraph in div (#1591).
10833 Previously text that ended a div would be parsed as Plain
10834 unless there was a blank line before the closing div tag.
10835 + Don't treat a citation as a reference link label (#1763).
10836 + Fix autolinks with following punctuation (#1811).
10837 The price of this is that autolinked bare URIs can no longer
10838 contain `>` characters, but this is not a big issue.
10839 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
10840 + Allow `startnum` to work without `fancy_lists`. Formerly
10841 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
10843 * RST reader (all Daniel Bergey):
10845 + Parse quoted literal blocks (#65). RST quoted literal blocks are
10846 the same as indented literal blocks (which pandoc already supports)
10847 except that the quote character is preserved in each line.
10848 + Parse RST class directives. The class directive accepts one or more
10849 class names, and creates a Div value with those classes. If the
10850 directive has an indented body, the body is parsed as the children of
10851 the Div. If not, the first block following the directive is made a
10852 child of the Div. This differs from the behavior of rst2xml, which
10853 does not create a Div element. Instead, the specified classes are
10854 applied to each child of the directive. However, most Pandoc Block
10855 constructors to not take an Attr argument, so we can't duplicate this
10857 + Warn about skipped directives.
10858 + Literal role now produces Code. Code role should have "code" class.
10859 + Improved support for custom roles
10861 - Added `sourceCode` to classes for `:code:` role, and anything
10862 inheriting from it.
10863 - Add the name of the custom role to classes if the Inline
10864 constructor supports Attr.
10865 - If the custom role directive does not specify a parent role,
10866 inherit from the `:span:` role.
10868 This differs somewhat from the `rst2xml.py` behavior. If a custom
10869 role inherits from another custom role, Pandoc will attach both
10870 roles' names as classes. `rst2xml.py` will only use the class of
10871 the directly invoked role (though in the case of inheriting from a
10872 `:code:` role with a `:language:` defined, it will also provide the
10873 inherited language as a class).
10874 + Warn about ignored fields in role directives.
10878 + Parse label after caption into a span instead of
10879 inserting an additional paragraph of bracketed text (#1747).
10880 + Parse math environments as inline when possible (#1821).
10881 + Better handling of `\noindent` and `\greektext` (#1783).
10882 + Handle `\texorpdfstring` more gracefully.
10883 + Handle `\cref` and `\sep` (Wikiwide).
10884 + Support `\smartcite` and `\Smartcite` from biblatex.
10888 + Retain display type of MathML output (#1719, Matthew Pickering).
10889 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
10890 + Make `embed` tag either block or inline (#1756).
10894 + Handle `keycombo`, `keycap` (#1815).
10895 + Get string content in inner tags for literal elements (#1816).
10896 + Handle `menuchoice` elements better, with a `>` between (#1817).
10897 + Include `id` on section headers (#1818).
10898 + Document/test "type" as implemented (Brian O'Sullivan).
10899 + Add support for calloutlist and callout (Brian O'Sullivan).
10900 We treat a calloutlist as a bulleted list. This works well in practice.
10901 + Add support for `classname` (Bryan O'Sullivan).
10905 + Fix window path for image lookup (Jesse Rosenthal).
10906 Don't use os-sensitive "combine", since we always want the paths in our
10907 zip-archive to use forward-slashes.
10908 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
10909 When users number their headers, Word understands that as a single item
10910 enumerated list. We make the assumption that such a list is, in fact,
10912 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
10913 There could be new top-level headers after making lists, so we have to
10914 rewrite links after that.
10915 + Use polyglot header list (Jesse Rosenthal).
10916 We're just keeping a list of header formats that different languages
10917 use as their default styles. At the moment, we have English, German,
10918 Danish, and French. We can continue to add to this.
10919 This is simpler than parsing the styles file, and perhaps less
10920 error-prone, since there seems to be some variations, even within a
10921 language, of how a style file will define headers.
10922 + Remove header class properly in other langs (Jesse Rosenthal).
10923 When we encounter one of the polyglot header styles, we want to remove
10924 that from the par styles after we convert to a header. To do that, we
10925 have to keep track of the style name, and remove it appropriately.
10926 + Account for external link URLs with anchors. Previously, if a URL
10927 had an anchor, the reader would incorrectly identify it as an
10928 internal link and return only the anchor as URL. (Caleb McDaniel)
10929 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
10933 + Added state changing blanklines (Jesse Rosenthal).
10934 This allows us to emphasize at the beginning of a new paragraph (or, in
10935 general, after blank lines).
10936 + Fixed bug with bulleted lists:
10942 was being parsed as a list, even though an unindented `*`
10943 should make a heading. See
10944 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
10945 + Org reader: absolute, relative paths in link (#1741, Albert
10946 Krewinkel). The org reader was too restrictive when parsing links;
10947 some relative links and links to files given as absolute paths
10948 were not recognized correctly.
10949 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
10950 This is important for use in gitit, which uses empty links
10952 + Respect indent when parsing Org bullet lists (#1650, Timothy
10953 Humphries). Fixes issue with top-level bullet list parsing.
10954 + Fix indent issue for definition lists (Timothy Humphries,
10955 see #1650, #1698, #1680).
10956 + Parse multi-inline terms correctly in definition list (#1649,
10957 Matthew Pickering).
10958 + Fix rules for emphasis recognition (Albert Krewinkel).
10959 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
10960 strings. This is wrong, as `,` and `'` are forbidden border chars and
10961 may not occur on the inner border of emphasized text.
10962 + Drop COMMENT document trees (Albert Krewinkel).
10963 Document trees under a header starting with the word `COMMENT` are
10964 comment trees and should not be exported. Those trees are dropped
10966 + Properly handle links to `file:target` (Albert Krewinkel).
10967 Org links like `[[file:target][title]]` were not handled correctly,
10968 parsing the link target verbatim. The org reader is changed such that
10969 the leading `file:` is dropped from the link target (see #756, #1812).
10970 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
10971 Org supports special symbols which can be included using LaTeX syntax,
10972 but are actually MathML entities. Examples for this are
10973 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
10974 or `\copy` (the copyright sign ©)
10978 + URI handling improvements. Now we outsource most of the work to
10979 `fetchItem'`. Also, do not include queries in file extensions (#1671).
10983 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
10984 + Handle consecutive linebreaks (#1733).
10985 + Protect graphics in headers (Jesse Rosenthal).
10986 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
10987 + Put `~` before header in list item text (Jesse Rosenthal).
10988 Because of the built-in line skip, LaTeX can't handle a section header
10989 as the first element in a list item.
10990 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
10991 + Better handling of display math in simple tables (#1754).
10992 We convert display math to inline math in simple tables,
10993 since LaTeX can't deal with display math in simple tables.
10994 + Escape spaces in code (#1694, Bjorn Buckwalter).
10996 * MediaWiki writer:
10998 + Fixed links with URL = text. Previously these were rendered as bare
10999 words, even if the URL was not an absolute URL (#1825).
11003 + Don't force all citations into footnotes.
11007 + Add blankline at end of output (#1732, Matthew Pickering).
11011 + Ensure blank line after figure.
11012 + Avoid exces whitespace after last list item (#1777).
11013 + Wrap line blocks with spaces before continuations (#1656).
11014 + Fixed double-rendering of footnotes in RST tables (#1769).
11018 + Better handling of block quotes. This change ensures that
11019 multiple paragraph blockquotes are rendered using native `>`
11020 rather than as HTML (#1738).
11021 + Fix external images (#1739). Preface relative links with ":",
11022 absolute URIs without. (Timothy Humphries)
11026 + Use protocol-relative URL for mathjax.
11027 + Put newline btw img and caption paragraph.
11028 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
11029 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
11030 This adds `KaTeX` to `HTMLMathMethod` (API change).
11031 + Don't double render when `email-obfuscation=none` (#1625, Matthew
11033 + Make header attributes work outside top level (#1711).
11034 Previously they only appeared on top level header elements.
11035 Now they work e.g. in blockquotes.
11039 + Correctly handle images without extensions (#1729).
11040 + Strip querystring in ODT write (#1682, Todd Sifleet).
11044 + Add newline to output.
11048 + Don't add `sourceURL` to absolute URIs (#1669).
11049 + Don't use unsupported `opf:title-type` for epub2.
11050 + Include "landmarks" section in nav document for epub3 (#1757).
11051 + Removed playOrder from navpoint elements in ncx file (#1760).
11052 These aren't required, and they make manual modification of epubs
11054 + Extract title even from structured title.
11055 + Don't include nav node in spine unless `--toc` was requested.
11056 Previously we included it in the spine with `linear="no"`, leading
11057 to odd results in some readers (#1593).
11058 + Fixed absolute URI detection (#1672).
11059 + Correctly resolve relative URIs (#1671).
11060 + Use regular page template for `nav.xhtml`, including doctype (#1759).
11064 + Put docx table captions above tables (#1641, Nikolay Yakimov).
11065 + Get the page width from the reference docx file, and use
11066 it to scale images that are too large to fit (Grégory Bataille).
11067 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
11068 are inferred based on `<w:name val="heading #">` fallback, if there
11069 are no en-US "Heading#" styles
11070 + Look in user data dir for archive `reference.docx`.
11071 + Renumber header and footer relationships to avoid collisions (Jesse
11072 Rosenthal). We previously took the old relationship names of the
11073 headers and footer in secptr. That led to collisions. We now make
11074 a map of availabl names in the relationships file, and then rename
11079 + Add function toLabel (Mark Szepieniec).
11080 This function can be used to sanitize reference labels so that
11081 they do not contain any of the illegal characters \#[]",{}%()|= .
11082 Currently only Links have their labels sanitized, because they
11083 are the only Elements that use passed labels.
11085 * `Text.Pandoc.Shared`:
11087 + Moved import of `toChunks` outside of CPP conditional (#1590).
11088 + Fix `inDirectory` to reset to the original directory in case
11089 an exception occurs (Freiric Barral).
11093 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
11094 Thanks to bluebirch.
11095 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
11097 + LaTeX template: Add shorthands=off to babel options (#1648).
11098 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
11099 This aids styling, making it possible for example to set 0 margins
11100 on the title page (#1758).
11101 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
11102 Previously we just expected 'title', 'subtitle', 'author', 'date'.
11103 Now we still support those, but also support the format recommended
11104 for epub metadata in the pandoc README:
11111 text: An investigation of metadata
11119 text: doi:10.234234.234/33
11120 publisher: My Press
11121 rights: (c) 2007 John Smith, CC BY-NC
11124 * `Text.Pandoc.Templates.getDefaultTemplate`:
11125 don't fail when called with "fb2" (#1660).
11127 * `Text.Pandoc.Parsing`:
11129 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
11130 For example: `$x = \text{the $n$th root of $y$}` (#1677).
11131 + Change `parseFromString` to fail if not all input is consumed.
11132 (Matthew Pickering)
11133 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
11134 used by more readers (API change, Daniel Bergey).
11136 * `Text.Pandoc.Pretty`:
11138 + Improve performance of `realLength` (Matthew Pickering).
11139 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
11140 were getting at the end of markdown fragments (as well as rst, org,
11143 * `Text.Pandoc.MIME`:
11145 + Add mime type for WebVTT (Jason Ronallo).
11146 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
11147 This is needed for epub3 validation.
11149 * `Text.Pandoc.MediaBag`:
11151 + Fix Windows specific path problems (#1597).
11153 * `Text.Pandoc.Shared`:
11155 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
11157 * Link the test suite using `-threaded`.
11158 This allows the test suite to be run using `+RTS -N`.
11160 * Added `network` dependency under `network-uri` flag in test section.
11162 * Give better error messages when someone tries to convert from
11163 pdf, doc, odt (#1683).
11165 * Added `track` to list of tags treated by `--self-contained` (#1664).
11168## pandoc 1.13.1 (2014-08-30)
11170 * Fixed `--self-contained` with Windows paths (#1558).
11171 Previously `C:\foo.js` was being wrongly interpreted as a URI.
11173 * HTML reader: improved handling of tags that can be block or inline.
11174 Previously a section like this would be enclosed in a paragraph,
11175 with RawInline for the video tags (since video is a tag that can
11176 be either block or inline):
11178 <video controls="controls">
11179 <source src="../videos/test.mp4" type="video/mp4" />
11180 <source src="../videos/test.webm" type="video/webm" />
11182 The videos can not be played back on your system.<br/>
11183 Try viewing on Youtube (requires Internet connection):
11184 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
11189 This change will cause the video and source tags to be parsed
11190 as RawBlock instead, giving better output.
11191 The general change is this: when we're parsing a "plain" sequence
11192 of inlines, we don't parse anything that COULD be a block-level tag.
11196 + Be sensitive to user styles. Note that "Hyperlink" is
11197 "blacklisted," as we don't want the default underline styling to be
11198 inherited by all links by default (Jesse Rosenthal).
11199 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
11200 This makes to docx reader's native output fit with the way the markdown
11201 reader understands its markdown output.
11205 + Header is now parsed only if standalone flag is set (Matthew Pickering).
11206 + The header is now parsed as meta information. The first line is the
11207 `title`, the second is the `author` and third line is the `date`
11208 (Matthew Pickering).
11209 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
11210 + Fixed crash when reading from stdin.
11212 * Textile writer: Extended the range of cases where native textile
11213 tables will be used (as opposed to raw HTML): we now handle any
11214 alignment type, but only for simple tables with no captions.
11216 * EPUB writer: Don't use page-progression-direction in EPUB2, which
11217 doesn't support it. Also, if page-progression-direction not specified
11218 in metadata, don't include the attribute even in EPUB3; not including it
11219 is the same as including it with the value "default", as we did before.
11222 * Org writer: Accept example lines with indentation at the beginning
11227 + Refactor to use Reader monad (Matthew Pickering).
11228 + Avoid using raw HTML in table cells; instead, use `\\`
11229 instead of newlines (Jesse Rosenthal).
11230 + Properly handle HTML table cell alignments, and use spacing
11231 to make the tables look prettier (#1566).
11235 + Bibliography entries get `Bibliography` style (#1559).
11236 + Implement change tracking (Jesse Rosenthal).
11240 + Fixed a bug that caused a table caption to repeat across all pages
11242 + Improved vertical spacing in tables and made it customizable using
11243 standard lengths set by booktab. See
11244 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
11246 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
11247 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
11248 + Made horizontal rules more flexible (Jose Luis Duran).
11250 * Text.Pandoc.MIME:
11252 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
11253 Code cleanups (Artyom Kazak).
11257 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
11260 * Improved OSX build procedure.
11262 * Added `network-uri` flag, to deal with split of `network-uri` from
11265 * Fix build dependencies for the `trypandoc` flag, so that they are
11266 ignored if `trypandoc` flag is set to False (Gabor Pali).
11268 * Updated README to remove outdated claim that `--self-contained`
11269 looks in the user data directory for missing files.
11271## pandoc 1.13.0.1 (2014-08-17)
11275 + Fixed regression which bungled list numbering (#1544), causing
11276 all lists to appear as basic ordered lists.
11277 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
11278 Added a property to all table rows where the sum of column widths
11279 is specified in pct (fraction of 5000). This helps persuade Word
11280 to lay out the table with the widths we specify.
11282 * Fixed a bug in Windows 8 which caused pandoc not to find the
11283 `pandoc-citeproc` filter (#1542).
11285 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
11286 Most significantly, the reader now uses Builder, leading to some
11287 performance improvements.
11289 * HTML reader: Parse appropriately styled span as SmallCaps.
11291 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
11292 `superscript`, and `subscript` extensions, respectively, are
11293 deactivated (#1127).
11295 * Added `trypandoc` flag to build CGI executable used in the online
11298 * Makefile: Added 'quick', 'osxpkg' targets.
11300 * Updated README in templates to indicate templates license.
11301 The templates are dual-licensed, BSD3 and GPL2+.
11303## pandoc 1.13 (15 August 2014)
11307 * Added `docx` as an input format (Jesse Rosenthal). The docx
11308 reader includes conversion of native Word equations to pandoc
11309 LaTeX `Math` elements. Metadata is taken from paragraphs at the
11310 beginning of the document with styles `Author`, `Title`, `Subtitle`,
11311 `Date`, and `Abstract`.
11313 * Added `epub` as an input format (Matthew Pickering). The epub
11314 reader includes conversion of MathML to pandoc LaTeX `Math`
11317 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
11318 Txt2tags is a lightweight markup format described at
11319 <http://txt2tags.org/>.
11321 * Added `dokuwiki` as an output format (Clare Macrae).
11323 * Added `haddock` as an output format.
11325 * Added `--extract-media` option to extract media contained in a zip
11326 container (docx or epub) while adjusting image paths to point to the
11329 * Added a new markdown extension, `compact_definition_lists`, that
11330 restores the syntax for definition lists of pandoc 1.12.x, allowing
11331 tight definition lists with no blank space between items, and
11332 disallowing lazy wrapping. (See below under behavior changes.)
11334 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
11336 * Added extensions `native_spans` and `native_divs` to activate
11337 parsing of material in HTML span or div tags as Pandoc Span
11338 inlines or Div blocks.
11340 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
11341 Textile, and MediaWiki readers. This is an option intended
11342 for debugging parsing problems; ordinary users should not need
11345### Behavior changes
11347 * Changed behavior of the `markdown_attribute` extension, to bring
11348 it in line with PHP markdown extra and multimarkdown. Setting
11349 `markdown="1"` on an outer tag affects all contained tags,
11350 recursively, until it is reversed with `markdown="0"` (#1378).
11352 * Revised markdown definition list syntax (#1429). Both the reader
11353 and writer are affected. This change brings pandoc's definition list
11354 syntax into alignment with that used in PHP markdown extra and
11355 multimarkdown (with the exception that pandoc is more flexible about
11356 the definition markers, allowing tildes as well as colons). Lazily
11357 wrapped definitions are now allowed. Blank space is required
11358 between list items. The space before a definition is used to determine
11359 whether it is a paragraph or a "plain" element. **WARNING: This change
11360 may break existing documents!** Either check your documents for
11361 definition lists without blank space between items, or use
11362 `markdown+compact_definition_lists` for the old behavior.
11364 * `.numberLines` now works in fenced code blocks even if no language
11365 is given (#1287, jgm/highlighting-kate#40).
11367 * Improvements to `--filter`:
11369 + Don't search PATH for a filter with an explicit path.
11370 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
11371 the system path, even if there was a `caps.py` in the working directory.
11372 + Respect shebang if filter is executable (#1389).
11373 + Don't print misleading error message.
11374 Previously pandoc would say that a filter was not found,
11375 even in a case where the filter had a syntax error.
11379 + Parse `div` and `span` elements even without `--parse-raw`,
11380 provided `native_divs` and `native_spans` extensions are set.
11381 Motivation: these now generate native pandoc Div and Span
11382 elements, not raw HTML.
11383 + Parse EPUB-specific elements if the `epub_html_exts`
11384 extension is enabled. These include `switch`, `footnote`,
11385 `rearnote`, `noteref`.
11389 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
11390 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
11391 `\cite{Coffee}`), can be used without any further escaping (Albert
11394 * Textile reader and writer:
11396 + The `raw_tex` extension is no longer set by default. You can
11397 enable it with `textile+raw_tex`.
11401 + Support `equation`, `informalequation`, `inlineequation` elements with
11402 `mml:math` content. This is converted into LaTeX and put into a Pandoc
11405 * Revised `plain` output, largely following the style of Project
11408 + Emphasis is rendered with `_underscores_`, strong emphasis
11410 + Headings are rendered differently, with space to set them off,
11411 not with setext style underlines. Level 1 headers are ALL CAPS.
11412 + Math is rendered using unicode when possible, but without the
11413 distracting emphasis markers around variables.
11414 + Footnotes use a regular `[n]` style.
11418 + Horizontal rules are now a line across the whole page.
11419 + Prettier pipe tables. Columns are now aligned (#1323).
11420 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
11421 no longer emits any raw HTML, including span and div tags
11422 generated by Span and Div elements.
11423 + Use span with style for `SmallCaps` (#1360).
11427 + Autolinks now have class `uri`, and email autolinks have class
11428 `email`, so they can be styled.
11432 + Document formatting is carried over from `reference.docx`.
11433 This includes margins, page size, page orientation, header,
11434 and footer, including images in headers and footers.
11435 + Include abstract (if present) with `Abstract` style (#1451).
11436 + Include subtitle (if present) with `Subtitle` style, rather
11437 than tacking it on to the title (#1451).
11441 + Write empty span elements with an id attribute as org anchors.
11442 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
11446 + Put table captions above tables, to match the conventional
11447 standard. (Previously they appeared below tables.)
11448 + Use `\(..\)` instead of `$..$` for inline math (#1464).
11449 + Use `\nolinkurl` in email autolinks. This allows them to be styled
11450 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
11451 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
11452 curly quotes in the PDF output (#1364).
11453 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
11454 do not appear before the overlays in which their markers appear
11456 + Don't produce a `\label{..}` for a Div or Span element. Do produce
11457 a `\hyperdef{..}` (#1519).
11461 + If the metadata includes `page-progression-direction` (which can be
11462 `ltr` or `rtl`, the `page-progression-direction` attribute will
11463 be set in the EPUB spine (#1455).
11465 * Custom lua writers:
11467 + Custom writers now work with `--template`.
11468 + Removed HTML header scaffolding from `sample.lua`.
11469 + Made citation information available in lua writers.
11471 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
11472 adjacent `RawBlock`s when possible.
11476 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
11478 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
11481 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
11484 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
11487 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
11489 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
11490 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
11491 readers return a pair of a `Pandoc` document and a `MediaBag` with
11492 the media resources they contain. This can be extracted using
11493 `--extract-media`. Writers that incorporate media (PDF, Docx,
11494 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
11495 for resources in the `MediaBag` generated by the reader, in addition to
11496 the file system or web.
11498 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
11499 Renamed `readTeXMath'` to `texMathToInlines`.
11501 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
11502 `readers` now associates names of readers with `Reader`
11503 structures. This allows inclusion of readers, like the docx
11504 reader, that take binary rather than textual input.
11506 * `Text.Pandoc.Shared`:
11508 + Added `capitalize` (Artyom Kazak), and replaced uses of
11509 `map toUpper` (which give bad results for many languages).
11510 + Added `collapseFilePath`, which removes intermediate `.` and
11511 `..` from a path (Matthew Pickering).
11512 + Added `fetchItem'`, which works like `fetchItem` but searches
11513 a `MediaBag` before looking on the net or file system.
11514 + Added `withTempDir`.
11515 + Added `removeFormatting`.
11516 + Added `extractSpaces` (from HTML reader) and generalized its type
11517 so that it can be used by the docx reader (Matthew Pickering).
11519 + Added `normalizeInlines`, `normalizeBlocks`.
11520 + `normalize` is now `Pandoc -> Pandoc` instead of
11521 `Data a :: a -> a`. Some users may need to change their uses of
11522 `normalize` to the newly exported `normalizeInlines` or
11525 * `Text.Pandoc.Options`:
11527 + Added `writerMediaBag` to `WriterOptions`.
11528 + Removed deprecated and no longer used `readerStrict` in
11529 `ReaderOptions`. This is handled by `readerExtensions` now.
11530 + Added `Ext_compact_definition_lists`.
11531 + Added `Ext_epub_html_exts`.
11532 + Added `Ext_native_divs` and `Ext_native_spans`.
11533 This allows users to turn off the default pandoc behavior of
11534 parsing contents of div and span tags in markdown and HTML
11535 as native pandoc Div blocks and Span inlines.
11537 * `Text.Pandoc.Parsing`:
11539 + Generalized `readWith` to `readWithM` (Matthew Pickering).
11540 + Export `runParserT` and `Stream` (Matthew Pickering).
11541 + Added `HasQuoteContext` type class (Matthew Pickering).
11542 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
11543 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
11544 `applyMacros` (Matthew Pickering).
11545 + Added custom `token` (Matthew Pickering).
11546 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
11547 track of the ending tag we're waiting for when we're parsing inside
11549 + Added `stateMarkdownAttribute` to `ParserState`. This is used
11550 to keep track of whether the markdown attribute has been set in
11552 + Generalized type of `registerHeader`, using new type classes
11553 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
11554 Pickering). These allow certain common functions to be reused
11555 even in parsers that use custom state (instead of `ParserState`),
11556 such as the MediaWiki reader.
11557 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
11558 and generalized their types (Matthew Pickering).
11560 * `Text.Pandoc.Pretty`:
11563 + Added `blanklines`, which guarantees a certain number of blank lines
11570 + Fixed parsing of indented code in list items. Indented code
11571 at the beginning of a list item must be indented eight spaces
11572 from the margin (or edge of the container), or four spaces
11573 from the list marker, whichever is greater.
11574 + Fixed small bug in HTML parsing with `markdown_attribute`, which
11575 caused incorrect tag nesting for input like
11576 `<aside markdown="1">*hi*</aside>`.
11577 + Fixed regression with intraword underscores (#1121).
11578 + Improved parsing of inline links containing quote characters (#1534).
11579 + Slight rewrite of `enclosure`/`emphOrStrong` code.
11580 + Revamped raw HTML block parsing in markdown (#1330).
11581 We no longer include trailing spaces and newlines in the
11582 raw blocks. We look for closing tags for elements (but without
11583 backtracking). Each block-level tag is its own `RawBlock`;
11584 we no longer try to consolidate them (though `--normalize` will do so).
11585 + Combine consecutive latex environments. This helps when you have
11586 two minipages which can't have blank lines between them (#690, #1196).
11587 + Support smallcaps through span.
11588 `<span style="font-variant:small-caps;">foo</span>` will be
11589 parsed as a `SmallCaps` inline, and will work in all output
11590 formats that support small caps (#1360).
11591 + Prevent spurious line breaks after list items (#1137). When the
11592 `hard_line_breaks` option was specified, pandoc would formerly
11593 produce a spurious line break after a tight list item.
11594 + Fixed table parsing bug (#1333).
11595 + Handle `c++` and `objective-c` as language identifiers in
11596 github-style fenced blocks (#1318).
11597 + Inline math must have nonspace before final `$` (#1313).
11601 + Handle comments at the end of tables. This resolves the issue
11602 illustrated in <http://stackoverflow.com/questions/24009489>.
11603 + Correctly handle table rows with too few cells. LaTeX seems to
11604 treat them as if they have empty cells at the end (#241).
11605 + Handle leading/trailing spaces in `\emph` better.
11606 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
11607 so that we don't get things like `* hi *` in markdown output.
11608 Also applies to `textbf` and some other constructions (#1146).
11609 + Don't assume preamble doesn't contain environments (#1338).
11610 + Allow (and discard) optional argument for `\caption` (James Aspnes).
11614 + Fixed major parsing problem with HTML tables. Table cells were
11615 being combined into one cell (#1341).
11616 + Fixed performance issue with malformed HTML tables.
11617 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
11618 + Allow space between `<col>` and `</col>`.
11619 + Added `audio` and `source` in `eitherBlockOrInline`.
11620 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
11621 `blockTags` to `eitherBlockOrInline`.
11622 + `map` and `object` were mistakenly in both lists; they have been removed
11624 + Ignore `DOCTYPE` and `xml` declarations.
11626 * MediaWiki reader:
11628 + Don't parse backslash escapes inside `<source>` (#1445).
11629 + Tightened up template parsing.
11630 The opening `{{` must be followed by an alphanumeric or `:`.
11631 This prevents the exponential slowdown in #1033.
11632 + Support "Bild" for images.
11636 + Better handle elements inside code environments. Pandoc's document
11637 model does not allow structure inside code blocks, but at least this way
11638 we preserve the text (#1449).
11639 + Support `<?asciidoc-br?>` (#1236).
11643 + Fixed list parsing. Lists can now start without an intervening
11644 blank line (#1513).
11645 + HTML block-level tags that do not start a line are parsed as
11646 inline HTML and do not interrupt paragraphs (as in RedCloth).
11650 + Make tildes create inline code (#1345). Also relabeled `code` and
11651 `verbatim` parsers to accord with the org-mode manual.
11652 + Respect `:exports` header argument in code blocks (Craig Bosma).
11653 + Fixed tight lists with sublists (#1437).
11657 + Avoid excess whitespace in `nav.xhtml`. This should improve
11658 TOC view in iBooks (#1392).
11659 + Fixed regression on cover image.
11660 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
11661 because the metadata id was not correct. Now we derive the id from the
11662 actual cover image filename, which we preserve rather than using
11664 + Keep newlines between block elements. This allows
11665 easier diff-ability (#1424).
11666 + Use `stringify` instead of custom `plainify`.
11667 + Use `renderTags'` for all tag rendering. This properly handles tags
11668 that should be self-closing. Previously `<hr/>` would appear in EPUB
11669 output as `<hr></hr>` (#1420).
11670 + Better handle HTML media tags.
11671 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
11672 can have only one dc:date, so only the first one is used.
11676 + Correctly handle figures in notes. Notes can't contain figures in
11677 LaTeX, so we fake it to avoid an error (#1053).
11678 + Fixed strikeout + highlighted code (#1294).
11679 Previously strikeout highlighted code caused an error.
11683 + Improved detection of autolinks with URLs containing escapes.
11687 + Improved image embedding: `fetchItem'` is now used to get the
11688 images, and calculated image sizes are indicated in the RTF.
11689 + Avoid extra paragraph tags in metadata (#1421).
11693 + Deactivate "incremental" inside slide speaker notes (#1394).
11694 + Don't include empty items in the table of contents for
11695 slide shows. (These would result from creating a slide
11696 using a horizontal rule.)
11698 * MediaWiki writer:
11700 + Minor renaming of `st` prefixed names.
11704 + Double up emphasis and strong emphasis markers in intraword
11705 contexts, as required by asciidoc (#1441).
11709 + Avoid wrapping that might start a list, blockquote, or header (#1013).
11710 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
11711 + Don't use braced attributes for fenced code (#1416).
11712 If `Ext_fenced_code_attributes` is not set, the first class
11713 attribute will be printed after the opening fence as a bare word.
11714 + Separate adjacent lists of the same kind with an HTML comment (#1458).
11718 + Fixed treatment of data uris for images (#1062).
11722 + Use Compact style for empty table cells (#1353).
11723 Otherwise we get overly tall lines when there are empty
11724 table cells and the other cells are compact.
11725 + Create overrides per-image for `media/` in reference docx.
11726 This should be somewhat more robust and cover more types of images.
11727 + Improved `entryFromArchive` to avoid an unneeded parse.
11728 + Section numbering carries over from reference.docx (#1305).
11729 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
11730 we assign numbers based on the list marker styles.
11732 * `Text.Pandoc.Options`:
11734 + Removed `Ext_fenced_code_attributes` from `markdown_github`
11737 * `Text.Pandoc.ImageSize`:
11739 + Use default instead of failing if image size not found
11740 in exif header (#1358).
11741 + ignore unknown exif header tag rather than crashing.
11742 Some images seem to have tag type of 256, which was causing
11745 * `Text.Pandoc.Shared`:
11747 + `fetchItem`: unescape URI encoding before reading local file (#1427).
11748 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
11749 doing mime lookup, to improve mime type guessing.
11750 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
11751 other things are treated as relative URIs if `sourceURL` is `Just _`,
11752 otherwise as file paths on the local file system.
11753 + `fetchItem` now properly handles links without a protocol (#1477).
11754 + `fetchItem` now escapes characters not allowed in URIs before trying
11756 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
11758 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
11759 needed to resolve relative URLs when we fetch resources (#750).
11761 * `Text.Pandoc.Parsing`
11763 + Simplified `dash` and `ellipsis` (#1419).
11764 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
11765 + Generalized functions to use `ParsecT` (Matthew Pickering).
11766 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
11769### Template changes
11771 * Added haddock template.
11772 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
11773 be "advisory" in HTML5, but kindlegen seems to require them.
11774 * EPUB3: Put title page in section with `epub:type="titlepage"`.
11775 * LaTeX: Made `\subtitle` work properly (#1327).
11776 * LaTeX/Beamer: remove conditional around date (#1321).
11777 * LaTeX: Added `lot` and `lof` variables, which can be set to
11778 get `\listoftables` and `\listoffigures` (#1407). Note that
11779 these variables can be set at the command line with `-Vlot -Vlof`
11780 or in YAML metadata.
11782### Under the hood improvements
11784 * Rewrote normalize for efficiency (#1385).
11786 * Rewrote Haddock reader to use `haddock-library` (#1346).
11788 + This brings pandoc's rendering of haddock markup in line
11789 with the new haddock.
11790 + Fixed line breaks in `@` code blocks.
11791 + alex and happy are no longer build-depends.
11793 * Added `Text.Pandoc.Compat.Directory` to allow building against
11794 different versions of the `directory` library.
11796 + Added `Text.Pandoc.Compat.Except` to allow building against
11797 different verions of `mtl`.
11799 * Code cleanup in some writers, using Reader monad to avoid
11800 passing options parameter around (Matej Kollar).
11802 * Improved readability in `pandoc.hs`.
11804 * Miscellaneous code cleanups (Artyom Kazak).
11806 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
11809 * Changed `http-conduit` flag to `https`. Depend on `http-client`
11810 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
11811 depends on `conduit` via `yaml`.)
11813 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
11814 This change to highlighting-kate means that PHP fragments no longer need
11815 to start with `<?php`. It also fixes a serious bug causing failures with
11818 * Require latest `texmath`. This fixes `\tilde{E}` and allows
11819 `\left` to be used with `]`, `)` etc. (#1319), among many other
11822 * Require latest `zip-archive`. This has fixes for unicode path names.
11824 * Added tests for plain writer.
11826 * `Text.Pandoc.Templates`:
11828 + Fail informatively on template syntax errors.
11829 With the move from parsec to attoparsec, we lost good error
11830 reporting. In fact, since we weren't testing for end of input,
11831 malformed templates would fail silently. Here we revert back to
11832 Parsec for better error messages.
11833 + Use `ordNub` (#1022).
11837 + Made benchmarks compile again (Artyom Kazak).
11838 + Fixed so that the failure of one benchmark does not prevent others
11839 from running (Artyom Kazak).
11840 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
11841 + Changed benchmark to use only the test suite, so that benchmarks
11844 * Windows build script:
11846 + Add `-windows` to file name.
11847 + Use one install command for pandoc, pandoc-citeproc.
11848 + Force install of pandoc-citeproc.
11850 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
11851 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
11852 will extract it into a folder named `SOMETHING.pkg`, which it
11853 will interpret as a defective package (#1308).
11857 + Made headers for all extensions so they have IDs and can be
11858 linked to (Beni Cherniavsky-Paskin).
11859 + Fixed typos (Phillip Alday).
11860 + Fixed documentation of attributes (#1315).
11861 + Clarified documentation on small caps (#1360).
11862 + Better documentation for `fenced_code_attributes` extension
11864 + Documented fact that you can put YAML metadata in a separate file
11868## pandoc 1.12.4.2 (2014-05-14)
11870 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
11872 * Shared: `addMetaValue` now behaves slightly differently:
11873 if both the new and old values are lists, it concatenates their
11874 contents to form a new list.
11878 + Set `bibliography` in metadata from `\bibliography` or
11879 `\addbibresource` command.
11880 + Don't error on `%foo` with no trailing newline.
11884 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
11885 + Fix parsing of blank lines within blocks (Albert Krewinkel).
11886 + Support pandoc citation extension (Albert Krewinkel). This can
11887 be turned off by specifying `org-citation` as the input format.
11891 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
11892 other readers (Albert Krewinkel).
11894 * `Text.Pandoc.Parsing`:
11896 + Added `citeKey` (see above).
11897 + Added `HasLastStrPosition` type class and `updateLastStrPos`
11898 and `notAfterString` functions.
11900 * Updated copyright notices (Albert Krewinkel).
11902 * Added default.icml to data files so it installs with the package.
11906 + The binary is now built with options to ensure that it can be
11907 used with OSX 10.6+.
11908 + Moved OSX package materials to osx directory.
11909 + Added OSX package uninstall script, included in the zip container
11910 (thanks to Daniel T. Staal).
11912## pandoc 1.12.4 (2014-05-07)
11914 * Made it possible to run filters that aren't executable
11915 (#1096). Pandoc first tries to find the executable (searching
11916 the path if path isn't given). If it fails, but the file
11917 exists and has a `.py`, `.pl`, `.rb`, `.hs`, or `.php`
11918 extension, pandoc runs the filter using the appropriate
11919 interpreter. This should make it easier to use filters on
11920 Windows, and make it more convenient for everyone.
11922 * Added Emacs org-mode reader (Albert Krewinkel).
11924 * Added InDesign ICML Writer (mb21).
11926 * MediaWiki reader:
11928 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
11929 + Fixed bug in certain nested lists (#1213). If a level 2 list was
11930 followed by a level 1 list, the first item of the level 1 list
11932 + Handle table rows containing just an HTML comment (#1230).
11936 + Give better location information on errors, pointing to line
11937 numbers within included files (#1274).
11938 + LaTeX reader: Better handling of `table` environment (#1204).
11939 Positioning options no longer rendered verbatim.
11940 + Better handling of figure and table with caption (#1204).
11941 + Handle `@{}` and `p{length}` in tabular. The length is not actually
11942 recorded, but at least we get a table (#1180).
11943 + Properly handle `\nocite`. It now adds a `nocite` metadata
11944 field. Citations there will appear in the bibliography but not
11945 in the text (unless you explicitly put a `$nocite$` variable
11950 + Ensure that whole numbers in YAML metadata are rendered without
11951 decimal points. (This became necessary with changes to aeson
11952 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
11953 + Fixed regression on line breaks in strict mode (#1203).
11954 + Small efficiency improvements.
11955 + Improved parsing of nested `div`s. Formerly a closing `div` tag
11956 would be missed if it came right after other block-level tags.
11957 + Avoid backtracking when closing `</div>` not found.
11958 + Fixed bug in reference link parsing in `markdown_mmd`.
11959 + Fixed a bug in list parsing (#1154). When reading a raw list
11960 item, we now strip off up to 4 spaces.
11961 + Fixed parsing of empty reference link definitions (#1186).
11962 + Made one-column pipe tables work (#1218).
11966 + Better support for attributes. Instead of being ignored, attributes
11967 are now parsed and included in Span inlines. The output will be a bit
11968 different from stock textile: e.g. for `*(foo)hi*`, we'll get
11969 `<em><span class="foo">hi</span></em>` instead of
11970 `<em class="foo">hi</em>`. But at least the data is not lost.
11971 + Improved treatment of HTML spans (%) (#1115).
11972 + Improved link parsing. In particular we now pick up on attributes.
11973 Since pandoc links can't have attributes, we enclose the whole link in
11974 a span if there are attributes (#1008).
11975 + Implemented correct parsing rules for inline markup (#1175, Matthew
11977 + Use Builder (Matthew Pickering).
11981 + Better treatment of `formalpara`. We now emit the title (if present)
11982 as a separate paragraph with boldface text (#1215).
11983 + Set metadata `author` not `authors`.
11984 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
11985 Matthew Pickering).
11986 + Converted current meta information parsing in DocBook to a more
11987 extensible version which is aware of the more recent meta
11988 representation (Matthew Pickering).
11992 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
11994 + Treat processing instructions & declarations as block. Previously
11995 these were treated as inline, and included in paragraph tags in HTML
11996 or DocBook output, which is generally not what is wanted (#1233).
11997 + Updated `closes` with rules from HTML5 spec.
11998 + Use Builder (Matthew Pickering, #1162).
12002 + Remove duplicate `http` in PEP links (Albert Krewinkel).
12003 + Make rst figures true figures (#1168, CasperVector)
12004 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
12005 rST parser now supports: all built-in rST roles, new role definition,
12006 role inheritance, though with some limitations.
12007 + Use `author` rather than `authors` in metadata.
12008 + Better handling of directives. We now correctly handle field
12009 lists that are indented more than three spaces. We treat an
12010 `aafig` directive as a code block with attributes, so it can be
12011 processed in a filter (#1212).
12015 + Mark span contents with label if span has an ID (Albert Krewinkel).
12016 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
12017 + Handle line breaks in simple table cells (#1217).
12018 + Workaround for level 4-5 headers in quotes. These previously produced
12019 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
12020 This adds an `mbox{}` in these contexts to work around the problem.
12021 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
12022 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
12023 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
12024 ligature with LuaLaTeX but `\/` does.
12025 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
12027 * ConTeXt writer: Improved autolinks (#1270).
12031 + Improve handling of hard line breaks in Docbook writer
12032 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
12033 just for the newline character.
12034 + Don't let line breaks inside footnotes influence the enclosing
12035 paragraph (Neil Mayhew).
12036 + Distinguish tight and loose lists in DocBook output, using
12037 `spacing="compact"` (Neil Mayhew, #1250).
12039 * Docx writer: When needed files are not present in the user's
12040 `reference.docx`, fall back on the versions in the `reference.docx`
12041 in pandoc's data files. This fixes a bug that occurs when a
12042 `reference.docx` saved by LibreOffice is used. (#1185)
12046 + Include extension in epub ids. This fixes a problem with duplicate
12047 extensions for fonts and images with the same base name but different
12048 extensions (#1254).
12049 + Handle files linked in raw `img` tags (#1170).
12050 + Handle media in `audio` source tags (#1170).
12051 Note that we now use a `media` directory rather than `images`.
12052 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
12053 will both be incorporated into `content.opf` and the epub container.
12057 + Add colgroup around col tags (#877). Also affects EPUB writer.
12058 + Fixed bug with unnumbered section headings. Unnumbered section
12059 headings (with class `unnumbered`) were getting numbers.
12060 + Improved detection of image links. Previously image links with
12061 queries were not recognized, causing `<embed>` to be used instead
12064 * Man writer: Ensure that terms in definition lists aren't line wrapped
12069 + Use proper escapes to avoid unwanted lists (#980). Previously we used
12070 0-width spaces, an ugly hack.
12071 + Use longer backtick fences if needed (#1206). If the content contains a
12072 backtick fence and there are attributes, make sure longer fences are
12073 used to delimit the code. Note: This works well in pandoc, but github
12074 markdown is more limited, and will interpret the first string of three
12075 or more backticks as ending the code block.
12077 * RST writer: Avoid stack overflow with certain tables (#1197).
12079 * RTF writer: Fixed table cells containing paragraphs.
12083 + Correctly handle UTF-8 in custom lua scripts (#1189).
12084 + Fix bugs with lua scripts with mixed-case filenames and
12085 paths containing `+` or `-` (#1267). Note that `getWriter`
12086 in `Text.Pandoc` no longer returns a custom writer on input
12089 * AsciiDoc writer: Handle multiblock and empty table cells
12090 (#1245, #1246). Added tests.
12092 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
12094 * `Text.Pandoc.Shared`:
12096 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
12097 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
12098 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
12100 + `openURL`: set proxy with value of http_proxy env variable (#1211).
12101 Note: proxies with non-root paths are not supported, due to
12102 limitations in `http-conduit`.
12104 * `Text.Pandoc.PDF`:
12106 + Ensure that temp directories deleted on Windows (#1192). The PDF is
12107 now read as a strict bytestring, ensuring that process ownership will
12108 be terminated, so the temp directory can be deleted.
12109 + Use `/` as path separators in a few places, even on Windows.
12110 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
12111 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
12112 + Changes to error reporting, to handle non-UTF8 error output.
12114 * `Text.Pandoc.Templates`:
12116 + Removed unneeded datatype context (Merijn Verstraaten).
12118 + YAML objects resolve to "true" in conditionals (#1133).
12119 Note: If `address` is a YAML object and you just have `$address$`
12120 in your template, the word `true` will appear, which may be
12121 unexpected. (Previously nothing would appear.)
12123 * `Text.Pandoc.SelfContained`: Handle `poster` attribute in `video`
12126 * `Text.Pandoc.Parsing`:
12128 + Made `F` an instance of Applicative (#1138).
12129 + Added `stateCaption`.
12130 + Added `HasMacros`, simplified other typeclasses.
12131 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
12132 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
12133 + Changed the smart punctuation parser to return `Inlines`
12134 rather than `Inline` (Matthew Pickering).
12135 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
12136 from typeclasses of monads to typeclasses of states. This simplifies
12137 the instance definitions and provides more flexibility. Generalized
12138 type of `getOption` and added a default definition. Removed
12139 `askReaderOption`. Added `extractReaderOption`. Added
12140 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
12141 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
12142 `modifyHeaderMap`. Added `extractIdentifierList` and
12143 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
12144 for `getIdentifierList`, `putIdentifierList`, and
12145 `modifyIdentifierList`. The ultimate goal here is to allow different
12146 parsers to use their own, tailored parser states (instead of
12147 `ParserState`) while still using shared functions.
12149 * Template changes:
12151 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
12152 + LaTeX template: Add `linestretch` and `fontfamily` variables.
12153 + LaTeX template: Conditionalize author and date commands.
12154 + Beamer template: Consistent styles for figure and table captions
12156 + LaTeX and beamer template: Adjust widths correctly for oversized
12157 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
12158 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
12159 `upquote` only after `fontenc` (Yihui Xie).
12160 + Beamer template: Added caption package (#1200).
12161 + Beamer template: changes for better unicode handling (KarolS).
12162 + DocBook template: use `authorgroup` if there are authors.
12163 + revealjs template: Move `include-after` to end (certainlyakey).
12164 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
12166 * Bumped version bounds of dependencies.
12168 * Added a `--trace` command line option, for debugging backtracking
12169 bugs. So far this only works with the markdown reader.
12171 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
12173 * Updated travis script to test with multiple GHC versions.
12175 * Force failure of a Travis build if GHC produces warnings (Albert
12178 * Add `.editorconfig` (Albert Krewinkel).
12179 See <http://editorconfig.org/> for details.
12181 * Give more useful error message if '-t pdf' is specified (#1155).
12183 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
12185 * Allow `html4` as a synonym of `html` as a reader (it already works
12190 + Added an explanation of how to use YAML metadata to
12191 force items to appear in the bibliography without citations in
12192 the text (like LaTeX `\nocite`).
12193 + Added note to `--bibtex/--natbib`: not for use in making PDF
12194 (#1194, thanks to nahoj).
12195 + Added explanatory notes about `--natbib` and `--biblatex`.
12196 + Added specification of legal syntax for citation keys.
12197 + Fixed variable defaults documentation (Albert Krewinkel).
12199 * Removed copyright statements for files that have been removed
12200 (Albert Krewinkel).
12202 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
12203 They aren't needed at runtime. We keep README and COPYRIGHT in data
12204 to ensure that they'll be available on all systems on which pandoc
12207 * Use cabal sandboxes in Windows build script.
12209## pandoc 1.12.3.3 (2014-02-03)
12211 * To changes to source; recompiled tarball with latest alex and
12212 happy, so they will work with GHC 7.8.
12214## pandoc 1.12.3.2 (2014-02-03)
12216 * Bumped version bounds for blaze-html, blaze-markup.
12218 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
12221 * Fixed mediawiki ordered list parsing (#1122).
12223 * HTML reader: Fixed bug reading inline math with `$$` (#225).
12225 * Added support for LaTeX style literate Haskell code blocks in rST
12226 (Merijn Verstraaten).
12228## pandoc 1.12.3.1 (2014-01-14)
12230 * Relaxed version constraint on binary, allowing the use of binary 0.5.
12233## pandoc 1.12.3 (2014-01-10)
12235 * The `--bibliography` option now sets the `biblio-files` variable.
12236 So, if you're using `--natbib` or `--biblatex`, you can just use
12237 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
12239 * Don't run pandoc-citeproc filter if `--bibliography` is
12240 used together with `--natbib` or `--biblatex` (Florian Eitel).
12242 * Template changes:
12244 + Updated beamer template to include booktabs.
12245 + Added `abstract` variable to LaTeX template.
12246 + Put `header-includes` after `title` in LaTeX template (#908).
12247 + Allow use of `\includegraphics[size]` in beamer.
12248 This just required porting a macro definition from the default
12249 LaTeX template to the default beamer template.
12251 * `reference.docx`: Include `FootnoteText` style.
12252 Otherwise Word ignores the style, even when specified in the `pPr`.
12255 * `reference.odt`: Tidied `styles.xml`.
12257 * Relaxed version bounds for dependencies.
12259 * Added `withSocketsDo` around http conduit code in `openURL`,
12260 so it works on Windows (#1080).
12262 * Added `Cite` function to `sample.lua`.
12266 + Fixed regression in title blocks (#1089).
12267 If author field was empty, date was being ignored.
12268 + Allow backslash-newline hard line breaks in grid and
12269 multiline table cells.
12270 + Citation keys may now start with underscores, and may contain
12271 underscores adjacent to internal punctuation.
12275 + Add support for `Verb` macro (jrnold) (#1090).
12276 + Support babel-style quoting: `` "`..."' ``.
12278 * Properly handle script blocks in strict mode. (That is,
12279 `markdown-markdown_in_html_blocks`.) Previously a spurious
12280 `<p>` tag was being added (#1093).
12282 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
12287 + Factored out function for table cell creation.
12288 + Better treatment of footnotes in tables.
12289 Notes now appear in the regular sequence, rather than in the
12290 table cell. (This was a regression in 1.10.)
12292 * HTML reader: Parse name/content pairs from meta tags as metadata.
12295 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
12297 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
12299 * ODT writer: Use mathml for proper rendering of formulas.
12300 Note: LibreOffice's support for this seems a bit buggy. But
12301 it should be better than what we had before.
12303 * RST writer: Ensure no blank line after def in definition list (#992).
12305 * Markdown writer: Don't use tilde code blocks with braced attributes in
12306 `markdown_github` output. A consequence of this change is that the
12307 backtick form will be preferred in general if both are enabled. That
12308 is good, as it is much more widespread than the tilde form. (#1084)
12310 * Docx writer: Fixed problem with some modified reference docx files.
12311 Include `word/_rels/settings.xml.rels` if it exists, as well as other
12312 `rels` files besides the ones pandoc generates explicitly.
12316 + With `--toc`, headers no longer link to themselves (#1081).
12317 + Omit footnotes from TOC entries. Otherwise we get doubled
12318 footnotes when headers have notes!
12322 + Avoid duplicate notes when headings contain notes.
12323 This arose because the headings are copied into the metadata
12324 "title" field, and the note gets rendered twice. We strip the
12325 note now before putting the heading in "title".
12326 + Strip out footnotes from toc entries.
12327 + Fixed bug with `--epub-stylesheet`. Now the contents of
12328 `writerEpubStylesheet` (set by `--epub-stylesheet`)
12329 should again work, and take precedence over a stylesheet specified
12332 * `Text.Pandoc.Pretty`: Added `nestle`. API change.
12334 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
12336 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
12339 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
12340 we could only get size information for JFIF format, which led
12341 to squished images in Word documents. Closes #976.
12343 * Removed old `MarkdownTest_1.0.3` directory (#1104).
12346## pandoc 1.12.2.1 (2013-12-08)
12348 * Markdown reader: Fixed regression in list parser, involving
12349 continuation lines containing raw HTML (or even verbatim raw HTML).
12351## pandoc 1.12.2 (2013-12-07)
12353 * Metadata may now be included in YAML blocks in a markdown document.
12361 text: An investigation of metadata
12369 text: doi:10.234234.234/33
12370 publisher: My Press
12371 rights: (c) 2007 John Smith, CC BY-NC
12372 cover-image: img/mypic.jpg
12373 stylesheet: style.css
12376 Metadata may still be provided using `--epub-metadata`; it will
12377 be merged with the metadata in YAML blocks.
12381 + `meta` tags are now used instead of `opf` attributes for EPUB3.
12382 + Insert "svg" property as needed in opf (EPUB 3).
12383 + Simplify `imageTypeOf` using `getMimeType`.
12384 + Add properties attribute to `cover-image` item for EPUB 3.
12385 + Don't include node for `cover.xhtml` if no cover!
12386 + Ensure that same identifier is used throughout (#1044).
12387 If an identifier is given in metadata, we use that; otherwise
12388 we generate a random uuid.
12389 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
12390 Fixes an issue with Calibre putting the cover at the end of the book
12391 if the spine has `linear="no"`. Apparently this is best practice
12392 for other converters as well:
12393 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
12394 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
12395 + Allow partial dates: `YYYY`, `YYYY-MM`.
12397 * Markdown writer: Fix rendering of tight sublists (#1050).
12398 Previously a spurious blank line was included after a tight sublist.
12400 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
12401 This is reported to be necessary to avoid an error from recent
12402 versions of Libre Office when files contain more than one image
12403 Thanks to wmanley for reporting and diagnosing the problem.
12405 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
12406 Instead, let this be set in the template, using `\setupfloat`.
12407 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
12409 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
12411 * Fixed bug with markdown intraword emphasis. Closes #1066.
12413 * Docbook writer: Hierarchicalize block content in metadata.
12414 Previously headers just disappeared from block-level metadata
12415 when it was used in templates. Now we apply the 'hierarchicalize'
12416 transformation. Note that a block headed by a level-2 header will
12417 turn into a `<sect1>` element.
12419 * OpenDocument writer: Skip raw HTML (#1035).
12420 Previously it was erroneously included as verbatim text.
12422 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
12423 This allows better control of formatting, since the `<a>`
12424 tags have a distinguishing class (#1049).
12428 + Use mime type info returned by fetchItem.
12429 + Fixed core metadata (#1046).
12430 Don't create empty date nodes if no date given.
12431 Don't create multiple `dc:creator` nodes; instead separate by
12433 + Fix URL for core-properties in `_rels/.rels` (#1046).
12435 * Plain writer: don't print `<span>` tags.
12439 + Fix definition lists with internal links in terms (#1032).
12440 This fix puts braces around a term that contains an internal
12441 link, to avoid problems with square brackets.
12442 + Properly escape pdftitle, pdfauthor (#1059).
12443 + Use booktabs package for tables (thanks to Jose Luis Duran).
12445 * Updated beamer template. Now references should work properly
12446 (in a slide) when `--biblatex` or `--natbib` is used.
12450 + Parse contents of curly quotes or matched `"` as quotes.
12451 + Support `\textnormal` as span with class `nodecor`.
12452 This is needed for pandoc-citeproc.
12453 + Improved citation parsing. This fixes a run-time error that occurred
12454 with `\citet{}` (empty list of keys). It also ensures that empty keys
12455 don't get produced.
12457 * MediaWiki reader: Add automatic header identifiers.
12461 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
12463 + Recognize `svg` tags as block level content (thanks to MinRK).
12464 + Parse LaTeX math if appropriate options are set.
12468 + Yaml block must start immediately after `---`. If there's a blank
12469 line after `---`, we interpreted it as a horizontal rule.
12470 + Correctly handle empty bullet list items.
12471 + Stop parsing "list lines" when we hit a block tag.
12472 This fixes exponential slowdown in certain input, e.g.
12473 a series of lists followed by `</div>`.
12475 * Slides: Preserve `<div class="references">` in references slide.
12477 * `Text.Pandoc.Writer.Shared`:
12479 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
12480 attributes, leading to invalid HTML.
12481 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
12482 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
12483 encoded bytestring was returned. We now decode it so it's a proper
12486 * DocBook reader: Handle numerical attributes starting with decimal.
12487 Also use `safeRead` instead of `read`.
12489 * `Text.Pandoc.Parsing`:
12491 + Generalized type of `registerHeader`, using new type classes
12492 `HasReadeOptions`, `HasIdentifierList`, `HasHeaderMap`.
12493 These allow certain common functions to be reused
12494 even in parsers that use custom state (instead of `ParserState`),
12495 such as the MediaWiki reader.
12496 + Moved inlineMath, displayMath from Markdown reader to Parsing.
12497 Generalize their types and export them from Parsing. (API change.)
12499 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
12500 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
12501 in all the writers. Require `texmath >= 0.6.5.2`.
12503 * `Text.Pandoc.MIME`:
12505 + Add entry for `jfif`.
12506 + In looking up extensions, drop the encoding info.
12507 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
12509 * Templates: Changed how array variables are resolved. Previously if
12510 `foo` is an array (which might be because multiple values were set on
12511 the command line), `$foo$` would resolve to the concatenation of the
12512 elements of foo. This is rarely useful behavior. It has been changed
12513 so that the first value is rendered. Of course, you can still iterate
12514 over the values using `$for(foo)$`. This has the result that you can
12515 override earlier settings using `-V` by putting new values later on the
12516 command line, which is useful for many purposes.
12518 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
12520 * Allow "epub2" as synonym for "epub", "html4" for "html".
12522 * Don't look for slidy files in data files with `--self-contained`.
12524 * Allow `https:` command line arguments to be downloaded.
12526 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
12528## pandoc 1.12.1 (2013-10-20)
12530 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
12531 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
12532 "c": "foo"}`. This new format is easier to work with outside of Haskell.
12533 Incidentally, "t" stands for "tag", "c" for "contents".
12535 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
12536 when converting to markdown (#1027).
12540 + Ensure that preamble doesn't contribute to the text of
12542 + Fixed character escaping in `\url{}`. Previously `\~` wasn't handled
12543 properly, among others.
12544 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
12545 bibtex titles, since we need to know what was protected from
12546 titlecase conversions.
12550 + Specially escape non-ascii characters in labels.
12551 Otherwise we can get compile errors and other bugs when
12552 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
12553 + Add link anchors for code blocks with identifiers (#1025).
12555 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
12556 It allows fragments identifiers.
12560 + A Div element with class "notes" is treated as speaker
12561 notes. Currently beamer goes to `\note{}`, revealjs to
12562 `<aside class="notes">`, and the notes are simply suppressed in
12563 other formats (#925).
12564 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
12565 The old version caused a pause to be inserted before the first
12566 material on a slide. This has been fixed.
12567 + Removed data files for s5, slideous, slidy.
12568 Users of s5 and slideous will have to download the needed
12569 files, as has been documented for some time in the README.
12570 By default, slidy code will be sought on the web, as before.
12572 * HTML writer: Insert command to typeset mathjax only in slideous output
12575 * RST writer: Skip spaces after display math. Otherwise we get indentation
12576 problems, and part of the next paragraph may be rendered as part of the
12579 * OpenDocument writer: Fix formatting of strikeout code (#995),
12580 thanks to wilx. don't use `font-face-decls` variable.
12582 * Fixed test suite so it works with cabal sandboxes.
12584## pandoc 1.12.0.2 (2013-09-20)
12586 * Removed an unused dependency (`stringable`) from pandoc.cabal.
12587 This will help packagers, but users should not need to upgrade.
12589## pandoc 1.12.0.1 (2013-09-20)
12591 * Allow `--metadata` to be repeated for the same key to form a list.
12592 This also has the effect that `--bibliography` can be repeated,
12595 * Handle boolean values in `--metadata`. Note that anything not parseable
12596 as a YAML boolean or string is treated as a literal string.
12597 You can get a string value with "yes", or any of the strings interpretable
12598 as booleans, by quoting it:
12600 -M boolvalue=yes -M stringvalue='"yes"'
12602 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
12605 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
12606 in which docx files could not be read by some versions of Word
12607 and LibreOffice (#990).
12609 * Fixed a regression involving slide shows with bibliographies.
12610 The Div container around references messed up the procedure for carving
12611 a document into slides. So we now remove the surrounding Div in
12614 * More informative error message when a filter is not found in path.
12616 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
12617 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
12619 * Don't use unicode_collation in building OSX package:
12620 it adds something like 50MB of dependencies to the package.
12622 * Declare alex and happy as build-tools (#986).
12624## pandoc 1.12 (2013-09-15)
12628 * Much more flexible metadata, including arbitrary fields and structured
12629 values. Metadata can be specified flexibly in pandoc markdown using
12630 YAML metadata blocks, which may occur anywhere in the document:
12633 title: Here is my title.
12635 This is the abstract.
12639 and *inline markup*
12641 tags: [cat, dog, animal]
12644 Metadata fields automatically populate template variables.
12646 * Added `opml` (OPML) as input and output format. The `_note` attribute,
12647 used in OmniOutliner and supported by multimarkdown, is supported.
12648 We treat the contents as markdown blocks under a section header.
12650 * Added `haddock` (Haddock markup) as input format (David Lazar).
12652 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
12653 (Thanks to Jamie F. Olson for the initial patch.)
12654 Nested vertical stacks are used for hierarchical structure.
12655 Results for more than one level of nesting may be odd.
12657 * Custom writers can now be written in lua.
12659 pandoc -t data/sample.lua
12661 will load the script sample.lua and use it as a custom writer.
12662 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
12663 Note that pandoc embeds a lua interpreter, so lua need not be
12664 installed separately.
12666 * New `--filter/-F` option to make it easier to run "filters"
12667 (Pandoc AST transformations that operate on JSON serializations).
12668 Filters are always passed the name of the output format, so their
12669 behavior can be tailored to it. The repository
12670 <https://github.com/jgm/pandocfilters> contains
12671 a python module for writing pandoc filters in python, with
12672 a number of examples.
12674 * Added `--metadata/-M` option.
12675 This is like `--variable/-V`, but actually adds to metadata, not
12678 * Added `--print-default-data-file` option, which allows printing
12679 of any of pandoc's data files. (For example,
12680 `pandoc --print-default-data-file reference.odt` will print
12683 * Added syntax for "pauses" in slide shows:
12691 * New markdown extensions:
12693 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
12694 rather than being treated as hard line breaks or spaces. This is useful
12695 for some East Asian languages, where spaces aren't used between words,
12696 but text is separated into lines for readability.
12697 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
12698 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
12699 only. (Default for `markdown_github`.) (#807)
12700 + `lists_without_preceding_blankline`: Allow lists to start without
12701 preceding blank space. (Default for `markdown_github`.) (#972)
12703### Behavior changes
12705 * `--toc-level` no longer implies `--toc`.
12706 Reason: EPUB users who don't want a visible TOC may still want
12707 to set the TOC level for in the book navigation.
12709 * `--help` now prints in and out formats in alphabetical order, and
12710 says something about PDF output (#720).
12712 * `--self-contained` now returns less verbose output (telling you
12713 which URLs it is fetching, but not giving the full header). In
12714 addition, there are better error messages when fetching a URL fails.
12716 * Citation support is no longer baked in to core pandoc. Users who
12717 need citations will need to install and use a separate filter
12718 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
12719 `csl`, and `citation-abbreviations` from the metadata, though it
12720 may still be specified on the command line as before.
12722 * A `Cite` element is now created in parsing markdown whether or not
12723 there is a matching reference.
12725 * The `pandoc-citeproc` script will put the bibliography at the
12726 end of the document, as before. However, it will be put inside a `Div`
12727 element with class "references", allowing users some control
12728 over the styling of references. A final header, if any, will
12729 be included in the `Div`.
12731 * The markdown writer will not print a bibliography if the
12732 `citations` extension is enabled. (If the citations are formatted
12733 as markdown citations, it is redundant to have a bibliography,
12734 since one will be generated automatically.)
12736 * Previously we used to store the directory of the first input file,
12737 even if it was local, and used this as a base directory for finding
12738 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
12739 users. So we now look for images relative to the current
12740 working directory, even if the first file argument is in another
12741 directory. Note that this change may break some existing workflows.
12742 If you have been assuming that relative links will be interpreted
12743 relative to the directory of the first file argument, you'll need
12744 to make that the current directory before running pandoc. (#942)
12746 * Better error reporting in some readers, due to changes in `readWith`:
12747 the line in which the error occurred is printed, with a caret pointing
12750 * All slide formats now support incremental slide view for definition lists.
12752 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
12753 Parse `:<math>...</math>` as display math. These notations are used with
12754 the MathJax MediaWiki extension.
12756 * All writers: template variables are set automatically from metadata
12757 fields. However, variables specified on the command line with
12758 `--variable` will completely shadow metadata fields.
12760 * If `--variable` is used to set many variables with the same name,
12763 * Man writer: The `title`, `section`, `header`, and `footer` can now
12764 all be set individually in metadata. The `description` variable has been
12765 removed. Quotes have been added so that spaces are allowed in the
12766 title. If you have a title that begins
12768 COMMAND(1) footer here | header here
12770 pandoc will still parse it into a title, section, header, and
12771 footer. But you can also specify these elements explicitly (#885).
12775 + Added support for YAML metadata blocks, which can come anywhere
12776 in the document (not just at the beginning). A document can contain
12777 multiple YAML metadata blocks.
12778 + HTML span and div tags are parsed as pandoc Span and Div elements.
12782 + Allow simple tables to be printed as grid tables,
12783 if other table options are disabled. This means you can do
12784 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
12785 and all tables will render as grid tables.
12786 + Support YAML title block (render fields in alphabetical order
12787 to make output predictable).
12791 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
12792 structured metadata. (Note: existing code that pattern-matches
12793 on `Meta` will have to be revised.) Metadata can now contain
12794 indefinitely many fields, with content that can be a string,
12795 a Boolean, a list of `Inline` elements, a list of `Block`
12796 elements, or a map or list of these.
12798 * A new generic block container (`Div`) has been added to `Block`,
12799 and a generic inline container (`Span`) has been added to `Inline`.
12800 These can take attributes. They will render in HTML, Textile,
12801 MediaWiki, Org, RST and Markdown (with `markdown_in_html`
12802 extension) as HTML `<div>` and `<span>` elements; in other formats
12803 they will simply pass through their contents. But they can be
12804 targeted by scripts.
12806 * `Format` is now a newtype, not an alias for String.
12807 Equality comparisons are case-insensitive.
12809 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
12810 functions that are much faster than the SYB functions from
12811 `Text.Pandoc.Generic`. These functions are now used where possible
12812 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
12813 match the generic traversals `bottomUp` and `queryWith`.)
12815 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
12816 instances for the basic pandoc types. They use GHC generics and
12817 should be faster than the old JSON serialization using
12818 `Data.Aeson.Generic`.
12820 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
12821 This is a souped-up version of `readProcessWithErrorcode` that
12822 uses lazy bytestrings instead of strings and allows setting
12823 environment variables. (Used in `Text.Pandoc.PDF`.)
12825 * New module `Text.Pandoc.Readers.OPML`.
12827 * New module `Text.Pandoc.Writers.OPML`.
12829 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
12830 This is based on Haddock's own lexer/parser.
12832 * New module `Text.Pandoc.Writers.Custom`.
12834 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
12835 Either, for better error handling.
12837 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
12839 * Removed `stripTags` from `Text.Pandoc.XML`.
12841 * `Text.Pandoc.Templates`:
12843 + Simplified `Template` type to a newtype.
12845 + Changed type of `renderTemplate`: it now takes a JSON context
12846 and a compiled template.
12847 + Export `compileTemplate`.
12848 + Export `renderTemplate'` that takes a string instead of a compiled
12850 + Export `varListToJSON`.
12852 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
12856 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
12857 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
12858 `Text.Pandoc.JSON` should be used instead. (Compiling against
12859 pandoc-types instead of pandoc will also produce smaller executables.)
12860 * Removed the deprecated `jsonFilter` function.
12861 + Added `readJSON`, `writeJSON` to the API (#817).
12863 * `Text.Pandoc.Options`:
12865 + Added `Ext_lists_without_preceding_blankline`,
12866 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
12867 `Ext_yaml_metadataBlock` to `Extension`.
12868 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
12869 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
12870 first command-line argument is an absolute URL. (So, relative links
12871 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
12872 + All bibliography-related fields have been removed from
12873 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
12874 `readerReferences`, `readerCitationStyle`.
12876 * The `Text.Pandoc.Biblio` module has been removed. Users of the
12877 pandoc library who want citation support will need to use
12878 `Text.CSL.Pandoc` from `pandoc-citeproc`.
12882 * In markdown, don't autolink a bare URI that is followed by `</a>`
12885 * `Text.Pandoc.Shared`
12887 + `openURL` now follows redirects (#701), properly handles `data:`
12888 URIs, and prints diagnostic output to stderr rather than stdout.
12889 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
12890 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
12891 + Fixed `readDefaultDataFile` so it works on Windows.
12892 + Better error messages for `readDefaultDataFile`. Instead of
12893 listing the last path tried, which can confuse people who are
12894 using `--self-contained`, so now we just list the data file name.
12895 + URL-escape pipe characters. Even though these are legal, `Network.URI`
12896 doesn't regard them as legal in URLs. So we escape them first (#535).
12898 * Mathjax in HTML slide shows: include explicit "Typeset" call.
12899 This seems to be needed for some formats (e.g. slideous) and won't
12900 hurt in others (#966).
12902 * `Text.Pandoc.PDF`
12904 + On Windows, create temdir in working directory, since the system
12905 temp directory path may contain tildes, which can cause
12906 problems in LaTeX (#777).
12907 + Put temporary output directory in `TEXINPUTS` (see #917).
12908 + `makePDF` tries to download images that are not found locally,
12909 if the first argument is a URL (#917).
12910 + If compiling with `pdflatex` yields an encoding error, offer
12911 the suggestion to use `--latex-engine=xelatex`.
12913 * Produce automatic header identifiers in parsing textile, RST,
12914 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
12916 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
12917 before treating as a filename. This fixes `--self-contained` when used
12918 with CSS files that include web fonts using the method described here:
12919 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
12920 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
12922 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
12923 percent-encoding, or a `+` character, as final punctuation.
12925 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
12926 EPS images properly sized on conversion to Word.
12928 * Slidy: Use slidy.js rather than slidy.js.gz.
12929 Reason: some browsers have trouble with the gzipped js file,
12930 at least on the local file system (#795).
12934 + Properly handle blank line at beginning of input (#882).
12935 + Fixed bug in unmatched reference links. The input
12936 `[*infile*] [*outfile*]` was getting improperly parsed:
12937 "infile" was emphasized, but "*outfile*" was literal (#883).
12938 + Allow internal `+` in citation identifiers (#856).
12939 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
12940 + Do not generate blank title, author, or date metadata elements.
12941 Leave these out entirely if they aren't present.
12942 + Allow backtick code blocks not to be preceded by blank line (#975).
12946 + Correctly handle entities.
12947 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
12948 in code blocks, rather than printing them verbatim. Parse attributes
12949 on `<pre>` tag for code blocks.
12951 * HTML reader: Handle non-simple tables (#893). Column widths are read from
12952 `col` tags if present, otherwise divided equally.
12956 + Support alltt environment (#892).
12957 + Support `\textasciitilde`, `\textasciicircum` (#810).
12958 + Treat `\textsl` as emphasized text reader (#850).
12959 + Skip positional options after `\begin{figure}`.
12960 + Support `\v{}` for hacek (#926).
12961 + Don't add spurious ", " to citation suffixes.
12962 This is added when needed in pandoc-citeproc.
12963 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
12964 + Improved support for accented characters (thanks to Scott Morrison).
12965 + Parse label after section command and set id (#951).
12969 + Don't insert paragraphs where docutils doesn't.
12970 `rst2html` doesn't add `<p>` tags to list items (even when they are
12971 separated by blank lines) unless there are multiple paragraphs in the
12972 list. This commit changes the RST reader to conform more closely to
12973 what docutils does (#880).
12974 + Improved metadata. Treat initial field list as metadata when
12975 standalone specified. Previously ALL fields "title", "author",
12976 "date" in field lists were treated as metadata, even if not at
12977 the beginning. Use `subtitle` metadata field for subtitle.
12978 + Fixed 'authors' metadata parsing in reST. Semicolons separate
12983 + Allow space before table rows.
12984 + Fixed regression for `<ref>URL</ref>`.
12985 `<` is no longer allowed in URLs, according to the uri parser
12986 in `Text.Pandoc.Parsing`. Added a test case.
12987 + Correctly handle indented preformatted text without preceding
12988 or following blank line.
12989 + Fixed `|` links inside table cells. Improved attribute parsing.
12990 + Skip attributes on table rows. Previously we just crashed if
12991 rows had attributes, now we ignore them.
12992 + Ignore attributes on headers.
12993 + Allow `Image:` for images (#971).
12994 + Parse an image with caption in a paragraph by itself as a figure.
12998 + Don't use ligatures in escaping inline code.
12999 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
13000 wherein notes were numbered incorrectly in tables (#827).
13001 + Always create labels for sections. Previously the labels were only
13002 created when there were links to the section in the document (#871).
13003 + Stop escaping `|` in LaTeX math.
13004 This caused problems with array environments (#891).
13005 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
13006 `\` will cause major problems if unescaped.
13007 + Write id for code block to label attribute in LaTeX when listings
13008 is used (thanks to Florian Eitel).
13009 + Scale LaTeX tables so they don't exceed columnwidth.
13010 + Avoid problem with footnotes in unnumbered headers (#940).
13012 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
13013 to the slide if it is one of the header classes. It is recommended
13014 that your bibliography slide have this attribute:
13016 # References {.allowframebreaks}
13018 This causes multiple slides to be created if necessary, depending
13019 on the length of the bibliography.
13021 * ConTeXt writer: Properly handle tables without captions. The old output
13022 only worked in MkII. This should work in MkIV as well (#837).
13024 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
13028 + Fixed `--no-highlight` (Alexander Kondratskiy).
13029 + Don't convert to lowercase in email obfuscation (#839).
13030 + Ensure proper escaping in `<title>` and `<meta>` fields.
13034 + Support `--atx-headers` (Max Rydahl Andersen).
13035 + Don't print empty identifier blocks `([[]])` on headers (Max
13040 + Fixing wrong numbered-list indentation in open document format
13041 (Alexander Kondratskiy) (#369).
13042 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
13043 + Minor changes for ODF 1.2 conformance (#939). We leave the
13044 nonconforming `contextual-spacing` attribute, which is provided by
13045 LibreOffice itself and seems well supported.
13049 + Fixed rendering of display math in lists.
13050 In 1.11 and 1.11.1, display math in lists rendered as a new list
13051 item. Now it always appears centered, just as outside of lists,
13052 and in proper display math style, no matter how far indented the
13053 containing list item is (#784).
13054 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
13055 Previously we used `w:cr` (#873).
13056 + Use Compact style for Plain block elements, to
13057 differentiate between tight and loose lists (#775).
13058 + Ignore most components of `reference.docx`.
13059 We take the `word/styles.xml`, `docProps/app.xml`,
13060 `word/theme/theme1.xml`, and `word/fontTable.xml` from
13061 `reference.docx`, ignoring everything else. This should help
13062 with the corruption problems caused when different versions of
13063 Word resave the reference.docx and reorganize things.
13064 + Made `--no-highlight` work properly.
13068 + Don't add `dc:creator` tags if present in EPUB metadata.
13069 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
13070 + Don't put blank title page in reading sequence.
13071 Set `linear="no"` if no title block. Addresses #797.
13072 + Download webtex images and include as data URLs.
13073 This allows you to use `--webtex` in creating EPUBs.
13074 Math with `--webtex` is automatically made self-contained.
13075 + In `data/epub.css`, removed highlighting styles (which
13076 are no longer needed, since styles are added by the HTML
13077 writer according to `--highlighting-style`). Simplified
13079 + If resource not found, skip it, as in Docx writer (#916).
13083 + Properly handle characters above the 0000-FFFF range.
13084 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
13085 + Fixed regression with RTF table of contents.
13086 + Only autolink absolute URIs. This fixes a regression, #830.
13090 + Only autolink absolute URIs. This fixes a regression, #830.
13091 + Don't wrap attributes in fenced code blocks.
13092 + Write full metadata in MMD style title blocks.
13093 + Put multiple authors on separate lines in pandoc titleblock.
13094 Also, don't wrap long author entries, as new lines get treated
13097 * `Text.Pandoc.Templates`:
13099 + Fixed bug retrieving default template for markdown variants.
13100 + Templates can now contain "record lookups" in variables;
13101 for example, `author.institution` will retrieve the `institution`
13102 field of the `author` variable.
13103 + More consistent behavior of `$for$`. When `foo` is not a list,
13104 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
13105 So if `foo` resolves to "", no output should be produced.
13106 See pandoc-templates#39.
13108 * Citation processing improvements (now part of pandoc-citeproc):
13110 + Fixed `endWithPunct` The new version correctly sees a sentence
13111 ending in '.)' as ending with punctuation. This fixes a bug which
13112 led such sentences to receive an extra period at the end: '.).'.
13113 Thanks to Steve Petersen for reporting.
13114 + Don't interfere with Notes that aren't citation notes.
13115 This fixes a bug in which notes not generated from citations were
13116 being altered (e.g. first letter capitalized) (#898).
13117 + Only capitalize footnote citations when they have a prefix.
13118 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
13119 inserted before it before passing to citeproc-hs, so that bare numbers
13120 are treated as page numbers by default. A suffix not beginning with
13121 punctuation has a space added at the beginning (rather than a comma and
13122 space, as was done before for not-author-in-text citations).
13123 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
13124 properly, with '23' treated as a locator of type 'page'.
13125 + Many improvements to citation rendering, due to fixes in citeproc-hs
13126 (thanks to Andrea Rossato).
13127 + Warnings are issued for undefined citations, which are rendered
13129 + Fixed hanging behavior when locale files cannot be found.
13131### Template changes
13133 * DocBook: Use DocBook 4.5 doctype.
13135 * Org: '#+TITLE:' is inserted before the title.
13136 Previously the writer did this.
13138 * LaTeX: Changes to make mathfont work with xelatex.
13139 We need the mathspec library, not just fontspec, for this.
13140 We also need to set options for setmathfont (#734).
13142 * LaTeX: Use `tex-ansi` mapping for `monofont`.
13143 This ensures that straight quotes appear as straight, rather than
13144 being treated as curly. See #889.
13146 * Made `\includegraphics` more flexible in LaTeX template.
13147 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
13149 * LaTeX/Beamer: Added `classoption` variable.
13150 This is intended for class options like `oneside`; it may
13151 be repeated with different options. (Thanks to Oliver Matthews.)
13153 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
13155 * LaTeX: Added `biblio-style` variable (#920).
13157 * DZSlides: title attribute on title section.
13159 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
13161### Under-the-hood improvements
13163 * Markdown reader:Improved strong/emph parsing, using the strategy of
13164 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
13165 no backtracking, and no keeping track of nesting levels. It will give
13166 different results in some edge cases, but these should not affect normal
13169 * Added `Text.Pandoc.Compat.Monoid`.
13170 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
13171 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
13173 * Added `Text.Pandoc.Compat.TagSoupEntity`.
13174 This allows pandoc to compile with `tagsoup` 0.13.x.
13175 Thanks to Dirk Ullrich for the patch.
13177 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
13178 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
13179 handle simple math in bibliography fields.)
13181 * Added `Text.Pandoc.Writers.Shared` for shared functions used
13182 only in writers. `metaToJSON` is used in writers to create a
13183 JSON object for use in the templates from the pandoc metadata
13184 and variables. `getField`, `setField`, and `defField` are
13185 for working with JSON template contexts.
13187 * Added `Text.Pandoc.Asciify` utility module.
13188 This exports functions to create ASCII-only versions of identifiers.
13190 * `Text.Pandoc.Parsing`
13192 + Generalized state type on `readWith` (API change).
13193 + Specialize readWith to `String` input. (API change).
13194 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
13195 with `stateMeta` and `stateMeta'`.
13197 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
13198 bytestrings seemed to cause problems using pandoc on 64-bit Windows
13201 * Factored out `registerHeader` from markdown reader, added to
13202 `Text.Pandoc.Parsing`.
13204 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
13205 Reason: < 0.5 does not provide a monoid instance for Attribute,
13206 which is now needed by the HTML writer (#803).
13208 * Added `http-conduit` flag, which allows fetching https resources.
13209 It also brings in a large number of dependencies (`http-conduit`
13210 and its dependencies), which is why for now it is an optional flag
13213 * Added CONTRIBUTING.md.
13215 * Improved INSTALL instructions.
13217 * `make-windows-installer.bat`: Removed explicit paths for executables.
13219 * `aeson` is now used instead of `json` for JSON.
13221 * Set default stack size to 16M. This is needed for some large
13222 conversions, esp. if pandoc is compiled with 64-bit ghc.
13224 * Various small documentation improvements.
13225 Thanks to achalddave and drothlis for patches.
13227 * Removed comment that chokes recent versions of CPP (#933).
13229 * Removed support for GHC version < 7.2, since pandoc-types now
13230 requires at least GHC 7.2 for GHC generics.
13233## pandoc 1.11.1 (2013-03-17)
13237 + Fixed regression in which parentheses were lost in link URLs.
13238 Added tests. Closes #786.
13239 + Better handling of unmatched double quotes in `--smart` mode.
13240 These occur frequently in fiction, since it is customary not to
13241 close quotes in dialogue if the speaker does not change between
13242 paragraphs. The unmatched quotes now get turned into literal
13243 left double quotes. (No `Quoted` inline is generated, however.)
13244 Closes #99 (again).
13246 * HTML writer: Fixed numbering mismatch between TOC and sections.
13247 `--number-offset` now affects TOC numbering as well
13248 as section numbering, as it should have all along. Closes #789.
13250 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
13251 as markdown citations, even if `--bibliography` was specified, unless
13252 `citation` extension is disabled. Now, formatted citations are always
13253 printed if `--bibliography` was specified. If you want to reformat
13254 markdown keeping pandoc markdown citations intact, don't use
13255 `--bibliography`. Note that citations parsed from LaTeX documents will
13256 be rendered as pandoc markdown citations when `--bibliography` is not
13259 * ODT writer: Fixed regression leading to corrupt ODTs.
13260 This was due to a change in the `Show` instance for
13261 `Text.Pandoc.Pretty.Doc`. Closes #780.
13263 * Fixed spacing bugs involving code block attributes in
13264 RST reader and Markdown writer. Closes #763.
13266 * Windows package: Various improvements due to Fyodor Sheremetyev.
13268 + Automatically set installation path (Program Files or Local App Data).
13269 + Set system PATH environment variable when installing for all users.
13270 + Pandoc can installed for all users using the following command.
13271 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
13273 * Bumped QuickCheck version bound.
13275## pandoc 1.11 (2013-03-09)
13277 * Added `--number-offset` option. (See README for description.)
13279 * Added `--default-image-extension` option. (See README for description.)
13281 * `--number-sections` behavior change: headers with class `unnumbered`
13282 will not be numbered.
13284 * `--version` now reports the default data directory.
13286 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
13288 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
13290 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
13291 a field for `Attr` rather than just `String`. (API change.)
13293 * Added `markdown_github` as input format. This was an accidental
13296 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
13299 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
13303 + Fixed captions with longtable. Thanks to Joost Kremers.
13304 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
13308 + Load microtype after fonts. Microtype needs to know
13309 what fonts are being used. Thanks to dfc for the patch.
13310 + Set `secnumdepth` to 5 if `--number-sections` specified.
13311 This yields behavior equivalent to the other writers, numbering
13312 level 4 and 5 headers too. Closes #753.
13316 + Handle `<colgroup>` tag.
13317 + Preserve all header attributes.
13321 + Parse `\hrule` as `HorizontalRule`. Closes #746.
13322 + Parse starred variants of `\section` etc. as headers with
13323 attribute `unnumbered`.
13324 + Read optional attributes in `lstlisting` and `Verbatim` environments.
13325 We convert these to pandoc standard names, e.g. `numberLines`
13326 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
13327 + Handle language attribute for lstlistings.
13328 + Better support for Verbatim and minted environments. Closes #763.
13332 + `-` in an attribute context = `.unnumbered`. The point of this
13333 is to provide a way to specify unnumbered headers in non-English
13335 + Fixed bug parsing key/value attributes. Parsing failed if you
13336 had an unquoted attribute immediately before the final '}'.
13337 + Make backslash escape work in attributes.
13338 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
13339 pandoc will parse a MMD title block if it sees one, even if
13340 `pandoc_title_blocks` is enabled.
13341 + Refactoring: `litChar` now includes entities, so we don't need
13342 to use `fromEntities` e.g. on titles.
13343 + Allow spaces around borders in pipe tables. Closes #772.
13344 + Allow all punctuation in angle-bracket autolinks. Previously
13345 things like `----` were disallowed, because the uri parser
13346 treated them as trailing punctuation. Closes #768.
13347 + Make `implicit_header_references` work properly when
13348 headers are given explicit identifiers.
13349 + Check for tables before line blocks. Otherwise some pipe
13350 tables get treated as line blocks.
13351 + Allow `&` in emails (for entities).
13352 + Properly handle entities in titles and links. A markdown link
13353 `<http://göogle.com>` should be a link to `http://göogle.com`.
13358 + Handle attributes on headers.
13362 + Add `fig:` as title for images with captions.
13363 This is needed for them to be rendered as figures. Closes #766.
13364 + Never emit an empty paragraph. See #761.
13365 + Handle `\caption` for images in figures. Closes #766.
13366 + Parse `\section*`, etc. as unnumbered sections.
13370 + Support header attributes. The attributes go on
13371 the enclosing `section` or `div` tag if `--section-divs` is specified.
13372 + Fixed a regression (only now noticed) in html+lhs output.
13373 Previously the bird tracks were being omitted.
13377 + Omit lists with no items to avoid LaTeX errors.
13378 + Support line numbering with `--listings`.
13379 If `numberLines` class is present, we add `numbers=left`;
13380 if `startFrom` is present, we add `firstnumber=`. (#763)
13384 + Removed `\placecontent`. This produced a duplicate toc,
13385 in conjunction with `\placelist`.
13386 + Use `\title`, `\subject` etc. for headers with
13387 `unnumbered` class.
13391 + Support header attributes.
13395 + Use grid tables when needed, and if enabled. Closes #740.
13396 + Render citations as pandoc-markdown citations.
13397 Previously citations were rendered as citeproc-formatted citations
13398 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
13399 unless the `citations` extension is disabled.
13400 If you still want formatted citations in your markdown output,
13401 use `pandoc -t markdown-citations`.
13405 + Support `:number-lines:` in code blocks.
13409 + Better treatment of display math. Display math inside a
13410 paragraph is now put in a separate paragraph, so it will render
13411 properly (centered and without extra blank lines around it).
13412 Partially addresses #742.
13413 + Content types and document rels xml files are now created from
13414 scratch, rather than being taken over from `reference.docx`.
13415 This fixes problems that arise when you edit the `reference.docx`
13417 + We also now encode mime types for each individual image rather
13418 than using defaults. This should allow us to handle a wider
13419 range of image types (including PDF). Closes #414.
13420 + Changed style names in `reference docx`.
13421 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
13422 The old names got changed by Word when the `reference.docx` was
13423 edited. Closes #414.
13427 + Fix section numbering. Previously the numbering restarted from 1
13428 in each chapter (with `--number-sections`), though the numbers in
13429 the table of contents were correct.
13430 + Headers with "unnumbered" attribute are not numbered. (Nor do they
13431 cause an increment in running numbering.) Section numbers now work
13432 properly, even when there is material before the first numbered section.
13433 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
13434 but `linear` is set to `no` unless the `--toc` option is specified.
13435 Include `<guide>` element in OPF. This should allow the TOC to
13436 be useable in Kindles when converted with kindlegen. Closes #773.
13438 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
13439 This dramatically reduces the speed penalty that comes from enabling the
13440 `autolink_bare_uris` extension. The penalty is still substantial (in one
13441 test, from 0.33s to 0.44s), but nowhere near what it used to be.
13442 The RST reader is also much faster now, as it autodetects URIs.
13444 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
13445 with class "unnumbered". Unnumbered sections get `[]` for their
13448 * `Text.Pandoc.Pretty`:
13450 + Fixed `chomp` so it works inside `Prefixed` elements.
13451 + Changed `Show` instance so it is better for debugging.
13453 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
13455 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
13457 * Windows installer improvements:
13459 + The installer is now signed with a certificate (thanks to
13460 Fyodor Sheremetyev).
13461 + WiX is used instead of InnoSetup. The installer is now a
13463 + The version number is now auto-detected, and need not be
13464 updated separately.
13466 * OSX installer improvements:
13468 + The package and pandoc executable are now signed with a
13469 certificate (thanks to Fyodor Sheremetyev).
13470 + RTF version of license is used.
13471 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
13474 * Converted COPYING to markdown.
13476 * pandoc.cabal: Require latest versions of highlighting-kate,
13477 texmath, citeproc-hs, zip-archive.
13479## pandoc 1.10.1 (2013-01-23)
13481 * Markdown reader: various optimizations, leading to a
13482 significant performance boost.
13484 * RST reader: Allow anonymous form of inline links:
13485 `` `hello <url>`__ `` Closes #724.
13487 * Mediawiki reader: Don't require newlines after tables.
13488 Thanks to jrunningen for the patch. Closes #733.
13490 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
13491 when output is LaTeX, and applied when it is another format.
13492 Partially addresses #730.
13494 * Markdown and RST readers: Added parser to `block` that skips blank
13495 lines. This fixes a subtle regression involving grid tables with
13496 empty cells. Also added test for grid table with empty cells.
13499 * RST writer: Use `.. code:: language` for code blocks with language.
13502 * DocBook writer: Fixed output for hard line breaks, adding a newline
13503 between `<literallayout>` tags.
13505 * Markdown writer: Use an autolink when link text matches url.
13506 Previously we also checked for a null title, but this
13507 test fails for links produced by citeproc-hs in bibliographies.
13508 So, if the link has a title, it will be lost on conversion
13509 to an autolink, but that seems okay.
13511 * Markdown writer: Set title, author, date variables as before.
13512 These are no longer used in the default template, since we use
13513 titleblock, but we set them anyway for those who use custom templates.
13515 * LaTeX writer: Avoid extra space at start/end of table cell.
13516 Thanks to Nick Bart for the suggestion of using @{}.
13518 * `Text.Pandoc.Parsing`:
13520 + More efficient version of `anyLine`.
13521 + Type of `macro` has changed; the parser now returns `Blocks`
13522 instead of `Block`.
13524 * Relaxed old-time version bound, allowing 1.0.*.
13526 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
13527 should create a symlink as described in the README.
13529## pandoc 1.10.0.5 (2013-01-23)
13531 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
13532 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
13533 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
13535 * Markdown reader: Fixed bug with headerless grid tables.
13536 The 1.10 code assumed that each table header cell contains exactly one
13537 block. That failed for headerless tables (0) and also for tables with
13538 multiple blocks in a header cell. The code is fixed and tests provided.
13539 Thanks to Andrew Lee for pointing out the bug.
13541 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
13543 + Tilde code fences can again take a bare language string
13544 (`~~~ haskell`), not just curly-bracketed attributes
13545 (`~~~ {.haskell}`).
13546 + Backtick code blocks can take the curly-bracketed attributes.
13547 + Backtick code blocks don't *require* a language.
13548 + Consolidated code for the two kinds of fenced code blocks.
13550 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
13552 * Markdown writer: Use proportional font for email autolinks with
13553 obfuscation. Closes #714.
13555 * Corrected name of `blank_before_blockquote` in README. Closes #718.
13557 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
13558 The bug prevented an autolink at the end of a string (e.g.
13559 at the end of a line block line) from counting as a link. Closes #711.
13561 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
13562 This should work on Windows, unlike the TH solution with
13565 * Eliminated use of TH in test suite.
13567 * Added `Text.Pandoc.Data` (non-exported) to hold the association
13568 list of embedded data files, if the `embed_data_files` flag is selected.
13569 This isolates the code that needs special treatment with file-embed or
13572 * Changes to `make-windows-installer.bat`.
13574 + Exit batch file if any of the cabal-dev installs fail.
13575 + There's no longer any need to reinstall `highlighting-kate`.
13576 + Don't start with a `cabal update`; leave that to the user.
13577 + Force reinstall of pandoc.
13579 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
13582## pandoc 1.10.0.4 (2013-01-20)
13584 * Fixed bug with escaped % in LaTeX reader. Closes #710.
13586## pandoc 1.10.0.3 (2013-01-20)
13588 * Added further missing fb2 tests to cabal file.
13590## pandoc 1.10.0.2 (2013-01-20)
13592 * Added fb2 tests to cabal file's extra-source-files.
13594## pandoc 1.10.0.1 (2013-01-20)
13596 * Bump version bounds on test-framework packages.
13598## pandoc 1.10 (2013-01-19)
13602 * New input formats: `mediawiki` (MediaWiki markup).
13604 * New output formats: `epub3` (EPUB v3 with MathML),
13605 `fb2` (FictionBook2 ebooks).
13607 * New `--toc-depth` option, specifying how many levels of
13608 headers to include in a table of contents.
13610 * New `--epub-chapter-level` option, specifying the header
13611 level at which to divide EPUBs into separate files.
13612 Note that this normally affects only performance, not the
13613 visual presentation of the EPUB in a reader.
13615 * Removed the `--strict` option. Instead of using `--strict`,
13616 one can now use the format name `markdown_strict` for either input
13617 or output. This gives more fine-grained control that `--strict`
13618 did, allowing one to convert from pandoc's markdown to strict
13619 markdown or vice versa.
13621 * It is now possible to enable or disable specific syntax
13622 extensions by appending them (with `+` or `-`) to the writer
13623 or reader name. For example,
13625 pandoc -f markdown-footnotes+hard_line_breaks
13627 disables footnotes and enables treating newlines as hard
13628 line breaks. The literate Haskell extensions are now implemented
13629 this way as well, using either `+lhs` or `+literate_haskell`.
13630 For a list of extension names, see the README under
13631 "Pandoc's Markdown."
13633 * The following aliases have been introduced for specific
13634 combinations of markdown extensions: `markdown_phpextra`,
13635 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
13636 work just like regular reader and writer names, and can be modified
13637 with extension modifiers as described above. (Note that conversion
13638 from one markdown dialect to another does not work perfectly,
13639 because there are differences in markdown parsers besides
13640 just the extensions, and because pandoc's internal document model is
13641 not rich enough to capture all of the extensions.)
13643 * New `--html-q-tags` option. The previous default was to use `<q>`
13644 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
13645 Moreover, they are not a robust way of typesetting quotes, since
13646 some user agents don't support them, and some CSS resets (e.g.
13647 bootstrap) prevent pandoc's quotes CSS from working properly.
13648 We now just insert literal quote characters by default in both
13649 `html` and `html5` output, but this option is provided for
13650 those who still want `<q>` tags.
13652 * The markdown reader now prints warnings (to stderr) about
13653 duplicate link and note references. Closes #375.
13655 * Markdown syntax extensions:
13657 + Added pipe tables. Thanks to François Gannaz for the initial patch.
13658 These conform to PHP Markdown Extra's pipe table syntax. A subset
13659 of org-mode table syntax is also supported, which means that you can
13660 use org-mode's nice table editor to create tables.
13662 + Added support for RST-style line blocks. These are
13663 useful for verse and addresses.
13665 + Attributes can now be specified for headers, using the same
13666 syntax as in code blocks. (However, currently only the
13667 identifier has any effect in most writers.) For example,
13671 See [the header above](#foo).
13673 + Pandoc will now act as if link references have been defined
13674 for all headers without explicit identifiers.
13675 So, you can do this:
13679 Link to [My header].
13680 Another link to [it][My header].
13686 + Command macros now work everywhere, including non-math.
13687 Environment macros still not supported.
13688 + `\input` now works, as well as `\include`. TEXINPUTS is used.
13689 Pandoc looks recursively into included files for more included files.
13691### Behavior changes
13693 * The Markdown reader no longer puts the text of autolinks in a
13694 `Code` inline. This means that autolinks will no longer appear
13695 in a monospace font.
13697 * The character `/` can now appear in markdown citation keys.
13699 * HTML blocks in strict_markdown are no longer required to begin
13700 at the left margin. Technically this is required, according to
13701 the markdown syntax document, but `Markdown.pl` and other markdown
13702 processors are more liberal.
13704 * The `-V` option has been changed so that if there are duplicate
13705 variables, those specified later on the command line take precedence.
13707 * Tight lists now work in LaTeX and ConTeXt output.
13709 * The LaTeX writer no longer relien on the `enumerate` package.
13710 Instead, it uses standard LaTeX commands to change the list numbering
13713 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
13714 tables to be split over page boundaries.
13716 * The RST writer now uses a line block to render paragraphs containing
13717 linebreaks (which previously weren't supported at all).
13719 * The markdown writer now applies the `--id-prefix` to footnote IDs.
13722 * The plain writer no longer uses backslash-escaped line breaks
13723 (which are not very "plain").
13725 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
13726 Read bytestring and use `Text`'s decodeUtf8 instead of using
13727 `System.IO.hGetContents`. This way you get a message saying
13728 "invalid UTF-8 stream" instead of "invalid byte sequence."
13729 You are also told which byte caused the problem.
13731 * Docx, ODT, and EPUB writers now download images specified by a URL
13732 instead of skipping them or raising an error.
13736 + The default CSS now left-aligns headers by default, instead of
13737 centering. This is more consistent with the rest of the writers.
13738 + A proper multi-level table of contents is now used in `toc.ncx`.
13739 There is no longer a subsidiary table of contents at the beginning
13741 + Code highlighting now works by default.
13742 + Section divs are used by default for better semantic markup.
13743 + The title is used instead of "Title Page" in the table of contents.
13744 Otherwise we have a hard-coded English string, which looks
13745 strange in ebooks written in other languages. Closes #572.
13749 + Put mathjax in span with class "math". Closes #562.
13750 + Put citations in a span with class "citation." In HTML5, also include
13751 a `data-cite` attribute with a space-separated list of citation
13754 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
13755 This treats both `\r\n` and `\n` as `\n` on input, no matter
13756 what platform we're running on.
13758 * Citation processing is now done in the Markdown and LaTeX
13759 readers, not in `pandoc.hs`. This makes it easier for library users
13762### Template changes
13764 * HTML: Added css to template to preserve spaces in `<code>` tags.
13765 Thanks to Dirk Laurie.
13767 * Beamer: Remove English-centric strings in section pages.
13768 Section pages used to have "Section" and a number as well as the
13769 section title. Now they just have the title. Similarly for part
13770 and subsection. Closes #566.
13772 * LaTeX, ConTeXt: Added papersize variable.
13774 * LaTeX, Beamer templates: Use longtable instead of ctable.
13776 * LaTeX, Beamer templates: Don't require 'float' package for tables.
13777 We don't actually seem to use the '[H]' option.
13779 * Markdown, plain: Fixed titleblock so it is just a single string.
13780 Previously separate title, author, and date variables were used,
13781 but this didn't allow different kinds of title blocks.
13785 + Rationalized templates. Previously there were three different
13786 templates involved in epub production. There is now just one
13787 template, `default.epub` or `default.epub3`. It can now be
13788 overridden using `--template`, just like other templates.
13789 The titlepage is now folded into the default template.
13790 A `titlepage` variable selects it.
13791 + UTF-8, lang tag, meta tags, title element.
13793 * Added scale-to-width feature to beamer template
13797 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
13798 Previously header identifiers were autogenerated by the writers.
13799 Now they are added in the readers (either automatically or explicitly).
13801 * `Text.Pandoc.Builder`:
13803 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
13804 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
13805 custom Monoid instances for `Many Inline` and `Many Block. This
13806 allows `Many` to be made an instance of `Foldable` and `Traversable`.
13807 + The old `Listable` class has been removed.
13808 + The module now exports `isNull`, `toList`, `fromList`.
13809 + The old `Read` and `Show` instances have been removed; derived
13810 instances are now used.
13811 + Added `headerWith`.
13813 * The readers now take a `ReaderOptions` rather than a `ParserState`
13814 as a parameter. Indeed, not all parsers use the `ParserState` type;
13815 some have a custom state. The motivation for this change was to separate
13816 user-specifiable options from the accounting functions of parser state.
13818 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
13819 formerly in `Text.Pandoc.Shared`, and its associated
13820 data types. It also includes a new type `ReaderOptions`, which
13821 contains many options formerly in `ParserState`, and its associated
13824 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
13825 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
13826 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
13827 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
13828 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
13829 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
13830 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
13831 + `ParserState.stateIndentedCodeClasses` ->
13832 `ReaderOptions.readerIndentedCodeClasses`.
13833 + Added `ReaderOptions.readerCitationStyle`.
13835 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
13836 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
13837 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
13838 been renamed `writerEpubMetadata` for consistency.
13840 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
13841 longer stylesheet, fonts, reference files as separate parameters.
13843 * Removed `writerLiterateHaskell` from `WriterOptions`, and
13844 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
13845 by an extension (`Ext_literate_haskell`).
13847 * Removed deprecated `writerXeTeX`.
13849 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
13850 Strict is now handled through extensions.
13852 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
13853 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
13854 and `multimarkdownExtensions`, as well as the `Extensions` type.
13856 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
13859 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
13860 (thanks to Sergey Astanin).
13864 + Added `getReader`, `getWriter` to `Text.Pandoc`.
13865 + `writers` is now an association list `(String, Writer)`.
13866 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
13867 an `IOByteStringWriter`. ALL writers are now in the 'writers'
13868 list, including the binary writers and FB2 writer. This allows
13869 code in `pandoc.hs` to be simplified.
13870 + Changed type of `readers`, so all readers are in IO.
13871 Users who want pure readers can still get them form the reader
13872 modules; this just affects the function `getReader` that looks up
13873 a reader based on the format name. The point of this change is to
13874 make it possible to print warnings from the parser.
13876 * `Text.Pandoc.Parsing`:
13878 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
13879 No other module directly imports Parsec. This will make it easier
13880 to change the parsing backend in the future, if we want to.
13881 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
13882 + Export the type synonym `Parser`.
13883 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
13884 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
13885 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
13886 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
13887 + `ParserState` is no longer an instance of `Show`.
13888 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
13889 + Generalized type of `withQuoteContext`.
13890 + Added `guardEnabled`, `guardDisabled`, `getOption`.
13891 + Removed `failIfStrict`.
13892 + `lookupKeySrc` and `fromKey` are no longer exported.
13894 * `Data.Default` instances are now provided for `ReaderOptions`,
13895 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
13896 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
13897 of `defaultWriterOptions` (which is still defined). Closes #546.
13899 * `Text.Pandoc.Shared`:
13901 + Added `safeRead`.
13902 + Renamed `removedLeadingTrailingSpace` to `trim`,
13903 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
13904 + Count `\r` as space in `trim` functions.
13905 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
13907 + Removed `failUnlessLHS`.
13908 + Export `compactify'`, formerly in Markdown reader.
13909 + Export `isTightList`.
13910 + Do not export `findDataFile`.
13911 + `readDataFile` now returns a strict ByteString.
13912 + Export `readDataFileUTF8` which returns a String, like the
13913 old `readDataFile`.
13914 + Export `fetchItem` and `openURL`.
13916 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
13917 Removed `readImageSize`.
13919 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
13920 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
13923 * `Text.Pandoc.UTF8` is now an exposed module.
13925 * `Text.Pandoc.Biblio`:
13927 + csl parameter now a `String` rather than a `FilePath`.
13928 + Changed type of `processBiblio`. It is no longer in the IO monad.
13929 It now takes a `Maybe Style` argument rather than parameters for CSL
13930 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
13931 the style file and add abbreviations.)
13933 * Markdown reader now exports `readMarkdownWithWarnings`.
13935 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
13940 * Make `--ascii` work properly with `--self-contained`. Closes #568.
13944 + Fixed link parser to avoid exponential slowdowns. Closes #620.
13945 Previously the parser would hang on input like this:
13947 [[[[[[[[[[[[[[[[[[hi
13949 We fixed this by making the link parser parser characters
13950 between balanced brackets (skipping brackets in inline code spans),
13951 then parsing the result as an inline list. One change is that
13953 [hi *there]* bud](/url)
13955 is now no longer parsed as a link. But in this respect pandoc behaved
13956 differently from most other implementations anyway, so that seems okay.
13958 + Look for raw html/latex blocks before tables.
13959 Otherwise the following gets parsed as a table:
13970 + Added support for `:target:` on `.. image::` blocks
13972 + Field list fixes:
13974 - Fixed field lists items with body beginning after a new line
13976 - Allow any char but ':' in names of field lists in RST reader
13978 - Don't allow line breaks in field names.
13979 - Require whitespace after field list field names.
13980 - Don't create empty definition list for metadata field lists.
13981 Previously a field list consisting only of metadata fields (author,
13982 title, date) would be parsed as an empty DefinitionList, which is
13983 not legal in LaTeX and not needed in any format.
13985 + Don't recognize inline-markup starts inside words.
13986 For example, `2*2 = 4*1` should not contain an emphasized
13987 section. Added test case for "Literal symbols". Closes #569.
13988 + Allow dashes as separator in simple tables. Closes #555.
13989 + Added support for `container`, `compound`, `epigraph`,
13990 `rubric`, `highlights`, `pull-quote`.
13991 + Added support for `.. code::`.
13992 + Made directive labels case-insensitive.
13993 + Removed requirement that directives begin at left margin.
13994 This was (correctly) not in earlier releases; docutils doesn't
13995 make the requirement.
13996 + Added support for `replace::` and `unicode::` substitutions.
13997 + Ignore unknown interpreted roles.
13998 + Renamed image parser to `subst`, since it now handles all
13999 substitution references.
14003 + Allow newlines before pipes in table. Closes #654.
14004 + Fixed bug with list items containing line breaks.
14005 Now pandoc correctly handles hard line breaks inside list items.
14006 Previously they broke list parsing.
14007 + Implemented comment blocks.
14008 + Fixed bug affected words ending in hyphen.
14009 + Properly handle links with surrounding brackets.
14010 Square brackets need to be used when the link isn't surrounded by
14011 spaces or punctuation, or when the URL ending may be ambiguous.
14013 + Removed nullBlock. Better to know about parsing problems than
14014 to skip stuff when we get stuck.
14015 + Allow ID attributes on headers.
14016 + Textile reader: Avoid parsing dashes as strikeout.
14017 Previously the input
14024 would be parsed with strikeouts rather than dashes. This fixes
14025 the problem by requiring that a strikeout delimiting - not be
14026 followed by a -. Closes #631.
14027 + Expanded list of `stringBreakers`.
14028 This fixes a bug on input like "(_hello_)" which should
14029 be a parenthesized emphasized "hello".
14030 The new list is taken from the PHP source of textile 2.4.
14031 + Fixed autolinks. Previously the textile reader and writer
14032 incorrectly implented RST-style autolinks for URLs and email
14033 addresses. This has been fixed. Now an autolink is done this way:
14034 `"$":http://myurl.com`.
14035 + Fixed footnotes bug in textile. This affected notes occurring
14036 before punctuation, e.g. `foo[1].`. Closes #518.
14040 + Better handling of citation commands.
14041 + Better handling of `\noindent`.
14042 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
14044 + Made `rawLaTeXInline` try to parse block commands as well. This
14045 is usually what we want, given how `rawLaTeXInline` is used in
14046 the markdown and textile readers. If a block-level LaTeX command
14047 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
14048 we can treat it as raw inline LaTeX.
14049 + Handle `\slash` command. Closes #605.
14050 + Basic `\enquote` support.
14051 + Fixed parsing of paragraphs beginning with a group. Closes #606.
14052 + Use curly quotes for bare straight quotes.
14053 + Support obeylines environment. Closes #604.
14054 + Guard against "begin", "end" in inlineCommand and
14056 + Better error messages for environments. Now it should tell you that
14057 it was looking for \end{env}, instead of giving "unknown parse error."
14061 + Added HTML 5 tags to list of block-level tags.
14062 + HTML reader: Fixed bug in `htmlBalanced`, which
14063 caused hangs in parsing certain markdown input using
14065 + Parse `<q>` as `Quoted DoubleQuote`.
14066 + Handle nested `<q>` tags properly.
14067 + Modified `htmlTag` for fewer false positives.
14068 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
14069 This makes it more useful in the wikimedia and markdown parsers.
14071 * DocBook reader: Support title in "figure" element. Closes #650.
14073 * MediaWiki writer:
14075 + Remove newline after `<br/>` in translation of `LineBreak`
14076 There's no particular need for a newline (other than making the
14077 generated MediaWiki source look nice to a human), and in fact
14078 sometimes it is incorrect: in particular, inside an enumeration, list
14079 items cannot have embedded newline characters. (Brent Yorgey)
14080 + Use `<code>` not `<tt>` for Code.
14082 * Man writer: Escape `-` as `\-`.
14083 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
14084 signs. That is preferable for use with command-line options. See
14085 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
14086 to Andrea Bolognani for bringing the issue to our attention.
14090 + Improved line block output. Use nonbreaking spaces for
14091 initial indent (otherwise lost in HTML and LaTeX).
14092 Allow multiple paragraphs in a single line block.
14093 Allow soft breaks w continuations in line blocks.
14094 + Properly handle images with no alt text. Closes #678.
14095 + Fixed bug with links with duplicate text. We now (a) use anonymous
14096 links for links with inline URLs, and (b) use an inline link instead
14097 of a reference link if the reference link would require a label that
14098 has already been used for a different link. Closes #511.
14099 + Fixed hyperlinked images. Closes #611. Use `:target:`
14100 field when you have a simple linked image.
14101 + Don't add `:align: center` to figures.
14103 * Texinfo writer: Fixed internal cross-references.
14104 Now we insert anchors after each header, and use `@ref` instead of `@uref`
14105 for links. Commas are now escaped as `@comma{}` only when needed;
14106 previously all commas were escaped. (This change is needed, in part,
14107 because `@ref` commands must be followed by a real comma or period.) Also
14108 insert a blank line in from of `@verbatim` environments.
14112 + Made --id-prefix work in DocBook as well as HTML.
14114 + Don't include empty captions in figures. Closes #581.
14118 + Use `\hspace*` for nonbreaking space after line break,
14119 since `~` spaces after a line break are just ignored.
14121 + Don't escape `_` in URLs or hyperref identifiers.
14122 + Properly escape strings inside `\url{}`. Closes #576.
14123 + Use `[fragile]` only for slides containing code rendered
14124 using listings. Closes #649.
14125 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
14126 highlighting-kate's macros, which redefine `|` as a short verbatim
14127 delimiter. Thanks to Björn Peemöller for raising this issue.
14128 + Use minipage rather than parbox for block containers in tables.
14129 This allows verbatim code to be included in grid tables.
14131 + Prevent paragraphs containing only linebreaks or spaces.
14135 + Included `highlighting-css` for code spans, too.
14136 Previously it was only included if used in a code block. Closes #653.
14137 + Improved line breaks with `<dd>` tags. We now put a newline between
14138 `</dd>` and `<dd>` when there are multiple definitions.
14139 + Changed mathjax cdn url so it doesn't use https. (This caused
14140 problems when used with `--self-contained`.) See #609.
14144 + `--number-sections` now works properly.
14145 + Don't strip meta and link elements in epub metadata.
14146 Patch from aberrancy. Closes #589.
14147 + Fixed a couple validation bugs.
14148 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
14149 of chapters in some readers, which apparently sort ch2 after ch10.
14152 * ODT writer: properly set title property (Arlo O'Keeffe).
14156 + Fixed bug with nested lists. Previously a list like
14163 would come out with a bullet instead of "2."
14164 Thanks to Russell Allen for reporting the bug.
14165 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
14166 This seems to fix a problem viewing pandoc-generated
14167 docx files in LibreOffice.
14168 + Use integer ids for bookmarks. Closes #626.
14169 + Added nsid to abstractNum elements. This helps when merging
14170 word documents with numbered or bulleted lists. Closes #627.
14171 + Use separate footnotes.xml for notes.
14172 This seems to help LibreOffice convert the file, even though
14173 it was valid docx before. Closes #637.
14174 + Use rIdNN identifiers for r:embed in images.
14175 + Avoid reading image files again when we've already processed them.
14176 + Fixed typo in `referenc.docx` that prevented image captions from
14177 working. Thanks to Huashan Chen.
14179 * `Text.Pandoc.Parsing`:
14181 + Fixed bug in `withRaw`, which didn't correctly handle the case
14182 where nothing is parsed.
14183 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
14184 though it still doesn't implement quoted strings in email addresses.
14185 + Revised URI parser. It now allows many more schemes, allows
14186 uppercase URIs, and better handles trailing punctuation and
14187 trailing slashes in bare URIs. Added many tests.
14188 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
14189 etc. parse properly. Formerly we had some English-centric heuristics,
14190 but they are no longer needed. Closes #698.
14192 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
14193 This fixes bug with Chinese commas in markdown and reST tables, and
14194 a bug that caused combining characters to be dropped.
14196 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
14198 * `Text.Pandoc.Biblio`:
14200 + Run `mvPunc` and `deNote` on metadata too.
14201 This fixed a bug with notes on titles using footnote styles.
14202 + Fixed bug in fetching CSL files from CSL data directory.
14204 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
14205 is provided. It should be the URL up to the path.
14207 * Fixed/simplified diff output for tests.
14208 Biblio: Make sure mvPunc and deNote run on metadata too.
14209 This fixed a bug with notes on titles using footnote styles.
14211### Under the hood improvements
14213 * We no longer depend on `utf8-string`. Instead we use functions
14214 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
14216 * Use `safeRead` instead of using `reads` directly (various modules).
14218 * "Implicit figures" (images alone in a paragraph) are now handled
14219 differently. The markdown reader gives their titles the prefix `fig:`; the
14220 writers look for this before treating the image as a figure. Though this
14221 is a bit of a hack, it has two advantages: (i) implicit figures can be
14222 limited to the markdown reader, and (ii) they can be deactivated by turning
14223 off the `implicit_figures` extension.
14225 * `catch` from `Control.Exception` is now used instead of the
14226 old Preface `catch`.
14228 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
14229 and `oneOfStrings` (which is now non-backtracking).
14231 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
14232 Now citeproc-hs is fixed upstream, so this is no longer needed.
14235 * Textile reader: Improved speed of `hyphenedWords`.
14236 This speeds up the textile reader by about a factor of 4.
14238 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
14239 better performance, and automatic normalization.
14241 * Major rewrite of markdown reader:
14243 + Use `Text.Pandoc.Builder` instead of lists. This also
14244 means that everything is normalized automatically.
14245 + Move to a one-pass parsing strategy, returning values in the reader
14246 monad, which are then run (at the end of parsing) against the final
14249 * In HTML writer, we now use `toHtml` instead of pre-escaping.
14250 We work around the problem that blaze-html unnecessarily escapes `'`
14251 by pre-escaping just the `'` characters, instead of the whole string.
14252 If blaze-html later stops escaping `'` characters, we can simplify
14253 `strToHtml` to `toHtml`. Closes #629.
14255 * Moved code for embedding images in RTFs from `pandoc.hs` to the
14256 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
14258 * Moved citation processing from `pandoc.hs` into the readers.
14259 This makes things more convenient for library users.
14261 * The man pages are now built by an executable `make-pandoc-man-pages`,
14262 which has its own stanza in the cabal file so that dependencies can be
14263 handled by Cabal. Special treatment in `Setup.hs` ensures that this
14264 executable never gets installed; it is only used to create the man pages.
14266 * The cabal file has been modified so that the pandoc library is used
14267 in building the pandoc executable. (This required moving `pandoc.hs`
14268 from `src` to `.`.) This cuts compile time in half.
14270 * The `executable` and `library` flags have been removed.
14272 * `-threaded` has been removed from ghc-options.
14274 * Version bounds of dependencies have been raised, and the
14275 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
14278 * We now require base >= 4.2.
14280 * Integrated the benchmark program into cabal. One can now do:
14282 cabal configure --enable-benchmarks && cabal build
14283 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
14285 The benchmark now uses README + testsuite, so benchmark results
14286 from older versions aren't comparable.
14288 * Integrated test suite with cabal.
14289 To run tests, configure with `--enable-tests`, then `cabal test`.
14290 You can specify particular tests using `--test-options='-t markdown'`.
14291 No output is shown unless tests fail. The Haskell test modules
14292 have been moved from `src/` to `tests/`.
14294 * Moved all data files and templates to the `data/` subdirectory.
14296 * Added an `embed_data_files` cabal flag. This causes all
14297 data files to be embedded in the binary, so that the binary
14298 is self-sufficient and can be relocated anywhere, copied on
14299 a USB key, etc. The Windows installer now uses this.
14300 (Since we no longer have the option to build the executable
14301 without the library, this is the only way to get a relocatable
14302 binary on Windows.)
14304 * Removed pcre3.dll from windows package.
14305 It isn't needed unless highlighting-kate is compiled with the
14306 `pcre-light` flag. By default, regex-prce-builtin is used.
14309## pandoc 1.9.4.5 (2012-10-21)
14311 * Raised version bounds on network, base64-bytestring, json,
14312 and template-haskell.
14314## pandoc 1.9.4.4 (2012-10-20)
14316 * Removed `tests` flag and made test suite into a proper cabal
14317 test suite, which can now be enabled using `--enable-tests`
14318 and run with `cabal test`.
14320 * Moved man page creation out of `Setup.hs` and into an
14321 executable built by Cabal, but never installed. This
14322 allows dependencies to be specified, and solves a problem
14323 with 1.9.4.3, which could only be installed if `data-default`
14324 had already been installed.
14326 * Updated `lhs-latex.tex` test for latest highlighting-kate
14327 representation of backticks.
14329## pandoc 1.9.4.3 (2012-10-20)
14331 * Removed `-threaded` from default compile flags.
14333 * Modified modules to compile with GHC 7.6 and latest version of time
14336## pandoc 1.9.4.2 (2012-06-29)
14338 * Don't encode/decode file paths if base >= 4.4.
14339 Prior to base 4.4, filepaths and command line arguments were treated
14340 as unencoded lists of bytes, not unicode strings, so we had to work
14341 around that by encoding and decoding them. This commit adds CPP
14342 checks for the base version that intelligibly enable encoding/decoding
14343 when needed. Fixes a bug with multilingual filenames when pandoc was
14344 compiled with ghc 7.4 (#540).
14346 * Don't generate an empty H1 after hrule slide breaks.
14347 We now use a slide-level header with contents `[Str "\0"]` to mark
14348 an hrule break. This avoids creation of an empty H1 in these
14349 contexts. Closes #484.
14351 * Docbook reader: Added support for "bold" emphasis. Thanks to mb21.
14353 * In make_osx_package.sh, ensure citeproc-hs is built with the
14354 embed_data_files flag.
14356 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
14358 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
14359 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
14361 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
14364 * Added webm to mime types. Closes #543.
14366 * Added some missing exports and tests to the cabal file
14367 (Alexander V Vershilov).
14369 * Compile with `-rtsopts` and `-threaded` by default.
14371## pandoc 1.9.4.1 (2012-06-08)
14373 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
14375 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
14376 variables. Make TOC links black.
14378 * LaTeX template improvements.
14380 + Don't print date unless one is given explicitly in the document.
14381 + Simplified templates.
14382 + Use fontenc [T1] by default, and lmodern.
14383 + Use microtype if available.
14387 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
14388 Motivation: `@item1 [50]` should be as close as possible to
14390 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
14391 beginning with a citation to be empty. Closes #531.
14393 * Fixed documentation on mixed lists. Closes #533.
14395## pandoc 1.9.4 (2012-06-03)
14397 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
14398 footnotes and captions. We now handle note citations by inserting
14399 footnotes during initial citation processing, and doing a separate
14400 pass later to remove notes inside notes.
14402 * Added 'zenburn' highlight style from highlighting-kate.
14404 * Added Slideous writer. Slideous is an HTML + javascript slide show
14405 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
14409 + Ensure we don't have extra blank lines at ends of cells.
14410 This can cause LaTeX errors, as they are interpreted as new paragraphs.
14411 + More consistent interblock spacing.
14412 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
14413 code in LaTeX. Closes #527.
14414 + Ensure that a Verbatim at the end of a footnote is followed by
14415 a newline. (Fixes a regression in the previous version.)
14416 + In default template, use black for internal links and TOC.
14417 Added commented-out code to use footnotes for links, as would
14418 be suitable in print output.
14420 * Beamer writer: When `--incremental` is used, lists inside
14421 a block quote should appear all at once. (This makes Beamer
14422 output consistent with the HTML slide show formats.)
14426 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
14427 to avoid gobbling spaces after the `%` sign.
14428 + Ensure space after `\stopformula`.
14432 + Use `:` form instead of `~` in definition lists, for better
14433 compatibility with other markdown implementations.
14434 + Don't wrap the term, because it breaks definition lists.
14435 + Use a nonzero space to prevent false recognition
14436 of list marker in ordered lists. Closes #516.
14438 * Org writer: Add space before language name. Closes #523.
14440 * Docx writer: Simplified bullet characters so they work properly
14441 with Word 2007. Closes #520.
14443 * LaTeX reader: Support `\centerline`.
14445 * RST reader: handle figures. Closes #522.
14447 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
14450## pandoc 1.9.3 (2012-05-12)
14452 * Added docbook reader (with contributions from Mauro Bieg).
14454 * Fixed bug in `fromEntities`. The previous version would turn
14455 `hi & low you know;` into `hi &`.
14459 + Don't skip nonbreaking spaces.
14460 Previously a paragraph containing just ` ` would be rendered
14461 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
14462 + Support `<col>` and `<caption>` in tables. Closes #486.
14466 + Don't recognize references inside delimited code blocks.
14467 + Allow list items to begin with lists.
14471 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
14472 + Control sequences can't be followed by a letter.
14473 This fixes a bug where `\begingroup` was parsed as `\begin`
14474 followed by `group`.
14475 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
14476 + Make `\label` and `\ref` sensitive to `--parse-raw`.
14477 If `--parse-raw` is selected, these will be parsed as raw latex
14478 inlines, rather than bracketed text.
14479 + Don't crash on unknown block commands (like `\vspace{10pt}`)
14480 inside `\author`; just skip them. Closes #505.
14484 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
14485 + Added support for LaTeX blocks and inlines (Paul Rivier).
14486 + Better conformance to RedCloth inline parsing (Paul Rivier).
14487 + Parse '+text+' as emphasized (should be underlined, but this
14488 is better than leaving literal plus characters in the output.
14490 * Docx writer: Fixed multi-paragraph list items. Previously they each
14491 got a list marker. Closes #457.
14495 + Added `--no-tex-ligatures` option to avoid replacing
14496 quotation marks and dashes with TeX ligatures.
14497 + Use `fixltx2e` package to provide `\textsubscript`.
14498 + Improve spacing around LaTeX block environments:
14499 quote, verbatim, itemize, description, enumerate.
14501 + Use blue instead of pink for URL links in latex/pdf output.
14503 * ConTeXt writer: Fixed escaping of `%`.
14504 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
14505 Inside URLs, `%` needs to be escaped as `\%`
14506 Thanks to jmarca and adityam for the fix. Closes #492.
14508 * Texinfo writer: Escape special characters in node titles.
14509 This fixes a problem pointed out by Joost Kremers. Pandoc used
14510 to escape an '@' in a chapter title, but not in the corresponding
14511 node title, leading to invalid texinfo.
14513 * Fixed document encoding in texinfo template.
14514 Resolves Debian Bug #667816.
14518 + Don't force delimited code blocks to be flush left.
14519 Fixes bug with delimited code blocks inside lists etc.
14520 + Escape `<` and `$`.
14522 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
14523 Previously we used `\href{\#ident}{text}`, which didn't work on
14524 all systems. Thanks to Dirk Laurie.
14526 * RST writer: Don't wrap link references. Closes #487.
14528 * Updated to use latest versions of blaze-html, mtl.
14531## pandoc 1.9.2 (2012-04-05)
14535 + Made `lstlisting` work as a proper verbatim environment.
14536 + Fixed bug parsing LaTeX tables with one column.
14540 + Use `{}` around `ctable` caption, so that formatting can be used.
14541 + Don't require eurosym package unless document has a €.
14543 * LaTeX template: Added variables for `geometry`, `romanfont`,
14544 `sansfont`, `mathfont`, `mainfont` so users can more easily
14549 + Run latex engine at least two times, to ensure
14550 that PDFs will have hyperlinked bookmarks.
14551 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
14553 * Texinfo writer: retain directories in image paths. (Peter Wang)
14555 * RST writer: Better handling of inline formatting, in accord
14556 with docutils' "inline markup recognition rules" (though we don't
14557 implement the unicode rules fully). Now `hi*there*hi` gets
14558 rendered properly as `hi\ *there*\ hi`, and unnecessary
14559 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
14563 + Parse `\ ` as null, not escaped space.
14564 + Allow `` :math:`...` `` even when not followed by blank
14565 or `\`. This does not implement the complex rule docutils follows,
14566 but it should be good enough for most purposes.
14567 + Add support for the rST default-role directive. (Greg Maslov)
14569 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
14572 * Markdown reader: Properly handle citations nested in other inline
14575 * Markdown writer: don't replace empty alt in image with "image".
14577 * DZSlides: Updated template.html and styles in default template.
14578 Removed bizarre CSS for `q` in dzslides template.
14580 * Avoid repeated `id` attribute in section and header in HTML slides.
14582 * README improvements: new instructions on internal links,
14583 removed misleading note on reST math.
14587 + Fixed Windows installer so that dzslides works.
14588 + Removed stripansi.sh.
14589 + Added .travis.yml for Travis continuous integration support..
14590 + Fixed upper bound for zlib (Sergei Trofimovich).
14591 + Fixed upper bound for test-framework.
14592 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
14595## pandoc 1.9.1.2 (2012-03-09)
14597 * Added `beamer+lhs` as output format.
14599 * Don't escape `<` in `<style>` tags with `--self-contained`.
14600 This fixes a bug which prevented highlighting from working
14601 when using `--self-contained`.
14603 * PDF: run latex engine three times if `--toc` specified.
14604 This fixes page numbers in the table of contents.
14606 * Docx writer: Added TableNormal style to tables.
14608 * LaTeX math environment fixes. `aligned` is now used instead of
14609 the nonexistent `aligned*`. `multline` instead of the nonexistent
14612 * LaTeX writer: Use `\textasciitilde` for literal `~`.
14614 * HTML writer: Don't escape contents of EQ tags with --gladtex.
14615 This fixes a regression from 1.8.
14617 * Use `<q>` tags for Quoted items for HTML5 output.
14618 The quote style can be changed by modifying the template
14619 or including a css file. A default quote style is included.
14621 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
14622 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
14624 * Updated LaTeX template for better language support.
14625 Use `polyglossia` instead of `babel` with xetex.
14626 Set `lang` as documentclass option.
14627 `\setmainlanguage` will use the last of a comma-separated
14628 list of languages. Thanks to François Gannaz.
14630 * Fixed default LaTeX template so `\euro` and `€` work. The
14631 `eurosym` package is needed if you are using pdflatex.
14633 * Fixed escaping of period in man writer (thanks to Michael Thompson).
14635 * Fixed list label positions in beamer.
14637 * Set `mainlang` variable in context writer.
14638 This parallels behavior of latex writer. `mainlang` is the last
14639 of a comma-separated list of languages in lang.
14641 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
14643 * Changed `-V` so that you can specify a key without a value.
14644 Such keys get the value `true`.
14646 * Fixed permissions on installed man pages - thanks Magnus Therning.
14648 * Windows installer: require XP or higher. The installer is
14649 now compiled on a Windows 7 machine, which fixes a problem
14650 using citation functions on Windows 7.
14652 * OSX package: Check for 64-bit Intel CPU before installing.
14655## pandoc 1.9.1.1 (2012-02-11)
14657 * Better handling of raw latex environments in markdown. Now
14663 turns into a raw latex block as expected.
14665 * Improvements to LaTeX reader:
14667 + Skip options after block commands.
14668 + Correctly handle `{\\}` in braced.
14669 + Added a needed 'try'.
14670 + Citations: add `, ` to suffix if it doesn't start with space or
14671 punctuation. Otherwise we get no space between the year and the
14672 suffix in author-date styles.
14674 * Added two needed data files for S5. This fixes a problem with
14675 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
14676 which was no longer being used.
14678 * Fixed some minor problems in `reference.docx`:
14679 name on "Date" style, `xCs` instead of `xIs`.
14681 * Fixed a problem creating docx files using a reference docx
14682 modified using Word. The problem seems to be that Word
14683 modifies `_rels/.rels`, changing the Type of the Relationship to
14684 `docProps/core.xml`. Pandoc now changes this back to the correct
14685 value if it has been altered, fixing the problem.
14687 * Fixed html5 template so it works properly with highlighting.
14689## pandoc 1.9.1 (2012-02-09)
14693 + Fixed regression in 1.9; properly handle escaped $ in latex math.
14694 + Put LaTeX verse environments in blockquotes.
14698 + Limit nesting of strong/emph. This avoids exponential lookahead
14699 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
14700 + Improved attributes syntax (in code blocks/spans): (1)
14701 Attributes can contain line breaks. (2) Values in key-value
14702 attributes can be surrounded by either double or single quotes, or
14703 left unquoted if they contain no spaces.
14705 * Headers no longer wrap in markdown or RST writers.
14707 * Added `stateMaxNestingLevel` to `ParserState`.
14708 We set this to 6, so you can still have `Emph` inside `Emph`,
14709 just not indefinitely.
14711 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
14713 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
14716 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
14718## pandoc 1.9.0.5 (2012-02-06)
14720 * Changed cabal file so that build-depends for the test program
14721 are not required unless the tests flag is used.
14723 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
14724 form ligatures (dashes) in code spans.
14726## pandoc 1.9.0.4 (2012-02-06)
14728 * Raised version bound on test-framework to avoid problems
14729 compiling tests on GHC 7.4.1.
14731 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
14732 so citations don't just disappear unless you process with
14733 citeproc. Ignore `\bibliographystyle`, `\nocite`.
14735 * Simplified tex2pdf; it will always run latex twice to
14736 resolve table of contents and hyperrefs.
14738## pandoc 1.9.0.3 (2012-02-06)
14740 * Require Cabal >= 1.10.
14742 * Tweaked cabal file to meet Cabal 1.10 requirements.
14744## pandoc 1.9.0.2 (2012-02-05)
14746 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
14749## pandoc 1.9 (2012-02-05)
14753 * Added a Microsoft Word `docx` writer. The writer includes support
14754 for highlighted code and for math (which is converted from TeX to OMML,
14755 Office's native math markup language, using texmath's new OMML module).
14756 A new option `--reference-docx` allows the user to customize the
14759 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
14761 * Better support for slide shows:
14763 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
14764 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
14766 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
14767 slide presentations.
14769 + New, flexible rules for dividing documents into sections and slides
14770 (see the "Structuring the slide show" in the User's Guide). These
14771 are backward-compatible with the old rules, but they allow slide
14772 shows to be organized into sections and subsections containing
14775 + A new `--slide-level` option allows users to override defaults
14776 and select a slide level below the first header level with content.
14778 * A new `--self-contained` option produces HTML output that does not
14779 depend on an internet connection or the presence of any external
14780 files. Linked images, CSS, and javascript is downloaded (or fetched
14781 locally) and encoded in `data:` URIs. This is useful for making portable
14782 `HTML slide shows. The --offline` option has been deprecated and is now
14783 `treated as a synonym or --self-contained`.
14785 * Support for PDF output:
14787 + Removed the old `markdown2pdf`.
14788 + `pandoc` can now create PDFs (assuming you have latex and a set of
14789 appropriate packages installed): just specify an output file with the
14791 + A new option `--latex-engine` allows you to specify `pdflatex`,
14792 `xelatex`, or `lualatex` as the processor.
14794 * Highlighting changes:
14796 + Syntax highlighting is now a standard feature; the `highlighting`
14797 flag is no longer needed when compiling.
14798 + A new `--no-highlight` option allows highlighting to be disabled.
14799 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
14800 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
14801 + A new `--highlight-style` option selects between various highlighting
14804 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
14806 * LaTeX `\include` and `\usepackage` commands are now processed,
14807 provided the files are in the working directory.
14809 * EPUB improvements:
14811 + Internal and external links now work in EPUB.
14812 + Raw HTML is allowed.
14813 + New `--epub-embed-font` option.
14814 + Customizable templates for EPUB pages offer more control over
14815 formatting: `epub-page.html`, `epub-coverimage.html`,
14816 `epub-titlepage.html`.
14818 * `--mathml` now works with DocBook.
14820 * Added support for math in RST reader and writer. Inline math uses the
14821 `` :math:`...` `` construct. Display math uses
14825 or if the math is multiline,
14831 These constructions are now supported now by `rst2latex.py`.
14833 * Github syntax for fenced code blocks is supported in pandoc's
14834 markdown. You can now write
14846 * Easier scripting: a new `toJsonFilter` function makes it easier to
14847 write Haskell scripts to manipulate the Pandoc AST.
14848 See [Scripting with pandoc](scripting.html#pandoc-1.9-changes).
14850### Behavior changes
14852 * Fixed parsing of consecutive lists in markdown.
14853 Pandoc previously behaved like Markdown.pl for consecutive
14854 lists of different styles. Thus, the following would be parsed
14855 as a single ordered list, rather than an ordered list followed
14856 by an unordered list:
14864 This change makes pandoc behave more sensibly, parsing this as
14865 two lists. Any change in list type (ordered/unordered) or in
14866 list number style will trigger a new list. Thus, the following
14867 will also be parsed as two lists:
14875 Since we regard this as a bug in Markdown.pl, and not something
14876 anyone would ever rely on, we do not preserve the old behavior
14877 even when `--strict` is selected.
14879 * Dashes work differently with `--smart`: `---` is always em-dash,
14880 and `--` is always en-dash. Pandoc no longer tries to guess when
14881 `-` should be en-dash. *Note:* This may change how existing documents
14882 look when processed with pandoc. A new option, `--old-dashes`,
14883 is provided for legacy documents.
14885 * The markdown writer now uses setext headers for levels 1-2.
14886 The old behavior (ATX headers for all levels) can be restored
14887 using the new `--atx-headers` option.
14889 * Links are now allowed in markdown image captions. They are also
14890 allowed in links, but will appear there as regular text. So,
14892 [link with [link](/url)](/url)
14896 <p><a href="/url">link with link</a></p>
14898 * Improved handling of citations using `citeproc-hs-0.3.4`.
14899 Added `--citation-abbreviations` option.
14901 * Citation keys can no longer end with a punctuation character.
14902 This means that `@item1.` will be parsed as a citation with key
14903 'item1', followed by a period, instead of a citation with key
14904 'item1.', as was the case previously.
14906 * In HTML output, citations are now put in a span with class `citation`.
14908 * The markdown reader now recognizes DocBook block and inline tags.
14909 It was always possible to include raw DocBook tags in a markdown
14910 document, but now pandoc will be able to distinguish block from
14911 inline tags and behave accordingly. Thus, for example,
14917 will not be wrapped in `<para>` tags.
14919 * The LaTeX parser has been completely rewritten; it is now much more
14920 accurate, robust, and extensible. However, there are two important
14921 changes in how it treats unknown LaTeX. (1) Previously, unknown
14922 environments became BlockQuote elements; now, they are treated
14923 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
14924 same as `xyz`. (2) Previously, arguments of unknown commands
14925 were passed through with their braces; now the braces are stripped
14928 * `--smart` is no longer selected automatically with `man` output.
14930 * The deprecated `--xetex` option has been removed.
14932 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
14933 instead. `html5` and `html5+lhs` are now separate output formats.
14935 * Single quotes are no longer escaped in HTML output. They do not
14936 need to be escaped outside of attributes.
14938 * Pandoc will no longer transform leading newlines in code
14939 blocks to `<br/>` tags.
14941 * The ODT writer now sizes images appropriately, using the image
14942 size and DPI information embedded in the image.
14944 * `--standalone` is once again implicitly for a non-text output format
14945 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
14946 and get a standalone ODT file.
14948 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
14951 * The HTML writer now uses `<del>` for strikeout.
14953 * In HTML output with `--section-divs`, the classes `section` and
14954 `level[1,2,..6]` are put on the `div` tags so they can be styled.
14955 In HTML 5 output with `--section-divs`, the classes
14956 `level[1,2,...6]` are put on `section` tags.
14958 * EPUB writer changes:
14960 + The `lang` variable now sets the language
14961 in the metadata (if it is not set, we default to the locale).
14962 + EPUB: UTF-8 is used rather than decimal entities.
14964 * Added `titleslide` class to title slide in S5 template.
14966 * In HTML, EPUB, and docx metadata, the date is normalized into
14967 YYYY-MM-DD format if possible. (This is required for validation.)
14969 * Attributes in highlighted code blocks are now preserved in HTML.
14970 The container element will have the classes, id, and key-value attributes
14971 you specified in the delimited code block. Previously these were stripped
14974 * The reference backlink in the HTML writer no longer has a special
14975 `footnoteBacklink` class.
14977 * The HTML template has been split into `html` and `html5` templates.
14979 * Author and date are treated more consistently in HTML templates.
14980 Authors are now `<h2>`, date `<h3>`.
14982 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
14984 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
14988 * Better support for combining characters and East Asian wide characters
14989 in markdown and reST.
14991 * Better handling of single quotes with `--smart`.
14992 Previously `D'oh l'*aide*` would be parsed with left and right single
14993 quotes instead of apostrophes. This kind of error is now fixed.
14995 * Highlighting: Use `reads` instead of `read` for better error handling.
14996 Fixes crash on `startNum="abc"`.
14998 * Added blank comment after directives in rst template.
15000 * Unescape entities in citation `refId`. The `refId`s coming
15001 from citeproc contain XML numeric entities, and these don't match with the
15002 citation keys parsed by pandoc. Solution is to unescape them.
15004 * HTML reader: Fixed bug parsing tables with both thead and tbody.
15008 + Better handling of escapes in link URLs and titles.
15009 + Fixed backslash escapes in reference links.
15010 + Fixed bug in table/hrule parsing, by checking that the top
15011 line of a table is not followed by a blank line. This bug caused
15012 slowdowns on some files with hrules and tables, as pandoc tried to
15013 interpret the hrules as the tops of multiline tables.
15014 + Fixed bug in code block attribute parser. Previously the ID attribute
15015 got lost if it didn't come first. Now attributes can come in any order.
15017 * RST reader: allow footnotes followed by newline without space characters.
15021 + Ignore empty groups {}, { }.
15022 + LaTeX reader: Handle `\@`.
15023 + LaTeX reader: Don't crash on commands like `\itemsep`.
15024 + LaTeX reader: Better handling of letter environments.
15026 * RST writer: Fixed bug involving empty table cells. isSimple was being
15027 calculated in a way that assumed there were no non-empty cells.
15031 + Made `--toc` work even without `--number-sections`.
15032 + Escape # in link URLs.
15033 + Use buffering for footnotes containing code blocks.
15034 + Changed 'descr' to 'description', fixed alignment.
15038 + Escape euro character.
15039 + Don't escape `~` inside `\href{...}`.
15040 + Escape `#` in href URLs.
15041 + Improved detection of book classes. We now check the
15042 `documentclass` variable, and if that is not set, we look through
15043 the template itself. Also, we have added the KOMA classes scrreprt
15044 and scrbook. You can now make a book using
15045 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
15046 + LHS files now set the "listings" variable, so that the definition
15047 of the `code` environment will be included in the template.
15048 + Links are colored blue by default (this can be changed by
15049 modifying `hyperref` settings in the template).
15050 + Added `lang` variable to LaTeX template.
15054 + Fixed bug in HTML template with html5 and mathml.
15055 + Don't use self-closing img, br, hr tags for HTML5.
15056 + Use `<section>` for footnotes if HTML5.
15057 + Update HTML templates to use Content-Style-Type meta tag.
15058 + Use separate variables for meta-date, meta-author.
15059 This makes footnotes work in author and date fields.
15060 + Use 'vertical-align:middle' in WebTeX math for better alignment.
15062 * S5/slidy writer: Make footnotes appear on separate slide at end.
15064 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
15065 META-INF/manifest.xml for ODT files will have everything it needs, so
15066 that ODT files modified by LibreOffice can be used as `--reference-odt`.
15068 * `Text.Pandoc.Templates`: Return empty string for json template.
15070 * `Text.Pandoc.Biblio`:
15072 + Expand citations recursively inside nested inlines.
15073 + Treat `\160` as space when parsing locator and suffix.
15074 This fixes a bug with "p. 33" when `--smart` is used. Previously
15075 the whole "p. 33" would be included in the suffix, with no locator.
15076 + Put whole author-in-text citation in a Cite. Previously just the
15077 date and other info went in the Cite.
15078 + Don't add comma+space to prefix if it ends in punctuation.
15080 * Updated chicago-author-date.csl. The old version did not work
15081 properly for edited volumes with no author.
15085 + Add date to EPUB titlepage and metadata.
15086 + Added TOC identifier in EPUB page template.
15087 + Don't generate superfluous file `cover-image.jpg`.
15089### Under the hood improvements
15091 * Modified `make_osx_package.sh` to use cabal-dev.
15092 Items are no longer installed as root.
15093 Man pages are zipped and given proper permissions.
15095 * Modified windows installer generater to use cabal-dev.
15097 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
15098 Setup.hs we now invoke 'runghc' in a way that points it to the correct
15099 package databases, instead of always falling back to the default user
15102 * Updated to work with GHC 7.4.1.
15104 * Removed dependency on old-time.
15106 * Removed dependency on dlist.
15108 * New slidy directory for "self-contained."
15110 * TeXMath writer: Use unicode thin spaces for thin spaces.
15112 * Markdown citations: don't strip off initial space in locator.
15116 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
15117 from the native `Inline` type in pandoc-types. Now we use `Str`
15118 elements with unicode.
15120 * Improvements to `Text.Pandoc.Builder`:
15122 + `Inlines` and `Blocks` are now newtypes (not synonyms for
15124 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
15125 and a new `Listable` class, which allows these to be manipulated
15126 to some extent like lists. Monoid append includes automatic
15128 + `+++` has been replaced by `<>` (mappend).
15130 * Use blaze-html instead of xhtml for HTML generation.
15131 This changes the type of `writeHtml`.
15133 * `Text.Pandoc.Shared`:
15135 + Added `warn` and `err`.
15136 + Removed `unescapeURI`, modified `escapeURI`.
15137 (See under [behavior changes], above.)
15139 * Changes in URI escaping: Previously the readers escaped URIs by
15140 converting unicode characters to octets and then percent encoding.
15141 Now unicode characters are left as they are, and `escapeURI` only
15142 percent-encodes space characters. This gives more readable
15143 URIs, and works well with modern user agents. URIs are no longer unescaped
15144 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
15146 * New module `Text.Pandoc.SelfContained`.
15148 * New module `Text.Pandoc.Docx`.
15150 * New module `Text.Pandoc.PDF`.
15152 * Added `writerBeamer` to `WriterOptions`.
15154 * Added `normalizeDate` to `Text.Pandoc.Shared`.
15156 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
15157 This is like `splitWithIndices`, but it is sensitive to distinctions
15158 between wide, combining, and regular characters.
15160 * `Text.Pandoc.Pretty`:
15162 + Added `chomp` combinator.
15163 + Added `beforeNonBreak` combinator. This allows you to include
15164 something conditionally on it being before a nonblank.
15165 Used for RST inline math.
15166 + Added `charWidth` function. All characters marked W or F in the unicode
15167 spec EastAsianWidth.txt get width 2.
15168 + Added `realLength`, based on `charWidth`. `realLength` is now
15169 used in calculating offsets.
15171 * New module `Text.Pandoc.Slides`, for common functions for breaking
15172 a document into slides.
15174 * Removed `Text.Pandoc.S5`, which is no longer needed.
15176 * Removed `Text.Pandoc.CharacterReferences`. Moved
15177 `characterReference` to `Text.Pandoc.Parsing`.
15178 `decodeCharacterReferences` is replaced by `fromEntities`
15179 in `Text.Pandoc.XML`.
15181 * Added `Text.Pandoc.ImageSize`. This is intened for use
15182 in `docx` and `odt` writers, so the size and dpi of images
15185 * Removed `writerAscii` in `WriterOptions`.
15187 * Added `writerHighlight` to `WriterOptions`.
15189 * Added `DZSlides` to `HTMLSlideVariant`.
15191 * `writeEPUB` has a new argument for font files to embed.
15193 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
15194 of whether we're parsing the position immediately after a regular
15195 (non-space, non-symbol) string, which is useful for distinguishing
15196 apostrophes from single quote starts.
15198 * `Text.Pandoc.Parsing`:
15200 + `escaped` now returns a `Char`.
15201 + Removed `charsInBalanced'`, added a character parser as
15202 a parameter of `charsInBalanced`. This is needed for
15203 proper handling of escapes, etc.
15206 * Added `toEntities` to `Text.Pandoc.XML`.
15208 * `Text.Pandoc.Readers.LaTeX`:
15210 + Export `handleIncludes`.
15211 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
15213 * Added `ToJsonFilter` class and `toJsonFilter` function to
15214 `Text.Pandoc`, deprecating the old `jsonFilter` function.
15216 * `Text.Pandoc.Highlighting`:
15218 + Removed `highlightHtml`, `defaultHighlightingCss`.
15219 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
15220 key functions from highlighting-kate.
15221 + Changed types of highlighting function. `highlight` returns a
15222 `Maybe`, not an `Either`.
15225## pandoc 1.8.2.1 (2011-08-01)
15227 * Adjusted Arbitrary instance to help avoid timeouts in tests.
15229 * Added `Tests.Writers.Markdown` to cabal file.
15231 * Relaxed version bounds on pandoc-types, test-framework.
15233## pandoc 1.8.2 (2011-07-30)
15235 * Added script to produce OS X package.
15237 * Made `templates` directory a git submodule. This should make it
15238 easier for people to revise their custom templates when the default
15241 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
15242 **Note:** If you have existing templates in `~/.pandoc/templates`, you
15243 must rename them to conform to the new scheme!
15245 * Default template improvements:
15247 + HTML: Display author and date after title.
15248 + HTML: Made table of contents more customizable. The container
15249 for the TOC is now in the template, so users can insert a header
15250 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
15251 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
15252 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
15253 hard-coding. If you want to put your slidy files in the slidy
15254 subdirectory, for example, you can do
15255 `pandoc -t slidy -V slidy-url=slidy -s`.
15256 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
15257 & writer). Closes #279.
15258 + LaTeX: Set `\emergencystretch` to prevent overfull lines.
15259 + LaTeX: Use different `hyperref` options for `xetex`, fixing
15260 problems with unicode bookmarks (thanks to CircleCode).
15261 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
15262 with `inputenc`. This covers fewer characters but is more
15263 robust with other packages, and `ucs` is unmaintained. Users
15264 who need better unicode support should use xelatex or lualatex.
15266 * If a template specified with `--template` is not found, look for it
15267 in `datadir`. Also, if no extension is provided, supply one based
15268 on the writer. So now you can put your `special.latex` template in
15269 `~/.pandoc/templates`, and use it from any directory via
15270 `pandoc -t latex --template special`.
15272 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
15274 * Fixed smart quotes bug, now handling `'...hi'` properly.
15278 + Partial support for labeled footnotes.
15279 + Improved accuracy of `simpleReferenceName` parser.
15283 + Substitute correct unicode characters for
15284 characters in the 128..159 range, which are often found even in
15285 HTML that purports to be UTF-8.
15287 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
15288 to the title, after a colon and linebreak). Closes #280.
15290 * Leaner `reference.odt`.
15292 * Added unexported module `Text.Pandoc.MIME` for use in
15295 * ODT writer: Construct `manifest.xml` based on archive contents.
15296 This fixes a bug in ODTs containing images. Recent versions of
15297 LibreOffice would reject these as corrupt, because `manifest.xml`
15298 did not contain a reference to the image files.
15302 + Make verbatim environments flush to avoid spurious
15303 blank lines. Closes #277.
15304 + Use `\texttt` and escapes insntead of `\verb!...!`, which
15305 is too fragile (doesn't work in command arguments).
15306 + Use `\enquote{}` for quotes if the template includes
15307 the `csquotes` package. This provides better support for
15308 local quoting styles. (Thanks to Andreas Wagner for the idea.)
15310 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
15311 margin, preventing spurious blank lines.
15315 + Use non-minimized version of `slidy.css` with `--offline`
15316 option, so users can more easily edit it.
15317 + Also fixed a bug in the CSS that prevented proper centering
15318 of title (now reported and fixed upstream).
15322 + Replaced `s5/default/slides.js.{comment,packed}` with
15323 new compressed `s5/default/slides.min.js`.
15324 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
15325 when `--offline` is specified. Using inline CSS didn't
15326 work with Chrome or Safari. This fixes offline
15327 S5 on those browsers.
15329 * HTML writer: Removed English title on footnote backlinks.
15330 This is incongrous in non-English documents.
15334 + Use CALS tables. (Some older docbook software does not work
15335 well with XHTML tables.) Closes #77.
15336 + Use `programlisting` tags (instead of `screen`) for code blocks.
15340 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
15341 of `-interaction=batchmode`, which essentially just ignored errors,
15342 leading to bad results. Better to know when something is wrong.
15343 + Fixed issues with non-UTF-8 output of `pdflatex`.
15344 + Better error reporting.
15346 * `--mathjax` now takes an optional URL argument. If it is not
15347 provided, pandoc links directly to the (secure) mathjax CDN,
15348 as now recommended (thanks to dsanson).
15350 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
15351 since the LaTeX writer now produces a file that can be processed by
15352 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
15354 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
15355 to be used to create the PDF.
15358## pandoc 1.8.1.2 (2011-07-16)
15360 * Added `--epub-cover-image` option.
15362 * Documented `--biblatex` and `--natbib` options.
15364 * Allow `--section-divs` with slidy output. Resolves Issue #296.
15366 * Disallow notes within notes in reST and markdown.
15367 These previously caused infinite looping and stack overflows.
15374 Note references are allowed in reST notes, so this isn't a full
15375 implementation of reST. That can come later. For now we need to
15376 prevent the stack overflows. Partially resolves Issue #297.
15378 * EPUB writer: Allow non-plain math methods.
15380 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
15381 `(@item1; @item2)` because the final paren was being parsed as part of
15384 * Changed URI parser so it doesn't include trailing punctuation.
15385 So, in RST, `http://google.com.` should be parsed as a link followed by a
15386 period. The parser is smart enough to recognize balanced parentheses, as
15387 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
15389 * Markdown+lhs reader: Require space after inverse bird tracks, so that
15390 HTML tags can be used freely at the left margin of a markdown+lhs document.
15391 Thanks to Conal Elliot for the suggestion.
15393 * Markdown reader: Fixed bug in footnote order (reported by CircleCode).
15396 + Fixed bug in in field lists with multi-line items at the
15398 + Added parentheses to RST `specialChars`, so
15399 `(http://google.com)` will be parsed as a link in parens.
15400 Resolves Issue #291.
15401 + Allow `|` followed by newline in RST line block.
15405 + Gobble option & space after linebreak `\\[10pt]`.
15408 + Make it possible to have colons after links. (qerub)
15409 + Make it possible to have colons after links. (Christoffer Sawicki)
15412 + Skip spaces after `<b>`, `<emph>`, etc.
15413 + Handle tbody, thead in simple tables. Closes #274.
15414 + Implicit `Para`s instead of `Plains` in some contexts.
15416 * OpenDocument writer: Use special `First paragraph` style for
15417 first paragraph after most non-paragraph blocks. This allows users to
15418 specify e.g. that only paragraphs after the first paragraph of a block are
15419 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
15421 * LaTeX writer: use `deVerb` on table and picture captions.
15422 Otherwise LaTeX complains about `\verb` inside command argument.
15423 Thanks to bbanier for reporting the bug.
15425 * Markdown writer: Insert HTML comment btw list and indented code block.
15426 This prevents the code block from being interpreted as part of the list.
15428 * EPUB writer: Add a meta element specify the cover.
15429 Some EPUB e-readers, such as the Nook, require a meta element inside the
15430 OPF metadata block to ensure the cover image is properly displayed.
15433 * HTML writer: Use embed tag for images with non-image extensions.
15434 (e.g. PDFs). Closes #264.
15436 * LaTeX writer: Improved tables.
15438 + More space between lines, top-align cells.
15439 + Use ctable package, which allows footnotes and
15440 provides additional options.
15441 + Made cell alignments work in multiline tables.
15442 + Closes #271, #272.
15444 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
15445 Also do this when copying image files into EPUBs and ODTs.
15448 * Changed to github issue tracker.
15450 * Added failing emph/strong markdown test case due to Perry Wagle.
15452 * Slidy improvements:
15453 + Updated to use Slidy2.
15454 + Fixed bug, unclosed div tag.
15455 + Added `duration` variable in template.
15456 Setting this activates the timer.
15457 + Use 'titlepage' instead of 'cover' for title div.
15460## pandoc 1.8.1.1 (2011-02-13)
15462 * `markdown2pdf`: Removed some debugging lines accidentally included
15463 in the 1.8.1 release. With those lines, the temp directory is created
15464 in the working directory, and it is not deleted. This fix restores
15465 the original behavior.
15467## pandoc 1.8.1 (2011-02-13)
15469 * Added `--ascii` option. Currently supported only in HTML writer,
15470 which it causes to use numerical entities instead of UTF-8.
15472 * EPUB writer: `--toc` now works to provide a table of contents
15473 at the beginning of each chapter.
15475 * LaTeX writer: Change figure defaults to `htbp`.
15476 This prevents "too many unprocessed floats." Resolves
15479 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
15482 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
15483 Tanimoto. Resolves Issue #286.
15485 * HTML writer: Put line breaks in section divs.
15487 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
15489## pandoc 1.8.0.3 (2011-02-05)
15491 * Fixed Source-repository stanza in cabal file.
15493## pandoc 1.8.0.2 (2011-02-05)
15497 + Stringify alt text instead of converting to HTML.
15498 + Break lines after block elements, not inside tags.
15499 HTML output now closely resembles that of tidy. Resolves Issue #134.
15501 * Markdown reader: Fixed bug in footnote block parser (pointed out
15502 by Jesse Rosenthal). The problem arose when the blank line
15503 at the end of a footnote block contained indenting spaces.
15505 * Shared: Improved 'normalize' function so it normalizes Spaces too.
15506 In normal form, Space elements only occur to separate two non-Space
15507 elements. So, we never have [Space], or [, ..., Space].
15511 + Improved Arbitrary instance.
15512 + Added timeout for test instances.
15516 + Added section on four-space rule for lists. Resolves Issue #283.
15517 + Clarified optional arguments on math options.
15519 * markdown2pdf: Fixed bug with output file extensions.
15520 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
15521 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
15523## pandoc 1.8.0.1 (2011-01-31)
15525 * Revised Interact.hs so that it works with the CPP macros
15526 in the UTF8 module.
15528 * Revised Setup.hs so that we don't call MakeManPage.hs unless
15529 the man pages are out of date.
15531## pandoc 1.8 (2011-01-30)
15535 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
15536 You can now write, for example,
15538 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
15540 and, when you process your document using `pandoc`, specifying
15541 a citation style using `--csl` and a bibliography using `--bibliography`,
15542 the citation will be replaced by an appropriately formatted
15543 citation, and a list of works cited will be added to the end
15546 This means that you can switch effortlessly between different citation
15547 and bibliography styles, including footnote, numerical, and author-date
15548 formats. The bibliography can be in any of the following formats: MODS,
15549 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
15550 See the README for further details.
15552 Citations are supported in the markdown reader, using a special
15553 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
15554 (Thanks to Nathan Gass for the natbib and biblatex support.)
15556 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
15557 the `textile` reader, an almost complete implementation of the textile
15558 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
15559 Resolves Issue #51.
15561 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
15563 * New `json` reader and writer, for reading and writing a JSON
15564 representation of the native Pandoc AST. These are much faster
15565 than the `native` reader and writer, and should be used for
15566 serializing Pandoc to text. To convert between the JSON representation
15567 and native Pandoc, use `encodeJSON` and `decodeJSON` from
15568 `Text.JSON.Generic`.
15570 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
15571 to write scripts that transform a JSON-encoded pandoc document.
15574 -- removelinks.hs - removes links from document
15576 main = interact $ jsonFilter $ bottomUp removeLink
15577 where removeLink (Link xs _) = Emph xs
15580 To use this to remove links while translating markdown to LaTeX:
15582 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
15584 * Attributes are now allowed in inline `Code` elements, for example:
15586 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
15588 The attribute syntax is the same as for delimited code blocks.
15589 `Code` inline has an extra argument place for attributes, just like
15590 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
15591 is compiled with highlighting support. Resolves Issue #119.
15593 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
15594 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
15595 scripts to transform Pandoc documents. Scripts can now change
15596 how each element is rendered in each output format.
15598 * You can now define LaTeX macros in markdown documents, and pandoc
15599 will apply them to TeX math. For example,
15601 \newcommand{\plus}[2]{#1 + #2}
15604 yields `3+4`. Since the macros are applied in the reader, they
15605 will work in every output format, not just LaTeX.
15607 * LaTeX macros can also be used in LaTeX documents (both in math
15608 and in non-math contexts).
15610 * A new `--mathjax` option has been added for displaying
15611 math in HTML using MathJax. Resolves issue #259.
15613 * Footnotes are now supported in the RST reader. (Note, however,
15614 that unlike docutils, pandoc ignores the numeral or symbol used in
15615 the note; footnotes are put in an auto-numbered ordered list.)
15616 Resolves Issue #258.
15618 * A new `--normalize` option causes pandoc to normalize the AST
15619 before writing the document. This means that, for example,
15620 `*hi**there*` will be rendered as `<em>hithere</em>`
15621 instead of `<em>hi</em><em>there</em>`. This is not the default,
15622 because there is a significant performance penalty.
15624 * A new `--chapters` command-line option causes headers
15625 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
15626 Resolves Issue #265.
15628 * In DocBook output, `<chapter>` is now used for top-level
15629 headers if the template contains `<book>`. Resolves Issue #265.
15631 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
15632 the LaTeX writer to use the listings package for code blocks.
15633 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
15634 Millon for the markdown2pdf patch.)
15636 * `markdown2pdf` now supports `--data-dir`.
15638 * URLs in autolinks now have class "url" so they can be styled.
15640 * Improved prettyprinting in most formats. Lines will be wrapped
15641 more evenly and duplicate blank lines avoided.
15643 * New `--columns` command-line option sets the column width for
15644 line wrapping and relative width calculations for tables.
15646 * Made `--smart` work in HTML, RST, and Textile readers, as well
15649 * Added `--html5` option for HTML5 output.
15651 * Added support for listings package in LaTeX reader
15652 (Puneeth Chaganti).
15654 * Added support for simple tables in the LaTeX reader.
15656 * Added support for simple tables in the HTML reader.
15658 * Significant performance improvements in many readers and writers.
15660### API and program changes
15662 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
15663 auxiliary package, `pandoc-types`. This will make it possible for other
15664 programs to supply output in Pandoc format, without depending on the whole
15667 * Added `Attr` field to `Code`.
15669 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
15670 `RawBlock` and `RawInline`.
15672 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
15673 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
15674 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
15676 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
15678 * `Text.Pandoc` now exports association lists `readers` and `writers`.
15680 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
15681 `readNative` can now read full pandoc documents, block lists, blocks,
15682 inline lists, or inlines. It will interpret `Str "hi"`
15683 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
15684 This should make testing easier.
15686 * Removed deprecated `-C/--custom-header` option.
15687 Use `--template` instead.
15689 * `--biblio-file` has been replaced by `--bibliography`.
15690 `--biblio-format` has been removed; pandoc now guesses the format
15691 from the file extension (see README).
15693 * pandoc will treat an argument as a URI only if it has an
15694 `http(s)` scheme. Previously pandoc would treat some
15695 Windows pathnames beginning with `C:/` as URIs.
15697 * The `--sanitize-html` option and the `stateSanitize` field in
15698 `ParserState` have been removed. Sanitization is better done in the
15699 resulting HTML using `xss-sanitize`, which is based on pandoc's
15700 sanitization, but improved.
15702 * pandoc now adds a newline to the end of its output in fragment
15703 mode (= not `--standalone`).
15705 * Added support for `lang` in `html` tag in the HTML template,
15706 so you can do `pandoc -s -V lang=es`, for example.
15708 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
15709 a boolean argument that selects between "inline" and
15712 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
15713 Images are embedded in RTF output when possible (png, jpeg).
15714 Resolves Issue #275.
15716 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
15717 `pretty` package. Changed all writers that used
15718 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
15720 * Rewrote `writeNative` using the new prettyprinting module. It is
15721 now much faster. The output has been made more consistent and compressed.
15722 `writeNative` is also now sensitive to writerStandalone`, and will simply
15723 `print a block list if writerStandalone` is False.
15725 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
15726 blocks and concatenate them, so a separate module is no longer needed.
15728 * `Text.Pandoc.Shared`:
15730 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
15732 + Added `normalize`.
15733 + Removed unneeded prettyprinting functions:
15734 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
15735 `BlockWrapper`, `wrappedBlocksToDoc`.
15736 + Made `splitBy` take a test instead of an element.
15737 + Added `findDataFile`, refactored `readDataFile`.
15738 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
15739 + Fixed `inlineListToIdentifier` to treat `\160` as ' '.
15741 * `Text.Pandoc.Readers.HTML`:
15743 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
15744 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
15745 `htmlBlockElement`, `htmlComment`
15746 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
15749 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
15750 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
15753 * Ellipses are no longer allowed to contain spaces.
15754 Previously we allowed '. . .', ' . . . ', etc. This caused
15755 too many complications, and removed author's flexibility in
15756 combining ellipses with spaces and periods.
15758 * Allow linebreaks in URLs (treat as spaces). Also, a string of
15759 consecutive spaces or tabs is now parsed as a single space. If you have
15760 multiple spaces in your URL, use `%20%20`.
15762 * `Text.Pandoc.Parsing`:
15764 + Removed `refsMatch`.
15765 + Hid `Key` constructor.
15766 + Removed custom `Ord` and `Eq` instances for `Key`.
15767 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
15768 + Generalized type on `readWith`.
15770 * Small change in calculation of relative widths of table columns.
15771 If the size of the header > the specified column width, use
15772 the header size as 100% for purposes of calculating
15773 relative widths of columns.
15775 * Markdown writer now uses some pandoc-specific features when `--strict`
15776 is not specified: `\` newline is used for a hard linebreak instead of
15777 two spaces then a newline. And delimited code blocks are used when
15778 there are attributes.
15780 * HTML writer: improved gladTeX output by setting ENV appropriately
15781 for display or inline math (Jonathan Daugherty).
15783 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
15787 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
15788 + `\index{}` commands are skipped.
15790 * Added `fontsize` variable to default LaTeX template.
15791 This makes it easy to set the font size using `markdown2pdf`:
15792 `markdown2pdf -V fontsize=12pt input.txt`.
15794 * Fixed problem with strikeout in LaTeX headers when using
15795 hyperref, by adding a command to the default LaTeX template
15796 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
15799 * The `COLUMNS` environment variable no longer has any effect.
15801### Under-the-hood improvements
15803 * Pandoc now compiles with GHC 7. (This alone leads to a
15804 significant performance improvement, 15-20%.)
15806 * Completely rewrote HTML reader using tagsoup as a lexer. The
15807 new reader is faster and more accurate. Unlike the
15808 old reader, it does not get bogged down on some input
15809 (Issues #277, 255). And it handles namespaces in tags
15812 * Replaced `escapeStringAsXML` with a faster version.
15814 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
15815 for a significant performance boost.
15817 * Improved performance of all readers by rewriting parsers.
15819 * Simplified Text.Pandoc.CharacterReferences by using
15820 entity lookup functions from TagSoup.
15822 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
15823 from `System.IO` if base >= 4.2. This gives support for
15824 windows line endings on windows.
15826 * Remove duplications in documentation by generating the
15827 pandoc man page from README, using `MakeManPage.hs`.
15829 * README now includes a full description of markdown syntax,
15830 including non-pandoc-specific parts. A new `pandoc_markdown`
15831 man page is extracted from this, so you can look up markdown
15832 syntax by doing `man pandoc_markdown`.
15834 * Completely revised test framework (with help from Nathan Gass).
15835 The new test framework is built when the `tests` Cabal flag is set. It
15836 includes the old integration tests, but also some new unit and quickcheck
15837 tests. Test output has been much improved, and you can now specify a glob
15838 pattern after `cabal test` to indicate which tests should be run;
15839 for example `cabal test citations` will run all the citation tests.
15841 * Added a shell script, `stripansi.sh`, for filtering ANSI control
15842 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
15844 * Added `Interact.hs` to make it easier to use ghci while developing.
15845 `Interact.hs` loads `ghci` from the `src` directory, specifying
15846 all the options needed to load pandoc modules (including
15847 specific package dependencies, which it gets by parsing
15848 dist/setup-config).
15850 * Added `Benchmark.hs`, testing all readers + writers using criterion.
15852 * Added `stats.sh`, to make it easier to collect and archive
15853 benchmark and lines-of-code stats.
15855 * Added upper bounds to all cabal dependencies.
15857 * Include man pages in extra-source-files. This allows users to
15858 install pandoc from the tarball without needing to build the man
15863 * Filenames are encoded as UTF8. Resolves Issue #252.
15865 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
15866 were just parsed literally, leading to problems in some output formats.
15867 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
15868 Resolves Issue #270.
15870 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
15871 Spaces at end of line were not being stripped properly,
15872 resulting in unintended LineBreaks.
15876 + Allow HTML comments as inline elements in markdown.
15877 So, `aaa <!-- comment --> bbb` can be a single paragraph.
15878 + Fixed superscripts with links: `^[link](/foo)^` gets
15879 recognized as a superscripted link, not an inline note followed by
15881 + Fixed regression, making markdown reference keys case-insensitive again.
15882 Resolves Issue #272.
15883 + Properly handle abbreviations (like `Mr.`) at the end of a line.
15884 + Better handling of intraword underscores, avoiding exponential
15885 slowdowns in some cases. Resolves Issue #182.
15886 + Fixed bug in alignments in tables with blank rows in the header.
15890 + Field lists now allow spaces in field names, and
15891 block content in field values. (Thanks to Lachlan Musicman
15892 for pointing out the bug.)
15893 + Definition list items are now always `Para` instead of
15894 `Plain`, matching behavior of `rst2xml.py`.
15895 + In image blocks, the description is parsed properly and
15896 used for the alt attribute, not also the title.
15897 + Skip blank lines at beginning of file. Resolves
15902 + Improved parsing of preamble.
15903 Previously you'd get unexpected behavior on a document that
15904 contained `\begin{document}` in, say, a verbatim block.
15905 + Allow spaces between `\begin` or `\end` and `{`.
15906 + Support `\L` and `\l`.
15907 + Skip comments inside paragraphs.
15911 + Escape strings in `\href{..}`.
15912 + In nonsimple tables, put cells in `\parbox`.
15914 * OpenDocument writer: don't print raw TeX.
15918 + Fixed bug in `Image`. URI was getting unescaped twice!
15919 + Avoid printing extra blank lines at the end if there are
15920 no notes or references.
15922 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
15923 This avoids unwanted interpretation as an optional argument.
15925 * ConTeXt writer: Fixed problem with inline code. Previously
15926 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
15927 If it contains neither, use `\type{}`; otherwise use `\mono{}`
15928 with an escaped version of the string.
15930 * `:` now allowed in HTML tags. Resolves Issue #274.
15934## pandoc 1.6 (2010-07-24)
15936+ New EPUB and HTML Slidy writers. (Issue #122)
15938 - [EPUB] is a standard ebook format, used in Apple's iBooks for
15939 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
15940 reader, and many other devices, and by online ebook readers like
15941 [bookworm]. (Amazon's Kindle uses a different format, MobiPocket,
15942 but EPUB books can easily be converted to Kindle format.) Now you
15943 can write your book in markdown and produce an ebook with a single
15944 command! I've put up a short [tutorial here].
15945 - [Slidy], like S5, is a system for producing HTML+javascript slide shows.
15947+ All input is assumed to be UTF-8, no matter what the locale and ghc
15948 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
15949 Also, a BOM, if present, is stripped from the input.
15951+ Markdown now supports grid tables, whose cells can contain
15952 arbitrary block elements. (Issue #43)
15954+ Sequentially numbered example lists in markdown with `@` marker.
15956+ Markdown table captions can begin with a bare colon and no longer need
15957 to include the English word "table." Also, a caption can now occur
15958 either before or after the table. (Issue #227)
15960+ New command-line options:
15962 - `--epub-stylesheet` allows you to specify a CSS file that will
15963 be used to style your ebook.
15964 - `--epub-metadata` allows you to specify metadata for the ebook.
15965 - `--offline` causes the generated HTML slideshow to include all
15966 needed scripts and stylesheets.
15967 - `--webtex` causes TeX math to be converted to images using the
15968 Google Charts API (unless a different URL is specified).
15969 - `--section-divs` causes div tags to be added around each section
15970 in an HTML document. (Issue #230, 239)
15972+ Default behavior of S5 writer in standalone mode has changed:
15973 previously, it would include all needed scripts and stylesheets
15974 in the generated HTML; now, only links are included unless
15975 the `--offline` option is used.
15977+ Default behavior of HTML writer has changed. Between 1.2 and 1.5,
15978 pandoc would enclose sections in div tags with identifiers on the
15979 div tags, so that the sections can be manipulated in javascript.
15980 This caused undesirable interactions with raw HTML div tags. So,
15981 starting with 1.6, the default is to put the identifiers directly
15982 on the header tags, and not to include the divs. The `--section-divs`
15983 option selects the 1.2-1.5 behavior.
15987 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
15988 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
15989 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
15990 `writerIncludeAfter`.
15991 - Added `headerShift` to `Text.Pandoc.Shared`.
15992 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
15993 to a new module, `Text.Pandoc.Parsing`.
15994 - Added `stateHasChapters` to `ParserState`.
15995 - Added `HTMLSlideVariant`.
15996 - Made `KeyTable` a map instead of an association list.
15997 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`, `docDate`).
15998 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord` instances.
15999 - Reference keys now have a type of their own (`Key`), with its
16000 own `Ord` instance for case-insensitive comparison.
16001 - Added `Text.Pandoc.Writers.EPUB`.
16002 - Added `Text.Pandoc.UUID`.
16003 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
16004 Removed `saveOpenDocumentAsODT`, added `writeODT`.
16005 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
16006 Removed `prettyPandoc`.
16007 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
16008 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
16009 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
16010 To write S5, you now use `writeHtml` with `writerSlideVariant`
16011 set to `S5Slides` or `SlidySlides`.
16013+ Template changes. If you use custom templates, please update them,
16014 particularly if you use syntax highlighting with pandoc. The old HTML
16015 templates hardcoded highlighting CSS that will no longer work with
16016 the most recent version of highlighting-kate.
16018 - HTML template: avoid empty meta tag if no date.
16019 - HTML template: Use default highlighting CSS from highlighting-kate
16020 instead of hard-coding the CSS into the template.
16021 - HTML template: insert-before text goes before the title, and
16022 immediately after the `<body>` tag, as documented. (Issue #241)
16023 - Added slidy and s5 templates.
16024 - Added amssymb to preamble of latex template. (github Issue 1)
16026+ Removed excess newlines at the end of output. Note: because output
16027 will not contain an extra newline, you may need to make adjustments
16028 if you are inserting pandoc's output into a template.
16030+ In S5 and slidy, horizontal rules now cause a new slide, so you
16031 are no longer limited to one slide per section.
16033+ Improved handling of code in man writer. Inline code is now monospace,
16034 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
16036+ HTML reader parses `<tt>` as Code. (Issue #247)
16038+ html+lhs output now contains bird tracks, even when compiled without
16039 highlighting support. (Issue #242)
16041+ Colons are now no longer allowed in autogenerated XML/HTML identifiers,
16042 since they have a special meaning in XML.
16044+ Code improvements in ODT writer. Remote images are now replaced with
16045 their alt text rather than a broken link.
16047+ LaTeX reader improvements:
16049 - Made latex `\section`, `\chapter` parsers more forgiving of whitespace.
16050 - Parse `\chapter{}` in latex.
16051 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
16052 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
16053 for use in markdown reader.
16054 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
16055 in markdown document.
16057+ LaTeX writer: images are automatically shrunk if they would extend
16058 beyond the page margin.
16060+ Plain, markdown, RST writers now use unicode for smart punctuation.
16062+ Man writer converts math to unicode when possible, as in other writers.
16064+ `markdown2pdf` can now recognize citeproc options.
16066+ Command-line arguments are converted to UTF-8. (Issue #234)
16068+ `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
16069 This allows it to handle a wider range of formulas. Also, if a formula
16070 cannot be converted, it is left in raw TeX; formulas are no longer
16071 partially converted.
16073+ Unicode curly quotes are left alone when parsing smart quotes. (Issue #143)
16075+ Cabal file changes:
16077 - Removed parsec < 3 restriction.
16078 - Added 'threaded' flag for architectures where GHC lacks a threaded
16080 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
16081 - Require highlighting-kate 0.2.7.
16083+ Use explicit imports from `Data.Generics`. Otherwise we have a
16084 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
16086+ New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
16088[EPUB]: http://en.wikipedia.org/wiki/EPUB
16089[Slidy]: http://www.w3.org/Talks/Tools/Slidy
16090[bookworm]: http://bookworm.oreilly.com/
16091[tutorial here]: http://johnmacfarlane.net/pandoc/epub.html
16093## pandoc 1.5.1.1 (2010-03-29)
16095+ Fixed header identifiers (uniqueIdent in Shared) so they
16096 work as advertized in README and are guaranteed to be
16097 valid XHTML names. Thanks to Xyne for reporting the bug.
16099## pandoc 1.5.1 (2010-03-23)
16101+ Fixed treatment of unicode characters in URIs.
16102+ Revised Setup.hs so it works with debian's build process.
16103+ Fixed bug in OpenDocument writer that led to invalid
16104 XML for some input.
16106## pandoc 1.5.0.1 (2010-03-21)
16108+ HTML writer: Fixed error in math writer (with MathML option)
16109 that caused an infinite loop for unparsable MathML.
16111## pandoc 1.5 (2010-03-20)
16113+ Moved repository to [github](http://github.com/jgm/pandoc).
16114+ New `--mathml` option, for display of TeX math as MathML.
16115+ New `--data-dir` option, allowing users to specify a data
16116 directory other than `~/.pandoc`. Files placed in this directory
16117 will be used instead of system defaults.
16118+ New `--base-header-level` option. For example, `--base-header-level=2`
16119 changes level 1 headers to level 2, level 2 to level 3, etc.
16120+ New 'plain' output format: plain text without pictures, hyperlinks,
16121 inline formatting, or anything else that looks even vaguely
16123+ Titles and authors in title blocks can now span multiple lines,
16124 as long as the continuation lines begin with a space character.
16125+ When given an absolute URI as a parameter, pandoc will fetch
16126 the content via HTTP.
16127+ The HTML reader has been made much more forgiving. It no
16128 longer requires well-formed xhtml as input.
16129+ `html2markdown` has been removed; it is no longer necessary, given
16130 the last two changes. `pandoc` can be used by itself to convert
16131 web pages to markdown or other formats.
16132+ `hsmarkdown` has also been removed. Use `pandoc --strict` instead.
16133 Or symlink pandoc's executable to `hsmarkdown`; `pandoc` will then
16134 behave like `hsmarkdown` used to.
16135+ An image in a paragraph by itself is now rendered as a figure
16136 in most writers, with the alt text as the caption.
16137+ Incomplete support for reST tables (simple and grid). Thanks to
16138 Eric Kow. Colspans and rowspans not yet supported.
16139+ In mediawiki, links with relative URLs are now formatted as wikilinks.
16140 Also, headers have been promoted: `= head =` is now level 1 instead of
16142+ The markdown reader now handles "inverse bird tracks" when parsing
16143 literate haskell. These are used for haskell example code that
16144 is not part of the literate program.
16145+ The `-B` and `-A` options now imply `-s` and no longer work in
16147+ Headerless tables are now printed properly in all writers.
16148 In addition, tbody, thead, and cols are used in HTML and Docbook
16150+ Improved build system; removed obsolete Makefile.
16151+ In LaTeX writer, `\chapter` is now used instead of `\section`.
16152 when the documentclass is book, report, or memoir.
16153+ Many small bug fixes. See [changelog] for details.
16155## pandoc 1.4 (2010-01-02)
16157+ New template system replaces old headers, giving users much
16158 more control over pandoc's output in `--standalone` mode.
16159 Added `--template` and `--variable` options. The `--print-default-header`
16160 option is now `--print-default-template`. See README under
16161 "Templates" for details.
16162+ The old `--custom-header` option should still work, but it has
16164+ New `--reference-odt` option allows users to customize styles
16166+ Users may now put custom templates, s5 styles, and a reference
16167 ODT in the `~/.pandoc` directory, where they will override system
16168 defaults. See README for details.
16169+ Unicode is now used whenever possible in HTML and XML output. Entities
16170 are used only where necessary (`>`, `<`, `"`, `&`).
16171+ Authors and dates may now include formatting and notes.
16172+ Added `--xetex` option for `pandoc` and `markdown2pdf`.
16173+ Windows installer now includes highlighting support and
16174 `markdown2pdf` and `hsmarkdown` wrappers.
16175+ Pandoc no longer requires Template Haskell, which should make
16177+ Pandoc can now be built on GHC 6.12, as well as earlier versions.
16178+ See README for other small improvements and bug fixes.
16180## pandoc 1.3 (2009-12-10)
16182+ Added `--id-prefix` option to help prevent duplicate
16183 identifiers when you're generating HTML fragments.
16184+ Added `--indented-code-classes` option, which specifies
16185 default highlighting syntax for indented code blocks.
16186+ `--number-sections` now affects HTML output.
16187+ Improved syntax for markdown definition lists.
16188+ Better looking simple tables.
16189+ Markdown tables without headers are now possible.
16190+ New hard line break syntax: backslash followed by newline.
16191+ Improved performance of markdown reader by ~10% by eliminating the
16192 need for a separate parsing pass for notes.
16193+ Improved syntax highlighting for literate Haskell.
16194+ Support for "..code-block" directive in RST reader.
16195+ Windows binary now includes highlighting support.
16196+ Many bug fixes and small improvements. See [changelog]
16199## pandoc 1.2.1 (2009-07-18)
16201+ Improved the efficiency of the markdown reader's
16202 abbreviation parsing (should give a big performance
16203 boost with `--smart`).
16204+ HTML writer now wraps sections in divs with unique
16205 identifiers, for easier manipulation.
16206+ Improved LaTeX reader's coverage of math modes.
16207+ Added a portable Haskell version of markdown2pdf (thanks
16208 to Paolo Tanimoto).
16209+ Made `--strict` compatible with `--standalone` and `--toc.`
16210+ Many other small improvements and bug fixes.
16211 See [changelog] for details.
16213## pandoc 1.2 (2009-03-01)
16215+ Added support for literate Haskell. lhs support is triggered by
16216 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
16217 Haskell LaTeX. '.lhs' files are treated by default as literate
16219+ Added `--email-obfuscation` option.
16220+ Brought citeproc support up to date for citeproc-hs-0.2.
16221+ Many bugs fixed. See [changelog] for details.
16223## pandoc 1.1 (2008-11-06)
16225+ New `--jsmath` option supporting use of pandoc with [jsMath].
16226+ Classes on HTML table output for better CSS styling.
16227+ Windows installer no longer requires admin privileges.
16228+ Many bugs fixed. See [changelog] for details.
16230## pandoc 1.0 (2008-09-13)
16232+ New writers for MediaWiki, GNU Texinfo (thanks to Peter Wang),
16233 OpenDocument XML (thanks to Andrea Rossato), and ODT (OpenOffice
16235+ New [delimited code blocks](README.html#delimited-code-blocks),
16236 with optional syntax highlighting.
16237+ Reorganized build system: pandoc can now be built using standard
16238 Cabal tools. It can be compiled on Windows without Cygwin.
16239 The tests can also be run without perl or unix tools.
16240+ LaTeXMathML replaces ASCIIMathML for rendering math in HTML.
16241+ Support for "displayed" math.
16242+ Common abbreviations are now handled more intelligently, with
16243 a non-breaking space (and not a sentence-ending space) after
16245+ Code is -Wall clean.
16246+ Many bug fixes and small improvements. See [changelog] for
16249## pandoc 0.46 (2008-01-08)
16251+ Added a `--sanitize-html` option (and a corresponding parameter
16252 in `ParserState` for those using the pandoc libraries in programs).
16253 This option causes pandoc to sanitize HTML (in HTML or Markdown
16254 input) using a whitelist method. Possibly harmful HTML elements
16255 are replaced with HTML comments. This should be useful in the
16256 context of web applications, where pandoc may be used to convert
16257 user input into HTML.
16258+ Made -H, -A, and -B options cumulative: if they are specified
16259 multiple times, multiple files will be included.
16260+ Many bug fixes and small improvements. See [changelog] for full
16263## pandoc 0.45 (2007-12-09)
16265+ Many bug fixes and structural improvements. See [changelog] for
16267+ Improved treatment of math. Math is now rendered using unicode
16268 by default in HTML, RTF, and DocBook output. For more accurate
16269 display of math in HTML, `--gladtex`, `--mimetex`, and `--asciimathml`
16270 options are provided. See the [User's Guide](README.html#math) for
16272+ Removed support for box-style block quotes in markdown.
16273+ More idiomatic ConTeXt output.
16274+ Text wrapping in ConTeXt and LaTeX output.
16275+ Pandoc now correctly handles all standard line endings
16277+ New `--no-wrap` option that disables line wrapping and minimizes
16278 whitespace in HTML output.
16279+ Build process is now compatible with both GHC 6.8 and GHC 6.6.
16280 GHC and GHC_PKG environment variables may be used to specify
16281 which version of the compiler to use, when multiple versions are
16284## pandoc 0.44 (2007-09-03)
16286 [ John MacFarlane ]
16288 * Fixed bug in HTML writer: when --toc was used, anchors were put around
16289 headers, which is invalid XHTML (block content within inline element).
16290 Now the anchors are put inside the header tags. Resolves Issue #23.
16292 * Added xmlns attribute to html element in html writer tests.
16293 This attribute is added by more recent versions of the
16294 xhtml library (>= 3000), and is required for valid XHTML.
16298 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
16299 command instead of 'runhaskell', which, on some platforms (such as s390,
16300 alpha, m68k), throws the following error:
16302 runhaskell Setup.hs configure --prefix=/usr
16303 ghc-6.6.1: not built for interactive use
16305 This causes a serious FTBFS bug. Closes: #440668.
16307## pandoc 0.43 (2007-09-02)
16309 [ John MacFarlane ]
16311 * The focus of this release is performance. The markdown parser
16312 is about five times faster than in 0.42, based on benchmarks
16313 with the TextMate manual.
16315 * Main.hs: Replaced CRFilter and tabFilter with single function
16316 tabFilter, which operates on the whole string rather than breaking
16317 it into lines, and handles dos-style line-endings as well as tabs.
16319 * Added separate LaTeX reader and native reader tests; removed
16322 * Text.Pandoc.Shared:
16324 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
16325 + General code cleanup (to elimante warnings when compiling with -Wall.)
16326 + Added 'wrapped' function, which helps wrap text into paragraphs,
16327 using the prettyprinting library.
16328 + Rewrote charsInBalanced and charsInBalanced'.
16329 - Documented restriction: open and close must be distinct characters.
16330 - Rearranged options for greater efficiency.
16331 - Bug fix: Changed inner call to charsInBalanced inside
16332 charsInBalanced' to charsInBalanced'.
16333 + anyLine now requires that the line end with a newline (not eof).
16334 This is a harmless assumption, since we always add newlines to the
16335 end of a block before parsing with anyLine, and it yields a 10% speed
16337 + Removed unnecessary 'try' in anyLine.
16338 + Removed unneeded 'try' from romanNumeral parser.
16339 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
16340 + Removed unneeded 'try' in parseFromString.
16341 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
16343 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
16344 'try' is not automatically applied to the 'end' parser. Added
16345 'try' in calls to 'enclosed' where needed. Slight speed increase.
16349 + Replaced individual wrapping routines in RST, Man, and Markdown
16350 writers with 'wrapped' from Text.Pandoc.Shared.
16351 + Rewrote LaTeX writer to use the prettyprinting library,
16352 so we get word wrapping, etc.
16353 + Modified latex writer tests for new latex writer using prettyprinter.
16354 + Fixed bug in LaTeX writer: autolinks would not cause
16355 `\usepackage{url}` to be put in the document header. Also, changes
16356 to state in enumerated list items would be overwritten.
16357 + In Markdown writer, escape paragraphs that begin with ordered list
16358 markers, so they don't get interpreted as ordered lists.
16360 * Text.Pandoc.Reades.LaTeX:
16362 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
16363 numeral after "enum" in "setcounter" would consist entirely of
16364 "i"s. 'enumiv' is legitimate.
16365 + LaTeX command and environment names can't contain numbers.
16366 + Rearranged order of parsers in inline for slight speed improvement.
16367 + Added '`' to special characters and 'unescapedChar'.
16369 * Text.Pandoc.Readers.RST:
16371 + Removed unneeded try's in RST reader; also minor code cleanup.
16373 + Rearranged parsers in inline (doubled speed).
16375 * Text.Pandoc.Readers.Markdown:
16377 + Skip notes parsing if running in strict mode. (This yields a nice
16378 speed improvement in strict mode.)
16379 + Simplify autolink parsing code, using Network.URI to test for
16380 URIs. Added dependency on network library to debian/control and
16382 + More perspicuous definition of nonindentSpaces.
16383 + Removed unneeded 'try' in 'rawLine'.
16384 + Combined linebreak and whitespace into a new whitespace parser, to
16385 avoid unnecessary reparsing of space characters.
16386 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
16387 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
16388 + Use lookAhead in parsers for setext headers and definition lists
16389 to see if the next line begins appropriately; if not, don't waste
16390 any more time parsing.
16391 + Don't require blank lines after code block. (It's sufficient to
16392 end code block with a nonindented line.)
16393 + Changed definition of 'emph': italics with '_' must not
16394 be followed by an alphanumeric character. This is to help
16395 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
16396 `[LC<em>TYPE]:my</em>type`.
16397 + Improved Markdown.pl-compatibility in referenceLink: the two parts
16398 of a reference-style link may be separated by one space, but not
16399 more... [a] [link], [not] [a link].
16400 + Fixed markdown inline code parsing so it better accords with
16401 Markdown.pl: the marker for the end of the code section is a clump
16402 of the same number of `'s with which the section began, followed
16403 by a non-` character. So, for example,
16404 ` h ``` i ` -> `<code>h ``` i</code>`.
16405 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
16406 rules are slightly different.
16407 + Rewrote 'para' for greater efficiency.
16408 + Rewrote link parsers for greater efficiency.
16409 + Removed redundant 'referenceLink' in definition of inline (it's
16410 already in 'link').
16411 + Refactored escapeChar so it doesn't need 'try'.
16412 + Refactored hrule for performance in Markdown reader.
16413 + More intelligent rearranging of 'inline' so that most frequently
16414 used parsers are tried first.
16415 + Removed tabchar parser, as whitespace handles tabs anyway.
16417 * Text.Pandoc.CharacterReferences:
16420 + Removed unnecessary 'try's for a speed improvement.
16421 + Removed unnecessary '&' and ';' from the entity table.
16425 + Makefile: Get VERSION from cabal file, not Main.hs.
16426 + Modified MacPorts Portfile:
16427 - Depend on haddock
16428 - Build and install libraries and library documentation in
16429 addition to pandoc executable
16430 - Added template item for md5 sum in Portfile.in.
16431 - Incorporated changes from MacPorts repository (r28278).
16432 + FreeBSD port: Don't try to generate distinfo in Makefile.
16433 It can be made using 'make makesum' in FreeBSD.
16434 + Make both freebsd and macports targets depend on tarball.
16436 * Website and documentation:
16438 + Updated INSTALL instructions.
16439 + Added pandocwiki demo to website.
16440 + Removed local references to Portfile, since pandoc is now in the
16441 MacPorts repository.
16443## pandoc 0.42 (2007-08-26)
16445 [ John MacFarlane ]
16447 * Main.hs: Use utf8 conversion on the extra files loaded with
16448 the -H, -C, -B, and -A options. This fixes problems with unicode
16449 characters in these files.
16451 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
16452 Text.Pandoc.Readers.HTML and without it we get a linking error when
16457 + Added new rule for enhanced markdown ordered lists: if the list
16458 marker is a capital letter followed by a period (including a
16459 single-letter capital roman numeral), then it must be followed by
16460 at least two spaces. The point of this is to avoid accidentally
16461 treating people's initials as list markers: a paragraph might begin,
16462 "B. Russell was an English philosopher," and this shouldn't be
16463 treated as a list. Documented change in README.
16464 + Blocks that start with "p. " and a digit are no longer treated
16465 as ordered lists (it's a page number).
16466 + Added a needed 'try' to listItem.
16467 + Removed check for a following setext header in endline.
16468 A full test is too inefficient (doubles benchmark time), and the
16469 substitute we had before is not 100% accurate.
16470 + Don't use Code elements for autolinks if --strict specified.
16472 * LaTeX writer: When a footnote ends with a Verbatim environment, the
16473 close } of the footnote cannot occur on the same line or an error occurs.
16474 Fixed this by adding a newline before the closing } of every footnote.
16477 + Removed incorrect "{}" around style information in HTML tables.
16478 Column widths now work properly in HTML.
16479 + If --strict option is specified (and --toc is not), don't include
16480 identifiers in headers, for better Markdown compatibility.
16484 + Separated $(web_dest) and website targets.
16485 + In website, index.txt is now constructed from template index.txt.in.
16486 + Added freebsd target to Markefile. This creates the freebsd Makefile
16487 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
16488 from the repository.
16489 + Added macport target to Makefile. Portfile is built from template
16491 + Removed OSX package targets. (Too many difficulties involving
16492 dependencies on dynamic libraries.)
16493 + More complete INSTALL instructions for all architectures.
16496 + Added a programming demo, pandocwiki.
16500 * Do not forget to close pandoc's ITP. Closes: #391666
16502## pandoc 0.41 (2007-08-19)
16504 [ John MacFarlane ]
16506 * Fixed bugs in HTML reader:
16507 + Skip material at end *only if* `</html>` is present (previously,
16508 only part of the document would be parsed if an error was
16509 found; now a proper error message is given).
16510 + Added new constant eitherBlockOrInline with elements that may
16511 count either as block-level or as inline. Modified isInline and
16512 isBlock to take this into account.
16513 + Modified rawHtmlBlock to accept any tag (even an inline tag):
16514 this is innocuous, because rawHtmlBlock is tried only if a regular
16515 inline element can't be parsed.
16516 + Added a necessary 'try' in definition of 'para'.
16518 * Fixed bug in markdown ordered list parsing. The problem was that
16519 anyOrderedListStart did not check for a space following the
16520 ordered list marker. So in 'A.B. 2007' the parser would be
16521 expecting a list item, but would not find one, causing an error.
16522 Fixed a similar bug in the RST reader. Resolves Issue #22.
16524 * Refactored RST and Markdown readers using parseFromString.
16526 * LaTeX reader will now skip anything after \end{document}.
16528 * Fixed blockquote output in markdown writer: previously, block
16529 quotes in indented contexts would be indented only in the first
16532 * Added note to INSTALL about variations in versions of the xhtml
16533 library that can lead to failed tests (thanks to Leif LeBaron).
16535## pandoc 0.4 (2007-01-16)
16537 [ John MacFarlane ]
16539 * Added two new output formats: groff man pages and ConTeXt. By
16540 default, output files with extensions ".ctx" and ".context" are
16541 assumed to be ConTeXt, and output files with single-digit extensions
16542 are assumed to be man pages.
16544 * Enhanced ordered lists (documented in README, under Lists):
16545 + The OrderedList block element now stores information about
16546 list number style, list number delimiter, and starting number.
16547 + The readers parse this information when possible.
16548 + The writers use this information to style ordered lists.
16549 + The enhancement can be disabled using the --strict option.
16551 * Added support for tables (with a new Table block element). Two kinds
16552 of tables are supported: a simple table with one-line rows, and a
16553 more complex variety with multiline rows. All output formats are
16554 supported, but only markdown tables are parsed at the moment. The
16555 syntax is documented in README.
16557 * Added support for definition lists (with a new DefinitionList block
16558 element). All output and input formats are supported. The syntax is
16559 documented in README.
16561 * Added support for superscripts and subscripts (with new Superscript
16562 and Subscript inline elements). All input and output
16563 formats. The syntax is documented in README.
16565 * Added support for strikeout (with a new Strikeout inline element).
16566 All input and output formats are supported. Thanks to Bradley Kuhn,
16567 who contributed a patch. The syntax is documented in README. Resolves
16570 * Added a --toc|--table-of-contents option. This causes an automatically
16571 generated table of contents (or an instruction that creates one) to
16572 be inserted at the beginning of the document. Not supported in S5,
16573 DocBook, or man page writers.
16575 * Modified the -m|--asciimathml option:
16577 + If an optional URL argument is provided, a link is inserted
16578 instead of the contents of the ASCIIMathML.js script.
16579 + Nothing is inserted unless the document actually contains
16582 * Removed Blank block element as unnecessary.
16584 * Removed Key and Note blocks from the Pandoc data structure. All
16585 links are now stored as explicit links, and note contents are
16586 stored with the (inline) notes.
16588 + All link Targets are now explicit (URL, title) pairs; there
16589 is no longer a 'Ref' target.
16590 + Markdown and RST parsers now need to extract data from key and
16591 note blocks and insert them into the relevant inline elements.
16592 Other parsers have been simplified, since there is no longer any need
16593 to construct separate key and note blocks.
16594 + Markdown, RST, and HTML writers need to construct lists of
16595 notes; Markdown and RST writers need to construct lists of link
16596 references (when the --reference-links option is specified); and
16597 the RST writer needs to construct a list of image substitution
16598 references. All writers have been rewritten to use the State monad
16599 when state is required.
16600 + Several functions (generateReference, keyTable,
16601 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
16602 used by them) have been removed from Text.Pandoc.Shared, since
16603 they are no longer needed. New functions and data structures
16604 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
16605 added. The functions inTags, selfClosingTag, inTagsSimple, and
16606 inTagsIndented have been moved to the DocBook writer, since that
16607 is now the only module that uses them. NoteTable is now exported
16608 in Text.Pandoc.Shared.
16609 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
16610 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
16611 + Added writerNotes and writerReferenceLinks to WriterOptions.
16613 * Added Text.Pandoc module that exports basic readers, writers,
16614 definitions, and utility functions. This should export everything
16615 needed for most uses of Pandoc libraries. The haddock documentation
16616 includes a short example program.
16618 * Text.Pandoc.ASCIIMathML is no longer an exported module.
16620 * Added Text.Pandoc.Blocks module to help in printing markdown
16621 and RST tables. This module provides functions for working with
16622 fixed-width blocks of text--e.g., placing them side by side, as
16625 * Refactored to avoid reliance on Haskell's Text.Regex library, which
16626 (a) is slow, and (b) does not properly handle unicode. This fixed
16627 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
16629 + Replaced 'gsub' with a general list function 'substitute'
16630 that does not rely on Text.Regex.
16631 + Rewrote extractTagType in HTML reader so that it doesn't use
16633 + In Markdown reader, replaced email regex test with a custom email
16634 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
16635 with a custom function isSelfClosingTag.
16636 + Modified Docbook writer so that it doesn't rely on Text.Regex for
16637 detecting 'mailto' links.
16638 + Removed escapePreservingRegex and reamped entity-handling
16639 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
16640 avoid reliance on Text.Regex (see below on character reference
16643 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
16645 * Changed handling of XML entities. Entities are now parsed (and unicode
16646 characters returned) in the Markdown and HTML readers, rather than being
16647 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
16648 instead of entities for characters above 128. This makes the HTML and
16649 DocBook output much more readable and more easily editable.
16651 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
16652 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
16653 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
16654 Moved both functions to Text.Pandoc.Writers.Docbook.
16655 + Added characterReference parser to Text.Pandoc.CharacterReferences.
16656 This parses a string and return a unicode character.
16657 + Rewrote decodeCharacterReferences to use the new parser instead of
16659 + Added new charRef parser for Markdown and HTML, which replaces the
16660 old 'entity' parser. Added '&' as a special character in Markdown reader.
16661 + Modified HTML and Markdown readers to call decodeEntities on all raw
16662 strings (e.g. authors, dates, link titles), to ensure that no
16663 unprocessed entities are included in the native representation of
16664 the document. (In the HTML reader, most of this work is done by a
16665 change in extractAttributeName.)
16666 + In XML and Markdown output, escape unicode nonbreaking space as ' ',
16667 since a unicode non-breaking space is impossible to distinguish visually
16668 from a regular space. (Resolves Issue #3.)
16669 + Removed encodeEntitiesNumerical.
16670 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
16671 slight performance boost over the old association list.
16672 + Removed unneeded decodeEntities from 'str' parser in HTML and
16675 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
16676 fromUTF8, for clarity.
16678 * Replaced old haskell98 module names replaced by hierarchical module
16679 names, e.g. List by Data.List. Removed haskell98 from dependencies
16680 in pandoc.cabal, and added mtl (needed for state monad). Substituted
16683 * Refactored and cleaned up character escaping in writers, using
16684 backslashEscapes and escapeStringUsing functions.
16686 * Instead of adding `\n\n` to the end of an input string in Main.hs,
16687 this is now done in the readers. This makes the libraries behave
16688 the way you'd expect from the pandoc program. Resolves Issue #10.
16690 * URLs and email addresses in autolinks are now typeset as Code.
16692 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
16693 doesn't display the whole output unless there's a line ending.
16695 * Major code cleanup in all modules, for greater consistency, concision,
16700 + Fixed several bugs (extractTagType, attribute parsing).
16701 + Remove Null blocks in lists of blocks when possible.
16702 + Allow HTML comments as raw HTML inline.
16706 + Ordered list items may no longer begin with uppercase letters, or
16707 letters greater than 'n'. (This prevents first initials and page
16708 reference, e.g. 'p. 400', from being parsed as beginning lists.)
16709 Also, numbers beginning list items may no longer end with ')',
16710 which is now allowed only after letters. Note: These changes
16711 may cause documents to be parsed differently. Users should take
16713 + Changed autoLink parsing to conform better to Markdown.pl's
16714 behavior. `<google.com>` is not treated as a link, but
16715 `<http://google.com>`, `<ftp://google.com>`, and
16716 `<mailto:google@google.com>` are.
16717 + Cleaned up handling of embedded quotes in link titles. Now these are
16718 stored as a '"' character, not as '"'.
16719 + Use lookAhead parser for the 'first pass' (looking for reference keys),
16720 instead of parsing normally, then using setInput to reset input. This
16721 yields a slight performance boost.
16722 + Fixed several bugs in smart quote recognition.
16723 + Fixed bug in indentSpaces (which didn't properly handle
16724 cases with mixed spaces and tabs).
16725 + Consolidated 'text', 'special', and 'inline' into 'inline'.
16726 + Fixed bug which allowed URL and title to be separated by multiple blank
16727 lines in links and reference keys. They can be on separate lines but
16728 can't have blank lines between them.
16729 + Correctly handle bracketed text inside inline footnotes and links,using
16730 new function inlinesInBalanced. Resolves Issue #14.
16731 + Fixed bug in footnotes: links in footnotes were not being
16732 processed. Solution: three-stage parse. First, get all the
16733 reference keys and add information to state. Next, get all the
16734 notes and add information to state. (Reference keys may be needed
16735 at this stage.) Finally, parse everything else.
16736 + Replaced named constants like 'emphStart' with literals.
16737 + Removed an extra occurrence of escapedChar in definition of inline.
16741 + Allow the URI in a RST hyperlink target to start on the line
16742 after the reference key.
16743 + Added 'try' in front of 'string', where needed, or used a different
16744 parser. This fixes a bug where ````` would not be correctly parsed as
16746 + Fixed slow performance in parsing inline literals in RST reader. The
16747 problem was that ``#`` was seen by 'inline' as a potential link or image.
16748 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
16750 + Use lookAhead instead of getInput/setInput in RST reader. Removed
16751 unneeded getState call, since lookAhead automatically saves and
16752 restores the parser state.
16753 + Allow hyperlink target URIs to be split over multiple lines, and
16754 to start on the line after the reference. Resolves Issue #7.
16755 + Fixed handling of autolinks.
16759 + Replaced `choice [(try (string ...), ...]` idiom with `oneOfStrings`,
16761 + Added clauses for tilde and caret. Tilde is `\ensuremath{\sim}`, and
16762 caret is `\^{}`, not `\^` as before.
16763 + Added parsing for `\url`.
16764 + Parse `\texttt{}` as code, provided there's nothing fancy inside.
16768 + Modified HTML writer to use the Text.XHtml library. This results
16769 in cleaner, faster code, and it makes it easier to use Pandoc in
16770 other projects, like wikis, which use Text.XHtml. Two functions are
16771 now provided, writeHtml and writeHtmlString: the former outputs an
16772 Html structure, the latter a rendered string. The S5 writer is also
16773 changed, in parallel ways (writeS5, writeS5String).
16774 + The Html header is now written programmatically, so it has been
16775 removed from the 'headers' directory. The S5 header is still
16776 needed, but the doctype and some of the meta declarations have
16777 been removed, since they are written programmatically. This change
16778 introduces a new dependency on the xhtml package.
16779 + Fixed two bugs in email obfuscation involving improper escaping
16780 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
16782 + Fixed another bug in email obfuscation: If the text to be obfuscated
16783 contains an entity, this needs to be decoded before obfuscation.
16784 Thanks to thsutton for the patch. Resolves Issue #15.
16785 + Changed the way the backlink is displayed in HTML footnotes.
16786 Instead of appearing on a line by itself, it now generally
16787 appears on the last line of the note. (Exception: when the
16788 note does not end with a Plain or Para block.) This saves space
16790 + Added automatic unique identifiers to headers:
16791 - The identifier is derived from the header via a scheme
16792 documented in README.
16793 - WriterState now includes a list of header identifiers and a table
16794 of contents in addition to notes.
16795 - The function uniqueIdentifiers creates a list of unique identifiers
16796 from a list of inline lists (e.g. headers).
16797 - This list is part of WriterState and gets consumed by blockToHtml
16798 each time a header is encountered.
16799 + Include CSS for .strikethrough class in header only if strikethrough
16800 text appears in the document.
16801 + If the 'strict' option is specified, elements that do not appear in
16802 standard markdown (like definition lists) are passed through as
16804 + Simplified treatment of autolinks, using pattern matching instead of
16809 + Links in markdown output are now printed as inline links by default,
16810 rather than reference links. A --reference-links option has been added
16811 that forces links to be printed as reference links. Resolves Issue #4.
16812 + Use autolinks when possible. Instead of `[site.com](site.com)`,
16817 + Rewrote to use the State monad. The preamble now includes only those
16818 packages that are actually required, given the document's content.
16819 Thus, for example, if strikeout is not used, ulem is not required.
16820 Modified LaTeXHeader accordingly.
16821 + Modified LaTeX writer to insert `\,` between consecutive quotes.
16822 + Removed unused function tableRowColumnWidths.
16823 + Simplified code for escaping special characters.
16824 + Leave extra blank line after `\maketitle`.
16825 + Include empty `\author{}` when no author specified to avoid LaTeX
16827 + Include fancyvrb code in header only if needed -- that is, only
16828 if there is actually code in a footnote.
16829 + Use `\url{}` for autolinks.
16830 + Include [mathletters] option in ucs package, so that basic unicode
16831 Greek letters will work correctly.
16833 * RST writer: Force blank line before lists, so that sublists will
16834 be handled correctly.
16836 * Docbook writer: Fixed a bug: email links with text, like
16837 [foo](me@bar.baz), were being incorrectly treated as autolinks.
16839 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
16840 Text.Pandoc.Shared.
16842 * Text.Pandoc.Shared:
16844 + Added defaultWriterOptions.
16845 + Added writerTableOfContents to WriterOptions.
16846 + Added writerIgnoreNotes option to WriterOptions. This is needed
16847 for processing header blocks for a table of contents, since notes on
16848 headers should not appear in the TOC.
16849 + Added prettyprinting for native Table format.
16850 + Removed some unneeded imports.
16851 + Moved escape and nullBlock parsers from
16852 Text.ParserCombinators.Pandoc, since the latter is for
16853 general-purpose parsers that don't depend on Text.Pandoc.Definition.
16854 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
16855 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
16856 writer, because HTML writer now uses these in constructing a table
16858 + Added clauses for new inline elements (Strikeout, Superscript,
16859 Subscript) to refsMatch.
16860 + Removed backslashEscape; added new functions escapeStringUsing and
16862 + Moved failIfStrict from markdown reader, since it is now used also
16863 by the HTML reader.
16864 + Added a 'try' to the definition of indentSpaces.
16865 + In definition of 'reference', added check to make sure it's not a note
16867 + Added functions: camelCaseToHyphenated, toRomanNumeral,
16868 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
16869 charsInBalanced', withHorizDisplacement, romanNumeral
16870 + Fixed a bug in the anyLine parser. Previously it would parse an empty
16871 string "", but it should fail on an empty string, or we get an error
16872 when it is used inside "many" combinators.
16873 + Removed followedBy' parser, replacing it with the lookAhead parser from
16875 + Added some needed 'try's before multicharacter parsers, especially in
16877 + Removed the 'try' from the 'end' parser in 'enclosed', so that
16878 'enclosed' behaves like 'option', 'manyTill', etc.
16879 + Added lineClump parser, which parses a raw line block up to and
16880 including any following blank lines.
16881 + Renamed parseFromStr to parseFromString.
16882 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
16883 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
16885 + Removed unneeded 'try' in blanklines.
16886 + Removed endsWith function and rewrote calling functions to use
16887 isSuffixOf instead.
16888 + Added >>~ combinator.
16889 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
16892 * Refactored runtests.pl; added separate tests for tables.
16896 + Added -asxhtml flag to tidy in html2markdown. This will
16897 perhaps help the parser, which expects closing tags.
16898 + Modified markdown2pdf to run pdflatex a second time if --toc or
16899 --table-of-contents was specified; otherwise the table of
16900 contents won't appear.
16901 + Modified markdown2pdf to print a helpful message if the 'ulem'
16902 LaTeX package is required and not found.
16904 * Changes to build process:
16906 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
16908 + Removed cabalize and Pandoc.cabal.in. The repository now contains
16909 pandoc.cabal itself.
16910 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
16911 likes the cabal file to have the same name as the tarball.
16912 + Expanded and revised the package description in pandoc.cabal.
16913 Revised the package synopsis.
16914 + The tarball built by 'make tarball' now contains files built from
16915 templates (including man pages and shell scripts), so pandoc can
16916 be built directly using Cabal tools, without preprocessing.
16917 + Executable binaries are now stripped before installing.
16918 + Man pages are now generated from markdown sources, using pandoc's
16920 + Use HTML version of README (instead of RTF) in Mac OS X installer.
16921 + Instead of testing for the existence of a pandoc symlink in build-exec,
16926 + Updated README and man pages with information on new features.
16927 + Updated INSTALL instructions with some useful clarifications and
16929 + Updated web content.
16931 * Added FreeBSD port.
16937 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
16938 libghc6-xhtml-dev. Removed libghc6-html-dev.
16939 + Suggest texlive-latex-recommended | tetex-extra instead of
16940 tetex-bin. This brings in fancyvrb and unicode support.
16943## pandoc 0.3 (2007-01-05)
16945 [ John MacFarlane ]
16947 * Changes in pandoc options:
16949 + Allow options to follow or precede arguments.
16950 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
16951 + Added '--strict' option.
16952 + Added '-o/--output' option.
16953 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
16954 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
16955 error conditions. This is helpful for writing wrappers.
16956 + Added copyright message to '-v' output, modeled after FSF messages.
16957 + Reformatted usage message so that it doesn't wrap illegibly.
16958 + Removed extra blanks after '-h' and '-D' output.
16960 * Added docbook writer.
16962 * Added implicit setting of default input and output format based
16963 on input and output filename extensions. These defaults are
16964 overridden if explicit input and output formats are specified using
16965 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
16968 * Allow ordered list items to begin with (single) letters, as well
16969 as numbers. The list item marker may now be terminated either by
16970 '.' or by ')'. This extension to standard markdown is documented
16973 * Revised footnote syntax. (See README for full details.) The
16974 '[^1]' format now standard in markdown extensions is supported,
16975 as are inline footnotes with this syntax: `^[My note.]`.
16976 The earlier footnote syntax `^(1)` is no longer supported.
16978 * Improved HTML representation of footnotes. All footnotes
16979 are now auto-numbered and appear in an ordered list at the
16980 end of the HTML document. Since the default appearance is now
16981 acceptable, the old footnote styles have been removed from the
16986 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
16987 These readers ran 'runParser' on processed chunks of text to handle
16988 embedded block lists in lists and quotation blocks. But then
16989 any changes made to the parser state in these chunks was lost,
16990 as the state is local to the parser. So, for example, footnotes
16991 didn't work in quotes or list items. The fix: instead of calling
16992 runParser on some raw text, use setInput to make it the input, then
16993 parse it, then use setInput to restore the input to what it was
16994 before. This is shorter and more elegant, and it fixes the problem.
16995 + Fixed bug in notFollowedBy' combinator (adding 'try' before
16996 'parser'). Adjusted code that uses this combinator accordingly.
16997 + Fixed bug in RTF writer that caused improper indentation on
16998 footnotes occurring in indented blocks like lists.
16999 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
17000 and date are parsed correctly. Everything else in the preamble
17002 + Modified escapedChar in LaTeX reader to allow a `\` at the end of a
17003 line to count as escaped whitespace.
17004 + Modified LaTeX reader to produce inline links rather than reference
17005 links. Otherwise, links in footnotes aren't handled properly.
17006 + Fixed handling of titles in links in Markdown reader, so that
17007 embedded quotation marks are now handled properly.
17008 + Fixed Markdown reader's handling of embedded brackets in links.
17009 + Fixed Markdown reader so that it only parses bracketed material
17010 as a reference link if there is actually a corresponding key.
17011 + Revised inline code parsing in Markdown reader to conform to
17012 markdown standard. Now any number of `s can begin inline code,
17013 which will end with the same number of `s. For example, to
17014 have two backticks as code, write ``` `` ```. Modified Markdown
17015 writer accordingly.
17016 + Fixed bug in text-wrapping routine in Markdown and RST writers.
17017 Now LineBreaks no longer cause wrapping problems.
17018 + Supported hexadecimal numerical entity references as well as
17020 + Fixed bug in Markdown reader's handling of underscores and other
17021 inline formatting markers inside reference labels: for example,
17022 in '[A_B]: /url/a_b', the material between underscores was being
17023 parsed as emphasized inlines.
17024 + Changed Markdown reader's handling of backslash escapes so that
17025 only non-alphanumeric characters can be escaped. Strict mode
17026 follows Markdown.pl in only allowing a select group of punctuation
17027 characters to be escaped.
17028 + Modified HTML reader to skip a newline following a `<br>` tag.
17029 Otherwise the newline will be treated as a space at the beginning
17032 * Made handling of code blocks more consistent. Previously, some
17033 readers allowed trailing newlines, while others stripped them.
17034 Now, all readers strip trailing newlines in code blocks. Writers
17035 insert a newline at the end of code blocks as needed.
17037 * Modified readers to make spacing at the end of output more consistent.
17039 * Minor improvements to LaTeX reader:
17041 + `\thanks` now treated like a footnote.
17042 + Simplified parsing of LaTeX command arguments and options.
17043 commandArgs now returns a list of arguments OR options (in
17044 whatever order they appear). The brackets are included, and
17045 a new stripFirstAndLast function is provided to strip them off
17046 when needed. This fixes a problem in dealing with \newcommand
17047 and \newenvironment.
17049 * Revised RTF writer:
17051 + Default font is now Helvetica.
17052 + An `\f0` is added to each `\pard`, so that font resizing works
17055 * Moved handling of "smart typography" from the writers to the Markdown
17056 and LaTeX readers. This allows great simplification of the writers
17057 and more accurate smart quotes, dashes, and ellipses. DocBook can
17058 now use `<quote>`. The '--smart' option now toggles an option in
17059 the parser state rather than a writer option. Several new kinds
17060 of inline elements have been added: Quoted, Ellipses, Apostrophe,
17063 * Changes in HTML writer:
17065 + Include title block in header even when title is null.
17066 + Made javascript obfuscation of emails even more obfuscatory,
17067 by combining it with entity obfuscation.
17069 * Changed default ASCIIMathML text color to black.
17073 + Added --strip-trailing-cr option to diff in runtests.pl, for
17074 compatibility with Windows.
17075 + Added regression tests with footnotes in quote blocks and lists.
17077 * Makefile changes:
17079 + osx-pkg target creates a Mac OS X package (directory). New osx
17080 directory contains files needed for construction of the package.
17081 + osx-dmg target creates a compressed disk image containing the package.
17082 + win-pkg target creates Windows binary package.
17083 + tarball target creates distribution source tarball.
17084 + website target generates pandoc's website automatically, including
17085 demos. New 'web' directory contains files needed for construction
17086 of the website (which will be created as the 'pandoc' subdirectory
17088 + Makefile checks to see if we're running Windows/Cygwin; if so,
17089 a '.exe' extension is added to each executable in EXECS.
17091 * Removed all wrappers except markdown2pdf and html2markdown.
17093 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
17094 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
17095 option and disables other options.
17097 * Added code to html2markdown that tries to determine the character
17098 encoding of an HTML file, by parsing the "Content-type" meta tag.
17100 + If the encoding can't be determined, then if the content is local,
17101 the local encoding is used; if it comes from a URL, UTF-8 is used
17103 + If input is from STDIN, don't try to determine character encoding.
17104 + Encoding can be specified explicitly using '-e' option.
17106 * Improved warning messages in wrappers:
17108 + Print warning if iconv not available
17109 + More user-friendly error messages in markdown2pdf, when
17114 + Renamed 'Text/Pandoc/HtmlEntities' module to
17115 'Text/Pandoc/Entities'. Also changed function names so as
17116 not to be HTML-specific.
17117 + Refactored SGML string escaping functions from HTML and Docbook
17118 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
17119 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
17121 + Removed splitBySpace and replaced it with a general, polymorphic
17123 + Refactored LaTeX reader for clarity (added isArg function).
17124 + Converted some CR's to LF's in src/ui/default/print.css.
17125 + Added license text to top of source files.
17126 + Added module data for haddock to source files.
17127 + Reformatted code for consistency.
17129 * Rewrote documentation and man pages. Split README into INSTALL
17132 * Split LICENSE into COPYING and COPYRIGHT.
17134 * Removed TODO, since we now maintain ToDo on the wiki.
17136 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
17141 * Revamped build process to conform to debian standards and created
17142 a proper debian package. Closes: #391666.
17144 * Modified build process to support GHC 6.6.
17146 + The package can still be compiled using GHC 6.4.2, though because
17147 of dependencies the "make deb" target works only with GHC 6.6+.
17148 + The script 'cabalize' is used to create an appropriate
17149 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
17152 * Refactored template processing (fillTemplates.pl).
17154 * Modified wrapper scripts to make them more robust and portable.
17155 To avoid code duplication and ensure consistency, wrappers are
17156 generated via a templating system from templates in src/wrappers.
17158 + Wrappers now accept multiple filenames, when appropriate.
17159 + Spaces and tabs allowed in filenames.
17160 + getopts shell builtin is used for portable option parsing.
17161 + Improved html2markdown's web grabber code, making it more robust,
17162 configurable and verbose. Added '-e', '-g' options.
17165## pandoc 0.2 (2006-08-14)
17167 * Fixed unicode/utf-8 translation
17169## pandoc 0.1 (2006-08-14)
17171 * 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